:root {
    --bg: #090b12;
    --panel: #111827;
    --panel-soft: #172033;
    --text: #f8fafc;
    --muted: #a5b4c9;
    --line: rgba(255, 255, 255, 0.12);
    --brand: #2dd4bf;
    --brand-2: #f59e0b;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    background: rgba(9, 11, 18, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.navbar-brand span {
    color: var(--brand);
    margin-left: 2px;
}

.hero {
    min-height: 660px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(9, 11, 18, 0.98), rgba(9, 11, 18, 0.62)),
        url("https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&w=1800&q=80") center/cover;
    border-bottom: 1px solid var(--line);
}

.hero h1 {
    max-width: 820px;
    font-size: clamp(2.25rem, 5vw, 4.9rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: 0;
}

.hero .lead {
    max-width: 700px;
    color: #d5deea;
    margin-top: 1.25rem;
}

.eyebrow,
.section-heading p {
    color: var(--brand);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.ad-shell {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.ad-top {
    padding-top: 1.25rem;
}

.ad-placeholder {
    display: grid;
    place-items: center;
    min-height: 92px;
    padding: 1rem;
    color: #dbeafe;
    background:
        repeating-linear-gradient(135deg, rgba(45, 212, 191, 0.08) 0 10px, rgba(245, 158, 11, 0.08) 10px 20px),
        rgba(17, 24, 39, 0.92);
    border: 1px dashed rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    text-align: center;
}

.ad-placeholder-tall {
    min-height: 420px;
}

.ad-sidebar {
    position: sticky;
    top: 92px;
}

.btn {
    border-radius: 8px;
    font-weight: 700;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #04201d;
}

.btn-primary:hover {
    background: #5eead4;
    border-color: #5eead4;
    color: #031a17;
}

.spotlight,
.show-card,
.admin-card {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.spotlight img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.spotlight div {
    padding: 1.25rem;
}

.spotlight h2 {
    margin-top: 0.8rem;
    font-size: 1.7rem;
}

.spotlight p,
.show-card p,
.seo-scrollbox p,
.episode-panel p,
.template-help {
    color: var(--muted);
}

.spotlight a {
    color: var(--brand);
    font-weight: 800;
}

.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin: 0;
}

.show-card {
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.show-card:hover {
    border-color: rgba(45, 212, 191, 0.6);
    transform: translateY(-3px);
}

.show-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.show-card-body {
    padding: 1.1rem;
}

.show-card-body span,
.show-card-body small {
    color: var(--muted);
}

.show-card-body strong {
    color: var(--brand-2);
}

.show-card h3 {
    font-size: 1.25rem;
    margin: 0.75rem 0 0.55rem;
}

.latest-band {
    background: #0f172a;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.latest-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.latest-item,
.episode-row {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.latest-item:hover,
.episode-row:hover {
    border-color: var(--brand);
}

.latest-item span,
.latest-item em,
.episode-row span {
    color: var(--muted);
    font-style: normal;
}

.seo-scrollbox {
    max-height: 330px;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid var(--line);
    border-radius: 8px;
}

.seo-scrollbox h3 {
    margin-bottom: 1rem;
}

footer {
    padding: 2rem 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.detail-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(45, 212, 191, 0.08), transparent 320px),
        var(--bg);
}

.detail-poster {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.episode-panel {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.episode-panel h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.episode-row + .episode-row {
    margin-top: 0.75rem;
}

.player-box {
    display: grid;
    place-items: center;
    min-height: 360px;
    margin-top: 1.5rem;
    background:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.65)),
        url("https://images.unsplash.com/photo-1517604931442-7e0c8ed2963c?auto=format&fit=crop&w=1400&q=80") center/cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.player-box div {
    display: grid;
    gap: 0.75rem;
    max-width: 680px;
    padding: 1.25rem;
}

.player-box span {
    color: var(--brand);
    font-weight: 800;
}

.player-box a {
    overflow-wrap: anywhere;
    color: #fff;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.blog-card {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-card-body {
    padding: 1rem;
}

.blog-card h2 {
    font-size: 1.2rem;
    margin: 0.45rem 0;
}

.blog-card p,
.blog-card small {
    color: var(--muted);
}

.blog-category {
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-side {
    position: sticky;
    top: 92px;
}

.blog-article {
    max-width: 960px;
}

.blog-article h1 {
    max-width: 820px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.06;
}

.blog-hero-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    margin: 1.5rem 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.blog-content {
    color: #dbeafe;
    font-size: 1.08rem;
    line-height: 1.8;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 2rem;
}

.blog-content p,
.blog-content li {
    color: #cbd5e1;
}

.blog-content a {
    color: var(--brand);
    font-weight: 700;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.profile-card {
    padding: 1rem;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.profile-card img {
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: 50%;
    background: #e2e8f0;
    border: 4px solid rgba(45, 212, 191, 0.28);
}

.profile-card h2 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem;
}

.profile-card p {
    min-height: 54px;
    color: var(--muted);
}

.profile-link {
    color: var(--brand);
    font-weight: 800;
}

.profile-detail {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.profile-detail img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    background: #e2e8f0;
    border: 6px solid rgba(45, 212, 191, 0.28);
}

.admin-body {
    background: #0b1020;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.login-card {
    width: min(100%, 420px);
}

.admin-card {
    padding: 1.25rem;
}

.admin-card h1,
.admin-card h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.admin-layout {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.admin-nav {
    position: sticky;
    top: 0;
    z-index: 20;
}

.form-control,
.form-select {
    color: var(--text);
    background-color: #0b1224;
    border-color: var(--line);
    border-radius: 8px;
}

.code-field {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
}

.tox-tinymce {
    border-radius: 8px !important;
    border-color: var(--line) !important;
}

.form-control:focus,
.form-select:focus {
    color: var(--text);
    background-color: #0b1224;
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.18);
}

.form-label {
    color: #dbeafe;
    font-weight: 700;
}

.form-check.sql-check {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-left: 1.8rem;
    color: #dbeafe;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--line);
}

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        padding: 5rem 0;
    }

    .latest-list {
        grid-template-columns: 1fr;
    }

    .ad-sidebar {
        position: static;
    }

    .blog-layout,
    .blog-grid,
    .profile-grid,
    .profile-detail {
        grid-template-columns: 1fr;
    }

    .profile-detail {
        text-align: center;
    }

    .profile-detail img {
        margin: 0 auto;
    }

    .blog-side {
        position: static;
    }
}
