/*
 * Waploaded v2 theme.
 * Loaded on top of newsite.min.css when the v2 theme is on
 * (see app/views/site/layouts/partials/stylesheets.phtml).
 * Approved look: design/v2-mockup/.
 *
 * New components use the "wl-" prefix so they never clash with Bulma or the old CSS.
 * Rules that restyle old markup are scoped to html[data-theme="v2"] to win over it.
 * Mobile first. Breakpoints: 600px, 900px, 1200px.
 *
 * Ported so far: layout shell (header, nav, search, tab bar, footer, notice, breadcrumb), home page,
 * listings (categories, tags, search, trending, featured), post pages, season pages, docs.
 */

/* ---------- Tokens ---------- */
:root {
    --brand: #106ecc;
    --brand-hi: #2187ee;
    --brand-soft: #51a1f1;
    --brand-glow: rgba(33, 135, 238, .35);
    --brand-tint: rgba(16, 110, 204, .14);

    --bg: #0a0d12;
    --surface: #11151c;
    --surface-2: #181d26;
    --surface-3: #212835;
    --line: rgba(255, 255, 255, .07);
    --line-strong: rgba(255, 255, 255, .14);

    --text: #eef2f7;
    --text-2: #b9c3cf;
    --muted: #8593a3;

    --gold: #f5c518;
    --new: #ff5a00;
    --telegram: #2aa1da;
    --whatsapp: #25d366;

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-pill: 999px;

    --gutter: 16px;
    --container: 1280px;
    --header-h: 60px;
    --tabbar-h: 64px;

    --shadow-card: 0 10px 30px rgba(0, 0, 0, .45);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 900px) {
    :root { --gutter: 28px; --header-h: 68px; }
}

/* ---------- Base (overrides the old dark grey look) ---------- */
html[data-theme="v2"],
html[data-theme="v2"] body {
    height: auto;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

html[data-theme="v2"] body {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
    html[data-theme="v2"] body { padding-bottom: 0; }
}

html[data-theme="v2"] :focus-visible {
    outline: 2px solid var(--brand-soft) !important;
    outline-offset: 2px;
}

/* Old pages use .content_area at 80% width; v2 uses a centred max-width container */
html[data-theme="v2"] .content_area,
html[data-theme="v2"] #site_layout {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto !important;
    padding-left: var(--gutter) !important;
    padding-right: var(--gutter) !important;
}

.wl-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.wl-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wl-icon--fill { fill: currentColor; stroke: none; }

/* Visibility helpers ("desktop" = 900px and up, where the full nav shows) */
@media (min-width: 900px) {
    .wl-hide-desktop { display: none !important; }
}

.wl-visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons and chips ---------- */
.wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--r-pill);
    font: 700 15px/1 var(--font);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: transform .15s var(--ease), box-shadow .2s, background .2s;
}

.wl-btn:active { transform: scale(.97); }

.wl-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-hi), var(--brand));
    box-shadow: 0 8px 24px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.wl-btn--primary:hover { color: #fff; box-shadow: 0 10px 32px rgba(33, 135, 238, .55), inset 0 1px 0 rgba(255, 255, 255, .18); }

.wl-btn--ghost {
    color: var(--text);
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.wl-btn--ghost:hover { color: var(--text); background: rgba(255, 255, 255, .13); }
.wl-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }

.wl-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}

.wl-chip:hover { color: var(--text); border-color: var(--line-strong); }
.wl-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- DMCA notice (markup in main_layout, shared with the old look) ---------- */
html[data-theme="v2"] .dmca-notice {
    margin: 0;
    padding: 8px max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
    align-items: center;
    background: var(--surface);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--text-2);
    font-family: var(--font);
    font-size: 12.5px;
    line-height: 1.45;
}

html[data-theme="v2"] .dmca-notice__icon { width: 16px; height: 16px; flex-basis: 16px; margin-top: 0; }
html[data-theme="v2"] .dmca-notice__text a { color: var(--brand-soft); text-decoration: none; }
html[data-theme="v2"] .dmca-notice__close { margin: 0 0 0 8px; color: var(--muted); }
html[data-theme="v2"] .dmca-notice__close:hover { background: var(--surface-3); }

/* ---------- Header ---------- */
.wl-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(10, 13, 18, .82);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line);
    font-family: var(--font);
}

.wl-header__bar {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 18px;
}

.wl-logo { display: block; flex: none; }
.wl-logo img { display: block; height: 30px; width: auto; }

@media (min-width: 900px) {
    .wl-logo img { height: 36px; }
}

.wl-nav { display: none; }

@media (min-width: 900px) {
    .wl-nav { display: flex; align-items: center; gap: 2px; }
}

.wl-nav__item { position: relative; }

.wl-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 11px;
    border-radius: var(--r-pill);
    color: var(--text-2);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s, background .2s;
}

.wl-nav__link .wl-icon { width: 14px; height: 14px; opacity: .6; }
.wl-nav__item:hover .wl-nav__link,
.wl-nav__item:focus-within .wl-nav__link { color: var(--text); background: var(--surface-2); }
.wl-nav__link.is-active { color: #fff; background: var(--brand-tint); box-shadow: inset 0 0 0 1px rgba(81, 161, 241, .35); }

/* Dropdown: opens on hover and on keyboard focus */
.wl-nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 230px;
    padding: 8px;
    margin-top: 8px;
    display: grid;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}

/* Hover bridge so the menu does not close while moving the mouse down to it */
.wl-nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }

.wl-nav__item:hover .wl-nav__menu,
.wl-nav__item:focus-within .wl-nav__menu { opacity: 1; visibility: visible; transform: none; }

