/* NOVA Play visual system. Loaded after feature styles so type and spacing stay consistent. */
@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #101012;
  --panel: #1b1b1e;
  --line: #343438;
  --muted: #aaaab0;
  --text: #f7f7f8;
  --accent: var(--nova-accent, #ff6244);
  --type-xs: .75rem;
  --type-sm: .875rem;
  --type-md: 1rem;
  --type-lg: 1.25rem;
  --type-xl: 1.5rem;
  --type-2xl: clamp(2rem, 3vw, 2.75rem);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
}

html { scroll-behavior: smooth; }
body, button, input, select, textarea { font-family: Inter, "Segoe UI", sans-serif; }
body { font-size: var(--type-md); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-size: var(--type-sm); }
button { font-weight: 600; }
strong, b { font-weight: 700; }
p { line-height: 1.6; }
h1, h2, h3 { font-family: inherit; font-weight: 700; line-height: 1.22; letter-spacing: -.035em; }
small, .tiny { font-size: var(--type-xs); line-height: 1.5; }
.eyebrow { font-size: var(--type-xs); font-weight: 700; letter-spacing: .12em; }
.muted, .tiny { color: var(--muted); }

/* Shell */
/* Desktop header proportions: 96px first row, 54px search, 60px navigation. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 40; background: #202022; }
.workspace { margin-left: 0; max-width: none; }
.topbar { height: 96px; display: flex; align-items: center; gap: 13px; padding-inline: 26px; border-bottom: 1px solid #ffffff0c; background: transparent; }
.brand { flex: 0 0 178px; width: 178px; display: inline-flex; align-items: center; gap: 11px; margin-right: 12px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.05em; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 1.4rem; font-weight: 800; }
.brand-name { display: inline-flex; align-items: baseline; gap: 2px; }
.brand-play { display: inline; margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.site-header .search { position: relative; flex: 1 1 auto; min-width: 180px; max-width: none; min-height: 54px; padding: 13px 18px; border: 1px solid #454549; border-radius: 999px; background: #333335; color: #ededf0; }
.site-header .search:focus-within { position: relative; left: auto; right: auto; z-index: auto; border-color: var(--accent); background: #333335; }
.site-header .search:has(input:not(:placeholder-shown)) { position: relative; left: auto; right: auto; z-index: auto; border-color: #454549; background: #333335; }
.site-header .search:has(input:not(:placeholder-shown)):focus-within { border-color: var(--accent); }
.site-header .search input, .site-header .search:focus-within input, .site-header .search:has(input:not(:placeholder-shown)) input { width: 100%; min-width: 0; opacity: 1; padding: 0; font-size: 1.125rem; }
.site-header .search input::placeholder { color: #b6b6ba; }
.site-header .search svg { width: 22px; height: 22px; }
.site-header .top-actions { flex: 0 0 auto; width: auto; display: flex; justify-content: flex-end; align-items: center; gap: 0; }
.nova-bell { width: 48px; height: 48px; border-radius: 50%; color: #f4f4f4; }
.mobile-bell { display: none; }
.header-collection { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 144px; min-height: 54px; padding: 0 12px; border: 1px solid #303033; border-radius: 999px; color: #f0f0f2; font-size: var(--type-md); font-weight: 700; white-space: nowrap; }
.header-collection:hover, .header-collection.active { border-color: var(--accent); color: #fff; background: #ff624413; }
.header-collection svg { width: 19px; height: 19px; color: var(--accent); }
.header-nav-row { display: flex; align-items: stretch; justify-content: space-between; min-height: 60px; padding-inline: 14px; border-bottom: 1px solid #ffffff14; gap: 14px; }
.main-nav { min-width: 0; display: flex; flex-direction: row; align-items: stretch; gap: 0; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a, .header-links a, .header-links button { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 13px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #dedee2; font-size: var(--type-md); font-weight: 700; white-space: nowrap; }
.main-nav a svg, .header-links svg { width: 22px; height: 22px; }
.main-nav a:hover, .header-links a:hover, .header-links button:hover { background: #ffffff08; color: #fff; }
.main-nav a.active, .header-links a.active { background: transparent; border-bottom-color: var(--accent); color: var(--accent); }
.main-nav a.active::before { content: none; }
.main-nav .live-dot { width: 6px; height: 6px; margin: 0 0 0 -4px; }
.header-links { flex: 0 0 auto; display: flex; align-items: stretch; margin-left: auto; }
.header-links .nova-bell { width: 60px; height: 60px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; }
.header-links button#about-button { display: none; }
.header-links button svg { color: var(--muted); }
main { max-width: 1560px; margin-inline: auto; padding: 26px clamp(24px, 3vw, 48px) 40px; }
.footer { padding-inline: clamp(24px, 3vw, 48px); font-size: var(--type-xs); }

/* Home and headings */
.welcome-row { margin: 0 0 22px; }
.welcome-avatar { width: 44px; height: 44px; font-size: var(--type-lg); }
.welcome-row small { font-size: var(--type-xs); }
.welcome-row strong { font-size: var(--type-lg); font-weight: 700; line-height: 1.25; }
.nova-news { margin-bottom: 22px; border-radius: 14px; }
.nova-news-label { font-size: var(--type-xs); }
.hero { min-height: 410px; border-radius: 22px; border-color: #ffffff20; }
.hero:after { background: linear-gradient(90deg, #101012f5 0%, #101012c9 38%, #10101235 78%), linear-gradient(0deg, #101012b8, transparent 65%); }
.hero-content { max-width: 610px; padding: clamp(30px, 4vw, 56px); }
.hero h1 { max-width: 570px; margin: 18px 0; font-family: inherit; font-size: clamp(2.5rem, 4.2vw, 4.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.055em; overflow-wrap: anywhere; }
.hero-description { max-width: 440px; font-size: var(--type-sm); color: #dadadd; }
.hero .metadata { font-size: var(--type-xs); }
.hero-actions { margin-top: 24px; }
.primary, button.primary, .secondary { min-height: 44px; padding: 11px 18px; border-radius: 12px; font-size: var(--type-sm); font-weight: 700; }
.primary:hover, button.primary:hover { filter: brightness(1.1); }
.secondary:hover { border-color: #66666d; background: #303034; }
.category-rail { gap: 9px; padding: 20px 0 8px; }
.category-rail a { padding: 10px 17px; border-radius: 999px; color: #ededee; font-size: var(--type-sm); font-weight: 600; }
.category-rail a:hover { border-color: var(--accent); color: #fff; }
.section, .home-discovery { margin-block: 34px 42px; }
.section-head, .home-discovery .section-heading { margin-bottom: 18px; }
.section-head h2, .home-discovery .section-heading h2, .catalog-results h2 { font-size: var(--type-xl); font-weight: 700; letter-spacing: -.035em; }
.section-head small, .section-head .see-all, .home-discovery .section-heading a { font-size: var(--type-sm); }
.home-discovery .view-tabs { margin-block: 18px 10px; }
.page-heading h1, .catalog-intro h1 { font-size: var(--type-2xl); font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
.page-heading p, .catalog-intro p:not(.eyebrow) { font-size: var(--type-sm); }

/* Catalog cards and controls */
.series-grid, .movies, .dracin-page .series-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 16px; }
.serial .poster, .poster, .dracin-page .poster { border-radius: 15px; background: #25252a; }
.poster { border: 1px solid #ffffff0c; }
.poster img { transition: transform .25s ease; }
.poster-tag { font-size: .6875rem; font-weight: 700; letter-spacing: .01em; }
.episode-chip { font-size: var(--type-xs); font-weight: 700; }
.serial h3, .movie-copy h3 { min-height: 0; margin: 11px 0 5px; font-size: var(--type-sm); font-weight: 600; line-height: 1.45; }
.serial p, .movie .metadata, .film-feedback, .review-link { font-size: var(--type-xs); line-height: 1.5; }
.home-poster-rail article { flex-basis: 176px; }
.view-tabs button, .filters button, .day-tabs button, .year-shortcuts button { min-height: 42px; font-size: var(--type-sm); font-weight: 600; }
.view-tabs button.active, .filters button.active, .dracin-page .view-tabs button.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.catalog-intro { margin-top: 6px; }
.catalog-tile { border-radius: 16px; }
.catalog-tile strong { font-size: var(--type-md); font-weight: 700; }
.catalog-tile small, .catalog-selects label, .catalog-results > span { font-size: var(--type-xs); }
.catalog-refine, .explore-categories a, .nova-status-list article, .nova-profile { background: var(--panel); border-color: var(--line); border-radius: 18px; }
.refine-heading > strong { font-size: var(--type-md); }
.genre-disclosure summary { font-size: var(--type-sm); font-weight: 600; }
.channel, .service { background: var(--panel); border-color: var(--line); border-radius: 16px; }
.channel h3 { font-size: var(--type-sm); }
.channel p, .channel .channel-mode, .service p, .service .provider-link { font-size: var(--type-xs); }
.schedule-list b, .episode-grid button { font-size: var(--type-sm); }
.schedule-kind { font-size: var(--type-xs); }

/* Dialogs and account screens */
dialog { border-radius: 20px; }
dialog h2 { font-size: var(--type-xl); }
.player-header h2 { font-size: var(--type-lg); }
.info-dialog p, .info-dialog li, .nova-settings-sheet > p { font-size: var(--type-sm); }
.settings-menu strong { font-size: var(--type-md); font-weight: 600; }
.settings-menu small, .setting-control small { font-size: var(--type-xs); }
.settings-menu h2, .nova-settings-sheet h2 { font-size: var(--type-lg); }
.episode-row { font-size: var(--type-md); }
.episode-toolbar h3 { font-size: var(--type-lg); }
.nova-profile p, .nova-status-list p { font-size: var(--type-sm); }

@media (max-width: 1200px) {
  .topbar { height: 80px; }
  .main-nav a, .header-links a { padding-inline: 13px; }
  .series-grid, .movies, .dracin-page .series-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .topbar { height: 74px; padding-inline: 22px; }
  .brand { font-size: 1.3rem; }
  .site-header .search { min-height: 46px; }
  .site-header .search input { font-size: var(--type-sm); }
  .main-nav a[data-page="updates"] { display: none; }
  .mobile-nav { display: none; }
  main { padding: 22px 22px 32px; }
  .hero { min-height: 360px; }
  .hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
  .hero-description { display: block; }
  .series-grid, .movies, .dracin-page .series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-nav-row { display: none; }
  .header-collection { display: none; }
  .mobile-bell { display: grid; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: #1b1b1bf5; border-top: 1px solid var(--line); padding: 10px 8px max(10px, env(safe-area-inset-bottom)); backdrop-filter: blur(15px); }
  .mobile-nav a { font-size: var(--type-xs); font-weight: 600; }
  .footer { padding-bottom: 110px; }
}

@media (max-width: 600px) {
  .topbar { height: auto; min-height: 0; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "search search"; gap: 12px; padding: 14px 18px 16px; }
  .topbar .brand { grid-area: brand; font-size: 1.25rem; }
  .topbar .brand-mark { width: 32px; height: 32px; font-size: 1.2rem; }
  .site-header .search { grid-area: search; min-width: 0; min-height: 46px; padding: 10px 15px; }
  .site-header .top-actions { grid-area: actions; }
  .nova-bell { width: 42px; height: 42px; }
  main { padding: 17px 18px 30px; }
  .welcome-row { margin-bottom: 16px; }
  .welcome-row strong { font-size: var(--type-md); }
  .hero { min-height: 430px; align-items: flex-end; border-radius: 18px; }
  .hero > img { height: 100%; object-position: center top; }
  .hero:after { background: linear-gradient(0deg, #101012 0%, #101012eb 35%, #10101230 85%); }
  .hero .hero-content { padding: 23px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); margin: 12px 0; }
  .hero-description { display: block; margin: 12px 0 16px; font-size: var(--type-sm); }
  .hero-actions { margin-top: 16px; }
  .section, .home-discovery { margin-block: 29px 34px; }
  .section-head h2, .home-discovery .section-heading h2, .catalog-results h2 { font-size: var(--type-lg); }
  .section-head small, .section-head .see-all { font-size: var(--type-xs); }
  .series-grid, .movies, .dracin-page .series-grid, .schedule-posters .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 12px; }
  .serial h3, .movie-copy h3 { font-size: var(--type-sm); }
  .serial p, .movie .metadata, .film-feedback, .review-link { font-size: var(--type-xs); }
  .poster-tag { font-size: .625rem; }
  .home-poster-rail article { flex-basis: 150px; }
  .category-rail a { padding: 10px 15px; font-size: var(--type-sm); }
  .page-heading h1, .catalog-intro h1 { font-size: 2rem; }
  .footer { padding: 20px 18px 105px; font-size: var(--type-xs); }
  .mobile-nav { border-radius: 18px 18px 0 0; padding: 10px 8px max(10px, env(safe-area-inset-bottom)); }
  .mobile-nav a { min-height: 56px; padding-top: 7px; font-size: .6875rem; }
  .mobile-nav button { width: 48px; height: 48px; }
  .catalog-selects { gap: 10px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.875rem; }
  .mobile-nav a { font-size: .625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
