/* ============================================================
   Dribblestack — Public Site Stylesheet
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:       #0d0d0d;
    --card:     #1a1a1a;
    --card-alt: #1e1e1e;
    --nav:      #111111;
    --border:   #2e2e2e;
    --accent:      #76e817;
    --accent-d:    #5cb812;
    --text:     #ffffff;
    --muted:    #999999;
    --dim:      #666666;
    --scrim:    linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 50%, transparent 100%);
    --scrim-full: linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.6) 40%, transparent 100%);
    --radius:   6px;
    --max-w:    1280px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Roboto', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
img     { display: block; max-width: 100%; }
picture { display: contents; } /* transparent wrapper — child img participates directly in layout */
a    { color: inherit; text-decoration: none; }

/* ============================================================
   UTILITY
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.badge-breaking {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
}
.badge-cat {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
}
.ts { color: var(--muted); font-size: 11px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: var(--nav);
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid #1e1e1e;
}
.nav-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    height: 54px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.nav-hamburger {
    background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; flex-shrink: 0;
    display: flex; align-items: center;
}
.nav-hamburger svg { width: 20px; height: 20px; }

.nav-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    flex: 1;
}
.nav-logo em { color: var(--accent); font-style: normal; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-signin {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    background: transparent;
    font-family: inherit;
    transition: border-color .15s, color .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-signin:hover { border-color: var(--muted); color: var(--text); }

/* Second nav row — category links */
.nav-cats {
    border-top: 1px solid #1e1e1e;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-cats::-webkit-scrollbar { display: none; }
.nav-cats-inner {
    display: flex;
    align-items: center;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    gap: 0;
    white-space: nowrap;
}
.nav-cat-link {
    display: inline-block;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.nav-cat-link:hover,
.nav-cat-link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Mobile drawer */
.nav-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
}
.nav-drawer.open { display: block; }
.nav-drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.nav-drawer-panel {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 280px;
    background: var(--nav);
    padding: 24px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.nav-drawer-logo { padding: 0 20px 20px; font-size: 22px; font-weight: 800; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.nav-drawer-logo em { color: var(--accent); font-style: normal; }
.nav-drawer-link { display: block; padding: 11px 20px; font-size: 14px; font-weight: 500; color: var(--muted); border-left: 3px solid transparent; }
.nav-drawer-link:hover { color: var(--text); background: rgba(255,255,255,.03); border-left-color: var(--accent); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-hdr {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.section-hdr h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.3px;
    white-space: nowrap;
}
.section-hdr-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.section-hdr-more {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .8px;
    white-space: nowrap;
    transition: opacity .15s;
}
.section-hdr-more:hover { opacity: .75; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero { display: grid; grid-template-columns: 1fr 340px; gap: 3px; height: 520px; margin-bottom: 3px; }

/* Big featured card */
.hero-main {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius) 0 0 var(--radius);
    background: #111;
}
.hero-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: filter .35s;
}
.hero-main:hover img { filter: brightness(1.07); }
.hero-main-overlay {
    position: absolute;
    inset: 0;
    background: var(--scrim-full);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 28px 28px;
}
.hero-main-overlay .badges { display: flex; gap: 6px; margin-bottom: 10px; }
.hero-main-overlay h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.3px;
    color: #fff;
    margin-bottom: 8px;
    transition: color .15s;
}
.hero-main:hover h1 { color: var(--accent); }
.hero-main-overlay .meta { font-size: 12px; color: rgba(255,255,255,.55); }

/* Latest sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: 0 var(--radius) var(--radius) 0;
    overflow: hidden;
}
.hero-sidebar-label {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--dim);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-sidebar-label::before,
.hero-sidebar-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.hero-sidebar-item {
    display: flex;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    flex: 1;
    transition: background .15s;
}
.hero-sidebar-item:last-child { border-bottom: none; }
.hero-sidebar-item:hover { background: rgba(255,255,255,.03); }
.hero-sidebar-content { flex: 1; min-width: 0; }
.hero-sidebar-content .ts { margin-bottom: 4px; display: block; }
.hero-sidebar-content h3 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    transition: color .15s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-sidebar-item:hover h3 { color: var(--accent); }
.hero-sidebar-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.hero-sidebar-more {
    display: block;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .8px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.hero-sidebar-more:hover { background: rgba(76,175,80,.06); }

/* ============================================================
   4-COLUMN ARTICLE GRID
   ============================================================ */
.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-bottom: 40px; }

.article-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #111;
    aspect-ratio: 3/2;
}
.article-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: filter .3s;
}
.article-card:hover img { filter: brightness(1.07); }
.article-card-overlay {
    position: absolute;
    inset: 0;
    background: var(--scrim);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}
