/*
Theme Name: CINEVIO
Description: ธีมเว็บข้อมูลหนังโทนดำ-ม่วง แถวโปสเตอร์เลื่อนแนวนอน รองรับมือถือ ใช้คู่กับปลั๊กอิน CINEVIO Movies
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.0
Author: CINEVIO
Text Domain: cinevio
*/
:root {
    --bg: #000;
    --surface: #101018;
    --surface-2: #1a1a26;
    --line: rgba(255, 255, 255, .12);
    --text: #fff;
    --muted: #a6a6b8;
    --violet: #8b5cf6;
    --violet-deep: #4c1d95;
    --brand: linear-gradient(95deg, #c4a1ff 0%, #8b5cf6 45%, #3b3bff 100%);
    --gutter: clamp(16px, 4vw, 60px);
    --card-w: clamp(124px, 15.5vw, 212px);
    --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(1100px 520px at 12% -8%, rgba(91, 43, 217, .38), transparent 62%),
        radial-gradient(900px 480px at 100% 0%, rgba(40, 40, 200, .22), transparent 60%),
        var(--bg);
    background-repeat: no-repeat;
    color: var(--text);
    font-family: "Prompt", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 600; }
.muted { color: var(--muted); }
code { background: var(--surface-2); padding: 2px 8px; border-radius: 4px; }

/* ---------- nav ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 68px;
    padding: 0 var(--gutter);
    background: linear-gradient(180deg, rgba(0, 0, 0, .78), transparent);
    transition: background .25s;
}
.nav.solid { background: rgba(5, 5, 10, .94); backdrop-filter: blur(10px); }
.logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .14em;
    background: var(--brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: #d6d6e2; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: #fff; border-color: var(--violet); }
.search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 40px;
    width: min(280px, 34vw);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: var(--muted);
}
.search:focus-within { border-color: var(--violet); background: rgba(0, 0, 0, .6); }
.search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: none;
    color: #fff; font: inherit; font-size: 14px;
}
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; }

main { min-height: 70vh; padding-top: 68px; }
.has-hero main { padding-top: 0; }

/* ---------- buttons / chips ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 26px;
    border: 1px solid transparent; border-radius: 999px;
    font: inherit; font-weight: 500; font-size: 15px; cursor: pointer;
    transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e9e2ff; }
.btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px;
    background: rgba(255, 255, 255, .06); color: #e2e2ee; font-size: 14px; white-space: nowrap;
}
.chip:hover { border-color: var(--violet); color: #fff; }
.chip.active { background: var(--brand); border-color: transparent; color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; height: min(86vh, 800px); min-height: 520px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s, visibility .9s; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-bg, .detail-bg { position: absolute; inset: 0; background: #07070d; }
.hero-bg img, .detail-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-bg::after, .detail-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(8, 4, 30, .62) 38%, rgba(0, 0, 0, 0) 72%),
        linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 42%);
}
.hero-body {
    position: absolute; left: var(--gutter); bottom: clamp(88px, 15vh, 150px);
    width: min(620px, calc(100% - 2 * var(--gutter)));
}
.hero-body h2 { font-size: clamp(30px, 4.6vw, 60px); font-weight: 700; text-shadow: 0 2px 22px rgba(0, 0, 0, .6); }
.hero-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.hero-tags span {
    padding: 2px 10px; border-radius: 4px; background: rgba(139, 92, 246, .28);
    border: 1px solid rgba(196, 161, 255, .4); font-size: 12px; letter-spacing: .04em;
}
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 12px 0; color: #dcdce8; font-size: 15px; }
.score { color: #c4a1ff; font-weight: 600; }
.lang { padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
.hero-text { margin: 0 0 22px; color: #dedeea; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: absolute; right: var(--gutter); bottom: clamp(88px, 15vh, 150px); display: flex; gap: 8px; }
.hero-dots button { width: 26px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .32); cursor: pointer; }
.hero-dots button.active { background: #fff; }

/* ---------- rows ---------- */
.rows { position: relative; z-index: 2; padding-bottom: 40px; }
.has-hero .hero + .rows { margin-top: -64px; }
.row { margin: 0 0 30px; }
.row-head { display: flex; align-items: baseline; gap: 16px; padding: 0 var(--gutter); margin-bottom: 10px; }
.row-head h2 { font-size: clamp(18px, 1.7vw, 23px); }
.row-more { color: var(--muted); font-size: 14px; }
.row-more:hover { color: #c4a1ff; }
.rail-wrap { position: relative; }
.rail {
    display: flex; gap: 10px; padding: 8px var(--gutter) 14px;
    overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--gutter);
    scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 var(--card-w); scroll-snap-align: start; }
.rail-btn {
    position: absolute; top: 8px; bottom: 14px; z-index: 5; width: var(--gutter); min-width: 34px;
    border: 0; color: #fff; font-size: 38px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s;
}
.rail-btn.prev { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .85), transparent); }
.rail-btn.next { right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .85), transparent); }
.rail-wrap:hover .rail-btn:not([disabled]) { opacity: 1; }
.rail-btn[disabled] { visibility: hidden; }

