:root {
    --bg: #07080f;
    --bg-soft: rgba(15, 18, 33, 0.72);
    --text: #f4f7fb;
    --muted: #95a1bb;
    --line: rgba(255, 255, 255, 0.08);
    --primary: #7c3aed;
    --secondary: #0ea5e9;
    --success: #22c55e;
    --header-bg: rgba(7, 8, 15, 0.55);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 24%),
        radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--secondary) 24%, transparent), transparent 24%),
        linear-gradient(180deg, #05060c 0%, var(--bg) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}
body.light-mode {
    --bg: #eef2ff;
    --bg-soft: rgba(255,255,255,0.82);
    --text: #111827;
    --muted: #5f6b87;
    --line: rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #eef2ff 0%, #fafcff 100%);
}
a { color: inherit; }
img { max-width: 100%; }
.text-secondary { color: var(--muted) !important; }
.min-w-0 { min-width: 0; }
.section-spacing { padding: 110px 0; }
.alt-section { background: linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.02)); }
.site-header .navbar {
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.logo-site, .admin-logo { width: 44px; height: 44px; object-fit: contain; }
.hero-section { position: relative; padding-top: 80px; }
.hero-blur { position: absolute; border-radius: 999px; filter: blur(60px); opacity: 0.55; pointer-events: none; }
.hero-blur-1 { width: 280px; height: 280px; background: color-mix(in srgb, var(--primary) 60%, transparent); top: 15%; left: 2%; }
.hero-blur-2 { width: 260px; height: 260px; background: color-mix(in srgb, var(--secondary) 48%, transparent); bottom: 18%; right: 5%; }
.badge-live {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
    background: rgba(255, 0, 72, 0.12); color: #fff; border: 1px solid rgba(255, 0, 72, 0.25); font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; font-size: .75rem;
}
.badge-live::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #ff275b; box-shadow: 0 0 0 8px rgba(255,39,91,.16); }
.glass-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
}
.btn-gradient {
    color: #fff; border: 0; background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 18px 30px color-mix(in srgb, var(--primary) 40%, transparent);
}
.btn-gradient:hover { color: #fff; transform: translateY(-1px); }
.btn-glass { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line); }
.stat-card, .metric-card { min-height: 124px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-player-card { position: relative; overflow: hidden; }
.hero-cover {
    width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 24px;
    border: 1px solid rgba(255,255,255,.12);
}
.player-controls .form-range { flex: 1; }
.btn-player { width: 60px; height: 60px; display: grid; place-items: center; }
.equalizer { display: inline-flex; gap: 4px; align-items: end; height: 24px; }
.equalizer span { width: 4px; border-radius: 999px; background: linear-gradient(180deg, var(--secondary), var(--primary)); animation: pulseBars 1s ease-in-out infinite; }
.equalizer span:nth-child(1) { height: 12px; }
.equalizer span:nth-child(2) { height: 20px; animation-delay: .15s; }
.equalizer span:nth-child(3) { height: 16px; animation-delay: .3s; }
@keyframes pulseBars { 50% { transform: scaleY(.5); opacity: .65; } }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0; }
.section-kicker { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 800; color: #c8d1ff; }
.program-card, .host-card, .news-card, .ad-card, .contact-box, .gallery-item, .banner-slide { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.program-card:hover, .host-card:hover, .news-card:hover, .ad-card:hover, .gallery-item:hover, .banner-slide:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.banner-slide { position: relative; overflow: hidden; border-radius: 24px; min-height: 420px; }
.banner-image { width: 100%; height: 420px; object-fit: cover; filter: brightness(.6); }
.carousel-caption {
    left: 6%; right: 6%; bottom: 12%; max-width: 520px; padding: 0;
}
.carousel-caption h3 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.carousel-caption p { color: #e9eefc; max-width: 520px; }
.host-photo {
    width: 110px; height: 110px; object-fit: cover; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.12);
}
.news-thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.gallery-item, .gallery-admin-item { overflow: hidden; text-decoration: none; padding: 10px; }
.gallery-item img, .gallery-admin-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 18px; transition: transform .35s ease; }
.gallery-item:hover img, .gallery-admin-item:hover img { transform: scale(1.04); }
.gallery-item span { display: block; padding-top: 10px; color: var(--text); font-weight: 600; }
.ad-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.contact-box .form-control, .contact-box textarea,
.admin-main .form-control, .admin-main .form-select, .login-wrapper .form-control {
    background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: var(--text);
    border-radius: 16px; padding: .85rem 1rem;
}
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--primary) 24%, transparent); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
.site-footer { padding-bottom: 120px; border-top: 1px solid var(--line); }
.sticky-player { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1050; padding: 16px 18px; }
.player-cover-small { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; }
.modal-content img { max-height: 84vh; object-fit: contain; }
.login-body, .admin-body { min-height: 100vh; }
.login-body { display: grid; place-items: center; background: radial-gradient(circle at top, color-mix(in srgb, var(--primary) 28%, transparent), transparent 24%), #090b11; }
.login-wrapper { width: min(480px, calc(100% - 32px)); }
.admin-shell { display: grid; grid-template-columns: 320px 1fr; min-height: 100vh; gap: 20px; padding: 20px; }
.admin-sidebar { position: sticky; top: 20px; height: calc(100vh - 40px); display: flex; flex-direction: column; justify-content: space-between; }
.admin-sidebar .nav-link { color: var(--text); border-radius: 14px; padding: .85rem 1rem; background: transparent; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: rgba(255,255,255,.06); }
.admin-main { padding: 8px 8px 40px; }
.table-dark { --bs-table-bg: transparent; --bs-table-striped-bg: rgba(255,255,255,.02); --bs-table-border-color: rgba(255,255,255,.08); }
.list-group-item { color: var(--text) !important; }
@media (max-width: 991px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .section-spacing { padding: 85px 0; }
    .banner-image { height: 360px; }
}
@media (max-width: 767px) {
    .glass-card { padding: 22px; }
    .sticky-player { left: 10px; right: 10px; bottom: 10px; }
    .hero-section .display-4 { font-size: 2.4rem; }
    .banner-slide, .banner-image { min-height: 300px; height: 300px; }
    .carousel-caption { left: 8%; right: 8%; bottom: 10%; }
}
