/* CSS变量定义 */
:root {
    --primary-color: #8B4513;
    --primary-dark: #A0522D;
    --primary-light: #CD853F;
    --secondary-color: #f8f5f2;
    --text-color: #333333;
    --text-secondary: #555555;
    --background-color: #f8f5f2;
    --card-background: white;
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    background-image: 
        linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
    animation: fadeIn 1s ease-out;
}

/* 页面过渡动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 链接点击动画 */
a, .nav-btn, .back-btn, .toggle-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 链接悬停效果 */
a::before, .nav-btn::before, .back-btn::before, .toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before, .back-btn:hover::before, .toggle-btn:hover::before {
    left: 100%;
}



/* 主容器 */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航 */
.app-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-light) 100%);
    backdrop-filter: blur(10px);
    padding: 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,30 Q30,10 50,30 T90,30" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="1"/></svg>');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.3;
}

.app-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.header-actions {
    display: flex;
    gap: 1rem;
    position: relative;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: 'Noto Sans SC', sans-serif;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 歌曲信息卡片 */
.song-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #e8e0d5;
    position: relative;
    overflow: hidden;
}

.song-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.song-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.song-card:hover::before {
    transform: scaleY(1);
}

.album-cover {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.album-cover:hover img {
    transform: scale(1.05);
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(160, 82, 45, 0.7));
    border-radius: var(--border-radius);
}

.song-details {
    flex: 1;
}

.song-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    line-height: 1.2;
}

.song-artist {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.song-meta {
    display: flex;
    gap: 1rem;
}

.meta-item {
    background: rgba(139, 69, 19, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

/* 播放器控制区 */
.player-container {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid #e8e0d5;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.player-container:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 50px;
    text-align: center;
    font-weight: 500;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e8e0d5;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.progress-bar:hover {
    height: 8px;
    background: #d4c8b8;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    border-radius: 3px;
    width: 0%;
}

.progress-slider {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    cursor: pointer;
    left: 0%;
    box-shadow: 0 2px 6px rgba(139, 69, 19, 0.4);
    transition: transform 0.1s ease;
    z-index: 2;
}

.progress-slider:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.progress-bar.dragging .progress-slider {
    transform: translate(-50%, -50%) scale(1.3);
}

.progress-bar.dragging .progress-fill,
.progress-bar.dragging .progress-slider {
    transition: none;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.control-btn {
    background: #f8f5f2;
    border: 1px solid #e0d4c3;
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.play-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    border: none;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

.play-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.volume-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.volume-icon {
    font-size: 1.4rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
}

.volume-icon:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.volume-bar {
    flex: 1;
    height: 8px;
    background: #e8e0d5;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    min-width: 100px;
}

.volume-bar:hover {
    height: 10px;
    background: #d4c8b8;
}

.volume-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    border-radius: 4px;
    width: 70%;
    transition: width 0.1s ease;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

/* 特色推荐 */
.featured-section {
    margin-top: 3rem;
}

.featured-section h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.featured-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
}

.artist-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--card-shadow);
    border: 1px solid #e8e0d5;
    position: relative;
    overflow: hidden;
}

.artist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.artist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.artist-card:hover::before {
    transform: scaleX(1);
}

.artist-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.2rem;
    border: 3px solid #e0d4c3;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.artist-card:hover img {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.artist-card p {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
    font-family: 'Noto Serif SC', serif;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 350px;
    height: 100vh;
    background: var(--card-background);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 200;
    border-left: 1px solid #e8e0d5;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e8e0d5;
}

.sidebar-header h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
    display: inline-block;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 35px;
}

.close-sidebar:hover {
    background: rgba(139, 69, 19, 0.1);
    color: var(--primary-color);
    transform: scale(1.1);
}

.search-container {
    margin-bottom: 2rem;
}

.search-container input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0d4c3;
    border-radius: 30px;
    background-color: #fefcf9;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: 'Noto Sans SC', sans-serif;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
    background-color: white;
}

.search-container input::placeholder {
    color: var(--text-secondary);
}

.song-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.artist-header {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.8rem 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Noto Sans SC', sans-serif;
}