/* ---------- card ---------- */
.card {
    position: relative; display: block; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden;
    background: var(--surface-2); outline: 2px solid transparent; outline-offset: 2px;
    transition: transform .22s, outline-color .22s, box-shadow .22s;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card:hover, .card:focus-visible {
    transform: scale(1.045); outline-color: #c4a1ff; z-index: 3;
    box-shadow: 0 14px 34px rgba(76, 29, 149, .55);
}
.card-info {
    position: absolute; inset: auto 0 0 0; padding: 34px 10px 9px; display: flex; flex-direction: column; gap: 2px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .94), transparent);
    opacity: 0; transition: opacity .2s; font-size: 13px; line-height: 1.35;
}
.card:hover .card-info, .card:focus-visible .card-info { opacity: 1; }
.card-info b { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-info small { color: var(--muted); font-size: 12px; }
.card-info em { font-style: normal; margin-left: 6px; }
.star { color: #c4a1ff; font-style: normal; }
.card-blank {
    display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px; text-align: center;
    background: linear-gradient(160deg, var(--violet-deep), #0b0b1c); font-size: 14px;
}

/* ranked row */
.row-ranked .rail > .rank { flex-basis: calc(var(--card-w) * 1.55); display: flex; align-items: flex-end; }
.rank-num {
    flex: 0 0 38%; text-align: right; margin-right: -14px;
    font-size: calc(var(--card-w) * 1.05); font-weight: 700; line-height: .8; letter-spacing: -.08em;
    color: #000; -webkit-text-stroke: 2px #8b5cf6; text-shadow: 0 0 26px rgba(139, 92, 246, .45);
}
.rank .card { flex: 1; }

/* ---------- browse ---------- */
.page { padding: 34px var(--gutter) 50px; }
.page-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.page-head h1 { font-size: clamp(24px, 3vw, 36px); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 22px; color: var(--muted); font-size: 14px; }
.filters select, .filters input[type=search] {
    height: 40px; padding: 0 12px; margin-left: 6px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--surface); color: #fff; font: inherit; font-size: 14px;
}
.filters input[type=search] { margin: 0; min-width: min(320px, 100%); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 14vw, 190px), 1fr)); gap: 14px 12px; }
.empty-note { padding: 60px 0; text-align: center; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pager a, .pager span {
    min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 14px;
}
.pager a:hover { border-color: var(--violet); }
.pager .current { background: var(--brand); border-color: transparent; font-weight: 600; }
.pager .disabled { opacity: .35; }

/* ---------- detail ---------- */
.detail { position: relative; padding: 120px var(--gutter) 46px; overflow: hidden; }
.detail-bg { filter: saturate(1.05); }
.detail-bg::after {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .94) 0%, rgba(10, 5, 36, .78) 45%, rgba(0, 0, 0, .45) 100%),
        linear-gradient(0deg, #000 2%, rgba(0, 0, 0, 0) 55%);
}
.detail-wrap { position: relative; max-width: 1280px; }
.detail-inner { position: relative; display: flex; gap: clamp(20px, 3.4vw, 48px); align-items: flex-start; max-width: 1280px; }
.detail-poster {
    flex: 0 0 clamp(150px, 24vw, 320px); aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden;
    background: var(--surface-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
}
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-body { flex: 1; min-width: 0; max-width: 760px; }
.detail-body h1 { font-size: clamp(28px, 3.8vw, 50px); font-weight: 700; }
.detail-original { margin: 4px 0 0; color: var(--muted); }
.tagline { margin: 18px 0 0; color: #c4a1ff; font-style: italic; }
.sub { margin: 20px 0 6px; font-size: 18px; }
.overview { margin: 0 0 14px; color: #e4e4ee; }
.credit { margin: 0 0 22px; }
.credit .muted { margin-right: 8px; }

.rail-cast > * { flex-basis: clamp(104px, 11vw, 146px); }
.person { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.35; }
.person img, .person-blank { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); margin-bottom: 6px; }
.person-blank { display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--muted); }
.person b { font-weight: 500; }
.person small { color: var(--muted); }
.person:hover b { color: #c4a1ff; }

.article { max-width: 900px; padding-top: 10px; }
.article h2 { margin-bottom: 12px; }
.prose { color: #e4e4ee; }
.prose h2, .prose h3 { margin: 22px 0 8px; }
.prose blockquote { margin: 16px 0; padding-left: 16px; border-left: 3px solid var(--violet); color: var(--muted); }

.empty { padding: 180px var(--gutter) 120px; text-align: center; }
.empty h1 { font-size: clamp(28px, 5vw, 64px); margin-bottom: 12px; }
.empty .btn { margin-top: 18px; }

/* ---------- footer ---------- */
.footer { padding: 36px var(--gutter) 44px; border-top: 1px solid var(--line); font-size: 14px; color: #d0d0dc; }
.footer p { margin: 6px 0; max-width: 760px; }
.footer-brand { font-weight: 700; letter-spacing: .14em; font-size: 18px; margin-bottom: 8px; }

/* ---------- trailer modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .86); }
.modal-box { position: relative; width: min(1080px, 100%); }
.modal-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 90px rgba(76, 29, 149, .5); }
.modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-close { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
    .nav { gap: 12px; height: 60px; }
    .logo { font-size: 21px; flex: 1; }
    .nav-toggle { display: block; order: 3; }
    .search { width: 40vw; }
    .nav-links {
        display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0;
        padding: 8px var(--gutter) 16px; background: rgba(5, 5, 10, .97);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    main { padding-top: 60px; }
    .hero { height: 76vh; min-height: 460px; }
    .hero-bg::after { background: linear-gradient(0deg, #000 6%, rgba(0, 0, 0, .55) 46%, rgba(0, 0, 0, .15) 100%); }
    .hero-body { bottom: 78px; }
    .hero-dots { left: var(--gutter); right: auto; bottom: 48px; }
    .has-hero .hero + .rows { margin-top: -20px; }
    .rail-btn { display: none; }
    .card-info { display: none; }
    .detail { padding-top: 84px; }
    .detail-inner { flex-direction: column; }
    .detail-poster { flex-basis: auto; width: 46vw; max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
/* ---------- accessibility / breadcrumbs / logo ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.crumbs a:hover { color: #c4a1ff; }
.crumbs i { font-style: normal; opacity: .6; }
.crumbs span { color: #e2e2ee; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.logo-img { display: flex; align-items: center; background: none; letter-spacing: 0; }
.logo-img img { height: 36px; width: auto; max-width: 200px; object-fit: contain; }

/* ---------- banners ---------- */
.bn {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
    margin: 6px var(--gutter) 34px; padding: 26px 16px 18px;
    border: 1px solid var(--line); border-radius: 16px;
    background: linear-gradient(180deg, rgba(139, 92, 246, .10), rgba(255, 255, 255, .02));
}
.bn-label { position: absolute; top: 7px; left: 14px; font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.bn-item {
    display: block; max-width: min(970px, 100%); border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
    transition: transform .2s, box-shadow .2s;
}
a.bn-item:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(76, 29, 149, .5), 0 0 0 1px rgba(196, 161, 255, .5); }
.bn-item img { width: 100%; height: auto; }
.bn-home { margin-top: 22px; }
.has-hero .bn-home + .rows { margin-top: 0; }

/* ---------- SEO content box ---------- */
.seo-box {
    margin: 10px var(--gutter) 56px; padding: clamp(18px, 3vw, 36px);
    border: 2px solid rgba(139, 92, 246, .75); border-radius: 6px;
    background: #0c0c14; box-shadow: 0 18px 50px rgba(76, 29, 149, .22);
}
.prose { color: #e4e4ee; line-height: 1.8; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h1 { font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 14px; }
.prose h2 { font-size: clamp(20px, 2.1vw, 27px); margin: 26px 0 10px; }
.prose h3 { font-size: clamp(17px, 1.7vw, 21px); margin: 22px 0 8px; }
.prose h4 { font-size: 16px; margin: 18px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose a { color: #c4a1ff; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 26px; }
.prose li { margin: 4px 0; }
.prose blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--violet); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose mark { background: #fde047; color: #111; padding: 0 3px; border-radius: 3px; }
.prose .color { color: var(--dark-color, var(--color)); }
.prose .lead { font-size: 1.15em; color: #fff; }
.prose small { font-size: .85em; color: var(--muted); }
.prose pre { padding: 14px; border-radius: 8px; background: #000; border: 1px solid var(--line); overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose details { margin: 12px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; }
.prose summary { cursor: pointer; font-weight: 500; }
.prose .grid-layout { display: grid; gap: 18px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
@media (max-width: 820px) { .prose .grid-layout { grid-template-columns: 1fr; } }
/* ---------- where to watch / facts ---------- */
.watch, .facts { padding-top: 6px; padding-bottom: 26px; max-width: 1100px; }
.watch h2, .facts h2 { font-size: clamp(18px, 1.9vw, 24px); margin-bottom: 14px; }
.watch-group { margin-bottom: 14px; }
.watch-group h3 { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.watch-group ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.watch-group li {
    display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px;
}
.watch-group img { width: 40px; height: 40px; border-radius: 9px; }
.watch-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.facts p { margin: 0 0 16px; color: #e4e4ee; }
.facts dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 22px; margin: 0; }
.facts dl div { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { flex: 0 0 96px; color: var(--muted); }
.facts dd { margin: 0; }
/* ---------- articles ---------- */
.section-title { font-size: clamp(18px, 1.9vw, 24px); margin-bottom: 16px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); transition: transform .2s, border-color .2s; }
.post-card:hover { transform: translateY(-3px); border-color: #c4a1ff; }
.post-cover { display: block; aspect-ratio: 16 / 9; background: linear-gradient(140deg, var(--violet-deep), #0b0b1c); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.post-body b { font-weight: 600; font-size: 17px; line-height: 1.4; }
.post-cat { color: #c4a1ff; font-size: 12px; letter-spacing: .04em; }
.post-excerpt { color: var(--muted); font-size: 14px; }
.post-body time { color: var(--muted); font-size: 12px; }
.home-posts { padding-top: 0; padding-bottom: 30px; }
.home-posts .row-head { padding: 0; }
.post { max-width: 920px; margin: 0 auto; }
.post-head h1 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.25; }
.post-head p { margin: 10px 0 20px; font-size: 14px; }
.post-hero { width: 100%; border-radius: 14px; margin-bottom: 22px; }
.post-lead { font-size: 1.12em; color: #fff; margin: 0 0 18px; }
.post-movies { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.post-movies li { position: relative; display: grid; grid-template-columns: clamp(92px, 16vw, 150px) 1fr; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.post-movies h2 { font-size: clamp(18px, 2vw, 24px); }
.post-movies h2 a:hover { color: #c4a1ff; }
.post-movies h2 small { color: var(--muted); font-weight: 400; font-size: .7em; }
.post-movies p { margin: 8px 0 0; color: #e0e0ea; font-size: 15px; }
.post-movie-poster { display: block; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.post-movie-poster img { width: 100%; height: 100%; object-fit: cover; }
.post-rank { position: absolute; top: -10px; left: -10px; z-index: 2; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .6); }
.post-tags { margin-top: 26px; }
/* ---------- person page ---------- */
.person-head { display: flex; gap: clamp(18px, 3vw, 40px); align-items: flex-start; margin-bottom: 34px; }
.person-photo { flex: 0 0 clamp(120px, 18vw, 240px); aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo .person-blank { height: 100%; margin: 0; font-size: 60px; }
.person-head h1 { font-size: clamp(26px, 3.6vw, 46px); }
.person-head .chips { margin: 14px 0; }
.credit a:hover { color: #c4a1ff; }
.credit-card small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; }
.credit-card em { display: block; color: var(--muted); font-style: normal; font-size: 12px; }
@media (max-width: 600px) { .person-head { flex-direction: column; } .person-photo { flex-basis: auto; width: 44vw; } }

/* ---------- footer explore links ---------- */
.explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 30px; margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.explore h2 { font-size: 15px; margin-bottom: 8px; color: #fff; }
.explore ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.explore a { color: var(--muted); font-size: 14px; }
.explore a:hover { color: #c4a1ff; }
/* ---------- rendering cost ---------- */
/* Rows below the fold are laid out only when the visitor scrolls near them. */
.rows > .row:nth-child(n+3) { content-visibility: auto; contain-intrinsic-size: auto 340px; }
.seo-box, .footer, .home-posts { content-visibility: auto; contain-intrinsic-size: auto 400px; }
/* ---------- WordPress ---------- */
.nav-links .current-menu-item > a { color: #fff; border-color: var(--violet); }
.pager .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 14px; }
.pager a.page-numbers:hover { border-color: var(--violet); }
.pager .page-numbers.current { background: var(--brand); border-color: transparent; font-weight: 600; }
.pager .page-numbers.dots { border: 0; background: none; opacity: .5; }
.logo-img img { height: 36px; width: auto; max-width: 200px; object-fit: contain; }
.entry-content .alignleft { float: left; margin: 4px 20px 12px 0; }
.entry-content .alignright { float: right; margin: 4px 0 12px 20px; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content figure { margin: 18px 0; max-width: 100%; }
.entry-content figcaption, .wp-caption-text { color: var(--muted); font-size: 13px; text-align: center; margin-top: 6px; }
.entry-content iframe { max-width: 100%; }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-block-button__link { background: #fff; color: #000; border-radius: 999px; padding: 10px 24px; text-decoration: none; }
.comment-respond textarea, .comment-respond input[type=text], .comment-respond input[type=email], .comment-respond input[type=url] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: #fff; font: inherit; }
.comment-respond input[type=submit] { height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: #fff; color: #000; font: inherit; font-weight: 500; cursor: pointer; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--line); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }