:root {
  --tv-bg: #0f1115;
  --tv-surface: #171a21;
  --tv-surface-2: #20242d;
  --tv-border: rgba(255, 255, 255, 0.09);
  --tv-text: #faf9f7;
  --tv-muted: #969ca8;
  --tv-coral: #ff4757;
  --tv-coral-2: #ff6572;
  --tv-violet: #8b5cf6;
  --tv-gradient: linear-gradient(135deg, var(--tv-coral), var(--tv-violet));
  --tv-radius-sm: 10px;
  --tv-radius: 16px;
  --tv-radius-lg: 24px;
  --tv-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --tv-container: 1380px;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 88% 4%, rgba(139, 92, 246, 0.12), transparent 30rem),
    radial-gradient(circle at 4% 36%, rgba(255, 71, 87, 0.055), transparent 28rem),
    linear-gradient(180deg, #0f1115 0%, #111219 44%, #0f1115 100%),
    var(--tv-bg);
  color: var(--tv-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.age-gate-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--tv-coral-2); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--tv-container));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 9999;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: white;
  color: black;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--tv-coral-2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover { color: white; transform: translateY(-1px); }
.button--primary { background: var(--tv-gradient); color: white; }
.button--ghost { border-color: var(--tv-border); background: rgba(255,255,255,.035); color: var(--tv-muted); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--tv-border);
  background: rgba(15, 17, 21, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 22px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 205px; }
.custom-logo-link { display: inline-flex; }
.custom-logo { width: auto; max-height: 42px; }

.site-nav {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  overflow: hidden;
}

.site-nav__menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__menu { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav__menu::-webkit-scrollbar { display: none; }
.site-nav__menu li { flex: 0 0 auto; }
.site-nav__menu a {
  display: block;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #9da2ad;
  font-size: .82rem;
  font-weight: 760;
  white-space: nowrap;
}
.site-nav__menu .current-menu-item a,
.site-nav__menu a:hover { border-color: rgba(255,71,87,.34); background: rgba(255,71,87,.12); color: white; }

.site-search {
  display: flex;
  width: min(230px, 21vw);
  min-width: 172px;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--tv-border);
  border-radius: 11px;
  background: #1a1e26;
}

.site-search input {
  width: 100%;
  min-width: 0;
  padding: 0 4px 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tv-text);
}

.site-search input::placeholder { color: #777685; }
.site-search button { width: 46px; border: 0; background: transparent; color: var(--tv-muted); cursor: pointer; font-size: 1.25rem; }
.nav-toggle { display: none; }

.home-content__heading h1,
.page-hero h1,
.not-found h1 {
  margin: 0;
  max-width: 32ch;
  color: var(--tv-text);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.05vw, 2rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.036em;
}

.home-shell {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 28px;
  padding-block: 26px 72px;
}

.home-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 18px 12px 18px 0;
  border-right: 1px solid var(--tv-border);
}