.wl-nav__menu a {
    padding: 9px 12px;
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.wl-nav__menu a:hover { background: var(--surface-2); color: var(--text); }

/* Search: icon on phones (opens a full-width row), field from 600px */
.wl-search {
    margin: 0 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 5px 0 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    transition: border-color .2s;
}

.wl-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
html[data-theme="v2"] .wl-search input:focus-visible { outline: none !important; }
.wl-search > .wl-icon { color: var(--muted); }

.wl-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    outline: none;
    box-shadow: none;
    color: var(--text);
    font: 500 14px var(--font);
}

.wl-search input::placeholder { color: var(--muted); }
.wl-search input::-webkit-search-cancel-button { display: none; }

.wl-search select {
    height: 30px;
    border: 0;
    background: var(--surface-3);
    border-radius: var(--r-pill);
    padding: 0 10px;
    font: 600 12px var(--font);
    color: var(--text-2);
    cursor: pointer;
}

.wl-search__go {
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--brand);
    color: #fff;
    font: 700 12px var(--font);
    cursor: pointer;
}

.wl-header__bar .wl-search { display: none; width: 280px; }

@media (min-width: 600px) {
    .wl-header__bar .wl-search { display: flex; }
}

@media (min-width: 1200px) {
    .wl-header__bar .wl-search { width: 380px; }
}

.wl-header__bar .wl-search select { display: none; }

@media (min-width: 1200px) {
    .wl-header__bar .wl-search select { display: block; }
}

.wl-search-toggle {
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text-2);
    display: grid;
    place-items: center;
    cursor: pointer;
}

@media (min-width: 600px) {
    .wl-search-toggle { display: none; }
}

.wl-header__search-row { display: none; padding: 0 var(--gutter) 12px; }
.wl-header__search-row .wl-search { margin: 0; }
.wl-header.is-searching .wl-header__search-row { display: block; }
.wl-header.is-searching .wl-subnav { display: none; }

@media (min-width: 600px) {
    .wl-header.is-searching .wl-header__search-row { display: none; }
    .wl-header.is-searching .wl-subnav { display: flex; }
}

/* Category chips under the bar on phones and tablets */
.wl-subnav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 var(--gutter) 12px;
    scrollbar-width: none;
}

.wl-subnav::-webkit-scrollbar { display: none; }

@media (min-width: 900px) {
    .wl-subnav { display: none !important; }
}

/* ---------- Old header area under the new bar ---------- */
/* The logo row now only holds the header ad */
html[data-theme="v2"] #header #logo_n_topad_area {
    width: 100%;
    max-width: var(--container);
    padding: 0 var(--gutter) !important;
}

html[data-theme="v2"] #logo_n_topad_area .row { margin: 0; }
html[data-theme="v2"] #logo_n_topad_area .row > div:first-child { display: none; }
html[data-theme="v2"] #logo_n_topad_area .row > div:last-child { flex-basis: 100%; max-width: 100%; padding: 0; }
html[data-theme="v2"] #logo_n_topad_area .ad:not(:empty) { margin: 14px 0 0; }

html[data-theme="v2"] .breadcrumb { margin: 14px 0 0; font-size: 13px; }
html[data-theme="v2"] .breadcrumb ul { margin: 0; justify-content: flex-start; flex-wrap: wrap; }
html[data-theme="v2"] .breadcrumb a { padding: 0 6px; color: var(--muted); }
html[data-theme="v2"] .breadcrumb li:first-child a { padding-left: 0; }
html[data-theme="v2"] .breadcrumb a:hover { color: var(--brand-soft); }
html[data-theme="v2"] .breadcrumb li:last-child a { color: var(--text-2); }
html[data-theme="v2"] .breadcrumb li + li::before { color: var(--surface-3); }

/* Search home keeps its big search box; restyle it to match */
html[data-theme="v2"] #search_bar_main #search_bar {
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    overflow: hidden;
}

html[data-theme="v2"] #search_bar_main #search_bar input { background: transparent; color: var(--text); font-family: var(--font); }
html[data-theme="v2"] #search_bar_main #search_bar .submit_btn { background: var(--brand); border-radius: 0 var(--r-pill) var(--r-pill) 0; }

/* ---------- Community strip (Telegram / WhatsApp) ---------- */
.wl-community {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
    font-family: var(--font);
}

@media (min-width: 900px) {
    .wl-community { grid-template-columns: repeat(2, minmax(0, 300px)); }
}

.wl-community a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.wl-community a small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }

@media (max-width: 419px) {
    .wl-community a { padding: 8px 10px; gap: 8px; white-space: nowrap; }
    .wl-community a small { display: none; }
}
.wl-community a:hover { color: var(--text); background: var(--surface-2); border-color: var(--line-strong); }

.wl-community__icon {
    width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center; flex: none; color: #fff;
}

.wl-community__icon .wl-icon { width: 17px; height: 17px; }
.wl-community .is-telegram .wl-community__icon { background: var(--telegram); }
.wl-community .is-whatsapp .wl-community__icon { background: var(--whatsapp); }

/* ---------- Bottom tab bar (phones) ---------- */
.wl-tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 950;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(13, 17, 23, .94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    font-family: var(--font);
}

.wl-tabbar a,
.wl-tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: none;
    color: var(--muted);
    font: 600 11px var(--font);
    text-decoration: none;
    cursor: pointer;
}

.wl-tabbar .is-active { color: var(--brand-soft); }
.wl-tabbar .wl-icon { width: 22px; height: 22px; }

@media (min-width: 900px) {
    .wl-tabbar { display: none !important; }
}

