/* ============================================================
   Oroma TV — public site stylesheet
   ============================================================ */

:root {
    --maroon: #800000;
    --maroon-dark: #5c0000;
    --maroon-light: #a83232;
    --navy: #1a1a2e;
    --navy-light: #262640;
    --gold: #c9a84c;
    --gold-light: #e0c375;

    --bg: #f7f5f2;
    --bg-alt: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b6b7a;
    --border: rgba(26, 26, 46, 0.08);

    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(255, 255, 255, 0.6);
    --shadow-lg: 0 30px 80px rgba(26, 26, 46, 0.1), 0 10px 30px rgba(26, 26, 46, 0.04);
    --shadow-sm: 0 4px 16px rgba(26, 26, 46, 0.06);

    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0f1a;
        --bg-alt: #161625;
        --text: #f0eef2;
        --text-muted: #9a99ab;
        --border: rgba(255, 255, 255, 0.08);

        --card-bg: rgba(26, 26, 46, 0.75);
        --card-border: rgba(255, 255, 255, 0.08);
        --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3);
        --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg) 60%, var(--bg) 100%);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- buttons & badges ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: #fff;
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(128, 0, 0, 0.32);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--card-bg);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 40px;
    letter-spacing: 0.3px;
}

.badge-category {
    background: rgba(128, 0, 0, 0.08);
    color: var(--maroon);
}

@media (prefers-color-scheme: dark) {
    .badge-category {
        background: rgba(201, 168, 76, 0.12);
        color: var(--gold-light);
    }
}

