* {
    box-sizing: border-box;
}

:root {
    --bg-main: #07111f;
    --bg-secondary: rgba(11, 20, 36, 0.72);
    --border-soft: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #1ed760;
    --accent-2: #14b8a6;
    --danger: #ef4444;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(30, 215, 96, 0.12), transparent 24%),
        linear-gradient(180deg, #020617 0%, #07111f 45%, #020617 100%);
    min-height: 100vh;
}

.auth-shell,
.overlay-shell {
    background:
        radial-gradient(circle at 10% 10%, rgba(30, 215, 96, 0.18), transparent 18%),
        radial-gradient(circle at 90% 10%, rgba(20, 184, 166, 0.18), transparent 20%),
        #030712;
}

.admin-app {
    display: flex;
    min-height: 100vh;
}

.admin-content {
    flex: 1;
    padding-left: 0;
}

.sidebar-glass {
    width: 300px;
    padding: 24px;
    border-right: 1px solid var(--border-soft);
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(22px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.topbar-glass,
.glass-card,
.overlay-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(16px);
}

.topbar-glass {
    margin: 24px 24px 0;
    border-radius: 24px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.glass-card {
    border-radius: 28px;
    padding: 24px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.brand-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, rgba(30, 215, 96, 0.24), rgba(20, 184, 166, 0.18));
    border: 1px solid rgba(30, 215, 96, 0.25);
}

.brand-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.brand-subtitle,
.text-secondary {
    color: var(--text-muted) !important;
}

.sidebar-nav .nav-link {
    border-radius: 16px;
    color: rgba(241, 245, 249, 0.9);
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
    background: rgba(30, 215, 96, 0.14);
    color: #fff;
}

.avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.placeholder-avatar {
    display: grid;
    place-items: center;
    background: rgba(30, 215, 96, 0.16);
    font-weight: 700;
}

.btn-spotify {
    background: var(--accent);
    color: #04210f;
    border: none;
    font-weight: 700;
}

.btn-spotify:hover,
.btn-spotify:focus {
    background: #3bf47e;
    color: #04210f;
}

.eyebrow-label,
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bbf7d0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-title,
.hero-title,
.section-title,
.stat-value {
    font-weight: 800;
}

.page-title {
    font-size: 1.6rem;
}

.hero-title {
    font-size: clamp(1.6rem, 2vw, 2.6rem);
}

.hero-meta {
    color: rgba(226, 232, 240, 0.88);
    font-size: 1rem;
    line-height: 1.7;
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-pill,
.clock-pill,
.data-chip {
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.04);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    background: var(--accent);
}

.hero-card {
    min-height: 340px;
}

.album-art-wrapper {
    aspect-ratio: 1 / 1;
}

.album-art,
.player-cover,
.playlist-cover {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
}

.player-cover {
    max-width: 320px;
}

.spinning {
    transition: transform 0.35s ease;
}

.spinning.playing {
    animation: spin 14s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.stat-card {
    min-height: 150px;
}

.stat-value {
    font-size: 2rem;
}

.stat-label {
    color: var(--text-muted);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.schedule-highlight,
.history-item,
.player-status-list,
.status-row {
    display: flex;
}

.schedule-highlight {
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.schedule-time {
    min-width: 88px;
    font-size: 1.8rem;
    font-weight: 800;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.history-item {
    align-items: flex-start;
    gap: 12px;
}

.history-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 8px;
    background: var(--accent);
}

.playlist-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.playlist-cover {
    aspect-ratio: 1 / 1;
}

.playlist-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-table {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

.player-stage {
    min-height: 440px;
}

.player-actions .btn {
    min-width: 110px;
}

.player-status-list {
    flex-direction: column;
    gap: 12px;
}

.status-row {
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    max-width: 620px;
    width: 100%;
}

.auth-feature-list {
    display: grid;
    gap: 10px;
}

.auth-feature-item {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.overlay-shell {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.overlay-card {
    margin: 0;
    padding: 18px 22px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 110px;
}

.overlay-cover {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    object-fit: cover;
}

.overlay-track {
    font-size: 1.15rem;
    font-weight: 700;
}

.overlay-meta {
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.95rem;
}

.overlay-clock {
    margin-left: auto;
    font-weight: 700;
    font-size: 1.2rem;
}

.toast-cloud {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(11, 20, 36, 0.95);
    color: #fff;
}

.public-shell {
    min-height: 100vh;
}

.public-page {
    min-height: 100vh;
    padding-bottom: 24px;
}

.public-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.public-hero,
.public-side-card,
.feature-card {
    overflow: hidden;
}

.public-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
}

.public-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    margin: 0;
}

.public-schedule-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.public-schedule-time {
    min-width: 92px;
    font-size: 2rem;
    font-weight: 800;
}

.public-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mini-stat {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.feature-card {
    height: 100%;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    font-size: 1.25rem;
    color: #d1fae5;
    background: rgba(30, 215, 96, 0.16);
    border: 1px solid rgba(30, 215, 96, 0.22);
}

.public-select {
    max-width: 220px;
}

@media (max-width: 1199px) {
    .sidebar-glass {
        position: static;
        height: auto;
        width: 100%;
    }

    .admin-app {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .topbar-glass {
        margin: 16px 16px 0;
        padding: 18px;
    }

    .public-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .glass-card {
        padding: 20px;
    }

    .player-actions .btn {
        min-width: auto;
        flex: 1 1 calc(50% - 8px);
    }

    .public-mini-stats {
        grid-template-columns: 1fr;
    }

    .public-schedule-box {
        flex-direction: column;
        align-items: flex-start;
    }
}