/* Keep the sticky bottom ad above the tab bar */
@media (max-width: 899px) {
    html[data-theme="v2"] #bottom_sticky { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); }
}

/* "More" sheet opened from the tab bar */
.wl-sheet {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    font-family: var(--font);
}

.wl-sheet.is-open { display: block; }

.wl-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    border: 0;
    width: 100%;
    cursor: pointer;
}

.wl-sheet__panel {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line-strong);
    border-radius: 22px 22px 0 0;
    animation: wl-sheet-up .25s var(--ease);
}

@keyframes wl-sheet-up {
    from { transform: translateY(40px); opacity: 0; }
}

.wl-sheet__grip { width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: var(--surface-3); }

.wl-sheet__group + .wl-sheet__group { margin-top: 18px; }

.wl-sheet__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.wl-sheet__title .wl-icon { width: 16px; height: 16px; color: var(--brand-soft); }
.wl-sheet__links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Footer ---------- */
.wl-footer {
    margin-top: 56px;
    padding: 40px 0 28px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-2);
}

.wl-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
}

@media (min-width: 900px) {
    .wl-footer__grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
}

.wl-footer__brand { grid-column: 1 / -1; }

@media (min-width: 900px) {
    .wl-footer__brand { grid-column: auto; }
}

.wl-footer__brand img { display: block; height: 40px; width: auto; }
.wl-footer__brand p { margin: 12px 0 0; color: var(--muted); max-width: 34ch; }

.wl-footer h2 {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-2);
}

.wl-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wl-footer li a { color: var(--muted); text-decoration: none; }
.wl-footer li a:hover { color: var(--brand-soft); }

.wl-socials { display: flex; gap: 8px; margin-top: 16px; }

.wl-socials a {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--line);
    color: var(--text-2);
}

.wl-socials a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.wl-socials .wl-icon { width: 18px; height: 18px; }

.wl-newsletter { display: flex; gap: 8px; margin-top: 10px; }

.wl-newsletter input[type="email"] {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--text);
    font: 500 14px var(--font);
}

.wl-newsletter input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }

.wl-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.wl-footer__bottom a { color: var(--muted); text-decoration: none; }
.wl-footer__bottom a:hover { color: var(--brand-soft); }

/* ======================================================================
   Shared content components (home, listings, post pages)
   ====================================================================== */

.wl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-soft);
}

.wl-eyebrow .wl-icon { width: 16px; height: 16px; }
.wl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.wl-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.wl-badge--new { background: var(--new); color: #fff; }
.wl-badge--brand { background: var(--brand); color: #fff; }
.wl-badge--glass { background: rgba(10, 13, 18, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; }

/* Sections */
.wl-section { margin-top: 32px; font-family: var(--font); }

@media (min-width: 900px) {
    .wl-section { margin-top: 44px; }
}

.wl-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.wl-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
    color: var(--text);
}

.wl-section-title::before {
    content: "";
    flex: none;
    width: 4px;
    height: 1.05em;
    border-radius: 4px;
    background: linear-gradient(var(--brand-soft), var(--brand));
}

.wl-see-all {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: none;
    color: var(--brand-soft);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.wl-see-all .wl-icon { width: 16px; height: 16px; }
.wl-see-all:hover { color: #fff; }

/* Rails: swipe on phones, arrows on desktop */
.wl-rail-wrap { position: relative; }

.wl-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(128px, 38vw, 172px);
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    padding: 8px var(--gutter) 14px;
    margin: 0 calc(var(--gutter) * -1);
    scrollbar-width: none;
}

.wl-rail::-webkit-scrollbar { display: none; }
.wl-rail > * { scroll-snap-align: start; }
.wl-rail--square { grid-auto-columns: clamp(136px, 40vw, 180px); }
.wl-rail--wide { grid-auto-columns: clamp(220px, 70vw, 290px); }
.wl-rail--ranked { grid-auto-columns: max-content; }

@media (min-width: 900px) {
    .wl-rail { gap: 16px; }
}

.wl-rail-btn {
    display: none;
    position: absolute;
    top: calc(50% - 40px);
    z-index: 2;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(17, 21, 28, .92);
    color: var(--text);
    cursor: pointer;
    place-items: center;
    box-shadow: var(--shadow-card);
    transition: background .2s, opacity .2s;
}

.wl-rail-btn:hover { background: var(--brand); }
.wl-rail-btn--prev { left: -16px; }
.wl-rail-btn--next { right: -16px; }
.wl-rail-btn[disabled] { opacity: 0; pointer-events: none; }

@media (min-width: 900px) and (hover: hover) {
    .wl-rail-btn { display: grid; }
}

/* Post card */
.wl-card { display: block; min-width: 0; color: var(--text); text-decoration: none; }
.wl-card:hover { color: var(--text); }

.wl-card__media {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface-2);
    box-shadow: 0 0 0 1px var(--line);
    transition: box-shadow .25s, transform .25s var(--ease);
}

.wl-card--square .wl-card__media { aspect-ratio: 1 / 1; }
.wl-card--wide .wl-card__media { aspect-ratio: 16 / 9; }

.wl-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.wl-card__badges {
    position: absolute;
    top: 8px; left: 8px; right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.wl-card__comments { margin-left: auto; }
.wl-card__comments .wl-icon { width: 12px; height: 12px; }

.wl-card__title {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.wl-card__meta { margin: 3px 0 0; font-size: 12px; color: var(--muted); }

@media (hover: hover) {
    .wl-card:hover .wl-card__media { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--brand-hi), 0 14px 34px rgba(16, 110, 204, .3); }
    .wl-card:hover .wl-card__media img { transform: scale(1.06); }
    .wl-card:hover .wl-card__title { color: var(--brand-soft); }
}

/* Ranked rail: big number beside each card */
.wl-rank {
    --rank-w: clamp(116px, 34vw, 156px);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
}

.wl-rank .wl-card { width: var(--rank-w); }
.wl-rail--square .wl-rank .wl-card__media { aspect-ratio: 1 / 1; }
.wl-rail--square .wl-rank__num { height: var(--rank-w); }

/* Same height as the poster, number sits on its bottom edge */
.wl-rank__num {
    position: relative;
    z-index: 1;
    height: calc(var(--rank-w) * 1.5);
    display: flex;
    align-items: flex-end;
    margin-right: -14px;
    font-size: clamp(64px, 18vw, 100px);
    font-weight: 800;
    line-height: .8;
    letter-spacing: -.06em;
    color: var(--bg);
    -webkit-text-stroke: 2px rgba(81, 161, 241, .7);
}

/* Hero slider */
.wl-hero {
    position: relative;
    margin-top: 16px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    font-family: var(--font);
}

.wl-hero__track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.wl-hero__track::-webkit-scrollbar { display: none; }

.wl-slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: flex-end;
    min-height: clamp(320px, 62vw, 460px);
    padding: 24px 20px 52px;
    overflow: hidden;
    isolation: isolate;
}

@media (min-width: 900px) {
    .wl-slide { padding: 40px 44px 60px; }
}

.wl-slide__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.wl-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(10, 13, 18, .96) 10%, rgba(10, 13, 18, .55) 55%, rgba(10, 13, 18, .1));
}