.song-item {
    color: var(--text-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    border: 1px solid #f0e6d8;
    background-color: #fefcf9;
}

.song-item:hover {
    background: rgba(139, 69, 19, 0.05);
    transform: translateX(5px);
    border-color: rgba(139, 69, 19, 0.2);
}

.song-item.active {
    background: rgba(139, 69, 19, 0.1);
    border-left: 4px solid var(--primary-color);
    border-color: rgba(139, 69, 19, 0.3);
}

/* 底部信息 */
.app-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-light) 100%);
    padding: 2rem;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 -8px 25px rgba(139, 69, 19, 0.3);
    margin-top: 3rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: relative;
    overflow: hidden;
}

.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,30 Q30,10 50,30 T90,30" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="1"/></svg>');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.3;
}

.app-footer p {
    position: relative;
    font-weight: 500;
    font-family: 'Noto Sans SC', sans-serif;
}

/* 自定义提示弹窗 */
.custom-alert {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.custom-alert-content {
    background-color: var(--card-background);
    margin: 20% auto;
    padding: 40px;
    border: 1px solid #e8e0d5;
    width: 80%;
    max-width: 400px;
    border-radius: var(--border-radius);
    color: var(--text-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    position: relative;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.custom-alert-content p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    font-family: 'Noto Sans SC', sans-serif;
}

.custom-alert-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
    font-family: 'Noto Sans SC', sans-serif;
}

.custom-alert-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .song-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .album-cover {
        width: 180px;
        height: 180px;
    }
    
    .song-title {
        font-size: 2.2rem;
    }
    
    .song-artist {
        font-size: 1.1rem;
    }
    
    .player-container {
        padding: 2rem;
    }
    
    .controls {
        gap: 1.2rem;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .play-btn {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .artist-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.5rem;
    }
    
    .artist-card {
        padding: 1.5rem;
    }
    
    .artist-card img {
        width: 100px;
        height: 100px;
    }
    
    .artist-card p {
        font-size: 1rem;
    }
    
    .app-footer {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 1.8rem;
    }
    
    .song-title {
        font-size: 1.8rem;
    }
    
    .song-artist {
        font-size: 1rem;
    }
    
    .player-container {
        padding: 1.5rem;
    }
    
    .progress-section {
        gap: 0.5rem;
    }
    
    .time {
        font-size: 0.8rem;
        min-width: 40px;
    }
    
    .artist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .artist-card {
        padding: 1.2rem;
    }
    
    .artist-card img {
        width: 80px;
        height: 80px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.song-card, .player-container, .featured-section {
    animation: fadeIn 0.5s ease-out;
}

/* 播放按钮脉冲动画 */
.play-btn:hover {
    animation: pulse 1s infinite;
}

/* 侧边栏动画 */
.sidebar.active {
    animation: slideInRight 0.3s ease-out;
}

/* 歌曲项动画 */
.song-item {
    transition: var(--transition);
    animation: fadeIn 0.3s ease-out;
}

/* 歌手卡片动画 */
.artist-card {
    transition: var(--transition);
    animation: fadeIn 0.4s ease-out;
}

.artist-card:nth-child(1) { animation-delay: 0.1s; }
.artist-card:nth-child(2) { animation-delay: 0.2s; }
.artist-card:nth-child(3) { animation-delay: 0.3s; }
.artist-card:nth-child(4) { animation-delay: 0.4s; }

/* 进度条动画 */
.progress-fill {
    transition: width 0.1s ease;
    animation: pulse 2s infinite;
}

/* 音量条动画 */
.volume-fill {
    transition: width 0.1s ease;
}

/* 按钮点击动画 */
.control-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* 导航按钮动画 */
.nav-btn {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

/* 歌曲卡片悬停动画 */
.song-card:hover .album-cover {
    transform: scale(1.05) rotate(2deg);
    transition: transform 0.3s ease;
}

/* 搜索框动画 */
.search-container input {
    transition: var(--transition);
    position: relative;
}

.search-container input:focus {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* 滚动条动画 */
::-webkit-scrollbar-thumb {
    transition: var(--transition);
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}