:root {
    --mk-ink: #111827;
    --mk-saffron: #e8701a;
    --mk-crimson: #b91c1c;
    --mk-indigo: #1d2b53;
    --mk-teal: #0f766e;
    --mk-paper: #f6f7fb;
}

body {
    background: var(--mk-paper);
    color: var(--mk-ink);
    padding-top: 72px;
}

.navbar {
    min-height: 72px;
}

.brand-mark {
    align-items: center;
    background: var(--mk-crimson);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.hero-section {
    background: #101827;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    background: linear-gradient(120deg, rgba(232, 112, 26, 0.32), rgba(15, 118, 110, 0.22), rgba(29, 43, 83, 0.28));
    content: "";
    inset: 0;
    position: absolute;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    color: #ffd6a6;
    letter-spacing: 0;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    overflow: hidden;
}

.home-hero {
    background:
        linear-gradient(140deg, rgba(16, 24, 39, .96), rgba(29, 43, 83, .9) 48%, rgba(127, 29, 29, .88)),
        #111827;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.home-hero::before {
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    inset: 0;
    opacity: .28;
    position: absolute;
}

.min-vh-hero {
    min-height: calc(100vh - 160px);
    padding-block: 48px;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: .92;
}

.metric-tile {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    display: grid;
    min-height: 96px;
    padding: 18px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.metric-label {
    color: rgba(255,255,255,.66);
    font-size: .86rem;
}

.cinema-stage {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    overflow: hidden;
}

.cinema-frame {
    background: #05070f;
    padding: 14px;
}

.cinema-caption {
    background: rgba(255,255,255,.07);
}

.spotlight-strip {
    background: #fff;
    border-bottom: 1px solid rgba(17,24,39,.08);
    border-top: 1px solid rgba(17,24,39,.08);
    padding-block: 18px;
}

.spotlight-link {
    align-items: center;
    color: var(--mk-ink);
    display: flex;
    gap: 12px;
    min-height: 64px;
    text-decoration: none;
}

.spotlight-index {
    color: var(--mk-crimson);
    font-weight: 800;
}

.spotlight-title {
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.25;
}

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

.stat-tile {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    min-height: 84px;
}

.section-eyebrow {
    color: var(--mk-crimson);
    font-size: .78rem;
}

.content-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.content-card:hover {
    box-shadow: 0 1rem 2rem rgba(17, 24, 39, .12) !important;
    transform: translateY(-2px);
}

.content-thumb {
    aspect-ratio: 16 / 9;
    background: #dbe1ea;
    object-fit: cover;
    width: 100%;
}

.thumb-link {
    background: #dbe1ea;
}

.playlist-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--mk-indigo), var(--mk-teal));
    color: #fff;
}

.stretched-safe-link::after {
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.content-card .btn,
.content-card .badge,
.content-card .link-danger,
.content-card .thumb-link {
    position: relative;
    z-index: 2;
}

.language-band {
    background: #fff;
}

.language-panel {
    border-radius: 8px;
    min-height: 100%;
}

.watch-paths {
    background: #fff;
}

.path-panel {
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 8px;
    min-height: 340px;
    overflow: hidden;
    position: relative;
}

.path-panel::before {
    background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.96));
    content: "";
    inset: 0;
    position: absolute;
}

.path-hindi {
    background:
        linear-gradient(135deg, rgba(185,28,28,.24), rgba(232,112,26,.18)),
        url("https://i.ytimg.com/vi/4xky2iFYa4E/hqdefault.jpg") center/cover;
}

.path-english {
    background:
        linear-gradient(135deg, rgba(29,43,83,.24), rgba(15,118,110,.18)),
        url("https://i.ytimg.com/vi/PKTXgUVQUcc/hqdefault.jpg") center/cover;
}

.path-content {
    max-width: 520px;
    padding: 38px;
    position: relative;
    z-index: 1;
}

.shorts-rail {
    display: grid;
    gap: 18px;
    grid-auto-columns: minmax(260px, 340px);
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
}

.shorts-rail-item {
    scroll-snap-align: start;
}

.shorts-rail-item > div,
.shorts-rail-item .content-card {
    height: 100%;
}

.playlist-cta {
    background:
        linear-gradient(135deg, rgba(29,43,83,.08), rgba(232,112,26,.1)),
        #fff;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 8px;
}

.watch-shell {
    background: #0b1020;
}

.ratio-shorts {
    --bs-aspect-ratio: 177.7778%;
    margin-inline: auto;
    max-width: 430px;
}

.description-box {
    white-space: pre-wrap;
}

.empty-state {
    border-radius: 8px !important;
}

.site-footer {
    background: #fff;
}

.load-status {
    min-height: 54px;
}

.auth-shell {
    background:
        linear-gradient(135deg, rgba(185, 28, 28, .08), rgba(15, 118, 110, .08)),
        var(--mk-paper);
    min-height: calc(100vh - 72px);
}

.auth-card,
.stat-card,
.dashboard-form {
    border-radius: 8px !important;
}

.dashboard-hero {
    background: linear-gradient(120deg, #111827, #1d2b53 58%, #7f1d1d);
    color: #fff;
}

.dashboard-command {
    background:
        linear-gradient(120deg, rgba(17,24,39,.98), rgba(29,43,83,.92) 52%, rgba(15,118,110,.8)),
        #111827;
    color: #fff;
}

.dashboard-metric-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.command-metric {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    padding: 18px;
}

.command-metric span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.command-metric small {
    color: rgba(255,255,255,.66);
}

.dashboard-panel {
    background: #fff;
    border: 1px solid rgba(17,24,39,.09);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(17,24,39,.06);
    padding: 24px;
}

.featured-preview .ratio {
    background: #05070f;
    border-radius: 8px;
    overflow: hidden;
}

.health-row {
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(17,24,39,.06);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 12px;
}

.health-dot {
    border-radius: 999px;
    flex: 0 0 12px;
    height: 12px;
    width: 12px;
}

.health-dot.is-ok {
    background: var(--mk-teal);
}

.health-dot.is-warn {
    background: var(--mk-saffron);
}

.mini-breakdown {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.mini-breakdown span {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
}

.mini-breakdown small {
    color: #64748b;
}

.dashboard-filter {
    max-width: 100%;
}

.dashboard-table thead th {
    color: #64748b;
    font-size: .78rem;
    text-transform: uppercase;
}

.empty-dashboard-state {
    background: #f8fafc;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 8px;
    padding: 32px;
}

.live-preview {
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 10px;
}

.live-preview img {
    aspect-ratio: 16 / 9;
    background: #dbe1ea;
    border-radius: 6px;
    object-fit: cover;
    width: 96px;
}

.admin-table-thumb {
    aspect-ratio: 16 / 9;
    background: #dbe1ea;
    border-radius: 6px;
    flex: 0 0 92px;
    object-fit: cover;
    width: 92px;
}

.dashboard-form {
    top: 96px;
}

.table td,
.table th {
    vertical-align: middle;
}

@media (max-width: 575.98px) {
    body {
        padding-top: 64px;
    }

    .navbar {
        min-height: 64px;
    }

    .display-4 {
        font-size: 2.25rem;
    }
}

@media (max-width: 991.98px) {
    .dashboard-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .path-content {
        padding: 28px;
    }
}

@media (max-width: 575.98px) {
    .dashboard-metric-grid {
        grid-template-columns: 1fr;
    }

    .min-vh-hero {
        min-height: auto;
        padding-block: 36px;
    }
}