.article-card-overlay .badges { display: flex; gap: 5px; margin-bottom: 6px; }
.article-card-overlay h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    transition: color .15s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card:hover h3 { color: var(--accent); }
.article-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.article-card-meta .ts { font-size: 10px; }

/* ============================================================
   LATEST FEED + TRENDING SIDEBAR
   ============================================================ */
.feed-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; margin-bottom: 48px; }

/* Filter pills */
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.filter-pills::-webkit-scrollbar { display: none; }
.pill {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: rgba(255,255,255,.55);
    background: #080808;
    border: 1.5px solid rgba(255,255,255,.18);
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.pill:hover {
    color: #fff;
    border-color: rgba(255,255,255,.6);
    background: #111;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.pill.active {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(22,163,74,.35);
}

/* Feed pagination — same pill style as the filter tabs */
.feed-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.feed-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 0 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    color: rgba(255,255,255,.55);
    background: #080808;
    border: 1.5px solid rgba(255,255,255,.18);
    white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.feed-page-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,.6);
    background: #111;
}
.feed-page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 10px rgba(76,175,80,.35);
    pointer-events: none;
}
.feed-page-ellipsis { color: var(--muted); font-size: 13px; padding: 0 4px; }

/* Feed article row */
.feed-article {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.feed-article:last-child { border-bottom: none; }
.feed-article:hover .feed-article-title { color: var(--accent); }
.feed-thumb {
    width: 160px;
    height: 106px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
    background: #111;
    transition: filter .25s;
}
.feed-article:hover .feed-thumb { filter: brightness(1.07); }
.feed-content { flex: 1; min-width: 0; }
.feed-content .ts { display: block; margin-bottom: 5px; }
.feed-article-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    transition: color .15s;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-excerpt {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-byline { font-size: 11px; color: var(--dim); margin-top: 6px; }

/* Trending sidebar */
.trending-box { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.trending-title {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--dim);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.trending-title::before, .trending-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: rgba(255,255,255,.03); }
.trending-num {
    width: 24px;
    height: 24px;
    background: #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
    margin-top: 1px;
}
.trending-item:hover .trending-num { background: var(--accent); color: #fff; }
.trending-item h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    transition: color .15s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trending-item:hover h4 { color: var(--accent); }
.ad-placeholder {
    margin-top: 16px;
    background: var(--card);
    border-radius: var(--radius);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border);
    color: var(--dim);
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* ============================================================
   SECTION ROWS (e.g. La Liga, Premier League)
   ============================================================ */
.section-row { margin-bottom: 48px; }
.section-inner { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }

.section-featured {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #111;
    aspect-ratio: 16/10;
}
.section-featured img { width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.section-featured:hover img { filter: brightness(1.07); }
.section-featured-overlay {
    position: absolute;
    inset: 0;
    background: var(--scrim-full);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
}
.section-featured-overlay .badges { margin-bottom: 8px; }
.section-featured-overlay h3 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    transition: color .15s;
}
.section-featured:hover h3 { color: var(--accent); }
.section-featured-overlay .meta { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 6px; }

.section-list { display: flex; flex-direction: column; gap: 0; }
.section-list-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.section-list-item:last-child { border-bottom: none; }
.section-list-item:hover .section-list-title { color: var(--accent); }
.section-list-thumb {
    width: 96px;
    height: 66px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #111;
    transition: filter .25s;
}
.section-list-item:hover .section-list-thumb { filter: brightness(1.07); }
.section-list-content { flex: 1; min-width: 0; }
.section-list-content .ts { display: block; margin-bottom: 4px; }
.section-list-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    transition: color .15s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.section-list-meta { font-size: 11px; color: var(--dim); margin-top: 4px; }

/* ---- Section variant: editorial (OneFootball-style) ---- */
/* Big image left ~60%, text panel right */
/* Premier League — editorial: image left 60%, text panel right */
.section-inner-editorial {
    display: flex;
    height: 360px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
}
.section-editorial-img {
    flex: 0 0 60%;
    overflow: hidden;
    display: block;
}
.section-editorial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter .3s;
}
.section-editorial-img:hover img { filter: brightness(1.07); }

.section-editorial-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 28px;
    gap: 14px;
    text-decoration: none;
}
.section-editorial-body .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.section-editorial-body h3 {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
    transition: color .15s;
    margin: 0;
}
.section-editorial-body:hover h3 { color: var(--accent); }
.section-editorial-excerpt {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.section-editorial-meta { font-size: 11.5px; color: var(--dim); }

/* Premier League sub-grid: 4 cards below the editorial hero */
.section-sub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.section-sub-card {
    display: block;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: opacity .15s;
}
.section-sub-card:hover { opacity: .85; }
.section-sub-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.section-sub-body { padding: 10px 12px 12px; }
.section-sub-body .ts { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.section-sub-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.section-sub-card:hover .section-sub-title { color: var(--accent); }
.section-sub-meta { font-size: 11px; color: var(--dim); margin-top: 4px; }

/* Bundesliga — reversed: list left, featured right */
.section-inner-reversed {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
}

/* ============================================================
   HORIZONTAL SCROLL ROW (Breaking / Exclusive)
   ============================================================ */
.h-scroll-row { margin-bottom: 48px; }
.h-scroll-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.h-scroll-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px;
    scrollbar-width: none;
}
.h-scroll-track::-webkit-scrollbar { display: none; }
/* Controls row — sits below the track, right-aligned */
.h-scroll-controls {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
/* Arrow buttons */
.h-scroll-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #111;
    border: 1.5px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s, border-color .18s, opacity .18s;
}
.h-scroll-btn:hover:not(:disabled) {
    background: #1c1c1c;
    border-color: rgba(255,255,255,.5);
}
.h-scroll-btn:disabled {
    opacity: .22;
    cursor: default;
}
.h-scroll-card {
    flex-shrink: 0;
    width: 230px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    position: relative;
}
.h-scroll-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: filter .25s;
}
.h-scroll-card:hover img { filter: brightness(1.07); }
.h-scroll-date {
    position: absolute;
    top: 8px; left: 8px;
    font-size: 10px;
    color: rgba(255,255,255,.7);
    background: rgba(0,0,0,.55);
    padding: 2px 6px;
    border-radius: 3px;
}
.h-scroll-body { padding: 10px 12px 14px; }
.h-scroll-body h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    transition: color .15s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.h-scroll-card:hover h4 { color: var(--accent); }
.h-scroll-body .ts { margin-top: 5px; }

/* ============================================================
   NAV DRAWER EXTRAS
   ============================================================ */
.nav-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.nav-drawer-close {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}
.nav-drawer-close svg { width: 22px; height: 22px; }
.nav-drawer-close:hover { color: var(--text); }
.nav-drawer-auth {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--border);
}