.badge-live {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.badge-offline {
    background: rgba(107, 107, 122, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.badge-live .dot {
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---------- flash messages ---------- */

.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-success {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.flash-error {
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
}

/* ---------- site header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand img {
    height: 48px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--maroon);
}

.nav-live-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: #fff !important;
    font-weight: 600 !important;
    padding: 9px 18px;
    border-radius: 40px;
    box-shadow: 0 6px 16px rgba(128, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-live-btn .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    display: inline-block;
}

.nav-live-btn.is-live .dot {
    background: #6fe27f;
    animation: pulse-dot 2s infinite;
}

.nav-live-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.36);
    color: #fff !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 780px) {
    .site-nav {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        height: calc(100vh - 64px);
        background: var(--bg-alt);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 20px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        border-top: 1px solid var(--border);
        overflow-y: auto;
    }

    .site-nav.open {
        transform: translateX(0);
    }

    .site-nav a {
        font-size: 17px;
    }

    .nav-live-btn {
        margin-top: 8px;
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
        font-size: 15px;
    }

    .nav-toggle {
        display: block;
    }
}

/* ---------- hero banner ---------- */

.hero-banner {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 96px 0 88px;
    isolation: isolate;
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/hero-banner.svg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-banner-content {
    max-width: 620px;
}

.hero-banner-content .badge {
    margin-bottom: 22px;
}

.hero-banner h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.hero-banner p.lead {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 15px 28px;
    font-size: 15px;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

@media (max-width: 780px) {
    .hero-banner {
        padding: 64px 0 52px;
        text-align: left;
    }

    .hero-banner h1 {
        font-size: 32px;
    }

    .hero-banner p.lead {
        font-size: 15px;
        margin-bottom: 26px;
    }

    .hero-cta-row {
        flex-direction: column;
    }

    .hero-cta-row .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 450px) {
    .hero-banner {
        padding: 52px 0 44px;
    }

    .hero-banner h1 {
        font-size: 27px;
    }
}

/* ---------- thumbnail fallback ---------- */

.thumb-fallback {
    width: 100%;
    height: 100%;
    background-image: url('../img/default-thumb.svg');
    background-size: cover;
    background-position: center;
}

/* ---------- watch / live section ---------- */

.watch-section {
    position: relative;
    padding: 64px 0 80px;
    overflow: hidden;
    isolation: isolate;
    margin-top: 24px;
}

.watch-banner-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/watch-banner.svg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.watch-section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 8px;
    color: #fff;
}

.watch-section-head h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.watch-section-head h2 span {
    color: var(--gold-light);
}

.watch-section-head p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    margin-top: 8px;
}

@media (max-width: 780px) {
    .watch-section {
        padding: 48px 0 56px;
    }

    .watch-section-head h2 {
        font-size: 24px;
    }
}

/* ---------- player card ---------- */

.player-card {
    max-width: 920px;
    width: 100%;
    margin: 32px auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px 32px 40px;
    border: 1px solid var(--card-border);
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.tabs {
    display: flex;
    gap: 6px;
    background: rgba(128, 0, 0, 0.05);
    border-radius: 60px;
    padding: 5px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 8px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.tab-btn.active {
    background: var(--maroon);
    color: #fff;
    box-shadow: 0 4px 16px rgba(128, 0, 0, 0.2);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow-sm);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.empty-stream {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    padding: 24px;
}

.empty-stream i {
    font-size: 32px;
    color: var(--gold);
}

.channel-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    justify-content: center;
}

.channel-btn {
    background: rgba(128, 0, 0, 0.05);
    border: 1px solid transparent;
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.channel-btn i {
    color: var(--maroon);
}

.channel-btn.active-channel {
    background: var(--navy);
    color: #fff;
}

.channel-btn.active-channel i {
    color: var(--gold-light);
}

.radio-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-alt);
    height: 480px;
    border: 1px solid var(--border);
}

.radio-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .player-card { padding: 22px 18px 28px; border-radius: 24px; }
    .radio-wrapper { height: 340px; }
}

/* ---------- section headings ---------- */

.section {
    padding: 48px 0;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-head h2 span {
    color: var(--maroon);
}

.section-head a.view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--maroon);
}

/* ---------- article cards / news grid ---------- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .news-grid { grid-template-columns: 1fr; }
}

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card .thumb {
    aspect-ratio: 16/10;
    background: var(--navy) linear-gradient(135deg, var(--navy), var(--navy-light));
    overflow: hidden;
}

.article-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card .body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.article-card h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card p.excerpt {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.article-meta .sep {
    opacity: 0.5;
}

/* featured hero article */

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
}

.featured-article .thumb {
    background: var(--navy) linear-gradient(135deg, var(--navy), var(--navy-light));
    min-height: 260px;
}

.featured-article .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article .body {
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.featured-article h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-article p {
    color: var(--text-muted);
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 780px) {
    .featured-article { grid-template-columns: 1fr; }
    .featured-article .body { padding: 24px; }
    .featured-article h2 { font-size: 22px; }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 12px;
}

/* ---------- trending strip (homepage) ---------- */

.trending-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.trending-strip::-webkit-scrollbar {
    height: 6px;
}

.trending-strip::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.trending-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trending-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.trending-card .thumb {
    aspect-ratio: 16/10;
    background: var(--navy);
}

.trending-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-card .body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trending-card h3 {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(11, 11, 20, 0.65);
    backdrop-filter: blur(4px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    z-index: 2;
}

@media (max-width: 620px) {
    .trending-card {
        flex-basis: 200px;
    }
}

/* ---------- filter / search bar ---------- */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    align-items: center;
}

.filter-bar .search-box {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 10px 18px;
}

.filter-bar .search-box input {
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    width: 100%;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
}

.filter-chip.active {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
}

/* ---------- pagination ---------- */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text);
}

.pagination a:hover {
    background: var(--card-bg);
}

.pagination .current {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
}

/* ---------- article detail page ---------- */

.article-cover {
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
    background: var(--navy);
}

.article-cover img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.article-cover .thumb-fallback {
    aspect-ratio: 16/9;
}

.cover-caption {
    background: var(--bg-alt);
    padding: 10px 14px;
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.category-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--maroon);
    margin-bottom: 10px;
}

.article-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 14px;
}