.home-sidebar__title {
  margin: 0 12px 12px;
  color: #777e8b;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.home-sidebar__nav { display: grid; gap: 4px; }
.sidebar-category {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #8d929e;
  font-size: .87rem;
  font-weight: 690;
}
.sidebar-category:hover,
.sidebar-category.is-active { border-color: rgba(255,71,87,.2); background: rgba(255,71,87,.11); color: white; }
.sidebar-category__dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #434956; }
.sidebar-category:nth-child(3n + 2) .sidebar-category__dot { background: rgba(139,92,246,.82); }
.sidebar-category:nth-child(3n + 3) .sidebar-category__dot { background: rgba(255,255,255,.35); }
.sidebar-category.is-active .sidebar-category__dot { width: 10px; border-radius: 4px; background: var(--tv-coral); box-shadow: 0 0 18px rgba(255,71,87,.55); }
.sidebar-category--live { color: #ff6976; }
.sidebar-category--live .sidebar-category__dot { background: var(--tv-coral) !important; box-shadow: 0 0 0 0 rgba(255,71,87,.55); animation: topvidea-home-live-pulse 1.5s ease-out infinite; }

.home-content { min-width: 0; }
.home-content__heading {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}
.view-all { flex: 0 0 auto; color: #8f95a1; font-size: .78rem; font-weight: 780; }
.view-all:hover { color: white; }
.view-all span { color: var(--tv-coral); }

.home-category-strip { display: none; overflow-x: auto; gap: 8px; padding-bottom: 16px; scrollbar-width: none; }
.home-category-strip::-webkit-scrollbar { display: none; }
.category-chip { flex: 0 0 auto; padding: 9px 15px; border: 1px solid var(--tv-border); border-radius: 999px; background: rgba(255,255,255,.03); color: var(--tv-muted); font-size: .88rem; font-weight: 750; }
.category-chip:hover,
.category-chip.is-active { border-color: rgba(255,71,87,.45); background: rgba(255,71,87,.12); color: white; }
.category-chip--live { border-color: rgba(255,71,87,.28); color: #ff6976; }

.content-section { padding-block: 38px 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; max-width: 30ch; font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.65rem, 2.6vw, 2.4rem); line-height: 1.08; letter-spacing: -.035em; }
.section-heading--compact { margin-bottom: 16px; }
.section-heading--compact .eyebrow { margin-bottom: 5px; }
.section-heading--compact h2 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.home-video-section { min-width: 0; }
.home-video-section--live { margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--tv-border); }
.home-video-section--popular { margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--tv-border); }

@keyframes topvidea-home-live-pulse {
  70% { box-shadow: 0 0 0 8px rgba(255,71,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,71,87,0); }
}

.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; }
.video-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-card { min-width: 0; }
.video-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--tv-border); border-radius: var(--tv-radius); background: var(--tv-surface); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease, opacity 260ms ease; }
.video-card__media:hover img { transform: scale(1.035); opacity: .82; }
.video-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(135deg, #20202b, #16161e); color: rgba(255,255,255,.18); font-size: 2rem; }
.video-card__play { position: absolute; inset: 50% auto auto 50%; display: grid; width: 48px; height: 48px; place-items: center; padding-left: 3px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; background: rgba(10,10,14,.62); color: white; opacity: 0; transform: translate(-50%, -45%) scale(.85); transition: 180ms ease; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.video-card__media:hover .video-card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-card__badge,
.video-card__duration { position: absolute; bottom: 10px; padding: 4px 8px; border-radius: 7px; color: white; font-size: .7rem; font-weight: 850; line-height: 1.2; }
.video-card__badge { left: 10px; background: var(--tv-gradient); }
.video-card__duration { right: 10px; background: rgba(5,5,7,.82); }
.video-card__body { padding: 13px 3px 0; }
.video-card h3 { display: -webkit-box; overflow: hidden; margin: 0 0 5px; font-size: .98rem; line-height: 1.35; letter-spacing: -.01em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.video-card__meta { color: var(--tv-muted); font-size: .77rem; }
.video-card__meta a { color: var(--tv-muted); }

.page-hero { padding-block: 72px 30px; }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.25rem, 5vw, 4.6rem); }
.archive-description { max-width: 680px; color: var(--tv-muted); }
.empty-state { padding: 38px; border: 1px dashed rgba(255,255,255,.15); border-radius: var(--tv-radius); background: linear-gradient(120deg, rgba(255,71,87,.025), rgba(139,92,246,.045)); text-align: center; }
.empty-state h3 { margin: 0 0 8px; font-size: 1.5rem; }
.empty-state p { margin: 0; color: var(--tv-muted); }
.empty-state--compact { padding: 28px; }
.empty-state--catalog { display: grid; min-height: 230px; place-content: center; }
.empty-state--catalog h3 { font-size: 1.1rem; }
.empty-state__icon { display: grid; width: 46px; height: 46px; margin: 0 auto 14px; place-items: center; padding-left: 3px; border: 1px solid rgba(255,71,87,.25); border-radius: 50%; background: rgba(255,71,87,.09); color: var(--tv-coral); }

.single-video,
.standard-page { padding-block: 62px 88px; }
.single-video__header { max-width: 900px; margin-bottom: 24px; }
.single-video__header h1 { margin: 6px 0 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.06; letter-spacing: -.045em; }
.single-video__terms,
.single-video__terms a { color: var(--tv-coral-2); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.player-shell { overflow: hidden; width: 100%; border: 1px solid var(--tv-border); border-radius: var(--tv-radius-lg); background: #050507; box-shadow: var(--tv-shadow); }
.player-shell iframe,
.player-shell video,
.player-shell > img { display: block; width: 100%; aspect-ratio: 16/9; border: 0; object-fit: cover; }
.player-fallback { display: grid; min-height: min(65vw, 620px); place-items: center; padding: 30px; background: linear-gradient(145deg, #171720, #09090d); text-align: center; }

.prose { max-width: 780px; margin-top: 34px; color: #cfced7; }
.prose h2,
.prose h3 { margin-top: 1.7em; color: white; line-height: 1.2; }
.prose a { color: var(--tv-coral-2); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--tv-radius); }

.ad-wrap { margin-block: 24px; }
.ad-slot { display: grid; min-height: 90px; place-items: center; overflow: hidden; border: 1px dashed rgba(255,255,255,.14); border-radius: var(--tv-radius); background: rgba(255,255,255,.018); color: #6f6e79; font-size: .72rem; text-align: center; }

.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.page-numbers { display: grid; min-width: 40px; height: 40px; place-items: center; border: 1px solid var(--tv-border); border-radius: 10px; color: var(--tv-muted); }
.page-numbers.current { border-color: transparent; background: var(--tv-gradient); color: white; }

.not-found { min-height: 63vh; padding-block: 110px; text-align: center; }
.not-found h1 { max-width: none; font-size: clamp(2.4rem, 7vw, 6rem); }
.not-found > p:not(.eyebrow) { margin: 20px auto 30px; color: var(--tv-muted); }

.site-footer { border-top: 1px solid var(--tv-border); background: #0b0d11; }
.site-footer__grid { display: grid; grid-template-columns: minmax(300px, 1.45fr) minmax(150px, .55fr) minmax(180px, .7fr); gap: clamp(34px, 7vw, 92px); padding-block: 58px; }
.site-footer__brand { max-width: 560px; }
.site-footer__note { max-width: 540px; margin: 18px 0 0; color: #7f7e8a; font-size: .87rem; }
.site-footer__nav h2 { margin: 3px 0 18px; color: #efeff4; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.site-footer__nav .footer-menu { display: grid; justify-content: start; gap: 10px; }
.footer-menu a { color: var(--tv-muted); font-size: .86rem; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 20px; border-top: 1px solid var(--tv-border); color: #686772; font-size: .75rem; }

.age-gate { position: fixed; z-index: 99999; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(5,5,8,.88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.age-gate[hidden] { display: none; }
.age-gate__panel { width: min(100%, 520px); padding: clamp(28px, 6vw, 52px); border: 1px solid var(--tv-border); border-radius: 28px; background: linear-gradient(145deg, #1a1a23, #101016); box-shadow: 0 40px 120px rgba(0,0,0,.62); text-align: center; }
.age-gate__logo { width: 170px; margin: 0 auto 30px; }
.age-gate__panel h1 { margin: 0; font-size: clamp(1.9rem, 6vw, 3.1rem); line-height: 1.06; letter-spacing: -.045em; }
.age-gate__panel > p:not(.eyebrow) { margin: 18px auto 0; color: var(--tv-muted); }
.age-gate__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }

@media (max-width: 1020px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav__menu { display: none; }
  .home-shell { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; }
  .video-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 24px), var(--tv-container)); }
  .site-header__inner { min-height: 66px; }
  .brand img { width: 164px; }
  .nav-toggle { display: grid; width: 42px; height: 42px; margin-left: auto; padding: 11px 9px; border: 1px solid var(--tv-border); border-radius: 11px; background: transparent; place-content: center; gap: 4px; }
  .nav-toggle > span:not(.screen-reader-text) { display: block; width: 20px; height: 2px; border-radius: 2px; background: white; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; padding: 14px 12px 18px; border-bottom: 1px solid var(--tv-border); background: #101016; }
  .site-nav.is-open { display: block; }
  .site-nav__menu { display: grid; gap: 0; }
  .site-nav__menu a { display: block; padding: 11px 6px; }
  .site-search { width: 100%; margin-top: 10px; }
  .home-shell { display: block; padding-block: 18px 54px; }
  .home-sidebar { display: none; }
  .home-content__heading { min-height: 0; margin-bottom: 13px; }
  .home-content__heading h1 { font-size: clamp(1.22rem, 5.3vw, 1.65rem); }
  .home-content__heading .view-all { display: none; }
  .home-category-strip { display: flex; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .video-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-card__media { border-radius: 12px; }
  .home-video-section--popular { margin-top: 42px; padding-top: 24px; }
  .home-video-section--live { margin-top: 42px; padding-top: 24px; }
  .site-footer__grid { grid-template-columns: 1.25fr .75fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .footer-menu { justify-content: flex-start; }
  .site-footer__bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 460px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-grid--home { grid-template-columns: 1fr; }
  .video-card h3 { font-size: 1.03rem; }
  .age-gate__actions { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

