/* ==========================================================================
   1DDL site layer — typography, hubs (movie / TV), cards, comments.
   Loaded after app.css; keeps the existing palette (#004464 / #0095da / #e7e7e8).
   ========================================================================== */

:root {
    --c-navy: #004464;
    --c-blue: #0095da;
    --c-blue-dark: #0077b0;
    --c-ink: #1f2328;
    --c-muted: #6b7280;
    --c-line: #d8dbe0;
    --c-soft: #f3f5f7;
    --c-panel: #eeeff0;
    --c-red: #e53945;
    --c-4k: #7c3aed;
    --c-1080: #0077b0;
    --c-720: #0f9d58;
    --c-sd: #6b7280;
    --radius: 6px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font) !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.article .content,
.article .item-content,
.article .item-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-ink);
}

.article .title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
}
.article .title a { color: var(--c-ink); }
.article .title a:hover { color: var(--c-blue-dark); }

.info-bar { font-size: 13px; border-radius: var(--radius); }
.extra-content .detail .link { font-size: 13px; }

.article a:focus-visible,
.hub-page a:focus-visible,
.hub-page button:focus-visible,
.hub-page summary:focus-visible {
    outline: 2px solid var(--c-blue);
    outline-offset: 2px;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 12px;
    color: var(--c-muted);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; color: #a0a6ad; }
.breadcrumbs a { color: var(--c-blue-dark); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Hub header ---------- */
.hub-page { color: var(--c-ink); font-size: 14px; line-height: 1.55; }
.hub-header {
    display: grid;
    grid-template-columns: minmax(0, 260px) 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 18px;
}
.hub-poster img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.hub-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 10px;
    color: var(--c-ink);
}
.hub-year { font-weight: 500; color: var(--c-muted); }

.hub-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.hub-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px 14px;
    margin: 0 0 12px;
    padding: 10px 12px;
    background: var(--c-soft);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
}
.hub-facts dt {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-muted);
}
.hub-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 13px; }

.hub-genres, .hub-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.hub-tags { margin-top: 18px; align-items: center; }
.hub-tags-label { font-weight: 600; font-size: 13px; margin-right: 4px; }
.genre-chip {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 999px;
    background: #e8f4fb;
    color: var(--c-navy);
    border: 1px solid #c7e3f3;
    text-decoration: none;
}
a.genre-chip:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); text-decoration: none; }