@media (min-width: 900px) {
    .wl-slide::before {
        background:
            linear-gradient(90deg, rgba(10, 13, 18, .92) 15%, rgba(10, 13, 18, .45) 60%, rgba(10, 13, 18, .05)),
            linear-gradient(to top, rgba(10, 13, 18, .8), transparent 50%);
    }
}

.wl-slide__body { max-width: 620px; }

.wl-slide__title {
    margin: 10px 0 0;
    font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wl-hero__dots {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    gap: 6px;
}

@media (min-width: 900px) {
    .wl-hero__dots { left: 44px; bottom: 26px; }
}

.wl-hero__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: width .3s var(--ease), background .3s;
}

.wl-hero__dots button.is-active { width: 26px; background: var(--brand-soft); }

/* ======================================================================
   Home page
   ====================================================================== */

html[data-theme="v2"] .home_content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px 32px;
    align-items: start;
}

@media (min-width: 1100px) {
    html[data-theme="v2"] .home_content { grid-template-columns: minmax(0, 1fr) 300px; }
}

.wl-home { min-width: 0; }

/* The shared right sidebar (holds the home ads) */
html[data-theme="v2"] .home_content .right_sidebar {
    width: auto;
    margin: 32px 0 0;
    padding: 0 !important;
    font-family: var(--font);
}

@media (min-width: 1100px) {
    html[data-theme="v2"] .home_content .right_sidebar { margin-top: 16px; }
}

html[data-theme="v2"] .right_sidebar .my_card_title,
html[data-theme="v2"] .right_sidebar .my_card_title_sm {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0;
    background: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
}

html[data-theme="v2"] .right_sidebar .my_card_title::before,
html[data-theme="v2"] .right_sidebar .my_card_title_sm::before {
    content: "";
    width: 4px;
    height: 1em;
    border-radius: 4px;
    background: linear-gradient(var(--brand-soft), var(--brand));
}

html[data-theme="v2"] .right_sidebar .card {
    margin: 0 0 22px !important;
    padding: 14px !important;
    background: var(--surface) !important;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: none;
    color: var(--text);
}

/* A title inside a card (e.g. Hot Topics) */
html[data-theme="v2"] .right_sidebar .card > .my_card_title_sm { margin-bottom: 12px; }

html[data-theme="v2"] .right_sidebar .card .mt20 { margin-top: 0; }

html[data-theme="v2"] .right_sidebar .social_icons { justify-content: space-between; gap: 8px; padding: 0; }

html[data-theme="v2"] .right_sidebar .social_icons a {
    flex: 1;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 22px;
}

html[data-theme="v2"] .right_sidebar .social_icons a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
html[data-theme="v2"] .right_sidebar .social_icons ion-icon { font-size: 22px; }

html[data-theme="v2"] .right_sidebar .post_tags { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

html[data-theme="v2"] .right_sidebar .post_tags a {
    margin: 0;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
}

html[data-theme="v2"] .right_sidebar .post_tags a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Song / video of the week */
html[data-theme="v2"] .right_sidebar .sidebar_full_post { height: auto; margin: 0; border: 0; }
html[data-theme="v2"] .right_sidebar .sidebar_full_post a { display: block; color: var(--text); }

html[data-theme="v2"] .right_sidebar .sidebar_full_post img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--r-md);
}

html[data-theme="v2"] .right_sidebar .post_info { margin: 0; padding: 10px 2px 0; background: none !important; }
html[data-theme="v2"] .right_sidebar .post_info .post_date { color: var(--brand-soft); font-size: 12px; font-weight: 700; }
html[data-theme="v2"] .right_sidebar .post_info .post_title { padding: 2px 0 0; color: var(--text) !important; font-size: 15px; font-weight: 700; line-height: 1.35; }
html[data-theme="v2"] .right_sidebar .sidebar_full_post a:hover .post_title { color: var(--brand-soft) !important; }

