:root {
  --bg: #F7F5EF; --surface: #FDFCF9; --surface-2: #EDEAE2; --surface-3: #F4F2EC; --field: #FFFFFF; --pill: #FFFFFF;
  --text: #1E2B2A; --muted: #4B5856; --subtle: #6A7572; --border: #E3E0D6; --border-strong: #D5D2C7;
  --accent: #3F6B55; --accent-text: #FFFFFF; --link: #3F6B55;
  --accent-soft: #E4ECE5; --accent-softer: #EFF4EF; --accent-line: #C9D9CD; --focus: #A9C6B2; --ring: #D3E2D7;
  --danger: #B13A2A; --danger-soft: #FBEAE6; --danger-line: #EFC9C0; --danger-text: #7E2A1E;
  --warn-soft: #FBF1DE; --warn-line: #EFD9AE; --warn-text: #6B460E;
  --ok-soft: #E3F1E7; --ok-line: #BFDDC9; --ok-text: #1F5234;
  --nsfw: #7A2E3A; --nsfw-text: #FFFFFF; --ink: #1E2B2A; --ink-text: #F7F5EF;
  --skeleton: #E6E3DA; --stripe-a: #DCE6DE; --stripe-b: #E6EDE7;
  --player-a: #1B2524; --player-b: #212D2B; --overlay: rgba(20, 28, 27, .55);
  --shadow: 0 20px 60px rgba(0, 0, 0, .18);
  --radius: 12px; --gutter: 40px; --max: 1360px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E1412; --surface: #17201E; --surface-2: #22302C; --surface-3: #1C2724; --field: #1A2421; --pill: #3A4B45;
  --text: #E6ECE8; --muted: #A9B6B2; --subtle: #8C9A96; --border: #29362F; --border-strong: #354540;
  --link: #93C4A6; --accent-soft: #203A2F; --accent-softer: #1B2E27; --accent-line: #2E4D3E; --focus: #6FA386; --ring: #2B4A3B;
  --danger: #E0705F; --danger-soft: #3A201C; --danger-line: #5C2E27; --danger-text: #F4BBB0;
  --warn-soft: #362C17; --warn-line: #5A4722; --warn-text: #F1D08F;
  --ok-soft: #1B3326; --ok-line: #2D5239; --ok-text: #A9DBB9;
  --nsfw: #9C3B4B; --ink: #E6ECE8; --ink-text: #0E1412;
  --skeleton: #22302C; --stripe-a: #1D2A26; --stripe-b: #22302C; --overlay: rgba(0, 0, 0, .6);
  --shadow: 0 20px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #0E1412; --surface: #17201E; --surface-2: #22302C; --surface-3: #1C2724; --field: #1A2421; --pill: #3A4B45;
    --text: #E6ECE8; --muted: #A9B6B2; --subtle: #8C9A96; --border: #29362F; --border-strong: #354540;
    --link: #93C4A6; --accent-soft: #203A2F; --accent-softer: #1B2E27; --accent-line: #2E4D3E; --focus: #6FA386; --ring: #2B4A3B;
    --danger: #E0705F; --danger-soft: #3A201C; --danger-line: #5C2E27; --danger-text: #F4BBB0;
    --warn-soft: #362C17; --warn-line: #5A4722; --warn-text: #F1D08F;
    --ok-soft: #1B3326; --ok-line: #2D5239; --ok-text: #A9DBB9;
    --nsfw: #9C3B4B; --ink: #E6ECE8; --ink-text: #0E1412;
    --skeleton: #22302C; --stripe-a: #1D2A26; --stripe-b: #22302C; --overlay: rgba(0, 0, 0, .6);
    --shadow: 0 20px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
@media (max-width: 1024px) { :root { --gutter: 24px; } }
@media (max-width: 640px) { :root { --gutter: 16px; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.mono { font-family: var(--mono); }
button, .button {
  min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--field); color: var(--text); font: 600 14px/1.2 var(--font); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .15s, border-color .15s, color .15s;
}
button:hover, .button:hover { background: var(--accent-softer); }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.primary:hover, .button.primary:hover { background: color-mix(in srgb, var(--accent) 82%, #000); border-color: color-mix(in srgb, var(--accent) 82%, #000); }
button.ghost, .button.ghost { background: transparent; border-color: transparent; color: var(--link); }
button.danger, .button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
button.danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }
button.nsfw, .button.nsfw { background: var(--nsfw); border-color: var(--nsfw); color: var(--nsfw-text); }
button.nsfw:hover { background: color-mix(in srgb, var(--nsfw) 85%, #000); }
button[disabled] { opacity: .6; cursor: progress; }
button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text); }
input, textarea, select {
  font: 400 15px/1.4 var(--font); color: var(--text); background: var(--field); border: 1px solid var(--border-strong);
  border-radius: 10px; min-height: 44px; padding: 8px 12px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
textarea { min-height: 90px; resize: vertical; }
label { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 600; font-size: 13px; }
label.inline { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; font-size: 14px; }
label.inline input { width: auto; min-height: auto; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; padding: 0; }
.hint { font-weight: 400; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.req { color: var(--danger); }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 18px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; min-height: 44px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none; }
.brand-mark::after { content: ""; width: 0; height: 0; border-left: 9px solid var(--accent-text); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px; background: var(--field); border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 5px 0 14px; height: 46px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.search > .i { color: var(--subtle); width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; min-height: 0; height: 100%; box-shadow: none; }
.search input:focus { box-shadow: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search button { min-height: 36px; height: 36px; padding: 0 14px; border-radius: 8px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mode-switch { display: flex; padding: 3px; background: var(--surface-2); border-radius: 999px; }
.mode-switch button { min-height: 38px; border: 0; border-radius: 999px; padding: 0 14px; background: transparent; color: var(--muted); font-size: 13px; gap: 6px; }
.mode-switch button:hover { background: transparent; color: var(--text); }
.mode-switch button[aria-pressed="true"] { background: var(--pill); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.mode-switch button.nsfw-on[aria-pressed="true"] { background: var(--nsfw); color: var(--nsfw-text); }
.mode-switch .i { width: 14px; height: 14px; }
.icon-btn { width: 44px; padding: 0; border-radius: 10px; }
.icon-btn .i { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .theme-toggle .i-sun { display: block; }
  :root[data-theme="system"] .theme-toggle .i-moon { display: none; }
}
.lang-switch select { min-height: 40px; width: auto; padding: 0 30px 0 10px; font-size: 13px; font-weight: 600; }
.lang-face { display: none; }
@media (max-width: 767px) {
  .header-inner { flex-wrap: wrap; gap: 10px 8px; padding-top: 10px; padding-bottom: 12px; }
  .brand { font-size: 16px; min-height: 36px; min-width: 0; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; }
  .brand-mark { width: 28px; height: 28px; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 44px; }
  .header-actions { gap: 6px; flex: none; }
  .mode-switch { padding: 2px; }
  .mode-switch button { min-height: 32px; height: 32px; padding: 0 10px; font-size: 12px; }
  .mode-switch .i { display: none; }
  .icon-btn { width: 36px; min-width: 36px; height: 36px; min-height: 36px; border-radius: 9px; }
  .lang-switch { position: relative; display: inline-flex; height: 36px; }
  .lang-face { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--field); color: var(--text); font-size: 12px; }
  .lang-face .i { width: 15px; height: 15px; color: var(--muted); }
  .lang-switch select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
  .lang-switch:focus-within .lang-face { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
}
@media (max-width: 359px) {
  .brand-name { display: none; }
}
.site-main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 64px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 640px) { .site-main { padding-top: 16px; padding-bottom: 40px; gap: 16px; } }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 12px; }
.site-footer p { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter); }
.notice { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5;
  background: var(--accent-softer); border: 1px solid var(--accent-line); color: var(--text); }
.notice > .i { margin-top: 1px; color: var(--accent); }
.notice.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-text); }
.notice.warn > .i { color: currentColor; }
.notice.error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger-text); }
.notice.error > .i { color: currentColor; }
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px; font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
.tabs .tab-random { color: var(--link); }
.mode-note { font: 500 11px var(--mono); color: var(--subtle); padding-bottom: 14px; letter-spacing: .02em; text-transform: uppercase; }
.search-head { display: flex; flex-direction: column; gap: 14px; }
.search-title { margin: 0; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.search-title small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pills-label { font-size: 13px; font-weight: 500; color: var(--muted); margin-right: 4px; }
.pills a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--field); color: var(--text); font-size: 13px; font-weight: 500; text-decoration: none; }
.pills a:hover { background: var(--accent-softer); }
.pills a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } }
@media (max-width: 520px) { .grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
.grid > .ad-slot { grid-column: 1 / -1; margin: 0; }
.card { display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; border-radius: var(--radius); min-width: 0; }
.card:focus-visible { outline-offset: 4px; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: repeating-linear-gradient(135deg, var(--stripe-a) 0 8px, var(--stripe-b) 8px 16px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .thumb img { transform: scale(1.03); }
.thumb .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--subtle); }
.thumb .placeholder .i { width: 28px; height: 28px; opacity: .7; }
.badge-nsfw { position: absolute; top: 8px; left: 8px; background: var(--nsfw); color: var(--nsfw-text); font-size: 11px; font-weight: 600; line-height: 1; padding: 5px 7px; border-radius: 5px; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; min-width: 0; }
.card-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card:hover .card-title { color: var(--link); }
.card-meta { color: var(--muted); font-size: 13px; }
.skeleton .thumb, .skeleton .card-title { animation: shimmer 1.4s ease-in-out infinite; background: var(--skeleton); color: transparent; border-radius: 6px; }
.skeleton .thumb { border-radius: var(--radius); }
@keyframes shimmer { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.pagination .page-now { font-size: 14px; font-weight: 600; color: var(--text); }
.pagination .page-links { display: flex; gap: 6px; margin-left: auto; }
.pagination .button { min-height: 40px; padding: 0 12px; }
.pagination .button .i { width: 16px; height: 16px; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 64px 24px; border: 1px dashed var(--border-strong); border-radius: 16px; background: var(--surface); }
.empty-state h1, .empty-state h2 { margin: 0; font-size: 19px; color: var(--text); }
.empty-state p { margin: 0; max-width: 460px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.empty-state .actions { justify-content: center; margin: 6px 0 0; }
.state-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.state-icon .i { width: 24px; height: 24px; }
:root[data-theme="dark"] .state-icon { color: var(--link); }
.state-icon.danger { background: var(--danger-soft); color: var(--danger); }
.error-page { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 40px 16px; }
.error-code { font: 700 112px/1 var(--font); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 70%, var(--bg)); }
.error-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--link); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; }
.error-pill .i { width: 14px; height: 14px; }
.error-page h1 { margin: 0; font-size: 26px; line-height: 1.3; }
.error-page p { margin: 0; max-width: 460px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.error-page .actions { justify-content: center; margin-top: 8px; }
@media (max-width: 640px) { .error-code { font-size: 84px; } .error-page { min-height: 420px; } }
.ad-slot:empty { display: none; }
.ad-slot { display: flex; justify-content: center; }
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 1024px) { .video-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.video-main, .video-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--player-a) 0 12px, var(--player-b) 12px 24px); color: #fff; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; padding: 0; border-radius: 50%; border: 0;
  background: rgba(247, 245, 239, .95); color: #1E2B2A; box-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