.article-meta-line {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.article-meta-line .sep {
    opacity: 0.5;
    margin: 0 2px;
}

.article-views-line {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-views-line a {
    color: var(--text-muted);
}

.article-views-line a:hover {
    color: var(--maroon);
}

@media (max-width: 780px) {
    .article-title {
        font-size: 23px;
    }

    .article-cover {
        margin-bottom: 20px;
    }

    .article-cover img,
    .article-cover .thumb-fallback {
        max-height: 220px;
        aspect-ratio: 16/10;
    }

    .category-label {
        margin-bottom: 8px;
    }

    .article-meta-line {
        font-size: 13px;
    }

    .article-views-line {
        margin-bottom: 22px;
        padding-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .article-title {
        font-size: 21px;
    }
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
}

.article-body h2 { font-size: 24px; margin: 32px 0 12px; font-weight: 700; }
.article-body h3 { font-size: 20px; margin: 28px 0 10px; font-weight: 700; }
.article-body p { margin-bottom: 18px; }
.article-body img { margin: 22px 0; width: 100%; }

@media (max-width: 780px) {
    .article-body {
        font-size: 16px;
        line-height: 1.75;
    }

    .article-body h2 { font-size: 20px; margin: 26px 0 10px; }
    .article-body h3 { font-size: 18px; margin: 22px 0 8px; }
    .article-body p { margin-bottom: 16px; }
    .article-body img { margin: 20px 0; }
}

.article-body p:has(> img:only-child) {
    margin-bottom: 4px;
}
.article-body p:has(> img:only-child) + p:has(> em:only-child) {
    text-align: center;
    font-size: 13.5px;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 0;
    margin-bottom: 24px;
}
.article-body a { color: var(--maroon); text-decoration: underline; }
.article-body blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 18px;
    margin: 20px 0;
    color: var(--text-muted);
    font-style: italic;
}
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body pre {
    background: var(--navy);
    color: #f0eef2;
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 20px 0;
}

.article-tags {
    max-width: 720px;
    margin: 32px auto 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-chip {
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
}

@media (prefers-color-scheme: light) {
    .tag-chip { color: #8a6d1f; }
}

.share-row {
    max-width: 720px;
    margin: 28px auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.share-row span.label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
}

.related-articles {
    max-width: 1000px;
    margin: 56px auto 0;
}

/* ---------- article layout: main + sidebar ---------- */

.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: start;
    max-width: 1160px;
    margin: 0 auto;
}

@media (max-width: 780px) {
    .article-layout {
        gap: 32px;
    }
}

.article-main {
    min-width: 0;
}

.article-main .article-body,
.article-main .article-tags,
.article-main .share-row,
.article-main .comments-section {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 1000px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .article-sidebar {
        position: sticky;
        top: 84px;
    }
}

.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--maroon);
}

.side-article-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.side-article {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.side-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--navy);
}

.side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-cat {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--maroon);
    margin-bottom: 3px;
}

.side-article-body h4 {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.side-article-body .article-meta {
    font-size: 11px;
}

.sidebar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- sidebar feature cards (image + overlaid title) ---------- */

.side-feature-card {
    display: block;
    margin-bottom: 16px;
}

.side-feature-card:last-child {
    margin-bottom: 0;
}

.side-feature-card .thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--navy);
}

.side-feature-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-feature-card .thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 11, 20, 0) 35%, rgba(11, 11, 20, 0.88) 100%);
}

.side-feature-card .cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--maroon);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 10px;
    border-radius: 4px;
}

.side-feature-card .cap-title {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-feature-card .cap-meta {
    padding: 8px 2px 0;
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ---------- comments ---------- */

.comments-section {
    max-width: 720px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

@media (max-width: 780px) {
    .comments-section {
        margin-top: 30px;
        padding-top: 24px;
    }
}

.comments-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-empty {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.comment-item {
    display: flex;
    gap: 14px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.comment-meta .comment-author {
    font-weight: 700;
    color: var(--text);
}

.comment-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text);
    word-break: break-word;
}

.comment-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 24px;
}

@media (max-width: 480px) {
    .comment-form {
        padding: 18px;
    }
}

.comment-form h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 560px) {
    .comment-form-row {
        grid-template-columns: 1fr;
    }
}

.comment-form textarea {
    margin-bottom: 14px;
    resize: vertical;
}

.comment-form .form-hint {
    margin-top: 10px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--maroon);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------- prev / next article pager ---------- */

.article-pager {
    max-width: 1000px;
    margin: 8px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pager-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.pager-link:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.pager-next {
    text-align: right;
    align-items: flex-end;
}

.pager-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--maroon);
}

.pager-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 620px) {
    .article-pager {
        grid-template-columns: 1fr;
    }

    .pager-next {
        text-align: left;
        align-items: flex-start;
    }
}

/* ---------- footer ---------- */

.site-footer {
    background: var(--navy);
    color: #d8d8e6;
    padding: 48px 0 24px;
    margin-top: 64px;
}

.site-footer .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
    height: 44px;
    width: auto;
    display: block;
    filter: brightness(1.15);
}

.site-footer nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer nav a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.site-footer nav a:hover {
    color: var(--gold-light);
}

.site-footer .bottom {
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer .bottom a {
    color: var(--gold-light);
}

.bottom-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.45) !important;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    transition: color 0.2s ease;
}

.admin-login-link:hover {
    color: var(--gold-light) !important;
}

@media (max-width: 500px) {
    .admin-login-link {
        border-left: none;
        padding-left: 0;
    }
}