/* Hot topics list */
html[data-theme="v2"] .right_sidebar .narrow_post_list > div + div { border-top: 1px solid var(--line); }

html[data-theme="v2"] .right_sidebar .narrow_post_list a {
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    color: var(--text);
    background: none;
}

html[data-theme="v2"] .right_sidebar .narrow_post_list a img {
    flex: none;
    width: 48px !important;
    height: 48px !important;
    border: 0;
    border-radius: 10px;
    object-fit: cover;
}

html[data-theme="v2"] .right_sidebar .narrow_post_list a .text_context { max-height: none; padding: 0; }

html[data-theme="v2"] .right_sidebar .narrow_post_list a .text_context .title {
    height: auto !important;
    margin: 0;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

html[data-theme="v2"] .right_sidebar .narrow_post_list a .text_context .details {
    position: static;
    height: auto;
    margin-top: 2px !important;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500 !important;
    font-style: normal !important;
    text-align: left;
}

html[data-theme="v2"] .right_sidebar .narrow_post_list a:hover .title { color: var(--brand-soft); }

/* Sidebar ads: centred with breathing room */
html[data-theme="v2"] .right_sidebar .ad:not(:empty),
html[data-theme="v2"] .right_sidebar > ins,
html[data-theme="v2"] .right_sidebar > iframe { display: flex; justify-content: center; margin: 0 0 22px; }

/* ======================================================================
   Listing pages (site_layout + render_post_list_new)
   ====================================================================== */

/* Main column + shared sidebar (holds the listing ads) */
html[data-theme="v2"] #site_layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px 32px;
    align-items: start;
}

@media (min-width: 1100px) {
    html[data-theme="v2"] #site_layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

html[data-theme="v2"] #site_layout .main_content { min-width: 0; font-family: var(--font); }

html[data-theme="v2"] #site_layout .right_sidebar {
    width: auto !important;
    min-width: 0 !important;
    margin: 32px 0 0;
    padding: 0 !important;
    font-family: var(--font);
}

@media (min-width: 1100px) {
    html[data-theme="v2"] #site_layout .right_sidebar { margin-top: 20px; }
}

html[data-theme="v2"] .right_sidebar .social_icons_main { margin-bottom: 22px; }
html[data-theme="v2"] .right_sidebar center { display: flex; justify-content: center; margin-bottom: 22px; }

/* Page title */
html[data-theme="v2"] .main_content .title_bar { margin-top: 6px; }

html[data-theme="v2"] .main_content .title_strip {
    padding: 0;
    color: var(--text);
    text-transform: none;
}

html[data-theme="v2"] .main_content .title_strip .post_title {
    margin: 0;
    font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.12;
    color: var(--text);
    text-transform: capitalize;
}

html[data-theme="v2"] .main_content .title_strip .bold.small { margin-top: 6px; color: var(--muted); font-weight: 600 !important; }
html[data-theme="v2"] .main_content .title_strip .bold.small a { color: var(--brand-soft); }

/* Tag filters: "Show/Hide tags" bar + chip row */
html[data-theme="v2"] #intblockheader {
    margin-top: 18px;
    padding: 0;
    background: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

html[data-theme="v2"] #intblockheader ion-icon { font-size: 15px; color: var(--brand-soft); }
html[data-theme="v2"] #intblockheader .showIcon { color: var(--brand-soft); letter-spacing: .04em; cursor: pointer; }

html[data-theme="v2"] #site_layout .post_tags,
html[data-theme="v2"] .main_content .post_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    text-align: left !important;
}

@media (max-width: 899px) {
    /* One swipeable row on phones instead of a wall of tags */
    html[data-theme="v2"] #tags .post_tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 10px calc(var(--gutter) * -1) 0;
        padding: 0 var(--gutter) 6px;
        scrollbar-width: none;
    }

    html[data-theme="v2"] #tags .post_tags::-webkit-scrollbar { display: none; }
}

html[data-theme="v2"] .main_content .post_tags a {
    flex: none;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

html[data-theme="v2"] .main_content .post_tags a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* "Goto" section picker (category_selector) */
html[data-theme="v2"] .main_content #search_bar_main {
    margin: 18px 0 0;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

html[data-theme="v2"] .main_content #search_bar_main .select::after { display: none; }

html[data-theme="v2"] #page-select {
    width: 220px !important;
    height: 38px;
    padding: 0 34px 0 14px;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-pill);
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238593a3' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center !important;
    -webkit-appearance: none;
    appearance: none;
    color: var(--text) !important;
    font: 600 13px var(--font);
}

/* Movie year tabs (ALL / 2024/5 / TV Shows) as chips */
html[data-theme="v2"] .tab-container {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding: 0;
    background: none;
    border: 0;
}

html[data-theme="v2"] .tab-container .tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text-2);
    font: 700 13px var(--font);
}

html[data-theme="v2"] .tab-container .tab:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Card grid */
.wl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
    margin-top: 22px;
    font-family: var(--font);
}

@media (min-width: 600px) {
    .wl-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 16px; }
    .wl-grid--wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (min-width: 1200px) {
    .wl-grid--poster { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
}

/* Paging (Bulma markup from render_paging.phtml) */
html[data-theme="v2"] .pagination_parent { margin: 36px 0 0; font-family: var(--font); }

html[data-theme="v2"] .pagination_parent .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

html[data-theme="v2"] .pagination_parent .pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    order: 1;
    flex-basis: 100%;
    margin: 0;
}

html[data-theme="v2"] .pagination_parent .pagination-previous,
html[data-theme="v2"] .pagination_parent .pagination-next { order: 2; }

