:root {
  --bg0: #07131f;
  --bg1: #0c2236;
  --panel: rgba(14, 42, 68, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4fbff;
  --muted: #9ec3d8;
  --coral: #ff5d7a;
  --amber: #ffc14d;
  --aqua: #2de2c5;
  --sky: #4cc9ff;
  --grad: linear-gradient(135deg, #ff5d7a 0%, #ff9f43 48%, #2de2c5 100%);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font-display: "Outfit", "Sora", sans-serif;
  --font-body: "Sora", "Outfit", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 93, 122, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(45, 226, 197, 0.22), transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(76, 201, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #091a2b 0%, #0a1f33 40%, #07131f 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.bg-glow,
.bg-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
  opacity: 0.35;
}

.container {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 19, 31, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #07131f;
  background: var(--grad);
  box-shadow: 0 8px 24px rgba(255, 93, 122, 0.35);
  animation: brandPulse 3.6s ease-in-out infinite;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.search-box {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: rgba(45, 226, 197, 0.55);
  box-shadow: 0 0 0 4px rgba(45, 226, 197, 0.12);
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  min-width: 0;
  padding: 10px 0;
}

.search-box button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #07131f;
  background: var(--grad);
  display: grid;
  place-items: center;
}

.top-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.top-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  transition: 0.2s ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: #07131f;
  background: var(--grad);
}

.hero-strip {
  padding: 28px 0 8px;
}

.hero-copy .eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--aqua);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}

.hero-copy .lead {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 520px;
}

.tags-section {
  padding: 10px 0 4px;
}

.tags-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #eafbff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.tag-chip:hover,
.tag-chip.active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255, 93, 122, 0.35), rgba(45, 226, 197, 0.28));
  border-color: rgba(255, 255, 255, 0.2);
}

.main-wrap {
  padding: 18px 0 48px;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.toolbar .count {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.sort-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sort-pills button,
.niche-bar button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  transition: 0.18s ease;
}

.sort-pills button.active,
.niche-bar button.active,
.sort-pills button:hover,
.niche-bar button:hover {
  color: #07131f;
  border-color: transparent;
  background: var(--grad);
}

.niche-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.v-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(10, 28, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transform: translateY(8px);
  opacity: 0;
  animation: riseIn 0.55s ease forwards;
}

.v-card:nth-child(2) { animation-delay: 0.04s; }
.v-card:nth-child(3) { animation-delay: 0.08s; }
.v-card:nth-child(4) { animation-delay: 0.12s; }
.v-card:nth-child(5) { animation-delay: 0.16s; }
.v-card:nth-child(6) { animation-delay: 0.2s; }
.v-card:nth-child(7) { animation-delay: 0.24s; }
.v-card:nth-child(8) { animation-delay: 0.28s; }

.v-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #123049;
}

.v-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.v-card:hover .v-thumb img {
  transform: scale(1.08);
}

.v-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 14, 24, 0.88) 100%);
}

.badge-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.badge.hd {
  background: rgba(45, 226, 197, 0.9);
  color: #042018;
}

.badge.dur {
  background: rgba(7, 19, 31, 0.72);
  color: #fff;
}

.meta-float {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #e8f7ff;
}

.v-body {
  padding: 12px 12px 14px;
}

.v-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.v-sub {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 13px;
}

.pagination a:hover,
.pagination a.active {
  background: var(--grad);
  color: #07131f;
  border-color: transparent;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0 36px;
  background: rgba(4, 12, 20, 0.55);
}

.footer-row {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.copy {
  margin: 0;
  color: #7fa4ba;
  font-size: 12px;
}

/* Video page */
.player-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 22px 0 40px;
}

.player-panel {
  background: rgba(8, 24, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.player-frame-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-frame-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-info {
  padding: 16px 18px 20px;
}

.player-info h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.side-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.side-list h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
}

.side-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.18s ease;
}

.side-item:hover {
  transform: translateX(2px);
  border-color: rgba(45, 226, 197, 0.35);
}

.side-item img {
  width: 120px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.side-item strong {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(3, 10, 18, 0.88);
  backdrop-filter: blur(10px);
}

.age-gate[hidden] {
  display: none !important;
}

.age-card {
  width: min(420px, calc(100% - 32px));
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 48, 72, 0.95), rgba(8, 24, 40, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  box-shadow: var(--shadow);
}

.age-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.age-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.age-actions button,
.age-actions a {
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
}

.age-actions button {
  border: 0;
  cursor: pointer;
  color: #07131f;
  background: var(--grad);
}

.age-actions a {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 0 60px;
  line-height: 1.7;
  color: #d7ecf8;
}

.legal-page h1 {
  font-family: var(--font-display);
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 8px 24px rgba(255, 93, 122, 0.35);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(45, 226, 197, 0.35);
  }
}

@media (max-width: 1100px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .player-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .header-row {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .search-box {
    order: 3;
    max-width: none;
    width: 100%;
  }
  .top-nav {
    margin-left: 0;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .brand-text small {
    display: none;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}
