* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-dark: #0a0a1a;
    --bg-card: #141428;
    --bg-input: #1a1a3e;
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff006e;
    --neon-purple: #8338ec;
    --neon-yellow: #ffbe0b;
    --neon-green: #06d6a0;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-dim: #606080;
    --border: #2a2a4a;
    --radius: 12px;
    --radius-sm: 8px;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 4px;
}

.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.loader {
    text-align: center;
}

.loader-disc {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--neon-cyan), var(--neon-magenta), var(--neon-purple), var(--neon-cyan));
    margin: 0 auto 20px;
    animation: spin 2s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disc-inner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-dark);
}

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

.loader-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.4em;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-dots {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loader-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-cyan);
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: auto;
    background: radial-gradient(ellipse at top, #1a1a3e, var(--bg-dark));
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 40px 24px;
    text-align: center;
}

.auth-logo {
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 3em;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 12px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.6)); }
}

.auth-logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8em;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s;
}

.input-group:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.input-group i {
    padding: 0 16px;
    color: var(--text-dim);
    font-size: 0.9em;
}

.input-group input {
    flex: 1;
    padding: 14px 16px 14px 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95em;
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-dim);
}

.btn-neon {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: 'Orbitron', monospace;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 56, 236, 0.4);
}

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

.btn-neon-sm {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-neon-sm:hover {
    box-shadow: 0 4px 12px rgba(131, 56, 236, 0.4);
}

.auth-error {
    background: rgba(255, 0, 110, 0.15);
    border: 1px solid var(--neon-magenta);
    color: var(--neon-magenta);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
}

.auth-pending {
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.auth-pending i {
    font-size: 2.5em;
    color: var(--neon-yellow);
    margin-bottom: 12px;
}

.auth-pending h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.auth-pending p {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.6;
}

.auth-footer {
    margin-top: 20px;
}

.auth-footer a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: var(--neon-magenta);
}

.app-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    min-height: 50px;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.95em;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.85em;
}

.btn-icon:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.user-badge {
    font-size: 0.8em;
    color: var(--text-secondary);
    display: none;
}

.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.sidebar {
    width: 300px;
    min-width: 300px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s, margin-left 0.3s;
}

.sidebar.hidden {
    transform: translateX(-100%);
    margin-left: -300px;
}

.search-box {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}

.search-box i {
    color: var(--text-dim);
}

.search-box input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9em;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--neon-cyan);
}

.song-type-filter {
    display: flex;
    padding: 8px 12px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.filter-btn {
    flex: 1;
    padding: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.75em;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: 600;
}

.filter-btn.active {
    background: var(--neon-purple);
    border-color: var(--neon-purple);
    color: white;
}

.song-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    gap: 10px;
    margin-bottom: 4px;
}

.song-item:hover {
    background: var(--bg-input);
}

.song-item.active {
    background: rgba(131, 56, 236, 0.2);
    border-left: 3px solid var(--neon-purple);
}

.song-item-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    flex-shrink: 0;
}