html[data-theme="v2"] .pagination_parent .pagination-link,
html[data-theme="v2"] .pagination_parent .pagination-previous,
html[data-theme="v2"] .pagination_parent .pagination-next,
html[data-theme="v2"] .pagination_parent .pagination-list .disabled span {
    min-width: 40px;
    height: 40px;
    margin: 0;
    padding: 0 14px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--surface) !important;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
}

html[data-theme="v2"] .pagination_parent .pagination-list .disabled span { border: 0; background: none !important; }

html[data-theme="v2"] .pagination_parent .pagination-link:hover,
html[data-theme="v2"] .pagination_parent .pagination-previous:hover,
html[data-theme="v2"] .pagination_parent .pagination-next:hover { border-color: var(--brand); color: var(--text); }

html[data-theme="v2"] .pagination_parent .pagination-link.is-current { background: var(--brand) !important; border-color: var(--brand); color: #fff; }

html[data-theme="v2"] .pagination_parent .pagination-next {
    background: linear-gradient(135deg, var(--brand-hi), var(--brand)) !important;
    border-color: transparent;
    color: #fff;
}

/* SEO line under some listings */
html[data-theme="v2"] .main_content .center_children h2 { margin-top: 24px; color: var(--muted); font-size: 13px; font-weight: 500; text-align: center; }

/* ======================================================================
   Post page (view_post.phtml + view_post_header.phtml)
   ====================================================================== */

html[data-theme="v2"] #view_post { font-family: var(--font); }

html[data-theme="v2"] #view_post .post_content {
    margin-top: 16px;
    padding: 0;
    background: none;
    box-shadow: none;
    color: var(--text);
}

/* The old CSS forces link/span colours inside posts; v2 parts need their own back */
html[data-theme="v2"] #view_post .post_content .wl-title-hero a,
html[data-theme="v2"] #view_post .post_content .wl-title-hero span { color: inherit !important; }
html[data-theme="v2"] #view_post .wl-btn--primary { color: #fff !important; }
html[data-theme="v2"] #view_post .wl-btn--ghost { color: var(--text) !important; }
html[data-theme="v2"] #view_post .wl-card { color: var(--text) !important; }
html[data-theme="v2"] #view_post .wl-see-all { color: var(--brand-soft) !important; }

/* Hero */
.wl-title-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 22px 18px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
}

@media (min-width: 700px) {
    .wl-title-hero { padding: 30px; }
}

.wl-title-hero__bg {
    position: absolute;
    top: -60px; left: -60px;
    z-index: -2;
    width: calc(100% + 120px);
    height: calc(100% + 120px);
    max-width: none;
    object-fit: cover;
    filter: blur(40px) saturate(1.3);
    opacity: .5;
}

.wl-title-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(17, 21, 28, .35), rgba(17, 21, 28, .92) 85%);
}

.wl-title-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    justify-items: center;
    text-align: center;
}

@media (min-width: 700px) {
    .wl-title-hero__grid { grid-template-columns: 200px minmax(0, 1fr); justify-items: start; align-items: end; text-align: left; gap: 32px; }
    .wl-title-hero--wide .wl-title-hero__grid { grid-template-columns: 300px minmax(0, 1fr); }
}

@media (min-width: 1200px) {
    .wl-title-hero__grid { grid-template-columns: 230px minmax(0, 1fr); }
}

.wl-title-poster {
    width: min(150px, 42vw);
    aspect-ratio: 2 / 3;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface-2);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 0 1px var(--line-strong);
}

.wl-title-hero--square .wl-title-poster { aspect-ratio: 1 / 1; width: min(180px, 50vw); }
.wl-title-hero--wide .wl-title-poster { aspect-ratio: 16 / 9; width: min(320px, 100%); }

@media (min-width: 700px) {
    .wl-title-poster,
    .wl-title-hero--square .wl-title-poster,
    .wl-title-hero--wide .wl-title-poster { width: 100%; }
}

.wl-title-poster img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

.wl-title-info { min-width: 0; width: 100%; }
.wl-title-info .wl-eyebrow { text-decoration: none; }

.wl-title-name {
    margin-top: 8px;
    font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    color: #fff;
}

/* Becomes the page's <h1> once the old markup is dropped; beat the old h1 sizes */
html[data-theme="v2"] #view_post h1.wl-title-name { margin: 8px 0 0; font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.7rem); }

.wl-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

.wl-meta-row a { text-decoration: none; }
.wl-meta-row a:hover { color: var(--brand-soft) !important; }
.wl-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }

.wl-title-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

@media (min-width: 700px) {
    .wl-meta-row, .wl-title-tags { justify-content: flex-start; }
}

.wl-imdb,
.wl-user-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px 0 4px;
    border-radius: var(--r-pill);
    background: rgba(10, 13, 18, .6);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

.wl-imdb b { padding: 3px 7px; border-radius: var(--r-pill); background: var(--gold); color: #000; font-size: 11px; }
.wl-user-rating { padding-left: 10px; }
.wl-user-rating .wl-icon { width: 15px; height: 15px; color: var(--gold); }
.wl-user-rating small { color: var(--muted); font-weight: 600; }

.wl-btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.wl-title-hero .wl-actions { justify-content: center; margin-top: 22px; }

@media (min-width: 700px) {
    .wl-title-hero .wl-actions { justify-content: flex-start; }
}

@media (max-width: 699px) {
    .wl-title-hero .wl-actions .wl-btn { flex: 1 1 0; padding: 0 16px; }
}

/* Post text */
html[data-theme="v2"] #view_post .wl-post-body {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 15px;
}

