:root {
  --bg: #1b1b1b;
  --panel: #2b2b2b;
  --text: #dadada;
  --bright: #fff;
  --muted: #9a9a9a;
  --line: #2b2b2b;
  --accent: #be262d;
  --accent-soft: color-mix(in srgb, var(--accent), transparent 25%);
  --shell: min(1140px, 100%);
  --radius: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100dvh;
  font-family: Figtree, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(190, 38, 45, 0.14), transparent 60%),
    var(--bg);
  line-height: 1.5;
  font-size: 15px;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--bright); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  flex: 0 0 auto;
  fill: none;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(8px);
}

header.mast,
header.top { padding: 0.85rem 0.85rem 0.4rem; }
.top-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  margin-bottom: 0.35rem;
}
.top-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--bright);
  text-decoration: none;
  transition: opacity .2s var(--ease);
}
.brand:hover { opacity: 0.92; color: var(--bright); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-name {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.langs {
  display: flex;
  gap: 0.2rem;
  padding: 0.15rem;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  background: #151515;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.langs a {
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  min-height: 1.75rem;
}
.langs a:hover { color: #fff; }
.langs a.is-on { color: #fff; background: var(--accent); }

.section-label {
  margin: 0.85rem 0 0.45rem;
  padding: 0.15rem 0.4rem 0.15rem 0.55rem;
  border-left: 2px solid var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bright);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.section-label .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(190, 38, 45, 0.2);
}

.chip-nav, .qrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
}
.chip, .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.chip:hover, .pill:hover {
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.chip.is-on {
  background: var(--accent-soft);
  color: #fff;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0.35rem 0 0.65rem;
  margin-left: auto;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  overflow: visible;
  background: #151515;
  max-width: 28rem;
  width: 100%;
}
.search-bar .search-ico {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0.55rem 0.7rem 0.55rem 2.2rem;
  font: inherit;
  outline: none;
}
.search-go, .btn {
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  transition: filter .18s var(--ease);
}
.search-go:hover, .btn:hover { filter: brightness(1.08); }
.icon-btn {
  border: 0;
  background: var(--panel);
  color: #fff;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 4px;
  display: none;
  place-items: center;
  cursor: pointer;
}

.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 40;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #151515;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.suggest a, .suggest button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font: inherit;
}
.suggest a:hover, .suggest button:hover {
  background: var(--panel);
  color: var(--accent);
}

.main {
  flex: 1;
  padding: 0.4rem 0.85rem 1.5rem;
}

.tape h1, .watch h1, .legal h1 {
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--bright);
  letter-spacing: -0.01em;
}
.lead, .desc {
  margin: 0 0 0.9rem;
  color: var(--muted);
  max-width: 70ch;
}

.video-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem 0.55rem;
}
.preview {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .2s var(--ease);
}
.preview:hover {
  transform: translateY(-2px);
  color: inherit;
}
.thumb {
  position: relative;
  aspect-ratio: 2 / 1.5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.preview:hover .thumb img {
  transform: scale(1.04);
  filter: brightness(1.05);
}
.thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.preview:hover .thumb::after { opacity: 1; }
.preview-meta {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  max-height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.preview-stats {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1;
}
.preview-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.preview-stats .ico {
  width: 0.9rem;
  height: 0.9rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.crumbs a:hover { color: var(--accent); }

.watch .player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #3a3a3a;
}
.watch .player iframe,
.watch .player [data-player],
.watch .player video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.player-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
}

.watch-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}
.watch-stat, .watch-act {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  border: 0;
  font: inherit;
  min-height: 2.25rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.watch-stat b, .watch-act b {
  font-weight: 700;
  line-height: 1;
}
.watch-act button, button.watch-act {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.watch-act:hover, .watch-stat:hover { background: #343434; color: #fff; }
.watch-act.is-on, .watch-act .is-on { color: var(--accent); }
form.watch-act { margin: 0; }

.comments {
  margin: 1.25rem 0;
  padding: 0.85rem;
  background: #151515;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
}
.comments h2, .more h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-left: 2px solid var(--accent);
  padding-left: 0.55rem;
  color: var(--bright);
}
.comment-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.comment-card {
  padding: 0.65rem 0;
  border-bottom: 1px solid #2b2b2b;
}
.comment-card p { margin: 0.25rem 0 0; color: var(--muted); }
.engage-form {
  display: grid;
  gap: 0.55rem;
}
.engage-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.engage-form input,
.engage-form textarea,
.engage-form select {
  width: 100%;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  background: #111;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.engage-form .btn { width: fit-content; border-radius: 4px; }

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin: 1.25rem 0 0.5rem;
  flex-wrap: wrap;
}
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  color: var(--text);
}
.pager a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #fff;
}
.pager span:not(:nth-child(2)) { opacity: 0.45; }

.empty {
  padding: 2rem 1rem;
  text-align: center;
  background: #151515;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
}
.empty h2 { color: var(--bright); margin-top: 0; }
.empty .btn { display: inline-flex; margin-top: 0.75rem; border-radius: 4px; }

.more { margin-top: 1.5rem; }
.legal-body { color: var(--muted); }
.legal-body a { color: var(--accent); }

.foot {
  margin-top: auto;
  border-top: 2px solid #2b2b2b;
  padding: 1.1rem 0.85rem 1.4rem;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.foot-brand {
  color: var(--bright);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.foot-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
}
.foot-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-col a { color: var(--text); font-size: 0.9rem; }
.foot-col a:hover { color: var(--accent); }

.search-modal, .age-modal, .report-modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: calc(100vw - 2rem);
}
.search-modal::backdrop, .age-modal::backdrop, .report-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}
.search-modal-form {
  width: min(36rem, 100%);
  margin: 15vh auto 0;
  background: #151515;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 0.85rem;
  position: relative;
}
.search-row { display: flex; gap: 0.45rem; align-items: center; }
.search-field { flex: 1; }
.search-field input {
  width: 100%;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  background: #111;
  color: var(--text);
  padding: 0.65rem 0.8rem;
  font: inherit;
}
.search-close {
  border: 0;
  background: var(--panel);
  color: #fff;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 4px;
  cursor: pointer;
}
.age-card, .report-modal {
  width: min(28rem, 100%);
  margin: 12vh auto 0;
  background: #151515;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 1.25rem;
}
.age-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.age-actions { display: flex; gap: 0.55rem; margin-top: 1rem; }
.age-no {
  border: 1px solid #3a3a3a;
  background: transparent;
  color: var(--muted);
  border-radius: 4px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font: inherit;
}
.report-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.report-modal-head h2 { margin: 0; color: var(--bright); }
.report-modal-head button {
  border: 0;
  background: var(--panel);
  color: #fff;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 4px;
  cursor: pointer;
}

html.modal-open { overflow: hidden; }

@media (max-width: 1100px) {
  .video-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .video-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-bar { max-width: none; margin-left: 0; }
}
@media (max-width: 640px) {
  .shell { border: 0; }
  .video-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-bar { display: none; }
  .icon-btn.search-open { display: grid; }
  .brand-name { font-size: 1.1rem; }
  .foot-inner { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