.song-item-icon.midi { background: linear-gradient(135deg, #1a3a5c, #2a5a8c); color: var(--neon-cyan); }
.song-item-icon.kar { background: linear-gradient(135deg, #3a1a5c, #5a2a8c); color: var(--neon-magenta); }
.song-item-icon.mp3 { background: linear-gradient(135deg, #1a5c3a, #2a8c5a); color: var(--neon-green); }

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

.song-item-title {
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-item-meta {
    font-size: 0.7em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.song-item-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.song-item:hover .song-item-actions {
    opacity: 1;
}

.song-item-actions button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.song-item-actions button:hover {
    background: var(--neon-purple);
    color: white;
}

.player-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lyrics-display {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.lyrics-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(131, 56, 236, 0.08) 0%, transparent 70%);
}

.no-song {
    text-align: center;
    color: var(--text-dim);
    z-index: 1;
}

.no-song i {
    font-size: 3em;
    margin-bottom: 16px;
    color: var(--neon-purple);
}

.no-song p {
    font-size: 1em;
}

.lyrics-wrapper {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    z-index: 1;
    font-size: 1em;
    transition: font-size 0.2s ease;
}

.lyric-line {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    line-height: 1.4;
    padding: 4px 0;
    min-height: 1.2em;
}

.lyric-line.line1,
.lyric-line.line2 {
    font-size: 1.6em;
}

.lyric-line.line3,
.lyric-line.line4 {
    font-size: 1.1em;
}

.lyric-line.blur {
    filter: blur(3px);
    opacity: 0.45;
}

.lyric-line .syl {
    display: inline;
    paint-order: stroke fill;
    -webkit-text-stroke: 2px #000000;
    background: linear-gradient(90deg, #4da6ff 50%, #ffffff 50%) right / 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lyric-line .syl.singing {
    transition: background-position 0.08s linear;
}

.lyric-line .syl.sung {
    background-position: left;
    transition: background-position 0.15s linear;
}

.lyric-line.blur .syl {
    background: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.7);
    -webkit-text-stroke: 1.5px #000000;
}

.countdown {
    font-family: 'Orbitron', monospace;
    font-size: 3em;
    font-weight: 900;
    color: #ffffff;
    -webkit-text-stroke: 2px #000000;
    paint-order: stroke fill;
    text-align: center;
    animation: countPop 0.6s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

@keyframes countPop {
    0% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.next-song-banner {
    position: absolute;
    top: 10px;
    right: 0;
    font-size: 0.75em;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0.7));
    padding: 6px 12px 6px 24px;
    border-radius: 4px 0 0 4px;
    -webkit-text-stroke: 0.5px #000000;
    paint-order: stroke fill;
    text-align: right;
    z-index: 5;
    transform: translateX(100%);
    opacity: 0;
    transition: none;
}

.next-song-banner.show {
    animation: bannerWipeIn 0.5s ease forwards;
}

.next-song-banner.hide {
    animation: bannerWipeOut 0.5s ease forwards;
}

@keyframes bannerWipeIn {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes bannerWipeOut {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.intro-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.4em;
    font-weight: 900;
    color: #ffffff;
    -webkit-text-stroke: 2px #000000;
    paint-order: stroke fill;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-cyan));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: introShimmer 2s ease infinite;
    display: inline-block;
}

.intro-sub {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--text-dim);
    animation: introPulse 1.5s ease infinite;
}

@keyframes introShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes introPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.btn-ctrl.btn-sm {
    width: 32px;
    height: 32px;
    font-size: 0.7em;
}

.music-vibe-indicator {
    text-align: center;
    z-index: 1;
}

.music-vibe-indicator i {
    font-size: 3em;
    color: var(--neon-green);
    margin-bottom: 12px;
}

.music-vibe-indicator p {
    font-size: 1.2em;
    color: var(--text-secondary);
    font-weight: 600;
}

.equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin-top: 16px;
}

.equalizer span {
    width: 6px;
    background: var(--neon-green);
    border-radius: 3px;
    animation: eq 1.2s ease-in-out infinite;
}

.equalizer span:nth-child(1) { height: 60%; animation-delay: 0s; }
.equalizer span:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.equalizer span:nth-child(3) { height: 100%; animation-delay: 0.4s; }
.equalizer span:nth-child(4) { height: 70%; animation-delay: 0.6s; }
.equalizer span:nth-child(5) { height: 50%; animation-delay: 0.8s; }

@keyframes eq {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.player-controls {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 8px 16px 12px;
}

.now-playing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.song-title-scroll {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.song-title-scroll span {
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    display: block;
}

.time-display {
    display: none;
}

.volume-row,
.fs-vol-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    justify-content: center;
}

.vol-icon {
    color: var(--text-secondary);
    font-size: 0.85em;
    width: 18px;
    text-align: center;
}

.vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

.vol-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

.vol-val {
    font-size: 0.7em;
    color: var(--text-dim);
    width: 32px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.btn-vocal {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-dim);
    font-size: 0.7em;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-vocal.active {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(6, 214, 160, 0.1);
}

.btn-vocal:hover {
    border-color: var(--neon-cyan);
}

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

.btn-ctrl {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-ctrl:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-ctrl.btn-play {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
    border: none;
    color: white;
    font-size: 1.1em;
}

.btn-ctrl.btn-play:hover {
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.5);
    transform: scale(1.05);
}

.queue-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    max-height: 160px;
    overflow-y: auto;
    padding: 8px 16px;
}

.queue-section h3 {
    font-size: 0.8em;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.queue-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    gap: 10px;
    font-size: 0.85em;
}

.queue-item-num {
    color: var(--text-dim);
    font-size: 0.8em;
    width: 20px;
    text-align: center;
}

.queue-item-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-type {
    font-size: 0.7em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.queue-item-remove {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    font-size: 0.8em;
    transition: color 0.2s;
}

.queue-item-remove:hover {
    color: var(--neon-magenta);
}

.queue-empty {
    color: var(--text-dim);
    font-size: 0.8em;
    text-align: center;
    padding: 12px;
}

.fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: linear-gradient(-45deg, #ff006e, #8338ec, #3a86ff, #06d6a0, #ffbe0b, #ff006e);
    background-size: 600% 600%;
    animation: gradientShift 15s ease infinite;
}

.fullscreen-overlay.active {
    display: flex;
    flex-direction: column;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

.fs-lyrics-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    padding-bottom: 10%;
    font-size: 1em;
    transition: font-size 0.2s ease;
}

.fs-lyric-line {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    max-width: 90%;
    min-height: 1.2em;
    padding: 4px 0;
}

.fs-lyric-line.line1,
.fs-lyric-line.line2 {
    font-size: 2.2em;
    margin-bottom: 6px;
}

.fs-lyric-line.line3,
.fs-lyric-line.line4 {
    font-size: 1.4em;
}

.fs-lyric-line.blur {
    filter: blur(4px);
    opacity: 0.4;
}

.fs-lyric-line .syl {
    display: inline;
    paint-order: stroke fill;
    -webkit-text-stroke: 2.5px #000000;
    background: linear-gradient(90deg, #4da6ff 50%, #ffffff 50%) right / 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fs-lyric-line .syl.singing {
    transition: background-position 0.08s linear;
}

.fs-lyric-line .syl.sung {
    background-position: left;
    transition: background-position 0.15s linear;
}

.fs-lyric-line.blur .syl {
    background: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.7);
    -webkit-text-stroke: 2px #000000;
}

.fs-lyric-line .intro-title {
    font-size: 1.2em;
    -webkit-text-stroke: 2px #000000;
    paint-order: stroke fill;
}

.fs-lyric-line .intro-sub {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
    -webkit-text-stroke: 1px #000000;
    paint-order: stroke fill;
}

.fs-countdown {
    font-family: 'Orbitron', monospace;
    font-size: 5em;
    font-weight: 900;
    color: #ffffff;
    -webkit-text-stroke: 3px #000000;
    paint-order: stroke fill;
    text-align: center;
    animation: fsCountPop 0.6s ease;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

@keyframes fsCountPop {
    0% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.fs-next-song-banner {
    position: absolute;
    top: 20px;
    right: 0;
    font-size: 0.9em;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.6));
    padding: 8px 16px 8px 30px;
    border-radius: 4px 0 0 4px;
    -webkit-text-stroke: 1px #000000;
    paint-order: stroke fill;
    text-align: right;
    z-index: 5;
    transform: translateX(100%);
    opacity: 0;
    transition: none;
}

.fs-next-song-banner.show {
    animation: bannerWipeIn 0.5s ease forwards;
}

.fs-next-song-banner.hide {
    animation: bannerWipeOut 0.5s ease forwards;
}

.fs-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s;
}

.fullscreen-overlay:hover .fs-controls,
.fullscreen-overlay.touch .fs-controls {
    opacity: 1;
}

.fs-title {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.fs-buttons {
    display: flex;
    gap: 8px;
}

.fs-buttons .btn-ctrl {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.fs-music-vibe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.fs-music-vibe i {
    font-size: 4em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.fs-music-vibe p {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.fs-music-vibe .equalizer span {
    width: 8px;
    background: rgba(255, 255, 255, 0.8);
}

.admin-page {
    overflow: auto;
    height: 100vh;
}

.admin-tabs {
    display: flex;
    padding: 0 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    gap: 4px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
}

.tab-panel {
    display: none;
    padding: 20px 16px;
}

.tab-panel.active {
    display: block;
}

.admin-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.upload-btn {
    cursor: pointer;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table tr:hover td {
    background: rgba(131, 56, 236, 0.05);
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-midi { background: rgba(0, 240, 255, 0.15); color: var(--neon-cyan); }
.badge-kar { background: rgba(131, 56, 236, 0.15); color: var(--neon-purple); }
.badge-mp3 { background: rgba(6, 214, 160, 0.15); color: var(--neon-green); }
.badge-admin { background: rgba(255, 190, 11, 0.15); color: var(--neon-yellow); }
.badge-user { background: rgba(0, 240, 255, 0.15); color: var(--neon-cyan); }
.badge-approved { background: rgba(6, 214, 160, 0.15); color: var(--neon-green); }
.badge-pending { background: rgba(255, 190, 11, 0.15); color: var(--neon-yellow); }
.badge-rejected { background: rgba(255, 0, 110, 0.15); color: var(--neon-magenta); }

.plan-select {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75em;
    cursor: pointer;
    outline: none;
}

.plan-select:focus {
    border-color: var(--neon-cyan);
}

.badge-trial {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
}

.btn-success-sm {
    padding: 6px 12px;
    background: var(--neon-green);
    color: #0a0a1a;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger-sm {
    padding: 6px 12px;
    background: var(--neon-magenta);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.empty-msg {
    text-align: center;
    color: var(--text-dim);
    padding: 24px !important;
}

.section-title {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title:not(:first-child) {
    margin-top: 24px;
}

.report-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.report-card i {
    font-size: 1.5em;
    margin-bottom: 8px;
    color: var(--neon-purple);
}

.rc-val {
    font-family: 'Orbitron', monospace;
    font-size: 2em;
    font-weight: 700;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rc-label {
    font-size: 0.8em;
    color: var(--text-dim);
    margin-top: 4px;
    text-transform: uppercase;
}

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

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--bg-card);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.85em;
    z-index: 99999;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.admin-content {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 50px;
        left: 0;
        bottom: 0;
        z-index: 90;
        width: 85%;
        max-width: 350px;
        transform: translateX(-100%);
        margin-left: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

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

    .sidebar.hidden {
        transform: translateX(-100%);
        margin-left: 0;
    }

    .user-badge {
        display: none;
    }

    .app-title {
        font-size: 0.8em;
    }

    .lyric-line.current {
        font-size: 1.2em;
    }

    .lyric-line.next {
        font-size: 0.95em;
    }

    .fs-lyric-line.current {
        font-size: 1.6em;
    }

    .fs-lyric-line.next {
        font-size: 1.1em;
    }

    .queue-section {
        max-height: 120px;
    }

    .btn-ctrl {
        width: 38px;
        height: 38px;
        font-size: 0.85em;
    }

    .btn-ctrl.btn-play {
        width: 46px;
        height: 46px;
        font-size: 1em;
    }

    .report-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-tabs {
        overflow-x: auto;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 0.8em;
        white-space: nowrap;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .app-header {
        min-height: 40px;
        padding: 4px 12px;
    }

    .lyrics-wrapper {
        bottom: 10%;
    }

    .player-controls {
        padding: 4px 12px 8px;
    }

    .control-buttons {
        gap: 8px;
    }

    .btn-ctrl {
        width: 32px;
        height: 32px;
        font-size: 0.75em;
    }

    .btn-ctrl.btn-play {
        width: 38px;
        height: 38px;
    }

    .queue-section {
        display: none;
    }

    .now-playing {
        margin-bottom: 2px;
    }

    .fs-lyric-line.current {
        font-size: 1.8em;
    }

    .fs-lyric-line.next {
        font-size: 1.2em;
    }

    .fs-lyrics-container {
        padding-bottom: 10%;
    }
}

@media (min-width: 769px) {
    .user-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
}

.song-item-actions button.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .song-item-actions {
        opacity: 1;
    }

    .song-item-actions button.mobile-only {
        display: flex;
    }
}