/* Sign Up button (outlined accent) */
.btn-signup {
    padding: 6px 16px;
    border: 1px solid var(--accent);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    background: transparent;
    font-family: inherit;
    transition: background .15s, color .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-signup:hover { background: var(--accent); color: var(--accent-text); }

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot {
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ad-slot-leaderboard { width: 100%; height: 90px; margin: 24px 0; }
.ad-slot-rectangle   { width: 100%; height: 250px; }
.ad-slot-inline      { width: 100%; height: 120px; margin: 28px 0; }

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 24px 0;
    flex-wrap: wrap;
}
.share-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--dim);
    margin-right: 4px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
    border: none;
}
.share-btn:hover { opacity: .88; transform: translateY(-1px); }
.share-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.share-btn-facebook { background: #1877f2; color: #fff; }
.share-btn-x        { background: #000; color: #fff; }
.share-btn-whatsapp { background: #25d366; color: #fff; }
.share-btn-copy     { background: var(--card); color: var(--muted); border: 1px solid var(--border); }
.share-btn-copy.copied { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   COMMENTS SECTION
   ============================================================ */
.comments-section {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.comments-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-top: 8px;
}
.comments-header h2 { font-size: 18px; font-weight: 800; }
.comments-count {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

/* Sign-in to comment prompt */
.comment-login-prompt {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 28px;
}
.comment-login-prompt p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}
.comment-login-prompt strong { color: var(--text); }
.social-login-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.social-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: opacity .15s;
    text-decoration: none;
}
.social-login-btn:hover { opacity: .88; }
.social-login-btn svg { width: 18px; height: 18px; }
.btn-google   { background: #fff; color: #333; }
.btn-facebook { background: #1877f2; color: #fff; }
.btn-apple    { background: #000; color: #fff; border: 1px solid #333; }

/* Individual comment */
.comment {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: none; }
.comment-avatar-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    overflow: hidden;
}
.comment-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.comment-body-wrap { flex: 1; min-width: 0; }
.comment-meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
.comment-name { font-size: 13px; font-weight: 700; }
.comment-provider { font-size: 10px; padding: 1px 6px; border-radius: 3px; font-weight: 600; }
.provider-google   { background: #4285f4; color: #fff; }
.provider-facebook { background: #1877f2; color: #fff; }
.provider-apple    { background: #333; color: #fff; }
.comment-time { font-size: 11px; color: var(--dim); margin-left: auto; }
.comment-text { font-size: 14px; color: #ccc; line-height: 1.6; }
.comment-reply-btn { font-size: 11px; color: var(--dim); margin-top: 6px; cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; transition: color .15s; }
.comment-reply-btn:hover { color: var(--accent); }

.no-comments { text-align: center; padding: 32px 0; color: var(--dim); font-size: 14px; }

/* ============================================================
   FOLLOW SECTION (above footer)
   ============================================================ */
.follow-section {
    background: #111;
    border-top: 1px solid var(--border);
    padding: 40px 0;
}
.follow-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px;
}
.follow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.follow-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    transition: border-color .15s, background .15s;
}
.follow-card:hover {
    border-color: var(--accent);
    background: #222;
}
.follow-card-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}
.follow-card-icon svg { width: 22px; height: 22px; }
.follow-card-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.follow-card-platform { font-size: 13px; font-weight: 700; color: var(--text); }
.follow-card-handle { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--nav);
    border-top: 1px solid var(--border);
    padding: 36px 0 20px;
    margin-top: 20px;
}
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand .logo { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.footer-brand .logo em { color: var(--accent); font-style: normal; }
.footer-brand p { font-size: 12.5px; color: var(--muted); line-height: 1.6; max-width: 240px; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.social-icon {
    width: 34px; height: 34px;
    background: var(--border);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    font-size: 14px;
    transition: background .15s, color .15s;
}
.social-icon:hover { background: var(--accent); color: #fff; }
.social-icon svg { width: 16px; height: 16px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--muted); padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 11.5px; color: var(--dim); }
.footer-bottom a { color: var(--dim); transition: color .15s; }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-page { max-width: 820px; margin: 0 auto; padding: 32px 20px 60px; }
.article-page-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; background: #111; }
.article-page-cat { margin-bottom: 10px; }
.article-page h1 { font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.4px; margin-bottom: 12px; }
.article-page-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.article-page-meta strong { color: var(--text); }
.article-body { font-size: 16px; line-height: 1.8; color: #ddd; }
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-size: 22px; font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.article-body h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 24px 0 10px; }
.article-body strong { color: var(--text); }
.article-body em { color: var(--muted); }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 10px 18px; background: rgba(76,175,80,.06); border-radius: 0 4px 4px 0; margin: 20px 0; font-style: italic; color: var(--muted); }
.article-body img { width: 100%; border-radius: var(--radius); margin: 20px 0; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-tag { padding: 4px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; font-size: 11px; color: var(--muted); transition: border-color .15s, color .15s; }
.article-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   RELATED ARTICLES ROW
   ============================================================ */
.related-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 4px; }
.related-card { display: block; background: var(--card); border-radius: var(--radius); overflow: hidden; transition: opacity .15s; }
.related-card:hover { opacity: .85; }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.related-card-body { padding: 10px 12px 12px; }
.related-card-body .ts { font-size: 11px; color: var(--muted); display: block; margin-bottom: 4px; }
.related-card-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   AUTH PAGES (login / register)
   ============================================================ */
.auth-wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 36px 32px; }
.auth-logo { font-size: 22px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 20px; color: var(--text); }
.auth-logo em { color: var(--accent); font-style: normal; }
.auth-heading { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.auth-sub { font-size: 13px; color: var(--muted); margin: 0 0 20px; }

.auth-alert { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
.auth-alert-error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #f87171; }
.auth-alert-success { background: rgba(76,175,80,.12); border: 1px solid rgba(76,175,80,.3); color: var(--accent); }

.auth-socials { display: flex; flex-direction: column; gap: 8px; }
.auth-social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--text); cursor: pointer; transition: background .15s, border-color .15s; font-family: inherit; }
.auth-social-btn:hover { background: #2a2a2a; border-color: #555; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: .3px; }
.auth-field input { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; font-size: 14px; color: var(--text); font-family: inherit; transition: border-color .15s; box-sizing: border-box; }
.auth-field input:focus { outline: none; border-color: var(--accent); }
.auth-field input::placeholder { color: var(--muted); opacity: .6; }

.auth-submit { width: 100%; padding: 11px; background: var(--accent); border: none; border-radius: 6px; font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; font-family: inherit; margin-top: 4px; transition: opacity .15s; }
.auth-submit:hover { opacity: .88; }

.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.auth-switch a { color: var(--accent); font-weight: 600; }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */

/* Header */
.cat-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); position: relative; }
.cat-page-accent { position: absolute; bottom: 0; left: 0; height: 3px; width: 80px; border-radius: 2px; }
.cat-page-name { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin: 0; }
.cat-page-logo { height: 44px; width: auto; object-fit: contain; }
.cat-page-desc { font-size: 13px; color: var(--muted); margin: 6px 0 0; max-width: 520px; line-height: 1.6; }
.cat-page-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.cat-page-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cat-page-paging { font-size: 11px; color: var(--dim); white-space: nowrap; }

/* Category tabs strip */
.cat-tabs-wrap { margin-bottom: 24px; position: relative; }
.cat-tabs-wrap::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(to right, transparent, var(--bg)); pointer-events: none; }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--border);
    transition: color .15s, background .15s, border-color .15s;
    white-space: nowrap;
}
.cat-tab:hover { color: var(--text); border-color: #555; }
.cat-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); pointer-events: none; }

