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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e1e2e;
    --darker: #13131d;
    --light: #cdd6f4;
    --lighter: #f5f5f5;
    --card-bg: rgba(49, 50, 68, 0.8);
    --border: #45475a;
    --text: #cdd6f4;
    --text-muted: #a6adc8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Site Header */
.site-header {
    background: rgba(19, 19, 29, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.logo i {
    font-size: 1.5rem;
}

.logo:hover {
    color: #818cf8;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a i {
    font-size: 0.85rem;
}

/* Site Footer */
.site-footer {
    background: rgba(19, 19, 29, 0.95);
    border-top: 1px solid var(--border);
    padding: 30px 0 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-brand i {
    font-size: 1.3rem;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-info {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-info i {
    color: var(--secondary);
    margin-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--darker);
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* File Limit Text */
.file-limit {
    display: block;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 20px 0;
}

.page-header h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.page-header h1 i {
    margin-right: 10px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Upload Section */
.upload-section {
    margin: 15px 0;
}

.upload-area {
    border: 3px dashed var(--border);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.01);
}

.upload-area i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.upload-area h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.upload-area p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.upload-info {
    text-align: center;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.upload-info i {
    color: var(--warning);
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading.active {
    display: block;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Main Content Grid */
.main-content {
    animation: fadeIn 0.4s ease;
}

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

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Left Column */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Player Section */
.player-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Player Controls */
.player-controls {
    margin-top: 10px;
}

.album-art {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.album-art i {
    font-size: 2rem;
    color: white;
    animation: rotate 8s linear infinite;
    animation-play-state: paused;
}

.album-art.playing i {
    animation-play-state: running;
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.track-info {
    overflow: hidden;
}

.track-info h2 {
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: var(--light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info .album-name {
    font-size: 0.8rem;
    font-style: italic;
}

/* Live Lyrics Preview */
.lyrics-preview {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.lyrics-preview:hover {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.lyrics-current-line {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
    padding: 8px;
    line-height: 1.3;
}

.lyrics-preview.plain-mode {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.lyrics-preview.plain-mode .lyrics-current-line {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.progress-container span {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 38px;
}

.progress-container input[type="range"],
.volume-control input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    cursor: pointer;
}

.progress-container input[type="range"]::-webkit-slider-thumb,
.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.progress-container input[type="range"]::-webkit-slider-thumb:hover,
.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.control-btn {
    background: var(--border);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--light);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.control-btn.play-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    font-size: 1.1rem;
}

.control-btn.play-btn:hover {
    background: var(--primary-dark);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
}

.volume-control i {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.volume-control input[type="range"] {
    width: 70px;
}

/* Tag Edit Section */
.tag-edit-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.tag-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.input-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.input-group input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--darker);
    color: var(--light);
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Buttons */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--secondary);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-secondary {
    background: var(--border);
    color: var(--light);
}

.btn-secondary:hover {
    background: #585b70;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--light);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 140px);
}

/* Empty Lyrics State */
.empty-lyrics {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
}

.empty-lyrics i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-lyrics p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Search Results */
.search-results {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid var(--border);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-results h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--light);
}

.search-results h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.results-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-item {
    padding: 12px;
    background: var(--darker);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.result-item:hover {
    border-color: var(--primary);
}

.result-item.selected {
    border-color: var(--secondary);
    background: rgba(34, 197, 94, 0.1);
}

.result-item h4 {
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.result-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.result-item .badges {
    margin-top: 6px;
    display: flex;
    gap: 6px;
}

.badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.badge-synced {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.badge-plain {
    background: rgba(34, 197, 94, 0.2);
    color: var(--secondary);
}

/* Cover Art Results */
.cover-results {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

.cover-results h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--light);
}

.cover-results h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.cover-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.cover-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.cover-item:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.cover-item.selected {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.cover-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-item .cover-source {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px;
    background: rgba(0, 0, 0, 0.7);
    font-size: 0.65rem;
    text-align: center;
    color: white;
}

.cover-item .cover-check {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: var(--secondary);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.cover-item.selected .cover-check {
    display: flex;
}

.cover-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: var(--darker);
    border-radius: 8px;
    font-size: 0.85rem;
}

.cover-info img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.cover-info-text {
    flex: 1;
    min-width: 0;
}

.cover-info-text h4 {
    font-size: 0.85rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cover-info-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.no-covers {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.no-covers i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Lyrics Section */
.lyrics-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid var(--border);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.lyrics-header h3 {
    font-size: 0.95rem;
    color: var(--light);
}

.lyrics-header h3 i {
    color: var(--primary);
    margin-right: 8px;
}

/* Offset Control */
.offset-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    margin-bottom: 10px;
}

.offset-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.offset-label i {
    color: var(--primary);
}

.offset-slider {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.offset-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    color: var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.offset-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.offset-slider input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    cursor: pointer;
}

.offset-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.offset-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.offset-value {
    min-width: 50px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--darker);
    padding: 4px 8px;
    border-radius: 6px;
}

.offset-value.positive {
    color: var(--secondary);
}

.offset-value.negative {
    color: var(--warning);
}

.offset-reset {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.offset-reset:hover {
    background: var(--danger);
    color: white;
}

.lyrics-type {
    display: flex;
    gap: 12px;
}

.lyrics-type label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.3s;
}

.lyrics-type label:hover {
    color: var(--light);
}

.lyrics-type input[type="radio"] {
    accent-color: var(--primary);
    width: 14px;
    height: 14px;
}

.lyrics-container {
    background: var(--darker);
    border-radius: 10px;
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 12px;
}

.lyrics-content {
    font-size: 0.9rem;
    line-height: 1.8;
}

.lyrics-content .lyric-line {
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lyrics-content .lyric-line:hover {
    background: rgba(99, 102, 241, 0.1);
}

.lyrics-content .lyric-line.active {
    background: rgba(99, 102, 241, 0.3);
    color: var(--primary);
    font-weight: 600;
}

.lyrics-content .lyric-line.past {
    color: var(--text-muted);
    opacity: 0.7;
}

.lyrics-actions {
    display: flex;
    gap: 8px;
}

.lyrics-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Status Message */
.status-message {
    padding: 12px 15px;
    border-radius: 10px;
    margin-top: 15px;
    display: none;
    font-size: 0.9rem;
}

.status-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.status-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.status-message.info {
    display: block;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success { background: var(--secondary); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }

/* No Results */
.no-results {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

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

/* Responsive */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .right-column {
        max-height: none;
        min-height: 350px;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .offset-control {
        flex-wrap: wrap;
    }
    
    .offset-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Static Page Content */
.static-page {
    flex: 1;
    padding: 40px 20px;
}

.static-page .page-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border);
}

.static-page h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.static-page h1 i {
    font-size: 1.8rem;
}

.static-page .subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

.static-page h2 {
    color: var(--light);
    font-size: 1.3rem;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.static-page h2 i {
    color: var(--primary);
    margin-right: 10px;
}

.static-page p {
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.8;
}

.static-page ul {
    margin: 15px 0;
    padding-left: 25px;
}

.static-page ul li {
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.6;
}

.static-page ul li i {
    color: var(--secondary);
    margin-right: 8px;
}

.static-page .highlight-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.static-page .highlight-box.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.static-page .highlight-box h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.static-page .highlight-box.success h3 {
    color: var(--secondary);
}

.static-page .highlight-box p {
    margin-bottom: 0;
}

/* Contact Form */
.contact-form {
    margin-top: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--darker);
    color: var(--light);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-info-item {
    background: var(--darker);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.contact-info-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-info-item h4 {
    color: var(--light);
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.last-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .player-info {
        flex-direction: column;
        text-align: center;
    }
    
    .album-art {
        width: 100px;
        height: 100px;
    }
    
    .control-buttons {
        flex-wrap: wrap;
    }
    
    .volume-control {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .lyrics-actions {
        flex-direction: column;
    }
}

/* ==================== File History Section ==================== */
.history-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

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

.history-header h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-header h3 i {
    color: var(--primary);
}

.history-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.history-toggle:hover {
    color: var(--light);
}

.history-toggle.collapsed i {
    transform: rotate(-90deg);
}

.history-list {
    display: grid;
    gap: 10px;
    transition: all 0.3s;
}

.history-list.collapsed {
    display: none;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: var(--darker);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.history-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
}

.history-item.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

.history-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-cover i {
    font-size: 1.2rem;
    color: var(--primary);
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.history-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.history-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-meta .has-item {
    color: var(--secondary);
}

.history-meta .no-item {
    color: var(--text-muted);
    opacity: 0.6;
}

.history-time {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.history-time.urgent {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.history-time.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.history-time.normal {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.history-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.history-empty i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 600px) {
    .history-item {
        padding: 10px 12px;
    }
    
    .history-cover {
        width: 40px;
        height: 40px;
    }
    
    .history-meta {
        gap: 8px;
    }
    
    .history-time {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* ==================== AD CONTAINERS ==================== */

.ad-container {
    width: 100%;
    margin: 20px 0;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.ad-container:empty {
    display: none;
}

/* Header Banner Ad */
.ad-header {
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.8), rgba(40, 40, 60, 0.8));
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

/* Upload Section Ad */
.ad-upload {
    background: rgba(30, 30, 46, 0.6);
    padding: 15px;
    margin-top: 20px;
}

/* Recent Files Ad */
.ad-recent {
    background: rgba(30, 30, 46, 0.5);
    padding: 12px;
    margin-top: 15px;
    border-radius: 10px;
}

/* Player Section Ad */
.ad-player {
    background: rgba(20, 20, 35, 0.7);
    padding: 15px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Search Results Ad */
.ad-results {
    background: rgba(30, 30, 46, 0.5);
    padding: 12px;
    margin-top: 15px;
    border-radius: 10px;
}

/* Lyrics Section Ad */
.ad-lyrics {
    background: rgba(30, 30, 46, 0.5);
    padding: 15px;
    margin-top: 20px;
    border-radius: 10px;
}

/* Footer Banner Ad */
.ad-footer {
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.9), rgba(20, 20, 35, 0.9));
    padding: 20px;
    margin: 30px auto 0;
    max-width: 1200px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

/* Responsive adjustments for ads */
@media (max-width: 768px) {
    .ad-container {
        margin: 15px 0;
        padding: 10px;
    }
    
    .ad-header,
    .ad-footer {
        padding: 10px;
        margin: 15px 0;
    }
}

/* Make sure ads don't break layout */
.ad-container img {
    max-width: 100%;
    height: auto;
}

.ad-container iframe {
    max-width: 100%;
}
