/* Tanukade Theater (was Opus Theater). Header and footer match /about/; the rest follows the homepage's panels. */
:root {
  --th-bg: #090c0d;
  --th-panel: #111617;
  --th-panel2: #0d1112;
  --th-ink: #f2f2e9;
  --th-muted: #a6ada9;
  --th-line: #ffffff17;
  --th-line2: #ffffff2a;
  --th-lime: #d6ff62;
  --th-lime2: #e5ff9b;
  --th-warn: #ffb35c;
  --th-bad: #ff7a6b;
  --th-radius: 14px;
}

html { background: var(--th-bg); }
body { min-width: 320px; margin: 0; background: var(--th-bg); color: var(--th-ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:is(a, button, input, textarea, summary):focus-visible { outline: 3px solid var(--th-lime); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.arcade-shell { min-height: 100vh; overflow: hidden; }
.site-header { border-bottom: 1px solid var(--th-line); }
.header-inner { display: flex; align-items: center; gap: clamp(22px, 4vw, 64px); width: min(1320px, calc(100% - 64px)); min-height: 78px; margin: 0 auto; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-size: 24px; font-weight: 780; letter-spacing: -1px; }
.wordmark img { display: block; width: 32px; height: 32px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); min-width: 0; }
.main-nav a { position: relative; padding: 29px 0 26px; color: #b8c2b5; font-size: 12px; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--th-ink); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--th-lime); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; min-height: 32px; }
.site-footer { width: min(1320px, calc(100% - 64px)); margin: 0 auto; padding: 25px 0 32px; }
.site-footer a { color: #8f9e8c; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.site-footer a:hover { color: var(--th-lime); }

.theater-page { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }
.th-eyebrow { color: var(--th-lime); font-size: 10px; font-weight: 750; letter-spacing: 2.2px; text-transform: uppercase; }
.th-button { border: 0; background: var(--th-lime); color: #0e180c; border-radius: 7px; min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 750; transition: background .2s, transform .2s; }
.th-button:hover { background: var(--th-lime2); transform: translateY(-2px); }
.th-button:disabled { opacity: .6; cursor: wait; transform: none; }
.th-ghost { background: transparent; color: var(--th-ink); border: 1px solid var(--th-line2); }
.th-ghost:hover { border-color: #ffffff55; background: #ffffff08; }
.th-small-button { min-height: 38px; padding: 0 14px; font-size: 12px; }
.th-play-icon { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* hero: the film on the right, the copy on black on the left */
.th-hero { position: relative; isolation: isolate; margin-top: 28px; border-radius: 18px; overflow: hidden; min-height: 480px; display: flex; align-items: flex-end; border: 1px solid #ffffff25; background: #000; }
.th-hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; height: 100%; object-fit: cover; object-position: 100% 50%; z-index: -2; }
.th-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #000 0%, #000 36%, #00000099 46%, #00000000 60%), linear-gradient(0deg, #000000cc, transparent 30%); }
.th-hero-copy { padding: 48px 50px 50px; max-width: 740px; }
.th-hero h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: .92; letter-spacing: -4px; font-weight: 900; margin: 14px 0 16px; }
.th-tag { font-size: clamp(18px, 2vw, 24px); font-weight: 650; letter-spacing: -.5px; color: #eef3ea; }
.th-body { color: #c3cbc6; font-size: 14px; line-height: 1.65; max-width: 440px; margin-top: 10px !important; }
.th-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.th-marquee { position: absolute; right: 24px; bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.th-marquee span { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: #e7f3eb; background: #071116bb; border: 1px solid #ffffff30; padding: 6px 10px; border-radius: 20px; }

.th-block { margin-top: 56px; }
.th-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--th-line); padding-bottom: 14px; margin-bottom: 18px; }
.th-head h2 { font-size: 28px; letter-spacing: -1.2px; margin-top: 6px; }
.th-headnote { color: var(--th-muted); font-size: 13px; max-width: 520px; line-height: 1.6; }
.th-sorts { display: flex; gap: 4px; background: var(--th-panel); border: 1px solid var(--th-line); border-radius: 24px; padding: 4px; }
.th-sorts button { background: none; border: 0; color: #b6beb8; font-size: 12px; padding: 8px 14px; border-radius: 20px; white-space: nowrap; min-height: 34px; }
.th-sorts button[aria-pressed="true"] { background: var(--th-lime); color: #10180a; font-weight: 700; }
.th-sortnote { color: var(--th-muted); font-size: 12px; margin: 0 0 18px !important; }
.th-status { color: var(--th-muted); font-size: 13px; margin-top: 14px !important; }

.th-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.th-card { background: var(--th-panel); border: 1px solid var(--th-line); border-radius: var(--th-radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.th-card:hover { border-color: #d6ff6266; transform: translateY(-3px); }
.th-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; overflow: hidden; color: inherit; }
.th-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.th-card:hover .th-poster img { transform: scale(1.03); }
.th-pbtn { position: absolute; left: 16px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: #090c0dcc; border: 1px solid #ffffff40; display: grid; place-items: center; }
.th-pbtn::before { content: ""; margin-left: 3px; border-left: 10px solid var(--th-ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.th-rank { position: absolute; left: 12px; top: 10px; font-size: 44px; font-weight: 900; letter-spacing: -3px; line-height: 1; color: #fff; text-shadow: 0 2px 14px #000c, 0 0 2px #000; }
.th-rank.th-first { color: var(--th-lime); }
.th-chip { position: absolute; right: 12px; top: 12px; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: #10180a; background: var(--th-lime); padding: 5px 9px; border-radius: 20px; font-weight: 700; }
.th-titlecard { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 26px 28px 26px 70px; text-align: left; background: radial-gradient(circle at 78% 30%, #d6ff621c, transparent 42%), repeating-linear-gradient(115deg, #ffffff0c 0 1px, transparent 1px 14px), #0b0f10; }
.th-titlecard b { font-size: clamp(18px, 2vw, 26px); font-weight: 800; letter-spacing: -.8px; line-height: 1.1; overflow-wrap: anywhere; }
.th-titlecard small { color: var(--th-muted); font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; }
.th-meta { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.th-meta h3 { font-size: 19px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.th-line { color: #c9d0cb; font-size: 13px; line-height: 1.55; }
.th-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; color: var(--th-muted); font-size: 12px; }
.th-small { color: var(--th-muted); font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.th-small a:hover { color: var(--th-ink); }
.th-orig { font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--th-lime); font-weight: 700; }
.th-credit { overflow-wrap: anywhere; }

.th-heart { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; border: 1px solid var(--th-line2); background: #0c1011; color: var(--th-ink); border-radius: 20px; padding: 6px 12px; font-size: 13px; font-weight: 700; transition: border-color .2s, background .2s; }
.th-heart .th-h { color: #ffffff66; font-size: 15px; line-height: 1; transition: color .2s, transform .2s; }
.th-heart:hover:not(:disabled) { border-color: #d6ff6288; }
.th-heart[aria-pressed="true"] { border-color: var(--th-lime); background: #1b2a14; }
.th-heart[aria-pressed="true"] .th-h { color: var(--th-lime); transform: scale(1.15); }
.th-heart.th-locked .th-h { color: #ffffff40; }
.th-heart:disabled { opacity: .55; cursor: not-allowed; }
.th-heart-big { padding: 10px 18px; font-size: 14px; }

.th-community { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.th-how { background: var(--th-panel2); border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.th-how h3 { font-size: 22px; letter-spacing: -.8px; line-height: 1.15; }
.th-how ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.th-how li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 13px; line-height: 1.55; color: #c9d0cb; }
.th-how li b { color: var(--th-ink); display: block; font-size: 14px; }
.th-how li i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #d6ff6266; color: var(--th-lime); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.th-yours { border: 1px dashed #d6ff6255; border-radius: var(--th-radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 26px; text-align: center; color: var(--th-muted); font-size: 13px; line-height: 1.55; min-height: 260px; }
.th-yours strong { color: var(--th-ink); font-size: 18px; letter-spacing: -.4px; }
.th-foot { margin: 70px 0 10px; border-top: 1px solid var(--th-line); padding-top: 22px; color: #7f8783; font-size: 12px; line-height: 1.7; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* player */
.th-player { width: min(1180px, 94vw); max-width: none; max-height: 96vh; padding: 0; border: 0; background: transparent; color: var(--th-ink); overflow: auto; }
.th-player::backdrop { background: #000000f2; }
.th-player-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 2px 12px; }
.th-player-bar h2 { font-size: 20px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.th-player-bar p { color: var(--th-muted); font-size: 12px; margin-top: 3px !important; }
.th-close { background: #ffffff14; border: 1px solid #ffffff30; color: var(--th-ink); border-radius: 20px; padding: 8px 14px; font-size: 12px; min-height: 36px; white-space: nowrap; }
.th-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.th-screen video, .th-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.th-screen.th-tall { aspect-ratio: auto; height: min(78vh, 720px); max-width: 600px; margin: 0 auto; background: #0c1011; }
.th-screen-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #c9d0cb; font-size: 14px; }
.th-player-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.th-hint { color: var(--th-muted); font-size: 13px; }
.th-player-links { margin-left: auto; display: flex; gap: 16px; align-items: center; color: var(--th-muted); font-size: 12px; }
.th-player-links a:hover { color: var(--th-ink); }
.th-notes { margin-top: 14px !important; color: #d4dad6; font-size: 13px; line-height: 1.6; white-space: pre-line; background: var(--th-panel); border-left: 2px solid var(--th-line2); padding: 10px 12px; border-radius: 0 6px 6px 0; max-width: 760px; }


.th-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #1b2a14; border: 1px solid #d6ff6266; color: #e8f7b8; font-size: 13px; padding: 11px 16px; border-radius: 24px; transition: opacity .25s, transform .25s; z-index: 2147483000; max-width: calc(100vw - 32px); text-align: center; }
.th-toast.th-on { opacity: 1; transform: translate(-50%, 0); }

/* submit */
.th-submit { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; margin-top: 36px; align-items: start; }
.th-submit h1 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -2.5px; line-height: 1; margin: 10px 0 12px; }
.th-intro { color: #c3cbc6; font-size: 14px; line-height: 1.65; max-width: 560px; }
#submit-form { margin-top: 26px; display: grid; gap: 8px; max-width: 640px; }
.th-field { display: grid; gap: 4px; font-size: 13px; font-weight: 700; margin-top: 10px; }
.th-field span { font-weight: 400; color: var(--th-muted); font-size: 12px; }
#submit-form input[type=url], #submit-form input[type=text], #submit-form textarea { width: 100%; background: #0c1011; border: 1px solid var(--th-line2); color: var(--th-ink); border-radius: 8px; padding: 12px 13px; font: 16px system-ui, -apple-system, sans-serif; }
#submit-form textarea { min-height: 96px; resize: vertical; }
#submit-form input:focus, #submit-form textarea:focus { border-color: #d6ff6299; outline: none; }
#submit-form [aria-invalid="true"] { border-color: var(--th-bad) !important; }
.th-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.th-checks { display: grid; gap: 10px; background: var(--th-panel); border: 1px solid var(--th-line); border-radius: 10px; padding: 16px; margin: 16px 0 0; }
.th-checks legend { font-size: 13px; font-weight: 700; padding: 0 6px; }
.th-checks label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; color: #d7ddd9; }
.th-checks input { accent-color: var(--th-lime); width: 17px; height: 17px; margin: 1px 0 0; }
.th-error { color: var(--th-bad); font-size: 13px; min-height: 18px; margin-top: 8px !important; }
#submit-button { justify-self: start; }
.th-rules { background: var(--th-panel); border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 24px; position: sticky; top: 24px; }
.th-rules h2 { font-size: 20px; letter-spacing: -.6px; margin: 8px 0 14px; }
.th-rules ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.th-rules li { font-size: 13px; line-height: 1.55; color: #c9d0cb; padding-left: 20px; position: relative; }
.th-rules li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 2px; background: var(--th-lime); }
.th-rules li b { color: var(--th-ink); }
.th-done { margin-top: 26px; background: var(--th-panel); border: 1px solid #d6ff6255; border-radius: var(--th-radius); padding: 28px; max-width: 640px; }
.th-done h2 { font-size: 26px; letter-spacing: -1px; margin: 8px 0 10px; }
.th-done p { color: #c9d0cb; font-size: 14px; line-height: 1.65; }
.th-done-actions { margin-top: 18px !important; }

/* screening room */
.th-lockbar { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.th-lockbar h1 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -2px; margin-top: 8px; }
.th-lock { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #c9d0cb; border: 1px solid var(--th-line2); border-radius: 20px; padding: 8px 13px; }
.th-lock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--th-muted); }
.th-lock.th-in::before { background: var(--th-lime); box-shadow: 0 0 0 3px #d6ff6230; }
.th-signin { margin-top: 26px; background: var(--th-panel); border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 26px; max-width: 680px; }
.th-signin h2 { font-size: 22px; margin-bottom: 8px; }
.th-signin p { color: #c9d0cb; font-size: 14px; line-height: 1.6; margin-top: 10px !important; display: flex; gap: 12px; flex-wrap: wrap; }
.th-spikes { margin-top: 20px; border: 1px solid #ffb35c66; background: #2a1d0c; color: #ffd29c; border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.6; }
.th-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--th-line); margin: 24px 0 20px; overflow: auto; }
.th-tabs button { background: none; border: 0; color: var(--th-muted); padding: 12px 14px; font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; }
.th-tabs button[aria-selected="true"] { color: var(--th-ink); border-bottom-color: var(--th-lime); }
.th-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: #ffffff14; font-size: 11px; margin-left: 6px; padding: 0 6px; }
.th-queue { display: grid; gap: 18px; }
.th-sub { display: grid; grid-template-columns: 380px 1fr; gap: 24px; background: var(--th-panel); border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 18px; }
.th-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--th-line2); background: #050707; overflow: hidden; }
.th-embed.th-tall { aspect-ratio: auto; height: 560px; }
.th-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.th-embed-load { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 12px; background: repeating-linear-gradient(115deg, #ffffff0c 0 1px, transparent 1px 14px), #0b0f10; border: 0; color: var(--th-ink); text-align: left; }
.th-embed-load span { font-size: 11px; color: #c9d0cb; overflow-wrap: anywhere; }
.th-embed-load b { font-size: 12px; background: #090c0dd9; border: 1px solid #ffffff33; border-radius: 20px; padding: 7px 12px; font-weight: 600; }
.th-sub h3 { font-size: 20px; letter-spacing: -.6px; overflow-wrap: anywhere; }
.th-by { color: var(--th-muted); font-size: 12px; margin-top: 4px !important; overflow-wrap: anywhere; }
.th-sub .th-notes { margin-top: 12px !important; }
.th-checkchips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.th-checkchips span { font-size: 11px; padding: 5px 9px; border-radius: 20px; background: #1b2a14; color: #cdeea1; border: 1px solid #d6ff6230; }
.th-checkchips span.th-warn { background: #2a1d0c; color: #ffd29c; border-color: #ffb35c44; }
.th-decide { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.th-pass { background: #262c2d; color: var(--th-ink); }
.th-pass:hover { background: #323a3b; }
.th-block-btn { background: transparent; color: var(--th-bad); border: 1px solid #ff7a6b55; }
.th-block-btn:hover { background: #ff7a6b14; }
.th-empty { text-align: center; color: var(--th-muted); font-size: 14px; padding: 50px 20px; border: 1px dashed var(--th-line2); border-radius: var(--th-radius); }
.th-explain { margin-top: 34px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.th-explain div { background: var(--th-panel2); border: 1px solid var(--th-line); border-radius: 12px; padding: 18px; font-size: 13px; line-height: 1.6; color: #c9d0cb; }
.th-explain b { display: block; color: var(--th-ink); font-size: 14px; margin-bottom: 6px; }

@media (max-width: 1000px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0; min-height: 112px; padding-top: 14px; }
  .wordmark { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; display: flex; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; gap: 26px; justify-content: flex-start; overflow: visible; }
  .main-nav a { font-size: 12px; padding: 18px 0 16px; min-height: 44px; }
  .th-grid, .th-community { grid-template-columns: 1fr 1fr; }
  .th-how { grid-column: 1 / -1; }
  .th-submit { grid-template-columns: 1fr; }
  .th-rules { position: static; }
  .th-sub { grid-template-columns: 1fr; }
  .th-explain { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .header-inner, .theater-page, .site-footer { width: min(100% - 40px, 760px); }
}
@media (max-width: 640px) {
  .header-inner, .theater-page, .site-footer { width: calc(100% - 32px); }
  .wordmark { font-size: 20px; }
  .wordmark img { width: 27px; height: 27px; }
  .main-nav { gap: 19px; }
  .th-hero { min-height: 560px; }
  .th-hero-art { width: 100%; height: 58%; bottom: auto; object-position: 62% 40%; }
  .th-hero::before { background: linear-gradient(0deg, #000 42%, #000000d9 56%, #0000008c 68%, #00000000 84%); }
  .th-hero-copy { padding: 28px 22px 28px; }
  .th-hero h1 { letter-spacing: -2.5px; }
  .th-marquee { left: 16px; right: auto; top: 16px; bottom: auto; }
  .th-grid, .th-community { grid-template-columns: 1fr; }
  .th-head { flex-direction: column; align-items: flex-start; }
  .th-sorts { max-width: 100%; overflow-x: auto; }
  .th-player-links { margin-left: 0; }
  .th-embed.th-tall { height: 480px; }
}
@media (max-width: 360px) { .main-nav { gap: 14px; } .main-nav a { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
html[lang=ja] .th-hero h1 { letter-spacing: -2px; }
html[lang=ja] .main-nav { gap: 18px; }
html[lang=ja] .main-nav a { font-size: 11px; }

/* submit page: what makers should know, and taking a film down */
.th-terms { margin-top: 16px; background: #0c1011; border: 1px solid #d6ff6240; border-radius: 10px; padding: 16px 18px; }
.th-terms-title { font-size: 13px; font-weight: 750; margin-bottom: 8px !important; }
.th-terms ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.th-terms li { font-size: 13px; line-height: 1.5; color: #c9d0cb; padding-left: 18px; position: relative; }
.th-terms li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--th-lime); }
.th-terms li b { color: var(--th-ink); }
.th-takedown { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; border-top: 1px solid var(--th-line); padding-top: 32px; }
.th-takedown h2 { font-size: 26px; letter-spacing: -1px; margin: 8px 0 10px; }
.th-takedown p { color: #c3cbc6; font-size: 14px; line-height: 1.6; }
.th-takedown-row { display: flex; gap: 10px; margin-top: 6px; }
.th-takedown-row input { flex: 1; min-width: 0; width: 100%; background: #0c1011; border: 1px solid var(--th-line2); color: var(--th-ink); border-radius: 8px; padding: 12px 13px; font: 16px system-ui, -apple-system, sans-serif; }
.th-takedown-row input:focus { border-color: #d6ff6299; outline: none; }
.th-takedown-row input[aria-invalid="true"] { border-color: var(--th-bad); }
.th-takedown-done { margin-top: 10px !important; color: #cdeea1 !important; }
@media (max-width: 1000px) { .th-takedown { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .th-takedown-row { flex-direction: column; } .th-takedown-row .th-button { align-self: flex-start; } }
.th-n.th-alert { background: var(--th-warn); color: #1d1206; font-weight: 700; }
.th-credit-link:hover { color: var(--th-ink); text-decoration: underline; text-underline-offset: 3px; }

/* comments: locked until half the film is watched, then the box lights up */
.th-comments { margin-top: 22px; border-top: 1px solid var(--th-line); padding-top: 18px; }
.th-comments-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.th-comments-head h3 { font-size: 18px; letter-spacing: -.4px; }
.th-comments-count { color: var(--th-muted); font-size: 13px; }
.th-comment-box { display: grid; gap: 10px; border: 1px solid #ffffff22; background: #0d1112; border-radius: 12px; padding: 14px; transition: border-color .5s ease, background .5s ease, box-shadow .5s ease; }
.th-comment-box input, .th-comment-box textarea { width: 100%; background: #0a0d0e; border: 1px solid var(--th-line2); color: var(--th-ink); border-radius: 8px; padding: 10px 12px; font: 15px system-ui, -apple-system, sans-serif; }
.th-comment-box textarea { min-height: 76px; resize: vertical; }
.th-comment-box input:focus, .th-comment-box textarea:focus { border-color: #d6ff6299; outline: none; }
.th-comment-box.th-locked input, .th-comment-box.th-locked textarea { opacity: .45; cursor: not-allowed; }
.th-comment-box.th-open { border-color: var(--th-lime); background: #141d0f; box-shadow: 0 0 0 3px #d6ff621f; }
.th-comment-lock { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #c9d0cb; }
.th-lock-icon { font-size: 15px; line-height: 1; }
.th-lock-text { flex: 1 1 220px; }
.th-lock-progress { flex: 0 0 120px; height: 6px; border-radius: 3px; background: #ffffff1c; overflow: hidden; }
.th-lock-bar { display: block; height: 100%; width: 0; background: var(--th-lime); transition: width .25s linear; }
.th-lock-pct { min-width: 64px; text-align: right; color: var(--th-muted); font-size: 12px; }
.th-comment-box.th-open .th-comment-lock { color: #e8f7b8; font-weight: 650; }
.th-comment-box.th-open .th-lock-progress, .th-comment-box.th-open .th-lock-pct { display: none; }
.th-comment-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.th-comment-actions .th-error { margin: 0 auto 0 0 !important; min-height: 0; }
.th-comment-empty { color: var(--th-muted); font-size: 13px; margin-top: 14px !important; }
.th-comment-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.th-comment-list li { background: var(--th-panel); border: 1px solid var(--th-line); border-radius: 10px; padding: 12px 14px; }
.th-c-head { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: var(--th-muted); }
.th-c-head b { color: var(--th-ink); font-size: 13px; overflow-wrap: anywhere; }
.th-c-head button { margin-left: auto; background: none; border: 0; color: var(--th-muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.th-c-head button:hover { color: var(--th-bad); }
.th-comment-list p { margin-top: 6px !important; font-size: 14px; line-height: 1.55; color: #dfe5e1; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 640px) { .th-lock-progress { flex-basis: 90px; } }
.th-sub.th-comment-row { grid-template-columns: 1fr; }
.th-plays { color: #c9d0cb; }
.th-plays b { color: var(--th-ink); }
.th-play-mark { color: var(--th-lime); font-size: 10px; }
.th-comment-box.th-locked .th-button { background: #262c2d; color: #7f8783; opacity: 1; cursor: not-allowed; transform: none; }
.th-comment-box.th-open { background: #172210; }
.th-maker-note { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-style: italic; color: #b9c1bc; }
.th-maker-note::before { content: "\201C"; }
.th-maker-note::after { content: "\201D"; }
.th-embed-load img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.th-embed-load > span, .th-embed-load > b { position: relative; }
.th-more-link { color: #d1eb91 !important; }
.th-more-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* models: filter chips, a model line on each film, the by-model table, and the submit form's model fields */
.th-models { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 14px; }
.th-models button { background: var(--th-panel); border: 1px solid var(--th-line2); color: #c9d0cb; font-size: 12px; padding: 7px 12px; border-radius: 20px; min-height: 34px; }
.th-models button:hover { border-color: #d6ff6288; }
.th-models button[aria-pressed="true"] { background: #1b2a14; border-color: var(--th-lime); color: #e8f7b8; font-weight: 700; }
.th-models button .th-n { margin-left: 6px; }
.th-model { font-size: 11px; letter-spacing: .3px; color: var(--th-muted); margin-top: -2px !important; }
.th-model b { color: #d1eb91; font-weight: 700; }
.th-table-wrap { overflow-x: auto; border: 1px solid var(--th-line); border-radius: var(--th-radius); background: var(--th-panel); }
.th-models-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.th-models-table th { text-align: left; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--th-muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--th-line); }
.th-models-table td { padding: 12px 14px; border-bottom: 1px solid var(--th-line); color: #d7ddd9; }
.th-models-table tr:last-child td { border-bottom: 0; }
.th-models-table td:first-child button { background: none; border: 0; color: var(--th-ink); font-weight: 750; font-size: 14px; padding: 0; }
.th-models-table td:first-child button:hover { color: var(--th-lime); }
.th-models-table td.th-num { font-variant-numeric: tabular-nums; }
.th-models-table tr.th-leader td:first-child button::after { content: " ★"; color: var(--th-lime); }
.th-table-note { margin-top: 10px !important; }
/* Phones: the table fits the screen. Top film drops out (tapping the model shows its films anyway). */
@media (max-width: 640px) {
  .th-models-table { min-width: 0; font-size: 13px; }
  .th-models-table th { letter-spacing: .6px; padding: 10px 8px; vertical-align: bottom; word-break: keep-all; }
  .th-models-table td:first-child button { white-space: nowrap; }
  .th-models-table td { padding: 11px 8px; }
  .th-models-table th:first-child, .th-models-table td:first-child { padding-left: 12px; }
  .th-models-table th:nth-child(6), .th-models-table td:nth-child(6) { display: none; }
}
#submit-form select { width: 100%; background: #0c1011; border: 1px solid var(--th-line2); color: var(--th-ink); border-radius: 8px; padding: 12px 13px; font: 16px system-ui, -apple-system, sans-serif; }
#submit-form select:focus { border-color: #d6ff6299; outline: none; }
#submit-form input[type=date] { width: 100%; background: #0c1011; border: 1px solid var(--th-line2); color: var(--th-ink); border-radius: 8px; padding: 11px 13px; font: 16px system-ui, -apple-system, sans-serif; color-scheme: dark; }
#f-model-other { margin-top: 8px; }
.th-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.th-field-row .th-field { margin-top: 10px; }
@media (max-width: 640px) { .th-field-row { grid-template-columns: 1fr; } }
/* Share button in the player (copies the film's own link, or opens the phone's share sheet) */
.th-share .th-h { color: var(--th-muted); }
.th-share:hover, .th-share:focus-visible { border-color: var(--th-line2); background: #131819; }
.th-share[hidden] { display: none; }
/* Full screen button, and phones turned sideways: the film fills the whole screen, with a small Close in the corner. */
.th-fullscreen[hidden] { display: none; }
.th-fullscreen svg.th-h { color: var(--th-muted); }
@media (max-width: 420px) { .th-player-foot { gap: 8px; } .th-player-foot .th-heart-big { padding: 8px 11px; font-size: 13px; } }
@media (orientation: landscape) and (max-height: 500px) {
  .th-player[open] { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; inset: 0; background: #000; overflow: hidden; }
  .th-player[open] > :not(.th-player-bar):not(.th-screen) { display: none; }
  .th-player[open] .th-player-bar { position: absolute; z-index: 2; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); padding: 0; }
  .th-player[open] .th-player-bar > div { display: none; }
  .th-player[open] .th-close { background: #000000b3; }
  .th-player[open] .th-screen, .th-player[open] .th-screen.th-tall { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; margin: 0; border-radius: 0; }
  .th-player[open] .th-screen video { object-fit: contain; }
}