/* Hero */
.cat-hero { display: block; position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin-bottom: 3px; background: #111; }
.cat-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: filter .3s; }
.cat-hero:hover img { filter: brightness(1.06); }
.cat-hero-overlay { position: absolute; inset: 0; background: var(--scrim-full); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 32px; }
.cat-hero-overlay h2 { font-size: 30px; font-weight: 800; line-height: 1.2; margin: 8px 0 8px; color: #fff; }
.cat-hero-excerpt { font-size: 14px; color: rgba(255,255,255,.75); margin: 0 0 8px; max-width: 640px; }
.cat-hero-overlay .meta { font-size: 12px; color: rgba(255,255,255,.6); }

/* Mini-grid (3 cards after hero) */
.cat-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-bottom: 32px;
}
.cat-mini-card {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    background: #111;
}
.cat-mini-card img { width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.cat-mini-card:hover img { filter: brightness(1.08); }
.cat-mini-overlay {
    position: absolute;
    inset: 0;
    background: var(--scrim);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 14px;
}
.cat-mini-overlay .badges { margin-bottom: 5px; }
.cat-mini-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
    transition: color .15s;
}
.cat-mini-card:hover .cat-mini-title { color: var(--accent); }

/* Main layout */
.cat-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; margin-top: 0; }
.cat-main { min-width: 0; }
.cat-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 24px; }