@media (min-width: 900px) {
    html[data-theme="v2"] #view_post .wl-post-body { padding: 26px 28px; }
}

html[data-theme="v2"] #view_post .wl-post-body p {
    margin-bottom: 12px !important;
    line-height: 1.75;
    font-family: var(--font) !important;
}

html[data-theme="v2"] #view_post .wl-post-body span { color: inherit !important; }
html[data-theme="v2"] #view_post .wl-post-body strong,
html[data-theme="v2"] #view_post .wl-post-body b { color: var(--text); }
html[data-theme="v2"] #view_post .wl-post-body a { color: var(--brand-soft) !important; }
html[data-theme="v2"] #view_post .wl-post-body img { border-radius: var(--r-md); }

/* Season pages whose text is just the title: the hero already says it */
html[data-theme="v2"] #view_post .wl-post-body--title-only { display: none; }

/* Download block (shared markup; the ad-blocker check measures #dl-btn-wrapper) */
html[data-theme="v2"] #view_post .xfile_attachment_wrapper {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(16, 110, 204, .12), var(--surface) 60%);
    border: 1px solid rgba(81, 161, 241, .25);
}

html[data-theme="v2"] #dl-btn-wrapper { scroll-margin-top: calc(var(--header-h) + 24px); }

html[data-theme="v2"] #dl-btn-wrapper .ad-slot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

html[data-theme="v2"] #dl-btn-wrapper .ad-slot > div[style*="yellow"] {
    flex-basis: 100%;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: var(--r-md);
    background: rgba(245, 197, 24, .12) !important;
    color: #f3d77b !important;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

html[data-theme="v2"] #dl-btn-wrapper .button {
    height: 52px;
    margin: 0 !important;
    padding: 0 24px;
    border: 0;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--brand-hi), var(--brand)) !important;
    box-shadow: 0 8px 24px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
    color: #fff !important;
    font: 700 16px var(--font);
}

html[data-theme="v2"] #dl-btn-wrapper .button span { color: #fff !important; }
html[data-theme="v2"] #dl-btn-wrapper .button:hover { box-shadow: 0 10px 32px rgba(33, 135, 238, .55); }

html[data-theme="v2"] #dl-btn-wrapper .button + .button {
    background: rgba(255, 255, 255, .08) !important;
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

html[data-theme="v2"] #dl-btn-wrapper .ad-slot > p { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; }
html[data-theme="v2"] #dl-btn-wrapper .ad-slot > p a,
html[data-theme="v2"] #dl-btn-wrapper .ad-slot > p a span { color: var(--muted) !important; }

html[data-theme="v2"] #view_post .attachment_info iframe { border-radius: var(--r-md); }

/* Full album download (view_post_children.phtml, albums with a zip) */
html[data-theme="v2"] #view_post .file_attachment_wrapper {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(16, 110, 204, .12), var(--surface) 60%);
    border: 1px solid rgba(81, 161, 241, .25);
    scroll-margin-top: calc(var(--header-h) + 24px);
    text-align: center;
}

html[data-theme="v2"] #view_post .file_attachment_wrapper .title_strip {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

html[data-theme="v2"] #view_post .file_attachment_wrapper .attachment_info {
    padding: 0;
    background: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

/* The button carries an inline color !important, so its text and icons are coloured instead */
html[data-theme="v2"] #view_post .file_attachment_wrapper .button {
    width: auto;
    height: 52px;
    margin: 16px auto 0 !important;
    padding: 0 26px;
    display: inline-flex;
    gap: 6px;
    border: 0;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--brand-hi), var(--brand)) !important;
    box-shadow: 0 8px 24px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
    font: 700 16px var(--font);
}

html[data-theme="v2"] #view_post .file_attachment_wrapper .button span,
html[data-theme="v2"] #view_post .file_attachment_wrapper .button ion-icon { color: #fff !important; }
html[data-theme="v2"] #view_post .file_attachment_wrapper .button span:nth-child(3) { opacity: .8; font-weight: 600; }
html[data-theme="v2"] #view_post .file_attachment_wrapper .button:hover { box-shadow: 0 10px 32px rgba(33, 135, 238, .55); }

/* Notices (ad-blocker message, comment rules) */
html[data-theme="v2"] #view_post .warning-msg {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: var(--r-md);
    background: rgba(245, 197, 24, .1);
    border: 1px solid rgba(245, 197, 24, .25);
    color: #f3d77b;
    font-size: 13.5px;
}

html[data-theme="v2"] #view_post .warning-msg a { color: var(--brand-soft) !important; }

/* Tags under the post */
html[data-theme="v2"] #view_post .post_tags { display: block; margin-top: 20px; }
html[data-theme="v2"] #view_post .post_tags .title_strip { padding: 0; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
html[data-theme="v2"] #view_post .post_tags > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-theme="v2"] #view_post .post_tags a { color: var(--text-2) !important; }
html[data-theme="v2"] #view_post .post_tags a:hover { color: #fff !important; }

/* Previous / next part */
html[data-theme="v2"] .previous_and_next_post { left: 0; gap: 10px; margin-top: 20px; }

html[data-theme="v2"] .previous_and_next_post a {
    height: 68px;
    margin: 0;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
}

html[data-theme="v2"] .previous_and_next_post a:hover { background: var(--surface-2); border-color: var(--brand); }
html[data-theme="v2"] .previous_and_next_post a .details { color: var(--muted); }
html[data-theme="v2"] .previous_and_next_post a .details .post_title { color: var(--text); font-weight: 700; }

/* Rating */
html[data-theme="v2"] #view_post > .my_card_title_sm {
    margin-top: 28px !important;
    padding: 0;
    background: none;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
}

