/* MOVIEBOX — boxy old-school movie site */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --panel: #16161a;
  --panel-2: #1d1d22;
  --line: #2b2b31;
  --line-2: #3a3a42;
  --text: #e9e9ec;
  --muted: #9a9aa3;
  --gold: #f2b705;
  --gold-2: #ffd24a;
  --red: #d0161b;
  --red-2: #ff2a30;
  --green: #2fa84f;
  --head: 'Kanit', Tahoma, sans-serif;
  --body: 'Sarabun', Tahoma, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --tabbar: 0px;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
  color: var(--text);
  font: 15px/1.5 var(--body);
  min-height: 100vh;
  padding-bottom: var(--tabbar);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
svg { width: 1em; height: 1em; flex: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #000; border-bottom: 3px solid var(--gold); }
.topbar { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font: 700 26px/1 var(--head); letter-spacing: 1px; color: #fff; }
.logo svg { width: 30px; height: 30px; color: var(--gold); }
.logo b { color: var(--gold); font-weight: 700; }

.search { flex: 1; display: flex; max-width: 520px; margin-left: auto; border: 2px solid var(--line-2); background: var(--bg-2); }
.search:focus-within { border-color: var(--gold); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0 12px; height: 38px; font-size: 15px; }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.search button { display: flex; align-items: center; gap: 6px; padding: 0 16px; background: var(--gold); color: #000; font: 700 14px var(--head); }
.search button:hover { background: var(--gold-2); }
.search button svg { width: 16px; height: 16px; }

.navbar { background: linear-gradient(#1b1b20, #121215); border-top: 1px solid var(--line); }
.navbar .wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.navbar .wrap::-webkit-scrollbar { display: none; }
.navbar a {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 0 18px; height: 44px; font: 500 15px var(--head); color: #cfcfd4;
  border-right: 1px solid var(--line);
}
.navbar a:first-child { border-left: 1px solid var(--line); }
.navbar a svg { width: 17px; height: 17px; color: var(--muted); }
.navbar a:hover { background: #26262c; color: #fff; }
.navbar a.active { background: var(--gold); color: #000; }
.navbar a.active svg { color: #000; }

/* ---------- Bottom tab bar (mobile) ---------- */
.tabbar { display: none; }

/* ---------- Boxes / sections ---------- */
main { padding-top: 20px; padding-bottom: 28px; min-height: 60vh; }
.box { background: var(--panel); border: 1px solid var(--line); margin-bottom: 22px; }
.box-head {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 0;
  background: linear-gradient(#222228, #18181c); border-bottom: 2px solid var(--red);
}
.box-head h2 {
  display: flex; align-items: center; gap: 10px; align-self: stretch;
  font: 500 17px var(--head); color: #fff; padding: 0 16px;
  background: var(--red); position: relative;
}
.box-head h2::after {
  content: ''; position: absolute; right: -14px; top: 0; bottom: 0; width: 14px;
  background: var(--red); clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.box-head h2 svg { width: 18px; height: 18px; }
.box-head .count { color: var(--muted); font-size: 13px; margin-left: 18px; }
.box-head .more {
  margin-left: auto; display: flex; align-items: center; gap: 4px;
  font: 500 13px var(--head); color: var(--gold); padding: 4px 10px; border: 1px solid var(--line-2);
}
.box-head .more:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.box-head .more svg { width: 12px; height: 12px; }
.box-body { padding: 14px; }

/* ---------- Poster grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.card { display: block; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .15s; position: relative; }
.card:hover, .card:focus-visible { border-color: var(--gold); outline: 0; }
.poster { position: relative; aspect-ratio: 2 / 3; background: #0d0d0f; overflow: hidden; }
.poster img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s, transform .3s; }
.poster img.loaded { opacity: 1; }
.card:hover .poster img { transform: scale(1.04); }
.poster .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #2c2c33; }
.poster .ph svg { width: 42%; height: 42%; }
.poster .ph span {
  position: absolute; left: 8px; right: 8px; bottom: 10px; text-align: center;
  font: 500 13px/1.3 var(--head); color: #56565f;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.badge {
  position: absolute; top: 0; left: 0; z-index: 2;
  font: 700 11px/1 var(--head); letter-spacing: .5px; padding: 5px 7px;
  background: var(--red); color: #fff;
}
.badge.hd { background: var(--red); }
.badge.cam { background: #666; }
.badge.type { left: auto; right: 0; background: #000; color: var(--gold); border-left: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.rating {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 4px; padding: 4px 7px;
  background: rgba(0,0,0,.85); color: var(--gold); font: 700 12px/1 var(--head);
}
.rating svg { width: 11px; height: 11px; }
.play-ov {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  background: rgba(0,0,0,.45); opacity: 0; transition: opacity .15s;
}
.play-ov i { display: grid; place-items: center; width: 52px; height: 52px; background: var(--gold); color: #000; border: 3px solid #000; outline: 2px solid var(--gold); }
.play-ov svg { width: 24px; height: 24px; margin-left: 3px; }
.card:hover .play-ov { opacity: 1; }
.card .meta { padding: 8px 9px 10px; border-top: 2px solid var(--line); }
.card:hover .meta { border-top-color: var(--gold); }
.card h3 {
  font: 500 14px/1.3 var(--head); color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.card .sub { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.card .progress { height: 4px; background: #000; }
.card .progress i { display: block; height: 100%; background: var(--red-2); }
.card .remove {
  position: absolute; top: 0; right: 0; z-index: 3; width: 28px; height: 28px;
  display: grid; place-items: center; background: #000; color: #fff; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.card .remove:hover { background: var(--red); }
.card .remove svg { width: 12px; height: 12px; }

/* ---------- Horizontal row (continue watching) ---------- */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.row .card { scroll-snap-align: start; }
.row::-webkit-scrollbar { height: 8px; }
.row::-webkit-scrollbar-thumb { background: var(--line-2); }
.row::-webkit-scrollbar-track { background: #000; }

/* ---------- Table list (episodes) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font: 500 13px var(--head); color: var(--muted); background: var(--bg-2);
  padding: 8px 12px; border-bottom: 1px solid var(--line-2);
}
.table td { padding: 0; border-bottom: 1px solid var(--line); }
.table tr:nth-child(even) td { background: rgba(255,255,255,.018); }
.table tr:hover td { background: #222228; }
.table td a { display: block; padding: 10px 12px; }
.table .t-title a { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.table .t-title svg { width: 12px; height: 12px; color: var(--gold); }
.table .ep {
  display: inline-block; font: 700 12px/1 var(--head); padding: 5px 7px;
  background: #000; border: 1px solid var(--gold); color: var(--gold); white-space: nowrap;
}
.table .q { font: 700 12px var(--head); color: var(--red-2); }
.table .time { color: var(--muted); white-space: nowrap; font-size: 13px; }

/* ---------- Pager ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 16px 12px; border-top: 1px solid var(--line); }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center;
  font: 500 14px var(--head); background: var(--bg-2); border: 1px solid var(--line-2);
}
.pager a:hover { border-color: var(--gold); color: var(--gold); }
.pager .cur { background: var(--gold); color: #000; border-color: var(--gold); }
.pager .gap { border: 0; background: none; color: var(--muted); min-width: 20px; }
.pager .dis { opacity: .35; }
.pager svg { width: 14px; height: 14px; }

/* ---------- Tabs (segmented) ---------- */
.seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-2); width: fit-content; }
.seg button, .seg a {
  padding: 8px 16px; font: 500 14px var(--head); color: var(--muted); background: var(--bg-2);
  border-right: 1px solid var(--line-2);
}
.seg > :last-child { border-right: 0; }
.seg .on { background: var(--gold); color: #000; }
.seg button:not(.on):hover { color: #fff; background: #222228; }

/* ---------- Watch page ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.crumb a:hover { color: var(--gold); }
.crumb svg { width: 10px; height: 10px; }
.crumb b { color: var(--text); font-weight: 600; }

.player-box { background: #000; border: 1px solid var(--line-2); margin-bottom: 0; }
.player-title {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: linear-gradient(#222228, #18181c); border-bottom: 2px solid var(--gold);
  font: 500 16px/1.3 var(--head);
}
.player-title svg { width: 18px; height: 18px; color: var(--gold); }
.player-title .ep { margin-left: auto; font: 700 13px var(--head); color: #000; background: var(--gold); padding: 3px 8px; white-space: nowrap; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px;
  background: var(--panel); border: 1px solid var(--line-2); border-top: 0; margin-bottom: 22px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px; font: 500 14px var(--head);
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); white-space: nowrap;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--gold); color: #000; border-color: var(--gold); }
.btn.primary:hover { background: var(--gold-2); color: #000; }
.btn.on { color: var(--gold); border-color: var(--gold); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.toolbar .spacer { flex: 1; }
.select { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding-left: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font: 500 14px var(--head); color: var(--muted); }
.select svg { width: 18px; height: 18px; }
.select select { height: 100%; background: #000; border: 0; border-left: 1px solid var(--line-2); padding: 0 10px; color: var(--text); outline: 0; }

.detail { display: grid; grid-template-columns: 180px 1fr; gap: 18px; }
.detail .poster { border: 1px solid var(--line-2); }
.detail h1 { font: 700 26px/1.2 var(--head); color: #fff; margin-bottom: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.fact { display: inline-flex; align-items: center; gap: 5px; font: 500 13px/1 var(--head); padding: 6px 9px; border: 1px solid var(--line-2); background: var(--bg-2); }
.fact svg { width: 12px; height: 12px; }
.fact.gold { color: var(--gold); border-color: var(--gold); }
.fact.red { background: var(--red); border-color: var(--red); color: #fff; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd a { color: var(--gold); }
.kv dd a:hover { text-decoration: underline; }

.seasons { margin-bottom: 14px; }
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.eps a {
  position: relative; display: grid; place-items: center; height: 42px;
  font: 500 14px var(--head); background: var(--bg-2); border: 1px solid var(--line-2);
}
.eps a:hover { border-color: var(--gold); color: var(--gold); }
.eps a.seen { color: var(--muted); }
.eps a.seen::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red-2); }
.eps a.cur { background: var(--gold); color: #000; border-color: var(--gold); }

/* ---------- States ---------- */
.state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 16px; text-align: center; color: var(--muted); }
.state svg { width: 40px; height: 40px; color: var(--line-2); }
.state.err svg { color: var(--red-2); }
.state h3 { font: 500 18px var(--head); color: var(--text); }
.loader { display: flex; gap: 6px; justify-content: center; padding: 40px 0; }
.loader i { width: 12px; height: 12px; background: var(--gold); animation: blink 1s infinite steps(1); }
.loader i:nth-child(2) { animation-delay: .2s; }
.loader i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .15; } 40% { opacity: 1; } }
.skel { background: linear-gradient(90deg, #141417 25%, #1c1c21 50%, #141417 75%); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

.site-footer { color: #5d5d66; font-size: 12.5px; text-align: center; padding: 18px var(--gutter) 28px; border-top: 1px solid var(--line); }

.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .detail { grid-template-columns: 140px 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  :root { --tabbar: calc(58px + env(safe-area-inset-bottom)); }
  body { font-size: 14px; }
  .topbar { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo { font-size: 22px; }
  .logo svg { width: 26px; height: 26px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .search button span { display: none; }
  .navbar { display: none; }
  .site-header { border-bottom-width: 2px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #000; border-top: 2px solid var(--gold);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 56px; color: var(--muted); font: 500 11.5px var(--head); border-right: 1px solid #1c1c20; }
  .tabbar a:last-child { border-right: 0; }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a.active { color: #000; background: var(--gold); }

  main { padding-top: 14px; }
  .box { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-left: 0; border-right: 0; margin-bottom: 16px; }
  .box-body { padding: 10px; }
  .box-head h2 { font-size: 15px; padding: 0 12px; }
  .box-head .count { display: none; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .row { grid-auto-columns: 30%; gap: 8px; }
  .card h3 { font-size: 12.5px; }
  .card .sub { font-size: 11px; }
  .card .meta { padding: 6px 6px 7px; }
  .badge { font-size: 9.5px; padding: 4px 5px; }
  .rating { font-size: 10.5px; padding: 3px 5px; }
  .play-ov { display: none; }

  .table th.hide-sm, .table td.hide-sm { display: none; }
  .table td a { padding: 10px 8px; }
  .pager a, .pager span { min-width: 34px; height: 34px; padding: 0 8px; }

  .player-box, .toolbar { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .player-title { font-size: 14px; }
  .toolbar { gap: 6px; padding: 8px 10px; }
  .toolbar .btn .lbl { display: none; }
  .toolbar .btn { padding: 0 11px; }
  .detail { grid-template-columns: 100px 1fr; gap: 12px; }
  .detail h1 { font-size: 19px; }
  .eps { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
}

@media (max-width: 360px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-auto-columns: 42%; }
}

/* Titles vidsrc doesn't carry (search results) */
.card.na .poster img { filter: grayscale(1) brightness(.45); }
.card.na h3 { color: var(--muted); }
.na-tag {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; text-align: center;
  font: 500 12px var(--head); padding: 5px 4px; background: rgba(0,0,0,.85); color: #bbb; border-top: 1px solid var(--line-2);
}

/* ---------- Genre chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a {
  font: 500 14px var(--head); padding: 7px 14px; background: var(--bg-2); border: 1px solid var(--line-2);
}
.chips a:hover { background: var(--gold); color: #000; border-color: var(--gold); }

/* ---------- Browse filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.filters .seg a { padding: 8px 14px; }
.filters .select select { max-width: 190px; }

/* ---------- Announcement marquee ---------- */
.announce { background: #1a0000; border-top: 1px solid #3b0a0b; }
.announce .wrap { display: flex; align-items: center; height: 34px; gap: 0; overflow: hidden; }
.announce b {
  display: flex; align-items: center; gap: 6px; flex: none; height: 100%; padding: 0 12px;
  background: var(--red); color: #fff; font: 500 13px var(--head);
}
.announce b svg { width: 14px; height: 14px; }
.marquee { flex: 1; overflow: hidden; white-space: nowrap; font-size: 14px; color: var(--gold-2); }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee span { animation: none; padding-left: 12px; } }

/* ---------- Banner ads ---------- */
.ad-global .ad-slot { margin-top: 16px; }
.ad-global:has(.ad-slot:empty) { display: none; }
.ad-slot { position: relative; margin-bottom: 20px; background: #000; border: 1px solid var(--line-2); }
.ad-slot:empty { display: none; }
.ad-track { display: grid; }
.ad { grid-area: 1 / 1; display: none; }
.ad.on { display: block; animation: adfade .4s; }
.ad img { width: 100%; max-height: 180px; object-fit: contain; margin: 0 auto; }
@keyframes adfade { from { opacity: 0; } }
.ad-label { position: absolute; top: 0; right: 0; font: 500 10px/1 var(--head); padding: 3px 6px; background: rgba(0,0,0,.75); color: #aaa; pointer-events: none; }
.ad-dots { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; gap: 5px; }
.ad-dots button { width: 10px; height: 10px; background: rgba(255,255,255,.35); border: 1px solid #000; }
.ad-dots button.on { background: var(--gold); }
.player-box + .toolbar + .ad-slot { margin-top: -10px; }

@media (max-width: 720px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips a { white-space: nowrap; }
  .filters { gap: 6px; }
  .filters .seg { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .filters .seg a { text-align: center; padding: 8px 4px; }
  .filters .select { flex: 1; }
  .filters .select select { flex: 1; max-width: none; }
  .ad-slot { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .ad-global .ad-slot { margin-top: 12px; }
}

/* ---------- Anime / cartoon ---------- */
.cat-tabs { margin-bottom: 12px; }
.cat-tabs a { padding: 9px 16px; font-size: 15px; }
.chips a.hot { background: var(--red); border-color: var(--red); color: #fff; }
.chips a.hot:hover { background: var(--gold); border-color: var(--gold); color: #000; }
@media (max-width: 720px) {
  .cat-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .cat-tabs a { text-align: center; padding: 9px 4px; font-size: 14px; border-bottom: 1px solid var(--line-2); }
}

/* ---------- Pre-roll video ad ---------- */
.preroll { position: absolute; inset: 0; background: #000; overflow: hidden; }
.preroll video { width: 100%; height: 100%; object-fit: contain; display: block; }
.preroll.has-link video { cursor: pointer; }
.pr-top { position: absolute; top: 10px; left: 10px; display: flex; gap: 0; font: 700 12px/1 var(--head); }
.pr-label { padding: 6px 9px; background: var(--gold); color: #000; letter-spacing: .5px; }
.pr-time { padding: 6px 9px; background: rgba(0,0,0,.8); color: #fff; min-width: 44px; text-align: center; }
.pr-time:empty { display: none; }
.pr-visit {
  position: absolute; left: 10px; bottom: 16px; display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; background: rgba(0,0,0,.8); border: 1px solid var(--line-2); color: #fff; font: 500 14px var(--head);
}
.pr-visit:hover { border-color: var(--gold); color: var(--gold); }
.pr-visit svg { width: 12px; height: 12px; }
.pr-skip {
  position: absolute; right: 0; bottom: 16px; display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; min-width: 150px; justify-content: center;
  background: rgba(0,0,0,.85); border: 1px solid var(--line-2); border-right: 0; color: #fff; font: 500 15px var(--head);
}
.pr-skip:not([disabled]) { border-color: var(--gold); color: var(--gold); cursor: pointer; }
.pr-skip:not([disabled]):hover { background: var(--gold); color: #000; }
.pr-skip[disabled] { color: #bbb; cursor: default; }
.pr-skip svg { width: 14px; height: 14px; }
.pr-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.15); }
.pr-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s linear; }
@media (max-width: 720px) {
  .pr-skip { min-width: 0; padding: 9px 12px; font-size: 13px; bottom: 12px; }
  .pr-visit { padding: 7px 10px; font-size: 12px; bottom: 12px; }
}
.pr-start {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(0,0,0,.55); color: #fff; font: 500 16px var(--head); cursor: pointer;
}
.pr-start[hidden] { display: none; }
.pr-start svg { width: 34px; height: 34px; padding: 18px; box-sizing: content-box; background: var(--gold); color: #000; border: 3px solid #000; outline: 2px solid var(--gold); }
.pr-start:hover svg { background: var(--gold-2); }

/* ---------- Subtitle badges ---------- */
.badge.sub { top: auto; bottom: 0; left: 0; background: rgba(0,0,0,.85); color: #ddd; border-top: 1px solid #555; border-right: 1px solid #555; }
.badge.sub.th { background: var(--gold); color: #000; border-color: #000; }
.fact.sub { color: #ddd; }
.fact.sub.th { background: var(--gold); border-color: var(--gold); color: #000; }
.sub-note { display: flex; align-items: center; gap: 8px; margin: -12px 0 18px; color: var(--gold-2); }
.sub-note svg { width: 16px; height: 16px; flex: none; }
.alias-note { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--gold-2); }
.alias-note svg { width: 14px; height: 14px; }

/* ---------- Thai subtitle button ---------- */
.th-btn { position: relative; overflow: hidden; }
.th-btn.on { color: #000; background: var(--gold); border-color: var(--gold); }
.th-btn.busy { color: var(--gold); border-color: var(--gold); }
.th-btn[disabled] { opacity: 1; pointer-events: none; }
.th-btn .th-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); transition: width .4s; }

/* ---------- Thai titles (TMDB) ---------- */
.card .en-title { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.card h3[data-th] { min-height: 0; -webkit-line-clamp: 2; }
.detail .en-sub { color: var(--muted); margin: -6px 0 10px; font-size: 14px; }
.detail .overview { margin-bottom: 14px; line-height: 1.7; color: #d4d4da; max-width: 70ch; }