.player-start:hover { background: #fff; transform: translate(-50%, -50%) scale(1.05); }
.player-start .i { width: 28px; height: 28px; margin-left: 4px; }
.player-state { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; text-align: center; padding: 20px; background: rgba(15, 21, 20, .82); color: #fff; }
.player-state p { margin: 0; max-width: 360px; font-size: 14px; line-height: 1.5; color: #D7DFDC; }
.player-state button { background: #F7F5EF; border-color: #F7F5EF; color: #1E2B2A; }
.player-state button:hover { background: #fff; }
.player-tools { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: -4px; }
.player-tools:empty { display: none; }
.player-tools button, .player-tools .rate select { min-height: 36px; font-size: 13px; }
.player-tools button { padding: 0 12px; }
.player-tools .i { width: 16px; height: 16px; }
.rate { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.rate select { width: auto; padding: 0 28px 0 10px; }
.player-locked { display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 30%, #3A4A47 0%, #1E2B2A 72%); }
.player-locked::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 10px, transparent 10px 20px); pointer-events: none; }
.lock-overlay { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px; max-width: 460px; color: #EEF2EE; }
.lock-icon { flex: none; width: 60px; height: 60px; border-radius: 50%; background: rgba(247, 245, 239, .08); border: 1px solid rgba(247, 245, 239, .18); display: grid; place-items: center; }
.lock-icon .i { width: 26px; height: 26px; }
.lock-eyebrow { font: 600 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #A9C6B2; }
.lock-overlay strong { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.lock-overlay p { margin: 0; max-width: 360px; font-size: 14px; line-height: 1.55; color: #C9D3D0; }
.lock-overlay .lock-unlock { margin-top: 6px; padding: 0 22px; border: 0; border-radius: 12px; background: #F7F5EF; color: #1E2B2A; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.lock-overlay .lock-unlock:hover { background: #fff; }
.lock-unlock .i { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .player-locked { aspect-ratio: auto; }
  .lock-overlay { gap: 8px; padding: 32px 20px 28px; }
  .lock-icon { width: 52px; height: 52px; }
  .lock-icon .i { width: 22px; height: 22px; }
  .lock-overlay strong { font-size: 17px; }
  .lock-overlay p { font-size: 13px; }
}
.mode-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 600; }
.mode-status .i { width: 13px; height: 13px; }
.video-info { display: flex; flex-direction: column; gap: 12px; }
.title-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.video-title { flex: 1; min-width: 220px; margin: 0; font-size: clamp(20px, 2vw, 24px); line-height: 1.35; overflow-wrap: anywhere; }
.mode-chip { min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 12px; }
.mode-chip .i { width: 14px; height: 14px; }
.mode-chip.is-nsfw { background: var(--nsfw); border-color: var(--nsfw); color: var(--nsfw-text); }
.meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.video-meta { margin: 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.actions button { min-height: 40px; padding: 0 12px; font-size: 13px; }
.actions .i { width: 16px; height: 16px; }
.actions .report:hover { background: var(--danger-soft); border-color: var(--danger-line); }
.vote-group { display: flex; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: var(--field); }
.vote-group button { border: 0; border-radius: 0; }
.vote-group button + button { border-left: 1px solid var(--border); }
.vote-group button[aria-pressed="true"] { background: var(--accent-soft); color: var(--link); }
.video-description { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.side-head { display: flex; align-items: baseline; justify-content: space-between; }
.side-title { margin: 0; font-size: 16px; }
.grid-related { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.grid-related .card { flex-direction: row; gap: 12px; padding: 4px; margin: -4px; border-radius: 10px; }
.grid-related .card:hover { background: var(--surface-2); }
.grid-related .thumb { flex: 0 0 150px; border-radius: 8px; align-self: flex-start; }
.grid-related .card-title { font-size: 14px; }
.grid-related .card-meta { font-size: 12px; }
@media (max-width: 1024px) and (min-width: 641px) { .grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.theater .video-layout { grid-template-columns: minmax(0, 1fr); }
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: var(--overlay); padding: 16px; overflow: auto; }
.modal-box { background: var(--surface); color: var(--text); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-box form { display: flex; flex-direction: column; gap: 14px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-box h2 { margin: 0; font-size: 19px; }
.modal-box > p, .modal-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.modal-close { width: 40px; min-width: 40px; min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.modal-close .i { width: 18px; height: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.modal-error { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); border: 1px solid var(--danger-line); color: var(--danger-text); font-size: 13px; font-weight: 500; line-height: 1.5; }
.badge-18 { width: 48px; height: 48px; border-radius: 14px; background: var(--nsfw); color: var(--nsfw-text); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.share-link { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--field); padding: 0 6px 0 12px; }
.share-link .i { color: var(--muted); width: 15px; height: 15px; }
.share-link input { border: 0; padding: 0; min-height: 44px; font: 400 13px var(--mono); background: transparent; box-shadow: none; text-overflow: ellipsis; }
.choice-list { display: flex; flex-direction: column; gap: 6px; }
.choice { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--field); font-weight: 500; font-size: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-softer); }
.turnstile:empty { display: none; }
.report-desc { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--border-strong); color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-message { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; line-height: 1.5; background: var(--danger-soft); border: 1px solid var(--danger-line); color: var(--danger-text); }
.form-message.is-success { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok-text); }
button.is-sending { opacity: .5; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--ink-text); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); }
.toast.error { background: var(--danger); color: #fff; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.ad-frame { display: block; width: 100%; min-height: 90px; height: 250px; border: 0; }
.ad-skip { position: absolute; right: 12px; bottom: 56px; z-index: 3; min-height: 44px; padding: 8px 14px; background: rgba(0, 0, 0, .75); color: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: 6px; }
.ad-skip:hover { background: rgba(0, 0, 0, .9); }
