/* ==========================================================================
   NungFreeThai — ทอง-ดำ-แดง แนวเว็บดูหนังคลาสสิก
   แถบบนสุดดำ · โลโก้ตัวหนาเอียงสีทอง/แดง · เมนูแถบแดงตัวอักษรทอง · หัวข้อส่วนเป็นแถบแดงกลางหน้า
   โปสเตอร์มีธงสามเหลี่ยมมุมขวา (HD แดง / SUB ดำ / ZOOM ทอง) และแถบแดงบอกภาษาเสียงใต้ภาพ
   สามคอลัมน์: แนวหนัง | หนัง | ปี-เสียง-ประเทศ (ตัวเลขจำนวนเรื่อง) · ฟอนต์ Prompt
   ========================================================================== */

/* ==== ฟอนต์ + ไอคอนในธีม (สร้างจาก scratchpad icons.py) ==== */
/* Prompt (SIL Open Font License 1.1) เก็บในธีม แทนการโหลดจาก Google Fonts: น้ำหนัก 300-700 อักษรไทย + ละติน และ 800 ตัวเอียง (โลโก้/เลข 404) */
@font-face{font-family:'Prompt';font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/prompt-300-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Prompt';font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/prompt-300-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face{font-family:'Prompt';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/prompt-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Prompt';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/prompt-400-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face{font-family:'Prompt';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/prompt-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Prompt';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/prompt-500-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face{font-family:'Prompt';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/prompt-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Prompt';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/prompt-600-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face{font-family:'Prompt';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/prompt-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Prompt';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/prompt-700-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC}
@font-face{font-family:'Prompt';font-style:italic;font-weight:800;font-display:swap;src:url(../fonts/prompt-800i-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* ไอคอน: SVG ในตัว (แทน Font Awesome จาก cdnjs ~220 KB) ใช้ class เดิม fa-solid / fa-regular fa-ชื่อ สีตามตัวอักษร */
.fa-solid,.fa-regular{display:inline-block;width:1em;height:1em;vertical-align:-.125em;font-style:normal;background-color:currentColor;-webkit-mask:var(--fi) center/contain no-repeat;mask:var(--fi) center/contain no-repeat}
.fa-play{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12.5-7.5z'/%3E%3C/svg%3E")}
.fa-star{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2l2.95 6.1 6.7.95-4.85 4.7 1.15 6.65L12 17.45 6.05 20.6 7.2 13.95 2.35 9.25l6.7-.95z'/%3E%3C/svg%3E")}
.fa-xmark{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")}
.fa-magnifying-glass{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.8' cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M15.6 15.6L21 21'/%3E%3C/svg%3E")}
.fa-list{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.6' d='M9 6h12M9 12h12M9 18h12'/%3E%3Ccircle cx='4' cy='6' r='1.9'/%3E%3Ccircle cx='4' cy='12' r='1.9'/%3E%3Ccircle cx='4' cy='18' r='1.9'/%3E%3C/svg%3E")}
.fa-bars-staggered{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.8' d='M3 6h18M7 12h14M3 18h18'/%3E%3C/svg%3E")}
.fa-expand{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.6' d='M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5'/%3E%3C/svg%3E")}
.fa-compress{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.6' d='M9 4v5H4M20 9h-5V4M15 20v-5h5M4 15h5v5'/%3E%3C/svg%3E")}
.fa-eye{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M12 5.5c-5.2 0-8.8 4-10 6.5 1.2 2.5 4.8 6.5 10 6.5s8.8-4 10-6.5c-1.2-2.5-4.8-6.5-10-6.5z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E")}
.fa-clock{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' cx='12' cy='12' r='9'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M12 7v5l3.5 2.2'/%3E%3C/svg%3E")}
.fa-chevron-up{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 15.5l7-7 7 7'/%3E%3C/svg%3E")}
.fa-chevron-right{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M8.5 5l7 7-7 7'/%3E%3C/svg%3E")}
.fa-chevron-left{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M15.5 5l-7 7 7 7'/%3E%3C/svg%3E")}
.fa-angle-right{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='M9.5 6l6 6-6 6'/%3E%3C/svg%3E")}
.fa-angle-left{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='M14.5 6l-6 6 6 6'/%3E%3C/svg%3E")}
.fa-film{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3 3h18v18H3zM5 5v2.5h2.5V5zm0 5.75v2.5h2.5v-2.5zm0 5.75V19h2.5v-2.5zM16.5 5v2.5H19V5zm0 5.75v2.5H19v-2.5zm0 5.75V19H19v-2.5zM9.5 5v14h5V5z'/%3E%3C/svg%3E")}
.fa-ticket{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M2 6h20v4.2a1.8 1.8 0 000 3.6V18H2v-4.2a1.8 1.8 0 000-3.6zm13 2v1.6h1.8V8zm0 3.2v1.6h1.8v-1.6zm0 3.2V16h1.8v-1.6z'/%3E%3C/svg%3E")}
.fa-clapperboard{--fi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10h18v10.5H3z'/%3E%3Cpath d='M2.6 5.3L19.8 2.5l.65 3.9-17.2 2.8z'/%3E%3C/svg%3E")}
/* ==== จบฟอนต์ + ไอคอน ==== */
:root {
	--bg: #0a0707;
	--s1: #141010;
	--s2: #1b1515;
	--s3: #261d1c;
	--line: #2e2322;
	--line2: #4d3a26;
	--red: #b5121b;
	--red-hi: #e3262f;
	--red-lo: #6a080d;
	--red-bar: linear-gradient(180deg, #d41d26 0%, #a50f18 52%, #720a10 100%);
	--gold: #f2c14e;
	--gold-hi: #ffe28c;
	--gold-lo: #a7791f;
	--gold-grad: linear-gradient(180deg, #fff3bf 0%, #f7d05c 45%, #c58f1b 100%);
	--ink: #1d0f04;
	--tx: #f2ede8;
	--mt: #aaa098;
	--r: 8px;
	--font: 'Prompt', 'Tahoma', sans-serif;
	--wrap: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 300 15.5px/1.7 var(--font); }
body.rv-lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-hi); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0 0 .5em; font-weight: 600; line-height: 1.35; color: var(--gold-hi); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
[hidden] { display: none !important; }

.rv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 16px; background: var(--gold); color: var(--ink); font-weight: 600; }
.rv-skip:focus { top: 12px; }
.rv-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.rv-main { min-height: 50vh; padding-bottom: 30px; }
.rv-narrow { max-width: 920px; }
.rv-page { padding-top: 6px; }

/* ตัวอักษรไล่ทอง */
.rv-lead__h1, .rv-head__h1, .rv-title, .rv-info__h, .rv-logo b, .rv-lost__n, .rv-mhead__sc b {
	background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- ปุ่ม ---------- */
.rv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 22px; border: 0; border-radius: 6px; background: var(--red-bar); color: var(--gold-hi); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.rv-btn:hover { color: #fff; filter: brightness(1.1); }
.rv-btn--line { background: transparent; color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-lo); }
.rv-btn--line:hover { background: rgba(242, 193, 78, .1); color: var(--gold-hi); }
.rv-ibtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line2); border-radius: 6px; background: var(--s1); color: var(--gold-hi); font-size: 17px; }
.rv-ibtn:hover { border-color: var(--gold); }

/* ==========================================================================
   หัวเว็บ
   ========================================================================== */
.rv-ticker { background: #000; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mt); }
.rv-ticker__in { display: flex; justify-content: space-between; gap: 6px 20px; padding-top: 5px; padding-bottom: 5px; }
.rv-ticker p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-ticker__n { flex: none; }
.rv-ticker b { color: var(--gold); font-weight: 600; }

.rv-top { position: relative; background: radial-gradient(ellipse 50% 140% at 15% 0%, rgba(181, 18, 27, .22), transparent 70%), linear-gradient(180deg, #120c0c, var(--bg)); }
.rv-top__row { display: flex; align-items: center; gap: 22px; min-height: 96px; }
.rv-logo { display: inline-flex; flex-direction: column; flex: none; line-height: 1; margin-right: auto; }
.rv-logo__w { display: flex; align-items: baseline; font: italic 800 38px/1 var(--font); letter-spacing: -.01em; filter: drop-shadow(0 2px 0 #3d0508) drop-shadow(0 0 10px rgba(242, 193, 78, .18)); }
.rv-logo i { font-style: italic; background: linear-gradient(180deg, #ff6a6f 0%, var(--red-hi) 45%, #8d0b12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 1px; }
.rv-logo small { margin-top: 5px; padding-left: 3px; font-size: 12px; font-weight: 400; letter-spacing: .16em; color: var(--mt); }
.rv-find { position: relative; display: flex; flex: 0 1 520px; min-width: 0; }
.rv-find input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-right: 0; border-radius: 6px 0 0 6px; background: #1a1313; color: var(--tx); }
.rv-find input::placeholder { color: #8a7f78; }
.rv-find input:focus { border-color: var(--gold-lo); outline: none; }
.rv-find__go { flex: none; padding: 0 22px; height: 44px; border: 0; border-radius: 0 6px 6px 0; background: var(--red-bar); color: var(--gold-hi); font-weight: 600; }
.rv-find__out { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; max-height: 70vh; overflow-y: auto; padding: 6px; border: 1px solid var(--gold-lo); border-radius: var(--r); background: var(--s1); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.rv-find__i { display: flex; align-items: center; gap: 10px; padding: 6px; border-bottom: 1px solid var(--line); }
.rv-find__i img, .rv-find__ph { width: 40px; height: 58px; flex: none; object-fit: cover; border-radius: 4px; background: var(--s3); }
.rv-find__i b { display: block; font-weight: 500; line-height: 1.4; }
.rv-find__i small { color: var(--mt); }
.rv-find__all { display: block; padding: 10px 6px 4px; color: var(--gold-hi); font-size: 14px; }
.rv-find__none { margin: 0; padding: 10px; color: var(--mt); font-size: 14px; }
.rv-ibtn--find, .rv-ibtn--menu { display: none; }

/* แถบเมนูแดง */
.rv-nav { background: var(--red-bar); border-top: 1px solid rgba(255, 120, 120, .35); border-bottom: 2px solid var(--gold-lo); box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.rv-nav ul { display: flex; justify-content: center; flex-wrap: wrap; }
.rv-nav li + li { box-shadow: -1px 0 0 rgba(0, 0, 0, .28), inset 1px 0 0 rgba(255, 255, 255, .08); }
.rv-nav a { position: relative; display: block; padding: 13px 18px; color: var(--gold-hi); font-weight: 600; font-size: 15px; white-space: nowrap; text-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.rv-nav a:hover { background: rgba(0, 0, 0, .18); color: #fff3c4; }
.rv-nav a.is-on { background: rgba(0, 0, 0, .32); }
.rv-nav a.is-on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--gold); }

/* ==========================================================================
   หัวข้อส่วน / บทนำ
   ========================================================================== */
.rv-lead { padding: 22px 0 2px; text-align: center; }
.rv-lead__h1 { margin: 0 auto 10px; max-width: 1000px; font-size: clamp(22px, 2.7vw, 30px); }
.rv-lead__t { max-width: 1080px; margin: 0 auto; color: #d8d0c8; font-size: 15px; text-align: left; }

.rv-bar { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px 12px; min-height: 44px; margin: 24px 0 14px; padding: 6px 16px; border-radius: 6px; background: var(--red-bar); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 4px 14px rgba(0, 0, 0, .35); }
.rv-bar__t { margin: 0; font-size: 18px; color: var(--gold-hi); text-align: center; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.rv-bar__all { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 2px 10px; border-radius: 99px; background: rgba(0, 0, 0, .3); font-size: 13px; color: var(--gold-hi); }
.rv-bar__all:hover { background: rgba(0, 0, 0, .5); }

.rv-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.rv-tabs button { height: 34px; padding: 0 16px; border: 1px solid var(--line2); border-radius: 99px; background: var(--s1); color: var(--mt); font-size: 14px; }
.rv-tabs button:hover { color: var(--gold-hi); border-color: var(--gold-lo); }
.rv-tabs button[aria-selected="true"] { background: var(--gold-grad); color: var(--ink); border-color: transparent; font-weight: 600; }

.rv-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 16px 0 10px; font-size: 13.5px; color: var(--mt); }
.rv-crumb a { color: var(--gold); }
.rv-crumb__sep { color: var(--red-hi); }

.rv-head { margin: 0 0 6px; padding: 18px 22px; border: 1px dashed var(--gold-lo); border-radius: var(--r); background: linear-gradient(180deg, rgba(181, 18, 27, .1), transparent 70%), var(--s1); }
.rv-head--center { text-align: center; }
.rv-head__h1 { margin: 0 0 8px; font-size: clamp(22px, 2.5vw, 29px); }
.rv-head__h1 small { font-size: .6em; -webkit-text-fill-color: var(--mt); }
.rv-head__t { color: #d8d0c8; font-size: 15px; }
.rv-head__t p:last-child { margin-bottom: 0; }

/* ==========================================================================
   การ์ดหนัง / ตาราง / ชั้นเลื่อน
   ========================================================================== */
.rv-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; }
.rv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rv-card { min-width: 0; }
.rv-card__link { display: flex; flex-direction: column; height: 100%; }
.rv-card__link:hover { color: var(--gold-hi); }
.rv-card__pic { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--s3); transition: border-color .2s, transform .2s, box-shadow .2s; }
.rv-card__link:hover .rv-card__pic { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(242, 193, 78, .3); }
.rv-card__pic img { width: 100%; height: 100%; object-fit: cover; }
.rv-card__none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--red); font-size: 34px; }
.rv-card__sc { position: absolute; top: 0; left: 0; padding: 2px 8px 2px 7px; border-radius: 0 0 6px 0; background: var(--gold-grad); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.6; }
.rv-card__sc i { font-size: 10px; }
.rv-flag { position: absolute; top: 0; right: 0; width: 56px; height: 56px; background: var(--red-bar); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.rv-flag b { position: absolute; top: 13px; right: -6px; width: 50px; transform: rotate(45deg); text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--gold-hi); }
.rv-flag--sub { background: linear-gradient(180deg, #2a2a2a, #050505); }
.rv-flag--zoom { background: var(--gold-grad); }
.rv-flag--zoom b { color: var(--ink); font-size: 9.5px; }
.rv-card__lang { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 6px; background: rgba(150, 12, 20, .92); border-top: 1px solid rgba(242, 193, 78, .45); color: var(--gold-hi); font-size: 12px; font-weight: 500; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; margin: 8px 4px 2px; font-size: 13.5px; line-height: 1.5; text-align: center; }

.rv-band { margin-bottom: 6px; }
.rv-band__body { position: relative; }
.rv-band__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 6 * 14px) / 7); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 6px; }
.rv-band__track::-webkit-scrollbar { display: none; }
.rv-band__track > * { scroll-snap-align: start; }
.rv-band__btn { position: absolute; z-index: 3; top: 38%; width: 44px; height: 44px; border: 2px solid var(--gold); border-radius: 50%; background: rgba(10, 7, 7, .82); color: var(--gold-hi); font-size: 15px; transform: translateY(-50%); box-shadow: 0 4px 14px rgba(0, 0, 0, .6); }
.rv-band__btn:hover { background: var(--red-bar); }
.rv-band__btn--prev { left: -12px; }
.rv-band__btn--next { right: -12px; }
.rv-band--hero { margin-top: 18px; padding: 0 0 6px; }
.rv-band--hero .rv-bar { margin-top: 0; }

.rv-sort { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px; }
.rv-sort__i { padding: 4px 15px; border: 1px solid var(--line2); border-radius: 99px; font-size: 13.5px; color: var(--mt); background: var(--s1); }
.rv-sort__i:hover { color: var(--gold-hi); border-color: var(--gold-lo); }
.rv-sort__i.is-on { background: var(--gold-grad); color: var(--ink); border-color: transparent; font-weight: 600; }

.rv-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 26px 0 6px; }
.rv-pager a, .rv-pager span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 6px; background: var(--s1); font-weight: 600; color: var(--gold-hi); }
.rv-pager .current { background: var(--red-bar); border-color: var(--gold-lo); }
.rv-pager a:hover { border-color: var(--gold); }

.rv-empty { padding: 40px 16px; text-align: center; color: var(--mt); border: 1px dashed var(--gold-lo); border-radius: var(--r); }
.rv-empty__ico { display: block; margin-bottom: 8px; font-size: 32px; color: var(--red-hi); }

/* ==========================================================================
   สามคอลัมน์ + แถบข้าง
   ========================================================================== */
.rv-3col { display: grid; grid-template-columns: 228px minmax(0, 1fr) 228px; grid-template-areas: "left main right"; gap: 20px; align-items: start; }
.rv-3col__main { grid-area: main; min-width: 0; }
.rv-side { min-width: 0; }
.rv-side--left { grid-area: left; }
.rv-side--right { grid-area: right; }
.rv-3col > .rv-side { margin-top: 24px; }
.rv-sbox { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.rv-sbox__h { margin: 0; padding: 9px 12px; background: var(--red-bar); color: var(--gold-hi); font-size: 15.5px; font-weight: 600; line-height: 1.4; text-align: center; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.rv-sbox__list li a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 14px; color: #ddd5cd; }
.rv-sbox__list li:last-child a { border-bottom: 0; }
.rv-sbox__list em { flex: none; font-style: normal; font-size: 12.5px; color: var(--mt); }
.rv-sbox__list li a:hover, .rv-sbox__list li a.is-on { color: var(--gold-hi); background: var(--s2); }
.rv-sbox__list li a.is-on { box-shadow: inset 3px 0 0 var(--red-hi); }
.rv-sbox__more { display: block; padding: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--gold); text-align: center; }
.rv-hot li a { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.rv-hot b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--red-bar); color: var(--gold-hi); font-size: 12.5px; font-weight: 700; }
.rv-hot li:first-child b { background: var(--gold-grad); color: var(--ink); }
.rv-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px; }
.rv-mini a { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 5px; background: var(--s3); border: 1px solid var(--line); }
.rv-mini a:hover { border-color: var(--gold); }
.rv-mini img { width: 100%; height: 100%; object-fit: cover; }
.rv-mini__sc { position: absolute; top: 0; left: 0; padding: 0 5px; border-radius: 0 0 4px 0; background: var(--gold-grad); color: var(--ink); font-size: 10.5px; font-weight: 700; }

.rv-chips { display: none; gap: 8px; overflow-x: auto; margin: 12px 0 2px; padding-bottom: 6px; scrollbar-width: none; }
.rv-chips a, .rv-chips__all { flex: none; padding: 4px 13px; border: 1px solid var(--line2); border-radius: 99px; background: var(--s1); font-size: 13.5px; white-space: nowrap; }
.rv-chips a.is-on { border-color: var(--gold); color: var(--gold-hi); }
.rv-chips__all { background: var(--red-bar); border-color: var(--gold-lo); color: var(--gold-hi); }

/* ==========================================================================
   บทความ / ข้อความยาว
   ========================================================================== */
.rv-text { overflow-wrap: anywhere; }
.rv-text a { color: var(--gold-hi); text-decoration: underline; text-decoration-color: var(--red-hi); text-underline-offset: 3px; }
.rv-text h2 { margin-top: 1.2em; font-size: 21px; }
.rv-text h3 { margin-top: 1em; font-size: 17.5px; color: var(--gold); }
.rv-text ul, .rv-text ol { margin: 0 0 1em; padding-left: 1.3em; }
.rv-text ul { list-style: none; padding-left: 0; }
.rv-text ul li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.rv-text ul li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 2px rgba(242, 193, 78, .35); }
.rv-text ol { list-style: decimal; }
.rv-note { color: var(--mt); }

.rv-outro { margin-top: 34px; }
.rv-intro { padding: 24px 28px; border: 1px dashed var(--gold-lo); border-radius: var(--r); background: var(--s1); }
.rv-intro__title { text-align: center; font-size: clamp(21px, 2.3vw, 26px); }
.rv-intro__body { color: #d8d0c8; font-size: 15px; }
.rv-essay h2 { font-size: 19.5px; margin-top: 1.4em; padding-left: 10px; border-left: 4px solid var(--red-hi); }
.rv-essay h2:first-child { margin-top: 0; }
.rv-essay h3 { font-size: 16.5px; }
.rv-essay section { margin-bottom: 14px; }
.rv-essay__note { color: var(--mt); font-size: 14px; }
.rv-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.rv-stat div { padding: 10px 14px; border: 1px solid var(--line2); border-radius: 6px; background: var(--s2); }
.rv-stat dt { font-size: 13px; color: var(--mt); }
.rv-stat dd { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--gold-hi); }
.rv-guide__item { padding: 14px 16px; border-left: 3px solid var(--red-hi); border-radius: 0 6px 6px 0; background: var(--s2); margin-bottom: 10px; }
.rv-faq__item { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--s2); }
.rv-faq__item summary { cursor: pointer; padding: 10px 14px; }
.rv-faq__item p { margin: 0; padding: 0 14px 12px; color: var(--mt); }
.rv-box { margin-bottom: 18px; }
.rv-box__head { margin: 0 0 6px; font-weight: 600; color: var(--gold-hi); }
.rv-widgets { margin-top: 24px; }

/* ==========================================================================
   หน้าดูหนัง
   ========================================================================== */
.rv-2col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.rv-2col__side .rv-side { margin-top: 0; }

.rv-mhead { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding: 16px 20px; border: 1px solid var(--line); border-top: 3px solid var(--red-hi); border-radius: var(--r); background: var(--s1); }
.rv-mhead__t { flex: 1; min-width: 0; }
.rv-title { margin: 0 0 2px; font-size: clamp(21px, 2.4vw, 28px); }
.rv-title__en { margin: 0 0 6px; color: var(--mt); font-size: 14.5px; }
.rv-mhead__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.rv-mhead__nums { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.rv-mhead__sc { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--gold); background: radial-gradient(circle, #2a1a10, #0e0909); text-align: center; line-height: 1; }
.rv-mhead__sc b { font-size: 24px; font-weight: 700; }
.rv-mhead__sc small { display: block; margin-top: -14px; font-size: 9.5px; color: var(--mt); }
.rv-mhead__vw { font-size: 13px; color: var(--mt); }
.rv-tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 10px; border-radius: 99px; background: var(--red-bar); color: var(--gold-hi); font-size: 12.5px; font-weight: 600; }
.rv-tag--zoom { background: var(--gold-grad); color: var(--ink); }
.rv-tag--sc { background: transparent; color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-lo); }
.rv-tag--plain { background: var(--s3); color: var(--tx); font-weight: 500; }
.rv-tag--nf { background: #000; color: #ff3b45; box-shadow: inset 0 0 0 1px #6a080d; }

.rv-screen { padding: 8px; border: 1px solid var(--gold-lo); border-radius: var(--r); background: #000; box-shadow: 0 0 0 3px var(--red-lo), 0 20px 50px rgba(0, 0, 0, .6); }
.rv-screen__box { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 82vh; margin: 0 auto; overflow: hidden; border-radius: 4px; background: #000; }
.rv-screen__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rv-screen__start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 0; border: 0; background: #000; color: var(--tx); }
.rv-screen__cover { position: absolute; inset: 0; background: center 25% / cover no-repeat; opacity: .35; }
.rv-screen__start::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, .7)); }
.rv-screen__btn { position: relative; z-index: 1; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--red-bar); color: var(--gold-hi); font-size: 28px; box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(227, 38, 47, .55); transition: transform .2s; }
.rv-screen__btn i { margin-left: 5px; }
.rv-screen__start:hover .rv-screen__btn, .rv-yt button:hover .rv-screen__btn { transform: scale(1.06); }
.rv-screen__hint { position: relative; z-index: 1; font-size: 16px; font-weight: 500; color: var(--gold-hi); }
.rv-screen__start.is-wait .rv-screen__btn { animation: rv-pulse 1s ease-in-out infinite; }
@keyframes rv-pulse { 50% { opacity: .55; } }
.rv-screen__msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; color: var(--mt); background: var(--s1); }
.rv-screen__msg i { font-size: 30px; color: var(--red-hi); }
.rv-screen__err { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); margin: 0; padding: 6px 16px; border-radius: 6px; background: var(--red); color: #fff; font-size: 14px; }
.rv-screen__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 4px 2px; }
#rv-wide { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--gold-lo); border-radius: 6px; background: transparent; color: var(--gold-hi); font-size: 13.5px; }
#rv-wide[aria-pressed="true"] { background: var(--red-bar); }
.rv-jump { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; }
.rv-jump a { color: var(--mt); border-bottom: 1px solid transparent; }
.rv-jump a:hover, .rv-jump a.is-on { color: var(--gold-hi); border-bottom-color: var(--red-hi); }
body.rv-wide .rv-screen { position: relative; z-index: 5; width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; }
body.rv-wide .rv-2col { grid-template-columns: minmax(0, 1fr); }
body.rv-wide .rv-2col__side { display: none; }
body.rv-wide .rv-screen__box { max-height: 92vh; }
body.rv-wide .rv-sl { visibility: hidden; }

.rv-info { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.rv-info__pic { position: relative; align-self: start; overflow: hidden; border: 1px solid var(--gold-lo); border-radius: 6px; aspect-ratio: 2 / 3; background: var(--s3); }
.rv-info__pic img { width: 100%; height: 100%; object-fit: cover; }
.rv-info__body { min-width: 0; }
.rv-info__h { margin: 0 0 10px; font-size: 21px; }
.rv-info__plot { margin-top: 14px; color: #e2dbd3; }
.rv-info__plot p:last-child { margin-bottom: 0; }
.rv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 0; }
.rv-facts div { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rv-facts dt { flex: 0 0 64px; color: var(--mt); }
.rv-facts dd { margin: 0; min-width: 0; }
.rv-facts a { color: var(--gold-hi); }
.rv-facts small { color: var(--mt); }

.rv-panel { margin-bottom: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.rv-panel--doc { padding: 26px 30px; border: 1px dashed var(--gold-lo); }
.rv-panel__h { margin: 0 0 12px; padding-left: 10px; font-size: 19px; border-left: 4px solid var(--red-hi); }
.rv-qa { padding: 10px 0; border-top: 1px solid var(--line); }
.rv-qa:first-of-type { border-top: 0; padding-top: 0; }
.rv-qa h3 { margin: 0 0 4px; font-size: 16.5px; color: var(--gold); }
.rv-qa p { margin: 0; color: #d8d0c8; }
.rv-qa a { color: var(--gold-hi); }
.rv-ratio { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #000; border: 1px solid var(--line2); }
.rv-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rv-yt { max-width: 760px; }
.rv-yt button { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; background: #000; }
.rv-yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.rv-yt .rv-screen__btn { width: 62px; height: 62px; font-size: 20px; }
.rv-cast { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-cast li { padding: 3px 12px; border: 1px solid var(--line2); border-radius: 99px; background: var(--s2); font-size: 13.5px; }
/* รายการตอนซีรีส์ */
.rv-eps__hint { margin: -4px 0 10px; color: var(--mt); font-size: 13.5px; }
.rv-eps__season + .rv-eps__season { margin-top: 14px; }
.rv-eps__season h3 { margin: 0 0 8px; font-size: 16px; }
.rv-eps__season h3 small { color: var(--mt); font-weight: 400; font-size: 13px; }
.rv-eps__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.rv-eps__list a, .rv-eps__list li > span { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 6px; background: var(--s2); color: var(--tx); font-size: 14px; line-height: 1.35; }
.rv-eps__list a:hover { border-color: var(--gold-lo); color: var(--gold-hi); }
.rv-eps__list b { flex: none; color: var(--gold); font-weight: 600; }
.rv-eps__list span span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rv-eps__list [aria-current] { border-color: var(--gold-lo); background: var(--s1); }
.rv-more { margin-top: 4px; }
.rv-2col__main .rv-more .rv-bar { margin-top: 6px; }

/* ==========================================================================
   หน้าสารบัญ / อันดับ / 404 / ข้อมูลเว็บ
   ========================================================================== */
.rv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.rv-tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line2); border-radius: var(--r); background: var(--s2); }
.rv-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: opacity .25s; }
.rv-tile:hover { border-color: var(--gold); }
.rv-tile:hover img { opacity: .65; }
.rv-tile__body { position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(40, 4, 6, .96) 55%); }
.rv-tile strong { display: block; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--gold-hi); }
.rv-tile em { display: block; margin-top: 4px; font-style: normal; font-size: 13px; color: #ddd5cd; line-height: 1.5; }
.rv-ix__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rv-ix__list a { display: block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--s1); font-size: 14px; }
.rv-ix__list a:hover { border-color: var(--gold); }
.rv-ix__more, .rv-info__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

.rv-chart { margin-top: 16px; }
.rv-chart li a { display: grid; grid-template-columns: 52px 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.rv-chart li a:hover { background: var(--s1); }
.rv-chart li.is-top a { background: linear-gradient(90deg, rgba(181, 18, 27, .2), transparent 65%); }
.rv-chart__n { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; background: var(--red-bar); font-size: 16px; font-weight: 700; color: var(--gold-hi); }
.rv-chart li.is-top .rv-chart__n { background: var(--gold-grad); color: var(--ink); }
.rv-chart img { width: 54px; height: 76px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line2); }
.rv-chart__t strong { display: block; font-weight: 500; }
.rv-chart__t small { color: var(--mt); }
.rv-chart__v { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; color: var(--mt); }

.rv-lost { padding: 40px 16px 20px; text-align: center; }
.rv-lost__n { margin: 0; font-size: clamp(72px, 13vw, 130px); font-weight: 800; font-style: italic; line-height: 1; filter: drop-shadow(0 4px 0 var(--red-lo)); }
.rv-lost__find { display: flex; max-width: 540px; margin: 18px auto; }
.rv-lost__find input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-right: 0; border-radius: 6px 0 0 6px; background: #1a1313; color: var(--tx); }
.rv-lost__find .rv-btn { border-radius: 0 6px 6px 0; }
.rv-lost__go { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rv-contact { padding: 12px 16px; border-left: 3px solid var(--red-hi); border-radius: 0 6px 6px 0; background: var(--s2); }

/* ==========================================================================
   เมนูหมวด (จอเล็ก)
   ========================================================================== */
.rv-shade { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .72); }
.rv-mega { position: fixed; inset: 0 0 0 auto; z-index: 71; width: min(100%, 540px); overflow-y: auto; padding: 0 18px 30px; background: var(--bg); border-left: 3px solid var(--red); }
.rv-mega__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; background: var(--bg); border-bottom: 1px solid var(--line2); }
.rv-mega__head .rv-logo__w { font-size: 28px; }
.rv-mega__head .rv-logo small { display: none; }
.rv-mega__h { margin: 18px 0 8px; padding: 5px 10px; border-radius: 5px; background: var(--red-bar); font-size: 15px; font-weight: 600; color: var(--gold-hi); }
.rv-mega__list a { display: block; padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rv-mega__list a.is-on { color: var(--gold-hi); }
.rv-mega__list--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.rv-mega__list--y { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rv-mega__list--y a { border: 1px solid var(--line); border-radius: 5px; text-align: center; }

/* ==========================================================================
   ท้ายเว็บ / ปุ่มขึ้นบน
   ========================================================================== */
.rv-foot { margin-top: 34px; border-top: 3px solid var(--red); background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(181, 18, 27, .16), transparent 70%), #050303; }
.rv-foot__in { display: flex; flex-direction: column; align-items: center; padding-top: 28px; padding-bottom: 10px; text-align: center; }
.rv-logo--foot { margin: 0 0 12px; align-items: center; }
.rv-foot__about { max-width: 860px; color: var(--mt); font-size: 14px; }
.rv-foot__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 6px 0; font-weight: 500; font-size: 14.5px; }
.rv-foot__row a { color: var(--gold-hi); }
.rv-foot__row--sm { padding: 6px 0 14px; font-weight: 300; font-size: 13.5px; gap: 4px 16px; }
.rv-foot__row--sm a { color: var(--mt); }
.rv-foot__end { border-top: 1px solid var(--line); background: #000; color: var(--mt); font-size: 13px; }
.rv-foot__endin { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-top: 10px; padding-bottom: 10px; }
.rv-foot__info { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rv-foot__info a { color: var(--gold); }
.rv-up { position: fixed; z-index: 50; right: 16px; bottom: 18px; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--gold); border-radius: 50%; background: var(--red-bar); color: var(--gold-hi); font-size: 16px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.rv-up.is-on { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   โฆษณา (ช่องว่างไม่แสดง)
   ========================================================================== */
.rv-sl { display: none; text-align: center; }
.rv-sl.is-on, .rv-sl.is-res { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 14px; }
/* จองที่ตามสัดส่วนป้าย (inc/ads.php) จนกว่า JS ใส่ป้ายจริง -> เนื้อหาไม่กระตุก */
.rv-sl.is-res:not(.is-on)::before { content: ""; display: block; width: 100%; max-width: var(--sl-w); aspect-ratio: var(--sl-ar); }
.rv-sl img { max-width: 100%; height: auto; }
.rv-sl a { display: block; max-width: 100%; }
.rv-sl--player-header:is(.is-on, .is-res) { margin: 16px 322px 0 0; } /* กว้างเท่าคอลัมน์หลัก (แถบขวา 300 + ช่องว่าง 22) ให้ตรงกับโฆษณาเหนือเครื่องเล่น */
body.rv-wide .rv-sl--player-header:is(.is-on, .is-res) { margin-right: 0; }
.rv-sl--player-top:is(.is-on, .is-res) { margin: 0 0 14px; }
.rv-sl--player-under:is(.is-on, .is-res) { margin-top: 14px; margin-bottom: 0; }
.rv-sl--player-footer.is-on { position: fixed; z-index: 58; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 780px); padding: 6px; margin: 0; background: rgba(10, 7, 7, .96); border-top: 2px solid var(--red-hi); }
.rv-sl__x { position: absolute; top: -14px; right: 6px; width: 28px; height: 28px; border: 2px solid var(--bg); border-radius: 50%; background: var(--red-hi); color: #fff; display: grid; place-items: center; font-size: 13px; }
.rv-sl--player-left.is-on, .rv-sl--player-right.is-on { position: fixed; z-index: 57; top: 50%; transform: translateY(-50%); width: 140px; padding: 0; margin: 0; background: none; } /* ป้ายลอย 140x250 */
.rv-sl--player-left.is-on { left: 4px; }
.rv-sl--player-right.is-on { right: 4px; }
.rv-sl--player-left img, .rv-sl--player-right img { width: 140px; max-height: 250px; object-fit: contain; }
.rv-sl--player-left .rv-sl__x, .rv-sl--player-right .rv-sl__x { top: -12px; right: -8px; width: 24px; height: 24px; font-size: 11px; }
.rv-sl--player-right .rv-sl__x { right: auto; left: -8px; }
.rv-sl__x::after { content: ""; position: absolute; inset: -10px; } /* พื้นที่กดปุ่มปิดอย่างน้อย 44px บนมือถือ */

/* ==========================================================================
   ขนาดจอ
   ========================================================================== */
@media (min-width: 1700px) {
	.rv-sl--player-left.is-on, .rv-sl--player-right.is-on { top: 200px; transform: none; }
}

@media (max-width: 1260px) {
	.rv-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.rv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.rv-band__track { grid-auto-columns: calc((100% - 5 * 14px) / 6); }
	.rv-3col { grid-template-columns: 200px minmax(0, 1fr) 200px; gap: 16px; }
	.rv-nav a { padding: 12px 13px; font-size: 14.5px; }
	.rv-2col { grid-template-columns: minmax(0, 1fr) 260px; }
	.rv-sl--player-header:is(.is-on, .is-res) { margin-right: 282px; }
}

@media (max-width: 1000px) {
	.rv-ticker__in > p:first-child { display: none; }
	.rv-ticker__in { justify-content: center; }
	.rv-top__row { min-height: 70px; gap: 10px; }
	.rv-logo__w { font-size: 28px; }
	.rv-logo small { font-size: 10.5px; letter-spacing: .1em; }
	.rv-ibtn--find, .rv-ibtn--menu { display: inline-grid; }
	.rv-find { display: none; position: absolute; z-index: 61; top: 100%; left: 0; right: 0; flex: none; padding: 10px 16px; background: var(--s1); border-bottom: 1px solid var(--gold-lo); }
	.rv-find.is-open { display: flex; }
	.rv-find__out { left: 16px; right: 16px; }
	.rv-nav ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0; }
	.rv-nav ul::-webkit-scrollbar { display: none; }
	.rv-nav a { padding: 10px 14px; font-size: 14px; }
	.rv-3col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main" "left right"; column-gap: 12px; }
	.rv-3col > .rv-side { margin-top: 8px; }
	.rv-chips { display: flex; }
	.rv-2col { grid-template-columns: minmax(0, 1fr); }
	.rv-sl--player-header:is(.is-on, .is-res) { margin-right: 0; }
	.rv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rv-band__track { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
	.rv-band__btn { display: none; }
	/* หน้าหนัง: เนื้อหาหลัก -> เรื่องที่คนดูต่อ -> แถบข้าง */
	.rv-single { display: flex; flex-direction: column; }
	.rv-single > .rv-2col { display: contents; }
	.rv-single .rv-2col__main { order: 1; min-width: 0; }
	.rv-single > .rv-band { order: 2; }
	.rv-single .rv-2col__side { order: 3; margin-top: 18px; }
	.rv-single .rv-mini { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	/* มือถือ: ป้ายลอยเหลือข้างขวาข้างเดียว กว้าง 100px (สองข้าง 140px เคยบังจอ ~72%) */
	.rv-sl--player-left.is-on { display: none; }
	.rv-sl--player-right.is-on { width: 100px; }
	.rv-sl--player-right img { width: 100px; max-height: 179px; }
	.rv-grid, .rv-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
	.rv-band__track { grid-auto-columns: calc((100% - 2 * 10px) / 3); gap: 10px; }
	.rv-bar { margin-top: 20px; min-height: 40px; }
	.rv-bar__t { font-size: 16.5px; }
	.rv-bar__all { right: 8px; font-size: 12px; }
	.rv-info { display: flow-root; padding: 14px; }
	.rv-info__pic { float: left; width: 104px; margin: 0 14px 8px 0; }
	.rv-info__plot { clear: both; padding-top: 4px; }
	.rv-facts { grid-template-columns: minmax(0, 1fr); }
	.rv-mhead { padding: 14px; gap: 10px; }
	.rv-mhead__sc { width: 58px; height: 58px; }
	.rv-mhead__sc b { font-size: 19px; }
	.rv-mhead__sc small { margin-top: -10px; font-size: 8px; }
	.rv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.rv-chart li a { grid-template-columns: 42px 44px minmax(0, 1fr); }
	.rv-chart__n { width: 34px; height: 34px; font-size: 14px; }
	.rv-chart img { width: 44px; height: 62px; }
	.rv-chart__v { grid-column: 3; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
	.rv-panel, .rv-panel--doc, .rv-intro { padding: 16px; }
	.rv-head { padding: 16px; }
	.rv-card__title { font-size: 12.5px; margin: 6px 2px 0; }
	.rv-flag { width: 44px; height: 44px; }
	.rv-flag b { top: 9px; right: -8px; width: 44px; font-size: 9px; }
	.rv-card__lang { font-size: 11px; padding: 1px 4px; }
	.rv-lead { padding-top: 18px; }
	.rv-single .rv-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	/* แถบข้างบนมือถือ: เต็มความกว้าง ท้ายหน้า รายการเป็นปุ่มแคปซูล (ไม่ยาวเป็นแถว) */
	.rv-3col { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "left" "right"; }
	.rv-3col > .rv-side { margin-top: 0; }
	.rv-side { display: grid; gap: 12px; }
	.rv-sbox { margin-bottom: 0; border: 0; background: none; overflow: visible; }
	.rv-sbox__h { margin: 0 0 8px; padding: 6px 12px; border-radius: 6px; font-size: 14.5px; text-align: left; }
	.rv-sbox__list { display: flex; flex-wrap: wrap; gap: 6px; }
	.rv-sbox__list li a, .rv-sbox__list li:last-child a { gap: 6px; padding: 4px 12px; border: 1px solid var(--line2); border-radius: 99px; background: var(--s1); font-size: 13px; line-height: 1.5; }
	.rv-sbox__list em { font-size: 11.5px; }
	.rv-hot, .rv-mini { border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
	.rv-sbox__more { border: 0; }
	/* มือถือ: หน้าแรก = หนังแนะนำ -> H1 -> หนังเข้าใหม่ล่าสุด -> หนังน่าดู -> แถบข้างท้ายหน้า */
	.rv-home { display: flex; flex-direction: column; }
	.rv-home > .rv-3col, .rv-home .rv-3col__main { display: contents; }
	.rv-home > .rv-lead { order: 1; }
	.rv-home > .rv-band { order: 2; }
	.rv-home .rv-list { order: 3; }
	.rv-home .rv-trend { order: 4; }
	.rv-home .rv-side--left { order: 5; margin-top: 24px; }
	.rv-home .rv-side--right { order: 6; margin-top: 12px; }
}

@media (max-width: 480px) {
	.rv-ticker { font-size: 12px; }
	.rv-logo__w { font-size: 24px; }
	.rv-info__pic { width: 92px; }
	.rv-info__h { font-size: 17px; }
	.rv-facts div { padding: 3px 0; gap: 6px; font-size: 13px; line-height: 1.45; }
	.rv-facts dt { flex: 0 0 52px; font-size: 12px; }
	.rv-mhead { flex-wrap: wrap; }
	.rv-mhead__nums { flex-direction: row; }
	.rv-title { font-size: 19px; }
	.rv-foot__endin { justify-content: center; text-align: center; }
	.rv-mega__list--y { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
