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

:root {
    --primary-color: #D70050;
    --primary-light: #FF1A6B;
    --primary-dark: #B30040;
    --bg-gradient-start: #1a0a0a;
    --bg-gradient-end: #2d0f14;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="3" fill="rgba(215, 0, 80, 0.8)"/></svg>') 10 10, auto;
}

/* 添加背景装饰圆圈 */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(215, 0, 80, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(215, 0, 80, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(215, 0, 80, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFB6C1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(215, 0, 80, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(215, 0, 80, 0.5);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(215, 0, 80, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(215, 0, 80, 0); }
}

.container {
    width: 100%;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 32px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-2px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 32px;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.player-section {
    margin-bottom: 32px;
}

.admin-content {
    display: none;
}

.admin-info {
    margin-bottom: 24px;
}

.admin-notice {
    background: rgba(215, 0, 80, 0.2);
    border: 1px solid rgba(215, 0, 80, 0.3);
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.clear-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.clear-btn:hover {
    background: rgba(255, 59, 48, 0.3);
    border-color: rgba(255, 59, 48, 0.5);
    transform: translateY(-1px);
}

.clear-btn:active {
    transform: translateY(0);
}

.clear-btn svg {
    width: 20px;
    height: 20px;
}

#track-count {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.current-track {
    text-align: center;
    margin-bottom: 24px;
}

.track-info h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.track-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.time {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.progress-bar::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.progress-bar::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.control-btn {
    width: 52px;
    height: 52px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.primary {
    width: 68px;
    height: 68px;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(215, 0, 80, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-btn.primary:hover {
    background: var(--primary-light);
    box-shadow: 0 6px 20px rgba(215, 0, 80, 0.5);
}

.control-btn svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.control-btn.primary svg {
    width: 32px;
    height: 32px;
}

/* 倒退/快进按钮样式 */
.skip-btn {
    width: 56px;
    height: 56px;
    flex-direction: column;
    gap: 2px;
}

.skip-btn svg {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}

.skip-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1;
}

/* 播放/暂停图标切换 */
.play-icon,
.pause-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.playback-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.speed-control label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

#speed-select {
    padding: 8px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

#speed-select:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

#speed-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(215, 0, 80, 0.2);
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.mode-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.mode-btn svg {
    width: 20px;
    height: 20px;
}

.mode-btn.loop-mode {
    color: var(--primary-color);
    border-color: rgba(215, 0, 80, 0.4);
}

.permission-section {
    margin-bottom: 24px;
}

.password-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#password-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-color);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

#password-input:hover {
    border-color: var(--text-secondary);
}

#password-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(215, 0, 80, 0.1);
}

.login-btn {
    width: 100%;
    padding: 16px 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(215, 0, 80, 0.3);
}

.login-btn:hover {
    background: var(--primary-light);
    box-shadow: 0 6px 16px rgba(215, 0, 80, 0.4);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #FF3B30;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
    padding: 8px;
}

.upload-section {
    margin-bottom: 24px;
}

.upload-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.text-section {
    margin-bottom: 24px;
}

.text-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.text-input {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-color);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}

.text-input:hover {
    border-color: var(--text-secondary);
}

.text-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(215, 0, 80, 0.1);
}

.text-hint {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
}

.text-example {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.save-feedback {
    margin-top: 16px;
}

.export-section {
    margin-bottom: 24px;
    text-align: center;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid rgba(76, 175, 80, 0.4);
    border-radius: 12px;
    color: #4CAF50;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.export-btn:hover {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.export-btn:active {
    transform: translateY(0);
}

.export-btn svg {
    width: 20px;
    height: 20px;
}

.export-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.success-message svg {
    width: 20px;
    height: 20px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-info {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-item ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.info-item li {
    margin-bottom: 4px;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.upload-btn svg {
    width: 24px;
    height: 24px;
}

.save-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.save-and-continue-btn,
.save-only-btn,
.load-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-and-continue-btn {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
}

.save-and-continue-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.save-only-btn:hover {
    border-color: var(--primary-color);
    background: rgba(215, 0, 80, 0.05);
    transform: translateY(-1px);
}

.load-btn:hover {
    border-color: var(--primary-color);
    background: rgba(215, 0, 80, 0.05);
    transform: translateY(-1px);
}

.save-and-continue-btn:active,
.save-only-btn:active,
.load-btn:active {
    transform: translateY(0);
}

.save-and-continue-btn svg,
.save-only-btn svg,
.load-btn svg {
    width: 20px;
    height: 20px;
}

.playlist-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.lyrics-section {
    margin-bottom: 24px;
}

.lyrics-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.text-toggle-section {
    margin-bottom: 16px;
    text-align: center;
}

.text-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(215, 0, 80, 0.2);
}

.text-toggle-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(215, 0, 80, 0.3);
}

.text-toggle-btn:active {
    transform: translateY(0);
}

.text-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.lyrics-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lyrics-container::-webkit-scrollbar {
    width: 6px;
}

.lyrics-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.lyrics-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.lyrics-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lyric-line {
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.lyric-line:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.no-lyrics {
    text-align: center;
    color: var(--text-secondary);
    padding: 32px;
    font-size: 14px;
}

.playlist {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.playlist::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 卡片式播放列表 */
.playlist-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
    padding: 4px;
}

.playlist-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.playlist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(215, 0, 80, 0) 0%, rgba(215, 0, 80, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.playlist-card:hover {
    transform: translateY(-5px);
    border-color: rgba(215, 0, 80, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.playlist-card:hover::before {
    opacity: 0.1;
}

.playlist-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(215, 0, 80, 0.3);
}

.playlist-card.active::before {
    opacity: 0.15;
}

.playlist-card.playing {
    border-color: rgba(215, 0, 80, 0.6);
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    margin-right: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-status {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.playlist-card.playing .card-status {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.card-duration {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.card-text-preview {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-card:hover .card-text-preview {
    color: var(--text-primary);
}

/* 卡片图标和动画 */
.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(215, 0, 80, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.playing-animation {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.playing-animation::before,
.playing-animation::after {
    content: '';
    width: 4px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: playingBar 0.8s ease-in-out infinite;
}

.playing-animation::after {
    animation-delay: 0.4s;
}

@keyframes playingBar {
    0%, 100% {
        height: 4px;
    }
    50% {
        height: 16px;
    }
}

/* 旧版列表样式（用于后台管理） */
.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.playlist-item.active {
    background: rgba(215, 0, 80, 0.2);
    border: 1px solid rgba(215, 0, 80, 0.4);
}

.playlist-item.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.playlist-item.drag-over {
    border: 2px dashed var(--primary-color);
}

.playlist-item.drag-handle {
    cursor: grab;
}

.playlist-item.drag-handle:active {
    cursor: grabbing;
}

.drag-handle {
    color: var(--text-secondary);
    cursor: grab;
    padding: 4px;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle svg {
    width: 20px;
    height: 20px;
}

.track-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.track-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.track-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-text-preview {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.track-duration {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.remove-btn:hover {
    color: #FF3B30;
}

.remove-btn svg {
    width: 18px;
    height: 18px;
}

.empty-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 32px;
    font-size: 14px;
}

.playing-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .header h1 {
        font-size: 20px;
    }

    .header p {
        font-size: 12px;
    }

    .track-info h2 {
        font-size: 18px;
    }

    .control-btn {
        width: 44px;
        height: 44px;
    }

    .control-btn svg {
        width: 20px;
        height: 20px;
    }

    .control-btn.primary {
        width: 58px;
        height: 58px;
    }

    .control-btn.primary svg {
        width: 28px;
        height: 28px;
    }

    .skip-btn {
        width: 48px;
        height: 48px;
    }

    .skip-btn svg {
        width: 18px;
        height: 18px;
    }

    .skip-label {
        font-size: 9px;
    }

    .lyrics-container {
        max-height: 150px;
        padding: 16px;
    }

    .lyric-line {
        font-size: 14px;
        padding: 8px 12px;
        margin-bottom: 5px;
    }

    .text-toggle-btn {
        width: calc(100% - 32px);
        justify-content: center;
    }

    .save-section {
        flex-direction: column;
    }

    .save-btn,
    .load-btn,
    .clear-btn {
        width: 100%;
    }

    .upload-info {
        padding: 12px;
    }

    .info-item ul {
        font-size: 12px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .edit-text-input {
        min-height: 200px;
    }
}

/* 平板设备适配 */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 90%;
        padding: 28px 24px;
    }

    .header h1 {
        font-size: 24px;
    }

    .control-btn {
        width: 48px;
        height: 48px;
    }

    .control-btn.primary {
        width: 62px;
        height: 62px;
    }

    .skip-btn {
        width: 52px;
        height: 52px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .container {
        max-width: 700px;
    }
}

/* 滚动触发动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.animate-up {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-animate.animate-up.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.animate-scale {
    opacity: 0;
    transform: scale(0.9);
}

.scroll-animate.animate-scale.animate-visible {
    opacity: 1;
    transform: scale(1);
}

/* 延迟动画 */
.scroll-animate.delay-1 { transition-delay: 0.1s; }
.scroll-animate.delay-2 { transition-delay: 0.2s; }
.scroll-animate.delay-3 { transition-delay: 0.3s; }
.scroll-animate.delay-4 { transition-delay: 0.4s; }
.scroll-animate.delay-5 { transition-delay: 0.5s; }

/* 响应式 - 移动优先 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-section {
        padding: 40px 16px 30px;
    }

    .playlist-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .container {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 14px;
    }

    .playlist-card {
        padding: 16px;
    }
}

/* 编辑弹窗样式 */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.edit-modal.show .modal-overlay {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: var(--surface-color);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.edit-modal.show .modal-content {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.modal-close-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-close-btn svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
}

.edit-info {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.edit-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.edit-info p:last-child {
    margin-bottom: 0;
}

.edit-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.edit-info span {
    color: var(--text-secondary);
}

.edit-text-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-text-section label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.edit-text-input {
    width: 100%;
    min-height: 250px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-color);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}

.edit-text-input:hover {
    border-color: var(--text-secondary);
}

.edit-text-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(215, 0, 80, 0.1);
}

.edit-text-hint {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
}

.modal-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-cancel {
    background: var(--bg-color);
    color: var(--text-primary);
}

.modal-btn-cancel:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

.modal-btn-save {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(215, 0, 80, 0.3);
}

.modal-btn-save:hover {
    background: var(--primary-light);
    box-shadow: 0 6px 16px rgba(215, 0, 80, 0.4);
    transform: translateY(-1px);
}

.modal-btn:active {
    transform: translateY(0);
}

.modal-btn svg {
    width: 18px;
    height: 18px;
}
