:root {
  --bg: #0d0d0f;
  --bg-soft: #17181c;
  --surface: #1f2025;
  --surface-2: #2b2d33;
  --text: #f3f4f7;
  --muted: #989ca8;
  --line: rgba(243, 244, 247, 0.1);
  --accent: #d63e67;
  --accent-2: #f0a349;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="light"] {
  --bg: #f4f1ec;
  --bg-soft: #ece8e0;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --text: #18181a;
  --muted: #666a73;
  --line: rgba(24, 24, 26, 0.1);
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(214, 62, 103, 0.12), transparent 28%),
    linear-gradient(180deg, #111217 0%, var(--bg) 24%, var(--bg) 100%);
  font-family: var(--sans);
  line-height: 1.5;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}
.header-inner,
.category-bar,
.section,
.footer-main,
.footer-bottom,
.player-page .header-inner {
  width: min(1360px, calc(100% - 36px));
  margin: 0 auto;
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-brand-group {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.mark-brand > span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #a62767);
  font-size: 18px;
  font-weight: 900;
}
.brand-large { font-size: 32px; }
.brand-large.mark-brand > span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.header-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search {
  width: 280px;
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.search svg {
  width: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}
.search input::placeholder { color: var(--muted); }
.icon-button,
.menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  cursor: pointer;
}
.icon-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.menu-button { display: none; padding: 11px; gap: 4px; }
.menu-button span { display: block; width: 100%; height: 2px; background: currentColor; }
.category-bar {
  padding: 0 0 14px;
}
.category-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.nav-link {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: rgba(214, 62, 103, 0.55);
  background: linear-gradient(180deg, rgba(214, 62, 103, 0.16), rgba(214, 62, 103, 0.08));
}

.home-main { padding-bottom: 36px; }
.section { padding: 44px 0 0; }
.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 22px;
  align-items: stretch;
}
.hero-copy,
.hero-stat-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 30px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 0.95;
  letter-spacing: -2px;
}
.hero-copy p:last-child {
  margin: 18px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
}
.hero-stat-grid {
  display: grid;
  gap: 14px;
}
.hero-stat-grid article {
  padding: 22px;
}
.hero-stat-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}
.hero-stat-grid span {
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -1px;
}
.compact-heading h2 { font-size: clamp(26px, 3vw, 38px); }
.result-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.featured-grid,
.video-grid {
  display: grid;
  gap: 22px;
}
.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.video-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.featured-card,
.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease;
}
.featured-card:hover,
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 62, 103, 0.45);
}
.video-poster {
  min-height: 210px;
  position: relative;
  overflow: hidden;
  background: #31201d;
}
.featured-card .video-poster {
  min-height: 260px;
}
.video-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255,255,255,0.08), transparent 34%),
    linear-gradient(0deg, rgba(0,0,0,0.32), transparent 48%);
}
.tone-rose { background: linear-gradient(140deg, #6f1729, #2c1718 65%, #171111); }
.tone-violet { background: linear-gradient(140deg, #4d2b49, #291a23 65%, #141112); }
.tone-blue { background: linear-gradient(140deg, #22434b, #1a272b 65%, #111415); }
.tone-amber { background: linear-gradient(140deg, #7b562c, #32261b 65%, #17130f); }
.tone-coral { background: linear-gradient(140deg, #8f3541, #351b21 65%, #171112); }
.tone-cyan { background: linear-gradient(140deg, #315c58, #1c2c2b 65%, #111515); }
.poster-watermark {
  position: absolute;
  right: 12px;
  bottom: -12px;
  color: rgba(255,255,255,.08);
  font-size: 110px;
  font-weight: 900;
  letter-spacing: -6px;
  line-height: 1;
}
.poster-category {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(0,0,0,.32);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.duration {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0,0,0,.62);
  font-size: 12px;
  font-weight: 700;
}
.large-play,
.card-play,
.small-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(14, 16, 20, 0.46);
  backdrop-filter: blur(8px);
}
.card-play,
.small-play {
  width: 52px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.35);
}
.card-play::after,
.small-play::after {
  content: "";
  position: absolute;
  left: 44%;
  top: 34%;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.small-play {
  width: 28px;
}
.small-play::after {
  left: 45%;
  top: 33%;
  border-left-width: 7px;
  border-top-width: 5px;
  border-bottom-width: 5px;
}
.video-card-body {
  padding: 18px;
}
.featured-card .video-card-body {
  padding: 20px;
}
.video-card h3,
.featured-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.2;
}
.video-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.video-card p,
.featured-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.ad-shell {
  position: relative;
  margin-top: 38px;
  color: var(--muted);
  background: var(--bg-soft);
}
.ad-shell-wide {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.ad-shell-box {
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.ad-label {
  position: absolute;
  left: 12px;
  top: 8px;
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ad-placeholder {
  padding: 25px;
  text-align: center;
  font-size: 13px;
}
.ad-shell[data-active="true"] {
  border-style: solid;
  background: transparent;
}

.pagination {
  padding: 36px 0 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pagination button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}
.pagination button.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}
.empty-state {
  padding: 80px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state h3 {
  margin: 0;
  font-size: 30px;
}
.empty-state p { color: var(--muted); }

.player-page .header-inner {
  min-height: 78px;
}
.minimal-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
}
.minimal-nav a:hover { color: var(--text); }
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  padding-top: 48px;
}
.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
}
.back-link:hover { color: var(--accent-2); }
.player-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050404;
  box-shadow: var(--shadow);
}
.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.player-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 45%, #35191e, #080606 60%);
}
.player-placeholder .large-play {
  width: 74px;
  aspect-ratio: 1;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.4);
}
.large-play::after {
  content: "";
  position: absolute;
  left: 44%;
  top: 34%;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.player-placeholder p {
  max-width: 480px;
  margin: 8px 20px 0;
  color: var(--muted);
}
.video-details {
  padding: 32px 4px;
}
.video-details h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -1px;
}
.video-details > p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
}
.video-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.video-stats span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.player-sidebar {
  padding-top: 40px;
}
.related-panel {
  margin-top: 28px;
}
.related-list {
  display: grid;
  gap: 14px;
}
.related-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
}
.related-item .video-poster {
  min-height: 74px;
  border-radius: 12px;
}
.related-item .poster-category,
.related-item .poster-watermark {
  display: none;
}
.related-item .duration {
  right: 6px;
  bottom: 6px;
  font-size: 10px;
}
.related-item strong,
.related-item span {
  display: block;
}
.related-item strong {
  line-height: 1.2;
}
.related-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-main {
  padding: 44px 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 36px;
}
.footer-main p {
  max-width: 420px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}
.footer-links a:hover,
.text-button:hover {
  color: var(--text);
}
.text-button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.footer-bottom {
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(5,5,8,.88);
  backdrop-filter: blur(16px);
  transition: opacity .25s ease;
}
.age-gate.is-closing { opacity: 0; }
.age-card {
  width: min(520px, 100%);
  padding: clamp(30px, 6vw, 56px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(160deg, #191a1f, #101114 70%);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.age-card .eyebrow { margin-top: 32px; }
.age-card h1 {
  margin: 0;
  font-size: 42px;
  letter-spacing: -1px;
}
.age-card > p:not(.eyebrow) {
  color: rgba(255,255,255,.72);
}
.age-actions {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
}
.button-primary {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #b12462);
}
.button-quiet {
  background: var(--surface-2);
}
.fine-print {
  margin: 18px 0 0;
  color: rgba(255,255,255,.48);
  font-size: 11px;
  text-align: center;
}

.legal-main {
  width: min(860px, calc(100% - 36px));
  min-height: 70vh;
  margin: 0 auto;
  padding: 70px 0;
}
.legal-main h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
}
.legal-main h2 { margin-top: 34px; }
.legal-main p,
.legal-main li { color: var(--muted); }
.legal-main a { color: var(--accent); }

@media (max-width: 1100px) {
  .featured-grid,
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }
  .header-brand-group,
  .header-actions {
    width: 100%;
  }
  .header-brand-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .header-actions {
    justify-content: space-between;
  }
  .hero-strip {
    grid-template-columns: 1fr;
  }
  .player-layout {
    grid-template-columns: 1fr;
  }
  .player-sidebar {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .category-bar,
  .section,
  .footer-main,
  .footer-bottom,
  .player-page .header-inner,
  .legal-main {
    width: calc(100% - 24px);
  }
  .search {
    width: calc(100% - 52px);
  }
  .menu-button { display: grid; }
  .category-nav {
    display: none;
    flex-wrap: wrap;
    padding-top: 10px;
  }
  .category-nav.open {
    display: flex;
  }
  .featured-grid,
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy {
    padding: 24px;
  }
  .hero-copy h1 {
    font-size: 42px;
  }
  .footer-main,
  .footer-bottom {
    flex-direction: column;
  }
  .age-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .featured-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
  .video-poster,
  .featured-card .video-poster {
    min-height: 220px;
  }
  .related-item {
    grid-template-columns: 1fr;
  }
  .related-item .video-poster {
    min-height: 160px;
  }
}