html[data-theme="v2"] #view_post .wl_rating { background: var(--brand); border-radius: var(--r-md); }

/* Share buttons and divider */
html[data-theme="v2"] #view_post hr { background: var(--line); height: 1px; }

/* Inline flex rows in the post (share buttons, rating) may wrap on phones */
html[data-theme="v2"] #view_post div[style*="display: flex"] { flex-wrap: wrap; }

html[data-theme="v2"] #view_post .button.is-small {
    height: 34px;
    margin: 4px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text-2) !important;
    font: 600 13px var(--font);
}

html[data-theme="v2"] #view_post .button.is-small:hover { background: var(--brand); border-color: var(--brand); color: #fff !important; }

/* Comments */
html[data-theme="v2"] #comments { scroll-margin-top: calc(var(--header-h) + 24px); }
html[data-theme="v2"] #view_post div[style*="#121212"] { border-radius: var(--r-lg); background: var(--surface) !important; border: 1px solid var(--line); }

html[data-theme="v2"] #view_post .related_posts .title_strip {
    padding: 0;
    margin: 6px 0 14px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    text-transform: none;
}

html[data-theme="v2"] #view_post .comment-body,
html[data-theme="v2"] #view_post .comment-sub-body { border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }

html[data-theme="v2"] #view_post .cmt-text-input {
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font);
}

html[data-theme="v2"] #view_post .cmt-text-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }

html[data-theme="v2"] #view_post .cmt-submit-btn {
    padding: 14px;
    border: 0;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--brand-hi), var(--brand));
    font-family: var(--font);
}

/* Episodes / tracks list (view_post_children.phtml) */
.wl-children { scroll-margin-top: calc(var(--header-h) + 24px); }

.wl-children__count {
    margin-left: 4px;
    padding: 2px 9px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.wl-child-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.wl-child {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 12px 10px 10px;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s var(--ease);
}

@media (min-width: 600px) {
    .wl-child { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 12px 16px 12px 12px; }
}

.wl-child:hover { color: var(--text); background: var(--surface-2); border-color: rgba(81, 161, 241, .45); }

.wl-child__thumb {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-2);
}

.wl-child__thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

.wl-child__body { min-width: 0; display: grid; gap: 4px; }

.wl-child__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wl-child__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}

.wl-child__meta .wl-badge { padding: 2px 7px; font-size: 10px; }

.wl-child__go {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-tint);
    color: var(--brand-soft);
    transition: background .2s, color .2s;
}

.wl-child__go .wl-icon { width: 18px; height: 18px; }
.wl-child:hover .wl-child__go { background: var(--brand); color: #fff; }
.wl-child:hover .wl-child__title { color: var(--brand-soft); }

/* ======================================================================
   Docs pages (view_doc.phtml: terms, privacy, DMCA, advertise…)
   ====================================================================== */

html[data-theme="v2"] .wl-doc {
    max-width: 860px;
    margin: 20px auto 0;
    padding: 0;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: none;
    color: var(--text-2);
    font-family: var(--font);
}

html[data-theme="v2"] .wl-doc .post_content {
    padding: 26px 20px 32px;
    background: none;
    color: var(--text-2);
    font-size: 15.5px;
    line-height: 1.75;
}

@media (min-width: 700px) {
    html[data-theme="v2"] .wl-doc .post_content { padding: 40px 48px 48px; }
}

html[data-theme="v2"] .wl-doc h1 {
    margin: 0;
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: #fff;
    text-transform: capitalize;
}

html[data-theme="v2"] .wl-doc .h_divider {
    height: 4px;
    width: 56px;
    margin: 18px 0 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--brand-soft), var(--brand));
}

html[data-theme="v2"] .wl-doc h2,
html[data-theme="v2"] .wl-doc h3,
html[data-theme="v2"] .wl-doc h4 {
    margin: 30px 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
}

html[data-theme="v2"] .wl-doc p { margin: 0 0 14px; }
html[data-theme="v2"] .wl-doc strong,
html[data-theme="v2"] .wl-doc b { color: var(--text); }

/* Numbered section titles written as bold lines ("1. THIRD PARTY AGREEMENTS") */
html[data-theme="v2"] .wl-doc p > strong:first-child { display: inline-block; margin-top: 10px; }

/* Doc text was pasted from a light editor with inline colours (near-black, pure blue…)
   that disappear on the dark card: use the theme colours instead */
html[data-theme="v2"] .wl-doc .post_content [style*="color"],
html[data-theme="v2"] .wl-doc .post_content font[color] { color: inherit !important; }
html[data-theme="v2"] .wl-doc .post_content [style*="background"] { background: transparent !important; }

html[data-theme="v2"] .wl-doc .post_content a[href] { color: var(--brand-soft) !important; text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="v2"] .wl-doc .post_content a[href]:hover { color: #fff !important; }

html[data-theme="v2"] .wl-doc ul,
html[data-theme="v2"] .wl-doc ol { margin: 0 0 18px 22px; }
html[data-theme="v2"] .wl-doc li { margin-top: 6px; }
html[data-theme="v2"] .wl-doc li::marker { color: var(--brand-soft); }

html[data-theme="v2"] .wl-doc img { max-width: 100%; height: auto; border-radius: var(--r-md); }

html[data-theme="v2"] .wl-doc table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
html[data-theme="v2"] .wl-doc th,
html[data-theme="v2"] .wl-doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
html[data-theme="v2"] .wl-doc th { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
    .wl-header *, .wl-tabbar *, .wl-sheet *, .wl-footer * { transition: none !important; animation: none !important; }
}