.hub-links { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-links a {
    background: var(--c-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
}
.hub-links a:hover { background: var(--c-blue); color: #fff; text-decoration: none; }

.hub-section-title {
    font-size: 17px;
    font-weight: 700;
    margin: 22px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--c-blue);
    color: var(--c-ink);
}
.hub-plot p { margin: 0; }

/* ---------- Quality badges ---------- */
.q-badge {
    display: inline-block;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    background: var(--c-sd);
    text-decoration: none;
    line-height: 1.4;
}
a.q-badge:hover { color: #fff; filter: brightness(1.1); text-decoration: none; }
.q-badge-sm { font-size: 10px; padding: 1px 6px; }
.q-2160p { background: var(--c-4k); }
.q-1080p { background: var(--c-1080); }
.q-720p { background: var(--c-720); }
.q-sd { background: var(--c-sd); }
.q-other { background: #9aa1a9; }

/* ---------- Release groups ---------- */
.rel-quality {
    margin: 0 0 18px;
    scroll-margin-top: 70px;
    padding: 12px 12px 4px;
    border: 2px solid var(--c-line);
    border-radius: 8px;
    background: #fafbfc;
}
.rel-quality-2160p { border-color: var(--c-4k); background: linear-gradient(180deg, rgba(123, 47, 196, .06), transparent 48px); }
.rel-quality-1080p { border-color: var(--c-1080); background: linear-gradient(180deg, rgba(0, 149, 218, .06), transparent 48px); }
.rel-quality-720p { border-color: var(--c-720); background: linear-gradient(180deg, rgba(46, 160, 67, .06), transparent 48px); }
.rel-quality-other, .rel-quality-sd { border-color: #9aa1a9; }
.rel-quality-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 14px;
}
.rel-count { font-size: 12px; font-weight: 500; color: var(--c-muted); }

.rel {
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    padding: 10px 12px;
    margin-bottom: 8px;
    scroll-margin-top: 70px;
}
.rel.is-latest { border-color: var(--c-red); box-shadow: 0 0 0 2px rgba(229, 57, 69, .12); }
.rel.rel-target { border-color: var(--c-red); box-shadow: 0 0 0 2px rgba(229, 57, 69, .15); }
.rel-name {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 600;
    word-break: break-all;
    color: var(--c-ink);
}
.rel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 8px; }
.rel-chip {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 4px;
    background: var(--c-soft);
    border: 1px solid var(--c-line);
    color: #374151;
}
.rel-chip-hdr { background: #fff7e6; border-color: #f5d48a; }
.rel-date { font-size: 11px; color: var(--c-muted); margin-left: auto; }

.rel-hosters { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.hoster { display: inline-flex; align-items: stretch; }
.hoster-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--c-blue);
    color: #fff !important;
    font-weight: 700;
    font-size: 12.5px;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none !important;
    cursor: pointer;
    list-style: none;
}
.hoster-btn::-webkit-details-marker { display: none; }
.hoster-btn:hover { background: var(--c-blue-dark); }
.hoster-btn small { font-weight: 500; opacity: .85; font-size: 11px; }
.hoster-single .hoster-btn { border-radius: 4px 0 0 4px; }
.hoster-single .hoster-btn:only-child { border-radius: 4px; }
.hoster-premium {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 8px;
    background: #ffb400;
    color: #3b2a00 !important;
    border-radius: 0 4px 4px 0;
    text-decoration: none !important;
}
.hoster-premium:hover { background: #ffc633; }
.hoster-multi { display: block; flex: 0 0 auto; }
.hoster-multi[open] { flex: 1 1 100%; }
.hoster-multi[open] > .hoster-btn { border-radius: 4px 4px 0 0; }
.hoster-multi .hoster-btn::after { content: "▾"; font-size: 10px; margin-left: 2px; }
.hoster-multi[open] .hoster-btn::after { content: "▴"; }
.hoster-links {
    margin: 0;
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--c-line);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    background: var(--c-soft);
    font-size: 12px;
}
.hoster-links li { word-break: break-all; padding: 1px 0; }
.hoster-links a { color: var(--c-blue-dark); }
.hoster-multi .hoster-premium { border-radius: 4px; margin-top: 6px; padding: 4px 8px; display: inline-block; }
.rel-raw { font-size: 12px; overflow-wrap: anywhere; }

/* ---------- TV accordion ---------- */
.tv-accordion { margin-top: 8px; }
.tv-acc-item { margin: 0 0 6px; }
.tv-acc-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: var(--c-panel);
    color: var(--c-ink);
    padding: 9px 12px;
    font: 700 14px/1.3 var(--font);
}
.tv-acc-toggle:hover { background: #e4e7ea; }
.tv-acc-toggle[aria-expanded="true"] { border-color: var(--c-blue); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tv-acc-icon {
    flex: 0 0 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--c-blue);
    position: relative;
}
.tv-acc-icon::before, .tv-acc-icon::after {
    content: "";
    position: absolute;
    left: 5px; right: 5px; top: 9px;
    height: 2px;
    background: #fff;
}
.tv-acc-icon::after { transform: rotate(90deg); transition: transform .15s; }
.tv-acc-toggle[aria-expanded="true"] .tv-acc-icon::after { transform: rotate(0); }
.tv-acc-label { flex: 1 1 auto; }
.tv-acc-sublabel { font-size: 12px; font-weight: 500; color: var(--c-muted); }
.tv-acc-badges { display: inline-flex; gap: 4px; }
.tv-ep-title { font-weight: 500; color: #374151; }
.tv-acc-panel {
    border: 1px solid var(--c-line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: #fafbfc;
    padding: 10px;
}
.tv-acc-episode > .tv-acc-toggle { background: #fff; font-size: 13px; }
.tv-acc-episode > .tv-acc-toggle[aria-expanded="true"] { background: #eef6fb; }
.tv-acc-episode.is-latest > .tv-acc-toggle { border-color: var(--c-red); background: #fff5f5; }
.tv-acc-episode.is-latest > .tv-acc-panel { border-color: var(--c-red); background: #fffafa; }
.tv-latest-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    background: var(--c-red);
    border-radius: 3px;
    vertical-align: middle;
}
.tv-episode-description { margin: 0 0 10px; color: #374151; font-size: 13px; }
.hub-loading { margin: 6px 0; color: var(--c-muted); font-size: 13px; }
.tv-more {
    display: block;
    width: 100%;
    margin: 4px 0 0;
    padding: 8px;
    border: 1px dashed var(--c-blue);
    border-radius: var(--radius);
    background: #fff;
    color: var(--c-blue-dark);
    font: 600 13px var(--font);
    cursor: pointer;
}
.tv-more:hover { background: #eef6fb; }

/* ---------- Hub footer: promo, related ---------- */
.hub-promo {
    margin: 18px 0 0;
    padding: 10px 12px;
    background: #fff8e6;
    border: 1px solid #f5d48a;
    border-radius: var(--radius);
    font-size: 13px;
}
.hub-promo a { margin-left: 8px; font-weight: 600; color: var(--c-navy); }
.hub-related-more { margin: 12px 0 0; font-size: 13px; color: var(--c-muted); }
.hub-related-more a { font-weight: 600; color: var(--c-blue-dark); }

/* ---------- Hub grid (similar titles, genre pages) ---------- */
.hub-grid { display: grid; gap: 16px 14px; align-items: stretch; }
.hub-grid-movie { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.hub-grid-tv { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.hub-tile { display: flex; flex-direction: column; text-decoration: none !important; color: var(--c-ink); min-width: 0; height: 100%; }
.hub-tile-img {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-panel);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    width: 100%;
}
.hub-grid-movie .hub-tile-img { aspect-ratio: 2 / 3; }
.hub-grid-tv .hub-tile-img { aspect-ratio: 500 / 120; }
.hub-tile-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.hub-tile:hover .hub-tile-img img { transform: scale(1.04); }
.hub-grid-movie .hub-tile-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.6em;
}
.hub-tile-rating {
    position: absolute;
    top: 6px; right: 6px;
    background: rgba(0, 0, 0, .75);
    color: #ffd54a;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}
.hub-tile-title { font-size: 13px; font-weight: 700; line-height: 1.3; margin-top: 6px; }
.hub-tile:hover .hub-tile-title { color: var(--c-blue-dark); }
.hub-tile-meta { font-size: 11.5px; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px; }
.hub-pagination { margin-top: 20px; }

/* ---------- Notice on grouped single-release pages ---------- */
.hub-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 12px;
    padding: 10px 14px;
    background: #e8f4fb;
    border: 1px solid #b9dcf0;
    border-left: 4px solid var(--c-blue);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--c-ink);
}
.hub-notice-btn {
    margin-left: auto;
    background: var(--c-blue);
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none !important;
}

/* ---------- Feed cards (movie / TV hubs in listings) ---------- */
.hub-card { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.hub-card .hub-card-poster { display: block; }
.hub-card .title { margin: 2px 0 10px; font-size: 21px; }
.hub-card-tv .title { margin-bottom: 6px; }
.hub-card.hub-card-tv { grid-template-columns: 1fr; gap: 12px; }
.hub-card.hub-card-tv .hub-card-poster { display: flex; justify-content: center; }
.hub-card.hub-card-tv .hub-card-poster img { display: block; width: 500px; max-width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 3px 12px rgba(0, 0, 0, .18); margin: 0 auto; }
.hub-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--c-muted); margin-bottom: 8px; }
.hub-card-tv .hub-card-top { margin-bottom: 10px; }
.hub-card-tv .title + .hub-card-top { margin-top: 2px; }
.hub-card-kind { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-navy); background: #e8f4fb; padding: 2px 7px; border-radius: 3px; }
.hub-card-rating { font-weight: 700; color: #b7791f; }
.hub-card-genres a { color: var(--c-blue-dark); }
.hub-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--c-muted); margin: 0 0 8px; }
.hub-card-q { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.hub-card-latest {
    display: block;
    margin: 4px 0 10px;
    padding: 8px 12px 9px;
    background: #fff5f5;
    border: 1px solid #f6c9cd;
    border-left: 4px solid var(--c-red);
    border-radius: 6px;
    color: var(--c-ink) !important;
    text-decoration: none !important;
    transition: background .15s, box-shadow .15s;
}
.hub-card-latest:hover { background: #ffecee; box-shadow: 0 2px 8px rgba(229, 57, 69, .15); }
.hub-card-latest-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.latest-pill {
    background: var(--c-red);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
}
.hub-card-latest:not(.is-fresh) .latest-pill { background: #8c2a33; }
.hub-card-latest.is-fresh .latest-pill { animation: latest-pulse 2s ease-in-out 3; }
@keyframes latest-pulse { 50% { box-shadow: 0 0 0 4px rgba(229, 57, 69, .25); } }
.latest-ep { font-weight: 800; font-size: 14px; color: #8c1d27; }
.latest-when { font-size: 12px; color: #7a4b50; margin-left: auto; }
.latest-name {
    display: block;
    margin-top: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-ink);
    overflow-wrap: anywhere;
}
.hub-card-plot { font-size: 13.5px; line-height: 1.55; color: #374151; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hub-card-cta {
    display: inline-block;
    background: var(--c-blue);
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none !important;
}
.hub-card-cta:hover { background: var(--c-blue-dark); }

/* ---------- Comments ---------- */
.hub-comments { margin-top: 28px; color: var(--c-ink); scroll-margin-top: 20px; }
.hub-comments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 800;
    color: var(--c-ink) !important;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--c-blue);
}
.hub-comments-count {
    display: inline-block;
    min-width: 26px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--c-blue);
    color: #fff;
    border-radius: 999px;
    padding: 2px 9px;
}
.hub-comments-note, .hub-comments-empty { font-size: 13px; color: var(--c-muted); margin: 0 0 12px; }
.hub-comments .comment-list, .hub-comments .comment-replies { list-style: none; margin: 0; padding: 0; }
.hub-comments .comment-list { margin-bottom: 18px; }
.hub-comments .commentItem { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--c-line); }
.hub-comments .comment-list > .commentItem:first-child { border-top: 0; }
.comment-avatar {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: #dbe7ef;
    color: var(--c-navy);
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.commentItem.is-staff > .comment-avatar { background: var(--c-navy); color: #fff; }
.hub-comments .comment-body { flex: 1 1 auto; min-width: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; }
.comment-author { font-weight: 700; color: var(--c-ink); }
.comment-role { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 3px; color: #fff; }
.comment-role-admin { background: #990909; }
.comment-role-editor { background: #2155b5; }
.comment-time { font-size: 12px; color: var(--c-muted); }
.hub-comments .commentContent { font-size: 14px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; margin-top: 3px; }
.hub-comments .comment-actions { display: flex; gap: 14px; margin-top: 4px; }
.hub-comments .comment-actions button {
    background: none;
    border: 0;
    padding: 0;
    font: 600 12px var(--font);
    color: var(--c-blue-dark);
    cursor: pointer;
}
.hub-comments .comment-actions button:hover { text-decoration: underline; }
.hub-comments .comment-replies { margin-top: 6px; padding-left: 14px; border-left: 2px solid var(--c-line); }
.hub-comments .comment-replies .commentItem { padding: 10px 0; }
.hub-comments .comment-replies .comment-avatar { flex-basis: 28px; height: 28px; font-size: 12px; }
.comments-more {
    display: block;
    width: 100%;
    margin: -8px 0 18px;
    padding: 8px;
    border: 1px dashed var(--c-blue);
    border-radius: var(--radius);
    background: #fff;
    color: var(--c-blue-dark);
    font: 600 13px var(--font);
    cursor: pointer;
}
.comments-more:hover { background: #eef6fb; }
.reply-form { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.comment-form-wrap { background: var(--c-soft); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px; }
.comment-form-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--c-ink); }
.comment-login { font-size: 13px; margin: 0 0 10px; color: var(--c-muted); }
.hub-comments textarea, .hub-comments input[type=text], .hub-comments input[type=email] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #b8bec6;
    border-radius: var(--radius);
    background: #fff;
    font: 14px/1.5 var(--font);
    color: var(--c-ink);
}
.hub-comments textarea { min-height: 110px; margin: 0 0 10px; resize: vertical; }
.hub-comments textarea.reply-box { min-height: 80px; margin: 0; }
.comment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.comment-fields label { font-size: 12px; font-weight: 600; margin: 0; }
.comment-fields label span { font-weight: 400; color: var(--c-muted); }
.comment-submit {
    background: var(--c-blue);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 8px 18px;
    font: 700 13px var(--font);
    cursor: pointer;
    margin-top: 8px;
}
.comment-submit:hover { background: var(--c-blue-dark); }
.comment-submit:disabled { opacity: .6; }

.hub-comments-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-navy) !important;
    background: #e8f4fb;
    border: 1px solid #c7e3f3;
    border-radius: 999px;
    padding: 4px 12px;
    text-decoration: none !important;
    white-space: nowrap;
}
.hub-comments-link:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff !important; }

.hub-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.hub-topline .hub-badges, .hub-topline .hub-genres { margin-bottom: 0; }
.rel-author { color: var(--c-blue-dark); font-weight: 600; }

/* ---------- TV header: banner at full size ---------- */
.hub-header.hub-header-tv { grid-template-columns: 1fr; gap: 14px; }
.hub-banner img {
    display: block;
    width: 500px;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

/* ---------- Layout: content + right sidebar ---------- */
.container { max-width: 1280px !important; }
/* Space below the site nav. */
.section {
    padding-top: 24px;
    padding-bottom: 28px;
}
/* Title / filters sit above the two columns so posts + sidebar share one top line. */
.page-header {
    margin: 0 0 18px;
}
.page-header .breadcrumbs { margin: 0 0 10px; }
.page-header .page-heading { margin: 0 0 12px; }
.page-header .quality-bar { margin: 0 0 10px; }
.page-header .genre-bar { margin: 0; }

.main-page.main-page-wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px 24px;
    align-items: start;
    margin-top: 0;
}
.main-page-wide .wrap-main-content {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: none;
    margin: 0;
    padding-top: 0;
}
/* Posts column and sidebar start on the same row. */
.main-page-wide > .wrap-main-content > :first-child,
.main-page-wide > .site-sidebar > :first-child { margin-top: 0; }

.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    align-self: start;
    margin: 0;
    padding: 0;
}
.sb-widget { background: #fff; border-radius: 8px; padding: 14px 16px 16px; box-shadow: 0 2px 12px rgba(0, 0, 0, .25); color: var(--c-ink); }
.sb-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--c-blue);
    color: var(--c-ink);
}
.sb-title a { color: inherit !important; text-decoration: none !important; }
.sb-title a::after { content: " ›"; color: var(--c-blue); }
.sb-posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.sb-poster { display: block; color: var(--c-ink) !important; text-decoration: none !important; min-width: 0; }
.sb-poster:hover .sb-poster-title { color: var(--c-blue-dark); }
.sb-poster-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.sb-list { list-style: none; margin: 0; padding: 0; }
.sb-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--c-line); }
.sb-list li:first-child { border-top: 0; padding-top: 0; }
.sb-list a { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--c-ink); }
.sb-list a:hover { color: var(--c-blue-dark); }
.sb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--c-muted); }
.sb-ep { background: var(--c-navy); color: #fff; font-weight: 700; font-size: 10.5px; padding: 0 6px; border-radius: 3px; }
.sb-star { color: #b7791f; font-weight: 700; }
.sb-votes { color: var(--c-muted); font-weight: 600; margin-right: 4px; }
.sb-ranked { counter-reset: sbrank; }
.sb-ranked li { counter-increment: sbrank; position: relative; padding-left: 32px; min-height: 30px; }
.sb-ranked li::before {
    content: counter(sbrank);
    position: absolute;
    left: 0; top: 8px;
    width: 23px; height: 23px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #e8f4fb;
    color: var(--c-navy);
    font-weight: 800;
    font-size: 12px;
}
.sb-ranked li:first-child::before { top: 0; background: var(--c-blue); color: #fff; }
.sb-sub { margin: 10px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c-muted); }
.sb-sub:first-of-type { margin-top: 0; }
.sb-browse-block + .sb-browse-block {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--c-line);
}
.sb-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sb-chips a { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #e8f4fb; border: 1px solid #c7e3f3; color: var(--c-navy); text-decoration: none; }
.sb-chips a:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.sb-chips a.is-active {
    background: #fff;
    border: 2px solid var(--c-blue);
    color: var(--c-navy);
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(0, 149, 218, .15);
}
.sb-chips a.sb-chip-all {
    background: #fff;
    border-color: var(--c-navy);
    font-weight: 800;
}
.sb-follow-links { display: flex; gap: 8px; }
.sb-follow-links a { flex: 1 1 0; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--c-line); border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--c-ink); text-decoration: none; }
.sb-follow-links a:hover { border-color: var(--c-blue); color: var(--c-blue-dark); }
.sb-follow-links img { border-radius: 50%; }

/* ---------- Poster frame (no logo overlay) ---------- */
.poster-frame {
    position: relative;
    display: block;
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #0b1a24;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}
.poster-frame > img { display: block; width: 100%; height: auto; }
.poster-brand { display: none !important; }
.poster-frame-sm { border-radius: 6px; }
.hub-grid-movie .hub-tile-img {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--c-panel);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.hub-tile-img .poster-frame { height: 100%; box-shadow: none; border-radius: 0; }
.hub-tile-img .poster-frame > img { height: 100%; width: 100%; object-fit: cover; }
.hub-grid-movie .hub-tile-rating { top: 8px; right: 8px; z-index: 1; }

/* ---------- Hub hero (single movie / TV show) ---------- */
.hub-hero {
    position: relative;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 0 0 22px;
    padding: 22px;
    border-radius: 10px;
    color: #fff;
    background: #0b1a24;
    overflow: hidden;
    isolation: isolate;
}
.hub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(6, 16, 24, .96) 0%, rgba(6, 16, 24, .86) 45%, rgba(6, 16, 24, .7) 100%), var(--hero-bg, none) center 25% / cover no-repeat;
}
.hub-hero-tv { grid-template-columns: minmax(0, 1fr); }
.hub-hero .hub-title { color: #fff; font-size: 30px; margin: 0 0 6px; }
.hub-hero .hub-year { color: #9fb3c2; }
.hub-tagline { margin: 0 0 12px; font-style: italic; color: #c9d6df; font-size: 15px; }
.hub-metaline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 14px; font-size: 14px; color: #dbe4ea; }
.hub-metaline > span + span::before { content: "•"; margin-right: 14px; color: #5f7a8c; }
.hub-rating { font-size: 16px; font-weight: 800; color: #ffd54a; }
.hub-rating small { font-size: 12px; color: #c9d6df; font-weight: 600; }
.hub-status { font-weight: 700; }
.hub-status-returning-series, .hub-status-in-production { color: #6ee7a0; }
.hub-status-ended, .hub-status-canceled { color: #f8a5ac; }
.hub-hero .hub-genres { margin-bottom: 14px; }
.hub-hero .genre-chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.hub-hero a.genre-chip:hover { background: var(--c-blue); border-color: var(--c-blue); }
.hub-available { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; }
.hub-available-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9fb3c2; margin-right: 4px; }
.hub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hub-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    transition: filter .15s, transform .15s;
}
.hub-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.hub-btn-primary { background: var(--c-blue); color: #fff !important; box-shadow: 0 4px 14px rgba(0, 149, 218, .4); }
.hub-btn-trailer { background: rgba(255, 255, 255, .12); color: #fff !important; border: 1px solid rgba(255, 255, 255, .35); }
.hub-hero .hub-comments-link { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff !important; }
.hub-hero .hub-comments-link:hover { background: rgba(255, 255, 255, .12); }
.hub-hero .hub-banner img { width: 500px; max-width: 100%; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.hub-hero-tv .hub-banner { margin-bottom: 2px; }

/* ---------- Overview: plot + info ---------- */
.hub-overview { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; align-items: start; margin-bottom: 8px; }
.hub-overview .hub-section-title { margin-top: 0; }
.hub-plot-text { margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; color: #2b3138; }
.hub-plot-text.is-empty { color: var(--c-muted); font-style: italic; font-size: 14px; }
.hub-credit { margin: 0 0 6px; font-size: 14px; }
.hub-credit span { display: inline-block; min-width: 82px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c-muted); }
.hub-info { margin: 0; padding: 4px 14px; background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 8px; }
.hub-info > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--c-line); font-size: 13px; }
.hub-info > div:first-child { border-top: 0; }
.hub-info dt { color: var(--c-muted); font-weight: 600; }
.hub-info dd { margin: 0; font-weight: 700; text-align: right; color: var(--c-ink); }
.hub-info .hub-info-links { justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
.hub-info-links a { background: var(--c-navy); color: #fff !important; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px; text-decoration: none !important; }
.hub-info-links a:hover { background: var(--c-blue); }

/* ---------- Cast ---------- */
.hub-cast-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px 10px; list-style: none; margin: 0; padding: 0; }
.hub-cast-item { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.hub-cast-item img, .hub-cast-initial {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    background: #dfe5ea;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--c-line);
    margin-bottom: 7px;
}
.hub-cast-initial { display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #8a98a5; }
.hub-cast-name { font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--c-ink); }
.hub-cast-role { font-size: 12px; line-height: 1.25; color: var(--c-muted); margin-top: 2px; }

/* ---------- Trailer ---------- */
.trailer-facade {
    position: relative;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.trailer-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s; }
.trailer-facade:hover img { opacity: 1; }
.trailer-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-play {
    position: absolute;
    left: 50%; top: 50%;
    width: 74px; height: 52px;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    background: rgba(229, 57, 69, .92);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .45);
    transition: transform .15s;
}
.trailer-play::after { content: ""; position: absolute; left: 30px; top: 15px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.trailer-facade:hover .trailer-play { transform: translate(-50%, -50%) scale(1.08); }
.trailer-facade:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; }
.page-heading {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    padding: 0;
    line-height: 1.35;
    letter-spacing: -.01em;
}
.genre-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.genre-chip.is-active { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.no-results-form { display: flex; gap: 8px; max-width: 480px; margin-top: 12px; }
.no-results-form input { flex: 1; padding: 8px 10px; border: 1px solid #b8bec6; border-radius: var(--radius); font: 14px var(--font); }
.no-results-form button { background: var(--c-blue); color: #fff; border: 0; border-radius: var(--radius); padding: 8px 16px; font-weight: 700; }

/* ---------- Top navigation ---------- */
#wpadminbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    height: 32px;
    padding: 0 1em;
    background: #23282d;
    color: #ccc;
    font-size: 13px;
    position: relative;
    z-index: 1000;
}
#wpadminbar a { color: #fff; text-decoration: none; margin-right: 1.2em; }
#wpadminbar form { display: inline; margin: 0 0 0 1em; }
#wpadminbar button { background: none; border: 0; color: #fff; cursor: pointer; }
.adminbar-right { display: flex; align-items: center; }

.navbar.main-navbar.site-nav { padding: 10px 16px; }
.navbar.main-navbar.site-nav .site-nav-inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 24px; }
.site-logo { flex: 0 0 auto; display: block; line-height: 0; }
.site-menu-wrap { display: flex; align-items: center; gap: 20px; flex: 1 1 auto; min-width: 0; }
.navbar.main-navbar.site-nav #menu.site-menu-wrap { margin: 0; width: auto; float: none; }
.site-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-menu-item { position: relative; }
.site-menu-item > a {
    display: block;
    padding: 10px 14px;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    border-radius: 4px;
    white-space: nowrap;
}
.site-menu-item.has-dd > a::after { content: "▾"; font-size: 11px; margin-left: 5px; opacity: .7; }
.site-menu-item > a:hover, .site-menu-item:focus-within > a, .site-menu-item.is-active > a { background: rgba(255, 255, 255, .12); }
.site-menu-item.is-active > a { box-shadow: inset 0 -3px 0 var(--c-blue); }
.site-dd {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    width: 360px;
    padding: 10px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
}
.site-menu-item.has-dd:hover > .site-dd, .site-menu-item.has-dd:focus-within > .site-dd { display: grid; }
.site-dd a { display: block; padding: 5px 8px; color: var(--c-ink) !important; font-size: 13px; font-weight: 500; border-radius: 4px; text-decoration: none !important; }
.site-dd a:hover { background: #e8f4fb; color: var(--c-navy) !important; }
.site-dd .site-dd-all { grid-column: 1 / -1; font-weight: 700; color: var(--c-blue-dark) !important; border-bottom: 1px solid var(--c-line); border-radius: 0; margin-bottom: 4px; }
.navbar.main-navbar.site-nav .site-search { position: relative; flex: 1 1 auto; max-width: 420px; min-width: 180px; margin-left: auto; display: flex; line-height: normal; }
.navbar.main-navbar.site-nav .site-search .search-form-wrapper { padding: 8px 40px 8px 12px; border-width: 1px; }
.navbar.main-navbar.site-nav .site-search input { min-width: 0; height: auto; line-height: 1.4; font: 600 13px var(--font); }
.navbar.main-navbar.site-nav .site-search input::placeholder { color: #d0d3d7; }
.site-nav .navbar-burger { display: none; margin-left: auto; width: 40px; height: 40px; position: relative; cursor: pointer; border-radius: 4px; }
.site-nav .navbar-burger:hover { background: rgba(255, 255, 255, .12); }
.site-nav .navbar-burger span {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}
.site-nav .navbar-burger span:nth-child(1) { top: 13px; }
.site-nav .navbar-burger span:nth-child(2) { top: 19px; }
.site-nav .navbar-burger span:nth-child(3) { top: 25px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .navbar.main-navbar.site-nav .site-nav-inner { flex-wrap: wrap; gap: 10px; }
    .navbar.main-navbar.site-nav .site-search { max-width: none; margin-left: 0; }
    .site-nav .navbar-burger { display: block; }
    .site-menu-wrap { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 6px; }
    #menu.site-menu-wrap[style*="block"] { display: flex !important; }
    .site-menu { flex-direction: column; }
    .site-menu-item.has-dd > a::after { content: none; }
    .site-dd { display: none !important; }
    .site-search { max-width: none; margin-left: 0; }
}
@media (max-width: 1080px) {
    .main-page.main-page-wide { grid-template-columns: minmax(0, 1fr); }
    .site-sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
    .hub-overview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    .hub-hero { grid-template-columns: 1fr; padding: 16px; text-align: center; }
    .hub-hero .hub-poster { max-width: 230px; margin: 0 auto; }
    .hub-hero .hub-title { font-size: 23px; }
    .hub-metaline, .hub-available, .hub-actions, .hub-hero .hub-genres { justify-content: center; }
    .hub-hero .hub-banner img { margin: 0 auto; }
    .hub-card .title { font-size: 18px; }
    .latest-when { margin-left: 0; width: 100%; }
    .hub-card { grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
    .hub-header { grid-template-columns: 1fr; }
    .hub-poster { max-width: 240px; margin: 0 auto; }
    .hub-title { font-size: 22px; text-align: center; }
    .hub-header .hub-badges, .hub-header .hub-links, .hub-header .hub-genres, .hub-header .hub-topline { justify-content: center; }
    .hub-banner { text-align: center; }
    .hub-banner img { margin: 0 auto; }
    .hub-card.hub-card-tv { grid-template-columns: 1fr; }
    .rel-date { margin-left: 0; width: 100%; }
    .comment-fields { grid-template-columns: 1fr; }
    .hub-grid-movie { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px 10px; }
    .hub-grid-tv { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
    .hub-grid-tv .hub-tile-meta { display: none; }
}

/* ---------- Quality filter ticks ---------- */
.quality-bar, .quality-ticks {
    display: flex; flex-direction: row; flex-wrap: nowrap;
    gap: 6px; margin: 0 0 10px; align-items: stretch; width: 100%;
}
.quality-tick {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    flex: 1 1 0; min-width: 0;
    padding: 4px 6px; border-radius: 6px;
    font-size: 12px; font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08); color: #fff;
    cursor: pointer; user-select: none; white-space: nowrap;
}
.quality-tick input {
    width: 13px; height: 13px; margin: 0; flex: 0 0 auto;
    accent-color: var(--c-blue);
    cursor: pointer;
}
.quality-tick.is-active {
    background: rgba(0, 149, 218, .22);
    border-color: var(--c-blue);
}
.quality-tick.q-2160p.is-active { border-color: var(--c-4k); background: rgba(124, 58, 237, .22); }
.quality-tick.q-1080p.is-active { border-color: var(--c-1080); background: rgba(0, 119, 176, .22); }
.quality-tick.q-720p.is-active { border-color: var(--c-720); background: rgba(15, 157, 88, .22); }
.sb-widget .quality-bar { margin: 0 0 8px; }
.sb-widget .quality-tick {
    background: #fff; color: var(--c-ink);
    border-color: var(--c-line); font-size: 11px; padding: 4px 4px;
}
.sb-widget .quality-tick.is-active {
    background: #e8f4fb; border-color: var(--c-blue); color: var(--c-navy);
    border-width: 2px; padding: 3px 3px;
}
.sb-widget .quality-tick.q-2160p.is-active { background: #f3e8ff; border-color: var(--c-4k); }
.sb-widget .quality-tick.q-1080p.is-active { background: #e0f2fe; border-color: var(--c-1080); }
.sb-widget .quality-tick.q-720p.is-active { background: #e6f7ed; border-color: var(--c-720); }

/* Active filter labels on listing headers */
.filter-pills {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 0 0 4px; align-items: center;
}
.filter-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
    border: 2px solid var(--c-blue); color: var(--c-navy);
    background: #e8f4fb;
}
.filter-pill-genre { border-color: var(--c-navy); background: #eef2f7; }
.filter-pill-q-2160p { border-color: var(--c-4k); background: #f3e8ff; }
.filter-pill-q-1080p { border-color: var(--c-1080); background: #e0f2fe; }
.filter-pill-q-720p { border-color: var(--c-720); background: #e6f7ed; }
.filter-pill-label {
    font-size: 10px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--c-muted);
}

/* ---------- Nav quality row in dropdown ---------- */
.site-dd-qualities {
    grid-column: 1 / -1;
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 0 0 6px; padding-bottom: 6px;
    border-bottom: 1px solid var(--c-line);
}
.site-dd-qualities a {
    display: inline-flex !important; padding: 3px 10px !important;
    border-radius: 999px !important; background: #e8f4fb; font-weight: 700 !important; font-size: 12px !important;
}

/* ---------- Search autosuggest ---------- */
.site-search { position: relative; }
.search-suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px);
    z-index: 80; background: #fff; color: var(--c-ink);
    border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.28);
    overflow: hidden; max-height: 420px; overflow-y: auto;
}
.search-suggest-item {
    display: flex; gap: 10px; align-items: center;
    padding: 8px 10px; color: var(--c-ink) !important; text-decoration: none !important;
    border-top: 1px solid var(--c-line);
}
.search-suggest-item:first-child { border-top: 0; }
.search-suggest-item:hover { background: #e8f4fb; }
.search-suggest-item img, .search-suggest-blank {
    width: 36px; height: 54px; object-fit: cover; border-radius: 4px; background: #dbe4ec; flex: 0 0 auto;
}
.search-suggest-item span { display: flex; flex-direction: column; min-width: 0; }
.search-suggest-item strong { font-size: 13px; line-height: 1.3; }
.search-suggest-item small { font-size: 11px; color: var(--c-muted); }

/* ---------- Trailer modal ---------- */
.trailer-modal[hidden] { display: none !important; }
.trailer-modal {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 18px;
}
.trailer-modal-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,.72);
}
.trailer-modal-dialog {
    position: relative; width: min(920px, 100%);
    background: #000; border-radius: 10px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.trailer-modal-close {
    position: absolute; top: 8px; right: 10px; z-index: 2;
    width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: rgba(0,0,0,.65); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.trailer-modal-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.trailer-modal-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.trailer-open { overflow: hidden; }

/* ---------- Hero latest release ---------- */
.hub-hero-latest {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 12px; padding: 8px 12px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px; color: #fff !important; text-decoration: none !important;
}
.hub-hero-latest:hover { background: rgba(255,255,255,.14); }
.hub-hero-latest-name { font-size: 13px; font-weight: 600; word-break: break-word; }
.hub-hero-latest-when { font-size: 12px; opacity: .75; margin-left: auto; }

/* ---------- Cast under plot + cast page ---------- */
.hub-cast-inline { margin-top: 18px; }
.hub-cast-heading {
    font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    margin: 0 0 10px; color: var(--c-ink);
}
.hub-cast-item a { display: flex; flex-direction: column; align-items: center; text-align: center; color: inherit; text-decoration: none !important; }
.hub-cast-item a:hover .hub-cast-name { color: var(--c-blue-dark); }
.cast-header { display: flex; gap: 16px; align-items: center; margin: 0 0 18px; }
.cast-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.cast-sub { margin: 0; color: var(--c-muted); font-size: 14px; }
.sb-html { font-size: 13.5px; line-height: 1.45; color: var(--c-ink); }
.sb-html a { color: var(--c-blue-dark); }