/* Discover box (sidebar) */
.discover-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.discover-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--dim);
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.discover-title::before, .discover-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.discover-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.discover-item:last-child { border-bottom: none; }
.discover-item:hover { background: rgba(255,255,255,.03); }
.discover-thumb {
    width: 68px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.discover-content { flex: 1; min-width: 0; }
.discover-title-text {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    transition: color .15s;
}
.discover-item:hover .discover-title-text { color: var(--accent); }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 6px; margin: 32px 0 16px; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--muted); transition: background .15s, color .15s, border-color .15s; }
.page-btn:hover { background: #333; color: var(--text); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; pointer-events: none; }
.page-ellipsis { color: var(--muted); padding: 0 4px; }

/* ============================================================
   NEWSLETTER SECTION (above social cards)
   ============================================================ */
.newsletter-section {
    background: linear-gradient(135deg, #0f1f0f 0%, #111 60%, #0d0d0d 100%);
    border-top: 1px solid rgba(76,175,80,.2);
    border-bottom: 1px solid rgba(76,175,80,.12);
    padding: 48px 0;
}
.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.newsletter-copy { flex: 1; min-width: 0; }
.newsletter-heading {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.4px;
    margin: 0 0 8px;
    color: #fff;
}
.newsletter-sub {
    font-size: 14px;
    color: rgba(255,255,255,.55);
    margin: 0;
    line-height: 1.6;
    max-width: 400px;
}
.newsletter-form { flex-shrink: 0; width: 420px; }
.newsletter-field-wrap {
    display: flex;
    gap: 0;
}
.newsletter-field-wrap input {
    flex: 1;
    padding: 13px 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
    color: #fff;
    font-family: inherit;
    min-width: 0;
    transition: border-color .2s, background .2s;
}
.newsletter-field-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(76,175,80,.08);
}
.newsletter-field-wrap input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-field-wrap button {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 22px;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent-text);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .15s, opacity .15s;
}
.newsletter-field-wrap button:hover { background: var(--accent-d); }
.newsletter-field-wrap button:disabled { opacity: .6; cursor: default; }
.newsletter-msg {
    font-size: 12.5px;
    margin: 10px 0 0;
    min-height: 18px;
    font-weight: 500;
}
.newsletter-msg.ok  { color: var(--accent); }
.newsletter-msg.err { color: #f87171; }

/* ============================================================
   MOBILE
   ============================================================ */
/* ============================================================
   PRIVACY & COOKIE POLICY PAGE
   ============================================================ */
.privacy-header { margin-bottom: 32px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.privacy-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.privacy-meta { color: var(--muted); font-size: 13px; }

.privacy-toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 40px; }
.privacy-toc strong { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 10px; }
.privacy-toc ol { padding-left: 18px; column-count: 2; column-gap: 32px; }
.privacy-toc li { margin-bottom: 6px; }
.privacy-toc a { color: var(--accent); font-size: 13.5px; }
.privacy-toc a:hover { text-decoration: underline; }

.privacy-body section { margin-bottom: 48px; }
.privacy-body h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; color: var(--text); border-left: 3px solid var(--accent); padding-left: 12px; }
.privacy-body h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; color: var(--text); }
.privacy-body p { color: #ccc; line-height: 1.7; margin-bottom: 12px; font-size: 14.5px; }
.privacy-body ul { color: #ccc; line-height: 1.7; padding-left: 20px; margin-bottom: 12px; font-size: 14.5px; }
.privacy-body ul li { margin-bottom: 8px; }

.privacy-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; margin-bottom: 12px; }
.privacy-table th { background: var(--card-alt); color: var(--muted); font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.privacy-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: #ccc; vertical-align: top; }
.privacy-table tr:last-child td { border-bottom: none; }
.privacy-table a { color: var(--accent); }
.privacy-table code { background: #2a2a2a; padding: 2px 6px; border-radius: 3px; font-size: 12px; font-family: 'Menlo', 'Courier New', monospace; }

.cookie-category { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.cookie-cat-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cookie-cat-name { font-weight: 700; font-size: 14.5px; }
.cookie-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 3px 8px; border-radius: 3px; }
.cookie-badge.required { background: rgba(76,175,80,.15); color: var(--accent); border: 1px solid rgba(76,175,80,.3); }
.cookie-badge.optional { background: rgba(255,165,0,.1); color: #ffa726; border: 1px solid rgba(255,165,0,.25); }

.privacy-contact-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; color: #ccc; line-height: 2; font-size: 14.5px; }
.privacy-contact-box a { color: var(--accent); }
.privacy-link-btn { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 14.5px; padding: 0; font-family: inherit; text-decoration: underline; }
.privacy-link-btn:hover { color: var(--accent-d); }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: #181818;
    border-top: 1px solid var(--border);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.5);
    animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner.hidden { display: none; }
.cookie-banner-text { flex: 1; font-size: 13px; color: #ccc; line-height: 1.6; }
.cookie-banner-text a { color: var(--accent); text-decoration: underline; }
.cookie-banner-btns { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn { padding: 8px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; white-space: nowrap; }
.cookie-btn-accept { background: var(--accent); color: var(--accent-text); }
.cookie-btn-accept:hover { background: var(--accent-d); }
.cookie-btn-reject { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.cookie-btn-reject:hover { border-color: #555; color: var(--text); }
.cookie-btn-prefs { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.cookie-btn-prefs:hover { border-color: #555; color: var(--text); }

/* Cookie preferences modal */
.cookie-modal-backdrop {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,.75);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.cookie-modal-backdrop.hidden { display: none; }
.cookie-modal {
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 10px;
    max-width: 520px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    padding: 28px;
}
.cookie-modal h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.cookie-modal .modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.cookie-modal-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cookie-modal-row:last-of-type { border-bottom: none; }
.cookie-modal-label { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cookie-modal-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; cursor: pointer; background: #444; border-radius: 22px; transition: .2s; }
.toggle-slider::before { content: ''; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
.toggle-switch input:disabled + .toggle-slider { opacity: .5; cursor: not-allowed; }
.cookie-modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }

@media (max-width: 640px) {
    .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
    .cookie-banner-btns { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
    .privacy-toc ol { column-count: 1; }
}

@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr 280px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .section-inner { grid-template-columns: 1fr 260px; }
    .cat-layout { grid-template-columns: 1fr 260px; gap: 24px; }
}
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; height: auto; }
    .hero-main { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16/9; }
    .hero-sidebar { border-radius: 0 0 var(--radius) var(--radius); }
    .hero-main-overlay h1 { font-size: 20px; }
    .article-grid { grid-template-columns: 1fr; }
    .feed-layout { grid-template-columns: 1fr; }
    .trending-box, .ad-placeholder { display: none; }
    .section-inner { grid-template-columns: 1fr; }
    .section-inner-reversed { grid-template-columns: 1fr; }
    .section-inner-reversed .section-list { order: 1; display: none; }
    .section-inner-editorial { flex-direction: column; height: auto; }
    .section-editorial-img { flex: none; aspect-ratio: 16/9; width: 100%; }
    .section-editorial-body { padding: 20px 16px; }
    .section-editorial-body h3 { font-size: 18px; }
    .section-sub-grid { grid-template-columns: repeat(2, 1fr); }
    .section-list { display: none; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .newsletter-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
    .newsletter-form { width: 100%; }
    .newsletter-heading { font-size: 20px; }
    .feed-thumb { width: 100px; height: 70px; }
    /* Category page */
    .cat-page-header { align-items: flex-start; }
    .cat-page-name { font-size: 22px; }
    .cat-layout { grid-template-columns: 1fr; }
    .cat-sidebar { position: static; display: none; }
    .cat-mini-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-mini-grid .cat-mini-card:last-child { display: none; }
    .cat-hero { aspect-ratio: 4/3; }
    .cat-hero-overlay h2 { font-size: 20px; }
    .cat-hero-overlay { padding: 16px 18px; }
    .related-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .article-grid { grid-template-columns: 1fr; }
    .feed-article { flex-direction: column; }
    .feed-thumb { width: 100%; height: 180px; }
    .cat-mini-grid { grid-template-columns: 1fr; }
    .cat-mini-grid .cat-mini-card:last-child { display: block; }
    .cat-mini-card { aspect-ratio: 16/9; }
    .cat-page-header { flex-direction: column; gap: 8px; }
    .cat-page-meta { align-items: flex-start; flex-direction: row; gap: 12px; }
}

/* ============================================================
   NAVBAR SEARCH BUTTON & OVERLAY
   ============================================================ */
.nav-search-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text); display: flex; align-items: center;
    padding: 6px; border-radius: var(--radius);
    transition: color .15s;
}
.nav-search-btn:hover { color: var(--accent); }

.search-overlay {
    position: fixed; inset: 0; z-index: 9997;
    background: rgba(0,0,0,.75);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 80px;
}
.search-overlay.hidden { display: none; }
.search-overlay-inner {
    width: 100%; max-width: 640px;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex; align-items: center; gap: 12px;
    padding: 0 16px;
    margin: 0 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,.6);
}
.search-overlay-form {
    flex: 1; display: flex; align-items: center; gap: 12px;
}
.search-overlay-form svg { color: var(--muted); flex-shrink: 0; }
.search-overlay-form input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 17px; font-family: inherit;
    padding: 18px 0;
}
.search-overlay-form input::placeholder { color: var(--dim); }
.search-overlay-close {
    background: none; border: none; cursor: pointer;
    color: var(--muted); padding: 8px; display: flex;
    flex-shrink: 0;
}
.search-overlay-close:hover { color: var(--text); }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page-form { margin-bottom: 32px; }
.search-page-wrap {
    display: flex; align-items: center; gap: 12px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 8px; padding: 0 16px;
}
.search-page-wrap svg { color: var(--muted); flex-shrink: 0; }
.search-page-wrap input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 16px; font-family: inherit;
    padding: 14px 0;
}
.search-page-wrap input::placeholder { color: var(--dim); }
.search-page-wrap button {
    background: var(--accent); color: #fff; border: none;
    padding: 8px 18px; border-radius: var(--radius);
    font-size: 13px; font-weight: 600; cursor: pointer;
    font-family: inherit; white-space: nowrap;
}
.search-page-wrap button:hover { background: var(--accent-d); }

.search-results-header { margin-bottom: 20px; }
.search-count { font-size: 13px; color: var(--muted); }

.search-results { display: flex; flex-direction: column; gap: 1px; }
.search-result-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 0; border-bottom: 1px solid var(--border);
    text-decoration: none; color: inherit;
    transition: background .15s;
}
.search-result-item:hover .search-result-title { color: var(--accent); }
.search-result-thumb {
    width: 130px; height: 86px; object-fit: cover;
    border-radius: var(--radius); flex-shrink: 0;
}
.search-result-thumb-empty {
    width: 130px; height: 86px; flex-shrink: 0;
    background: var(--card); border-radius: var(--radius);
    border: 1px solid var(--border);
}
.search-result-body { flex: 1; min-width: 0; }
.search-result-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.search-result-title { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; transition: color .15s; }
.search-result-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 6px; }
.search-result-author { font-size: 12px; color: var(--dim); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    font-size: 12.5px; color: var(--muted);
    padding: 10px 0 14px; margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.bc-sep { color: var(--dim); font-size: 11px; }
.bc-current { color: var(--dim); }

/* ============================================================
   TAG PAGE
   ============================================================ */
.tag-page-header {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 36px; padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.tag-page-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(76,175,80,.12); border: 2px solid rgba(76,175,80,.3);
    color: var(--accent); font-size: 28px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tag-page-name { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.tag-page-count { font-size: 13px; color: var(--muted); }

/* ============================================================
   AUTHOR PAGE
   ============================================================ */
.author-profile-header {
    display: flex; align-items: center; gap: 24px;
    margin-bottom: 40px; padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.author-profile-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--accent); color: #fff;
    font-size: 32px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.author-profile-name { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.author-profile-role { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.author-profile-stats { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.author-profile-stats strong { color: var(--text); }

@media (max-width: 600px) {
    .search-result-thumb, .search-result-thumb-empty { width: 90px; height: 64px; }
    .search-result-title { font-size: 14px; }
    .author-profile-header { flex-direction: column; align-items: flex-start; }
    .tag-page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   REACTIONS
   ═══════════════════════════════════════════════════════════════ */
.reactions-wrap {
    max-width: 820px;
    margin: 0 auto 32px;
    padding: 20px 20px 0;
    text-align: center;
}
.reactions-label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}
.reactions-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.reaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--card-bg, #1e1e1e);
    border: 1.5px solid var(--border, #2a2a2a);
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: transform .15s, border-color .15s, background .15s;
    min-width: 64px;
    color: var(--text);
}
.reaction-btn:hover {
    transform: translateY(-3px) scale(1.08);
    border-color: var(--accent);
    background: rgba(0,179,65,.08);
}
.reaction-btn.active {
    border-color: var(--accent);
    background: rgba(0,179,65,.15);
}
.reaction-emoji {
    font-size: 26px;
    line-height: 1;
    display: block;
}
.reaction-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    min-width: 20px;
}
.reaction-btn.active .reaction-count {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   CORE WEB VITALS — aspect-ratio for image containers (CLS fix)
   ═══════════════════════════════════════════════════════════════ */
.cat-hero picture,
.cat-hero img {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    display: block;
}
.cat-mini-card picture,
.cat-mini-card img {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    display: block;
}
.feed-thumb,
.feed-thumb img,
.feed-thumb picture {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.article-page-hero,
.article-page-hero img,
.article-page-hero picture {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.related-card > picture,
.related-card > img {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    display: block;
}
.discover-thumb,
.discover-thumb img,
.discover-thumb picture {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE OF CONTENTS (#7)
   ═══════════════════════════════════════════════════════════════ */
.toc-wrap {
    background: var(--card-bg, #1e1e1e);
    border: 1px solid var(--border, #2a2a2a);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 28px;
    max-width: 560px;
}
.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    user-select: none;
}
.toc-header .toc-chevron {
    margin-left: auto;
    transition: transform .2s;
}
.toc-collapsed .toc-chevron {
    transform: rotate(-90deg);
}
.toc-list {
    margin: 12px 0 0 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.toc-list li {
    font-size: 14px;
    line-height: 1.4;
}
.toc-list li.toc-sub {
    padding-left: 14px;
    font-size: 13px;
    color: var(--muted);
}
.toc-list a {
    color: var(--text);
    text-decoration: none;
    transition: color .15s;
}
.toc-list a:hover {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   POLL WIDGET (#6)
   ═══════════════════════════════════════════════════════════════ */
.poll-widget {
    background: var(--card-bg, #1e1e1e);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 12px;
    padding: 22px 22px 16px;
}
.poll-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.4;
}
.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.poll-option {
    position: relative;
    border: 1.5px solid var(--border, #2a2a2a);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    transition: border-color .15s, background .15s;
    min-height: 44px;
}
.poll-option:not(.poll-voted):hover {
    border-color: var(--accent);
    background: rgba(0,179,65,.06);
}
.poll-option.poll-voted {
    cursor: default;
}
.poll-option.poll-choice {
    border-color: var(--accent);
    color: var(--accent);
}
.poll-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(0,179,65,.12);
    border-radius: 8px 0 0 8px;
    transition: width .4s ease;
    z-index: 0;
}
.poll-opt-text {
    position: relative;
    z-index: 1;
    flex: 1;
}
.poll-pct {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    margin-left: auto;
}
.poll-option.poll-choice .poll-pct {
    color: var(--accent);
}
.poll-footer {
    font-size: 12px;
    color: var(--dim, #555);
}

/* ═══════════════════════════════════════════════════════════════
   AFFILIATE BANNER (#9)
   ═══════════════════════════════════════════════════════════════ */
.affiliate-banner {
    display: block;
    background: linear-gradient(135deg, var(--aff-color, #1e7c3a) 0%, color-mix(in srgb, var(--aff-color, #1e7c3a) 70%, #000) 100%);
    border-radius: 12px;
    padding: 20px 24px;
    text-decoration: none;
    color: #fff;
    transition: transform .15s, box-shadow .15s;
    position: relative;
    overflow: hidden;
}
.affiliate-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
}
.affiliate-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    color: #fff;
}
.aff-inner { position: relative; z-index: 1; }
.aff-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .7;
    margin-bottom: 6px;
}
.aff-headline {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 4px;
}
.aff-sub {
    font-size: 13px;
    opacity: .85;
    margin-bottom: 12px;
    line-height: 1.5;
}
.aff-cta {
    display: inline-block;
    background: rgba(255,255,255,.2);
    border: 1.5px solid rgba(255,255,255,.4);
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════════
   STICKY SHARE BAR (#10)
   ═══════════════════════════════════════════════════════════════ */
.sticky-share {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-80px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
}
.sticky-share.visible {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    pointer-events: all;
}
.sticky-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
    transition: transform .15s, box-shadow .15s;
}
.sticky-share-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0,0,0,.45);
    color: #fff;
}
.sticky-fb  { background: #1877f2; }
.sticky-x   { background: #000; }
.sticky-wa  { background: #25d366; }
.sticky-copy { background: #444; }

@media (max-width: 900px) {
    /* On narrow screens, move sticky bar to bottom center */
    .sticky-share {
        left: 50%;
        top: auto;
        bottom: 16px;
        flex-direction: row;
        transform: translateX(-50%) translateY(80px);
    }
    .sticky-share.visible {
        transform: translateX(-50%) translateY(0);
    }
}

