.poster {
  position: relative;
}
#eyebrow:empty { display: none; }
.rating-value.rating-high { color: #6ee7a0; }
.rating-value.rating-mid { color: #ffb45c; }
.rating-value.rating-low { color: #ff7c85; }
.card .card-copy .card-logo {
  outline: none;
  border: 0;
  background: transparent;
  position: static;
  display: block;
  width: auto;
  height: auto;
  max-width: min(38%, 132px);
  max-height: 36px;
  object-fit: contain;
  object-position: left bottom;
  margin: 0 auto 0 0;
  align-self: flex-start;
  filter: drop-shadow(0 3px 14px #000c);
  transform: none;
  opacity: 1;
}
.card-copy:has(.card-logo:not([hidden])) h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.card.title-logo-pending:not(:hover):not(:focus-visible) .card-copy h3 { visibility: hidden; }
.card:is(:hover, :focus-visible) .card-copy .card-logo { display: none; }
.card:is(:hover, :focus-visible) .card-copy:has(.card-logo:not([hidden])) h3 {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
}
@media (max-width: 600px) {
  .card .card-copy .card-logo {
    max-width: min(42%, 126px);
  }
}
.sports-tabs {
  margin-top: 18px;
}
.sports-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  padding: 20px;
  background: #15191f;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sports-toolbar > input {
  flex: 1;
  min-width: 180px;
}
.sports-toolbar select {
  min-width: 170px;
}
.sports-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}
.sports-summary h2 {
  font-size: 1.25rem;
  margin: 0;
}
.sports-summary > span,
.sports-notice {
  font-size: 0.8rem;
  color: var(--muted);
}
.sports-notice {
  margin: 12px 0 20px;
  line-height: 1.6;
}
.sports-trouble {
  margin: 12px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--line);
}
.sports-grid {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  align-items: stretch;
}
.sports-grid > .empty {
  grid-column: 1 / -1;
}
.scoreboard-match {
  background: #15191f;
  padding: 18px;
  gap: 18px;
  min-height: 230px;
  border: 1px solid #303640;
  border-radius: 12px;
  width: 100%;
}
.scoreboard-match:hover {
  background: #1c222b;
  border-color: #61704c;
}
.match-heading,
.match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.match-league {
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  color: #c1c7d0;
  text-wrap: balance;
}
.match-status {
  background: #262d38;
  border-radius: 5px;
  padding: 5px 7px;
  color: #dbe1e9;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}
.match-status.is-live {
  color: #ffb8ba;
  background: #70262c66;
}
.match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: 100%;
}
.match-team {
  display: contents;
  min-width: 0;
  text-align: center;
}
.match-team .team-badge { grid-row: 1; justify-self: center; }
.match-team:first-child .team-badge { grid-column: 1; }
.match-team:last-child .team-badge { grid-column: 4; }
.match-team:first-child > strong { grid-column: 1 / 3; }
.match-team:last-child > strong { grid-column: 3 / 5; }
.match-team > strong {
  grid-row: 2;
  font-size: 0.9rem;
  max-width: 100%;
  line-height: 1.4;
  text-wrap: balance;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.team-badge {
  width: 60px;
  height: 60px;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #303946;
  border-radius: 12px;
  overflow: hidden;
}
.team-initials {
  color: #eef1f7;
  font-size: 1.1rem;
  font-weight: 750;
}
.team-badge img {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
  background: #f2f4f7;
}
.team-badge img.is-loaded { opacity: 1; }
.match-score {
  grid-column: 2 / 4;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
  padding-top: 22px;
}
.match-score > strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: clamp(0.85rem, 3.5vw, 1.15rem);
}
.match-score small {
  max-width: 110px;
  overflow-wrap: anywhere;
  font-size: 0.7rem;
  color: var(--muted);
}
.match-footer {
  margin-top: auto;
  border-top: 1px solid #303640;
  padding-top: 12px;
}
.match-footer small {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}
.match-footer > span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.match-event {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 100px;
}
.match-event img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
}
.match-detail-teams {
  padding: 20px;
  border-radius: 12px;
  background: #15191f;
}
.match-detail #detail-art:has(img) {
  padding: 30px 30px 0;
}
.match-detail #detail-art img {
  width: 68px;
  height: 68px;
  padding: 6px;
  border-radius: 12px;
  background: #f2f4f7;
}
@media (max-width: 800px) {
  .match-detail #detail-art:has(img) {
    padding: 23px 23px 0;
  }
}
@media (max-width: 600px) {
  .sports-toolbar {
    padding: 14px;
    gap: 10px;
  }
  .sports-toolbar .filter-control {
    flex: 1;
  }
  .sports-toolbar select {
    min-width: 0;
    width: 100%;
  }
  .sports-toolbar > input {
    width: 100%;
  }
  .sports-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sports-summary {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}
.hero-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.hero-counter {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.continue-empty {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.continue-empty h2 {
  font-size: 1.2rem;
}
.continue-empty p {
  color: var(--muted);
  font-size: 0.85rem;
}
.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 18px;
}
.catalog-tabs button {
  min-height: 44px;
}
.catalog-tabs button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.category-tabs button[aria-current="page"] {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  padding: 12px 0;
}
.catalog-tools > input {
  flex: 1;
  min-width: 180px;
  max-width: 420px;
}
.catalog-tools .genre-browser {
  margin: 0;
  max-width: 200px;
}
.catalog-tools > .genre-browser {
  order: -1;
}
.catalog-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  scroll-margin-top: 100px;
}
.catalog-summary h2 {
  font-size: 1.25rem;
  margin: 0;
}
.catalog-note {
  color: var(--muted);
  font-size: 0.85rem;
}
.catalog-note:empty {
  display: none;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 18px;
  margin-top: 20px;
}
.catalog-grid .empty {
  grid-column: 1 / -1;
}
.catalog-section {
  margin-top: 56px;
}
.catalog-section > h3 {
  font-size: .875rem;
  font-weight: 680;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
}
.catalog-section:first-child { margin-top: 28px; }
.catalog-section > .catalog-grid { margin-top: 16px; }
@media (max-width: 600px) {
  .catalog-section { margin-top: 40px; }
}
.catalog-grid .card {
  width: 100%;
  min-width: 0;
}
.catalog-grid .card h3 {
  font-size: 0.9rem;
}
.catalog-placeholder {
  aspect-ratio: 2 / 3;
  background: var(--surface);
  border-radius: 8px;
}
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 32px 0;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 1101px) {
  .catalog-grid.release-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .release-grid .card { container-type: inline-size; }
}
@media (max-width: 850px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 12px;
  }
}
@media (max-width: 420px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-tools > input {
    max-width: none;
    width: 100%;
  }
}
.shelf[data-release-type] {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.shelf[data-release-type] .grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.release-filters {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.release-filters button {
  min-height: 44px;
}
.release-filters button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
@media (max-width: 1000px) {
  .shelf[data-release-type] .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .shelf[data-release-type] .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .release-filters {
    gap: 6px;
  }
  .release-filters button {
    padding-inline: 10px;
  }
}
#content:focus {
  outline: none;
}
.sports-provider-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: end;
  padding: 20px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.sports-provider-picker:empty {
  display: none;
}
.sports-provider-picker select {
  min-width: 240px;
  font-weight: 650;
}
.sports-provider-picker p {
  margin: 0 0 10px;
  font-size: 0.85rem;
}
.feed-group {
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.feed-group h3 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.feed-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.feed-choice {
  text-align: left;
  padding: 15px;
}
.feed-choice strong,
.feed-choice small {
  display: block;
}
.feed-choice small {
  margin-top: 6px;
  font-size: 0.75rem;
}
.poster > img {
  position: absolute;
  inset: 0;
}
.art-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 20px;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 650;
  color: #becbb7;
  text-wrap: balance;
}
.card h3 {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 2.8em;
}
.page-heading {
  margin-top: 32px;
  margin-bottom: 20px;
}
.page-heading h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.hero {
  min-height: 335px;
  margin-top: 0;
}
.hero h2 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
}
.hero .hero-copy > p:not(.eyebrow) {
  margin-bottom: 13px;
}
.shelf-heading h2 {
  margin-right: auto;
}
.shelf-heading small {
  max-width: 220px;
}
.shelf-heading > button {
  white-space: nowrap;
}
.rail-controls {
  display: flex;
  gap: 5px;
}
.rail-controls button {
  padding: 7px 12px;
  min-width: 44px;
}
.rail-controls button:disabled {
  cursor: default;
}
.filters button[aria-pressed="true"] {
  background: var(--accent);
  color: #17200f;
}
.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #171d19;
}
.collection-toolbar > input {
  flex: 1;
  min-width: 160px;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--muted);
}
.filter-field select {
  font-size: 0.75rem;
  min-width: 110px;
}
:is(.catalog-tools, .collection-toolbar, .sports-toolbar)
  :is(input, select, button) {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  border-radius: 7px;
}
.sports-toolbar {
  gap: 8px;
  padding: 14px;
}
.sports-toolbar select {
  min-width: 130px;
}
.collection-toolbar {
  gap: 8px;
  padding: 12px;
}
@media (pointer: coarse) {
  :is(.catalog-tools, .collection-toolbar, .sports-toolbar)
    :is(input, select, button) {
    min-height: 44px;
  }
  :is(.catalog-tools, .collection-toolbar, .sports-toolbar) input {
    font-size: 1rem;
  }
}
.collection-count {
  font-size: 0.8rem;
}
.genre-browser {
  margin-bottom: 20px;
  max-width: 280px;
}
.grid > .empty {
  grid-column: 1 / -1;
}
.skeleton-shelf {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin: 35px 0;
  overflow: hidden;
}
.skeleton-shelf > div {
  aspect-ratio: 2/3;
  background: linear-gradient(110deg, #1a221c 30%, #29352b 50%, #1a221c 70%);
  background-size: 200% 100%;
  border-radius: 10px;
  animation: skeleton-pulse 1.8s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  to {
    background-position: -200% 0;
  }
}
.episode-plot {
  overflow: hidden;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}
.playback-error .player-bottom {
  border-top: 1px solid #77503e;
  background: #30231c;
}
.playback-error #player-status {
  color: #ffd3b7;
}
.playback-error #other-source {
  background: var(--accent);
  color: #17200f;
}
dialog {
  overscroll-behavior: contain;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@media (max-width: 800px) {
  .rail-controls {
    display: none;
  }
  .collection-toolbar .filter-field {
    flex: 1;
  }
  .collection-toolbar > input {
    width: 100%;
    flex-basis: 100%;
  }
  .skeleton-shelf {
    grid-template-columns: repeat(3, 1fr);
  }
  .skeleton-shelf > div:nth-child(n + 4) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-shelf > div {
    animation: none;
  }
}
.rank {
  position: absolute;
  bottom: -8px;
  left: 7px;
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1.2;
  color: #eef5e6;
  text-shadow: 0 2px 16px #000c;
  -webkit-text-stroke: 1px #17200f;
  font-variant-numeric: tabular-nums;
}
.badge {
  position: absolute;
  top: 9px;
  left: 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #17200f;
  padding: 5px 7px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.hero-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.update-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid #415330;
  border-radius: 12px;
  background: #232e1e;
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.update-note strong {
  color: var(--accent);
}
.update-note span {
  color: var(--muted);
}
.text-button {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.8rem;
  padding: 8px;
}
.card small {
  display: block;
}
.card progress {
  position: absolute;
  inset: auto 0 0;
  display: block;
  width: 100%;
  height: 4px;
  margin: 0;
  appearance: none;
  background: #ffffff50;
  accent-color: var(--accent);
  border: 0;
}
.card progress::-webkit-progress-bar {
  background: #ffffff50;
}
.card progress::-webkit-progress-value {
  background: var(--accent);
}
.card progress::-moz-progress-bar {
  background: var(--accent);
}
.shelf-heading {
  gap: 20px;
}
.shelf-heading small {
  text-align: right;
}
header {
  gap: 25px;
}
@media (max-width: 1050px) {
  header {
    flex-wrap: wrap;
  }
  nav {
    order: 3;
    width: 100%;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
  }
}
@media (max-width: 600px) {
  .shelf-heading {
    display: block;
  }
  .shelf-heading small {
    display: block;
    text-align: left;
    margin-bottom: 14px;
  }
}

/* Keep the page frame steady while only the selected catalog changes. */
main:has(#featured-hero .hero) > .page-heading > div {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
main:has(#featured-hero .hero) > .page-heading {
  display: none;
}
#search-dock {
  position: sticky;
  top: var(--header-height, 93px);
  height: 0;
  transform: translateY(16px);
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  padding-inline: 4.5%;
  pointer-events: none;
}
#search-dock[hidden] {
  display: none;
}
#app:has(#search-dock[hidden]) main {
  padding-top: 0;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  padding-bottom: 28px;
}
.news-grid > .empty {
  grid-column: 1 / -1;
}
.news-channel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  background: #151b18;
  text-align: left;
}
.news-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100px;
  background: #26332b;
  border-radius: 8px;
  overflow: hidden;
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 750;
}
.news-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
  background: #17211b;
}
.news-channel strong {
  font-size: 1rem;
}
.news-channel small {
  color: var(--muted);
}
.news-watch {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: auto;
  padding-top: 10px;
}
#search-dock #search-form {
  width: min(420px, 100%);
  min-width: 0;
  height: 48px;
  flex-shrink: 0;
  background: #101313eb;
  backdrop-filter: blur(16px);
  border-color: #ffffff40;
  box-shadow: 0 6px 24px #0004;
  pointer-events: auto;
}
#app:not(:has(.hero)) main {
  padding-top: 64px;
}
#catalog-layout:has(#top-ten:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
#catalog {
  min-width: 0;
}
#top-ten {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #151b18;
}
#top-ten h2 {
  font-size: 1.3rem;
  margin: 0 0 16px;
}
.ranking-tabs {
  display: flex;
  gap: 4px;
}
.ranking-tabs button {
  flex: 1;
  padding: 10px 8px;
  font-size: 0.8rem;
}
.ranking-tabs button[aria-pressed="true"] {
  background: var(--accent);
  color: #17210e;
  border-color: var(--accent);
}
.ranking-description {
  color: var(--muted);
  font-size: 0.72rem;
  min-height: 3em;
  line-height: 1.5;
  margin: 12px 0;
}
.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ranking-list > li + li {
  border-top: 1px solid var(--line);
}
.ranking-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border: 0;
  background: none;
}
.ranking-number {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 29px;
}
.ranking-art {
  width: 42px;
  height: 63px;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #29352b;
}
.ranking-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ranking-copy {
  min-width: 0;
}
.ranking-copy strong {
  font-size: 0.8rem;
  line-height: 1.4;
  display: block;
  overflow-wrap: anywhere;
}
.ranking-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  margin-top: 5px;
}
.ranking-message {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 16px 0;
}
@media (max-width: 1100px) {
  #catalog-layout:has(#top-ten:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }
  .ranking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}
@media (max-width: 600px) {
  #search-dock #search-form {
    width: 100%;
  }
  .ranking-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
#catalog:has(.catalog-panel) {
  min-height: 85svh;
}
#catalog[aria-busy="true"] .catalog-panel {
  opacity: 0.55;
}
.category-tabs {
  overflow-anchor: none;
}
.hero {
  min-height: clamp(480px, 48vw, 740px);
  background: #090b0f;
  border: 0;
  border-radius: 0;
  align-items: end;
  padding: 42px 4.5%;
  isolation: isolate;
}
.hero > img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center top;
}
.hero:after {
  background:
    linear-gradient(0deg, #090b0fe6, #090b0f40 55%, transparent),
    linear-gradient(90deg, #090b0f80, transparent 75%);
  pointer-events: none;
}
.hero-copy {
  width: 45%;
  max-width: 520px;
}
.hero h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  color: #fff;
  text-wrap: balance;
}
.hero p:not(.eyebrow) {
  color: #d7d8dc;
  line-height: 1.6;
}
.hero-navigation {
  position: absolute;
  bottom: 24px;
  right: 26px;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-navigation button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: #090b0fcc;
  border-color: #ffffff40;
  font-size: 26px;
  color: white;
}
.hero-counter {
  color: #fff;
  text-shadow: 0 1px 4px #000;
}
@media (max-width: 700px) {
  .hero {
    min-height: 480px;
    padding: 200px 24px 76px;
    align-items: end;
  }
  .hero > img {
    width: 100%;
    height: 100%;
    object-position: center;
  }
  .hero:after {
    background: linear-gradient(
      0deg,
      #090b0fe6 0%,
      #090b0fb3 35%,
      #090b0f40 65%,
      transparent 100%
    );
  }
  .hero-copy {
    width: 100%;
    max-width: none;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .hero-navigation {
    right: 24px;
    bottom: 16px;
  }
}

/* Cinematic discovery: quiet chrome, broad artwork, and a poster filmstrip. */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  padding: 14px 4.5%;
  background: #080b12ed;
  border-bottom-color: #ffffff0c;
}
header > .wordmark {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
header > nav {
  grid-column: 1;
  grid-row: 1;
  gap: 2px;
  width: auto;
}
header nav button {
  padding-inline: 12px;
  font-size: 0.77rem;
  border-radius: 24px;
}
header nav button[aria-current] {
  background: #85e4f312;
  color: var(--accent);
}
header > .profile {
  grid-column: 3;
  grid-row: 1;
  border-color: #ffffff24;
  border-radius: 24px;
  background: transparent;
  padding-inline: 18px;
}
#search-dock #search-form {
  width: min(320px, 100%);
  border-radius: 28px;
  background: #080b12c9;
  border-color: #ffffff26;
  box-shadow: 0 8px 32px #0003;
}
#search {
  padding-left: 20px;
}
.hero {
  min-height: clamp(640px, 54vw, 800px);
  padding: 100px 8% 170px;
  margin-bottom: 24px;
  align-items: center;
  background: var(--bg);
}
.hero:after {
  background:
    linear-gradient(0deg, var(--bg), #080b1240 12%, transparent 28%),
    linear-gradient(90deg, #080b12b8, #080b1270 28%, transparent 62%);
}
.hero-copy {
  width: 60%;
  max-width: 660px;
  text-shadow: 0 2px 12px #0009;
}
.hero .eyebrow {
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
}
.hero h2 {
  font-size: clamp(2.6rem, 4.7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero .hero-meta {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
}
.hero .hero-description {
  max-width: 490px;
  color: #c0c7d3;
  font-size: 0.86rem;
}
.hero-controls {
  margin-top: 26px;
}
.hero-controls .primary {
  background: #f4f6fb;
  border-color: #f4f6fb;
  color: #10141c;
  border-radius: 28px;
  padding: 13px 24px;
  font-size: 0.85rem;
}
.hero-controls .primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.hero-filmstrip {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
  padding: 8px;
  max-width: calc(100% - 48px);
}
.hero-thumbnail {
  position: relative;
  width: 60px;
  height: 88px;
  min-width: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffff35;
  border-radius: 9px;
  background: var(--surface);
  opacity: 0.65;
  transition:
    opacity 180ms,
    border-color 180ms,
    box-shadow 180ms;
}
.hero-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-thumbnail-fallback {
  font-size: 0.55rem;
  padding: 4px;
}
.hero-thumbnail:hover {
  opacity: 1;
}
.hero-thumbnail[aria-pressed="true"] {
  opacity: 1;
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px #85e4f335,
    0 0 24px #85e4f325;
}
.hero-navigation {
  right: 4.5%;
  bottom: 56px;
  gap: 10px;
}
.hero-counter {
  font-size: 0.7rem;
  color: #c4ccd8;
}
.hero-navigation button {
  background: #080b1280;
  border-color: #ffffff28;
}
.continue-empty {
  padding: 18px 22px;
  background: linear-gradient(110deg, #111722, #080b12);
  border-color: #ffffff10;
}
.continue-empty p {
  margin-bottom: 0;
  font-size: 0.8rem;
}
.shelf-heading h2 {
  font-size: 1.1rem;
  font-weight: 650;
}
.catalog-tabs {
  gap: 20px;
  padding-bottom: 0;
}
.category-tabs button {
  border-radius: 0;
  padding: 12px 2px;
  border-bottom: 2px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.category-tabs button[aria-current="page"] {
  background: transparent;
  color: var(--text);
  border-color: transparent;
  border-bottom-color: var(--accent);
}
.catalog-tools {
  padding-block: 18px;
  gap: 10px;
}
.catalog-summary h2 {
  font-size: 1.1rem;
  font-weight: 650;
}
.catalog-grid {
  gap: 24px 16px;
}
.poster {
  border-radius: 12px;
  background: linear-gradient(130deg, #1d2a3d, #101722);
  box-shadow: 0 5px 18px #0003;
}
.poster img {
  transition:
    transform 240ms ease-out,
    filter 240ms ease-out;
}
.card:hover {
  transform: none;
}
.card:is(:hover, :focus-visible) .poster img {
  transform: scale(1.035);
  filter: brightness(0.7);
}
.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  background: #ffffffed;
  color: #101722;
  font-size: 16px;
  opacity: 0;
  transition:
    opacity 180ms,
    transform 180ms;
}
.card:is(:hover, :focus-visible) .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.poster-rating {
  position: absolute;
  right: 8px;
  bottom: 12px;
  padding: 4px 7px;
  border: 1px solid #ffffff24;
  border-radius: 6px;
  color: #f4f6fb;
  background: #080b12e8;
  font-size: 0.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.card h3,
.catalog-grid .card h3 {
  font-size: 0.81rem;
  font-weight: 650;
  margin-top: 12px;
}
.card small {
  font-size: 0.68rem;
}
.rail {
  scrollbar-color: #344257 transparent;
}
#top-ten {
  background: #0d121c;
  border-color: #ffffff10;
  border-radius: 16px;
}
.ranking-tabs {
  padding: 4px;
  border-radius: 24px;
  background: #080b12;
}
.ranking-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 20px;
  font-size: 0.72rem;
}
.ranking-tabs button[aria-pressed="true"] {
  background: #253449;
  color: var(--text);
}
.ranking-choice:hover {
  background: #151e2c;
}
.ranking-number {
  font-size: 1.4rem;
  color: #a0afc5;
}
.ranking-art {
  background: var(--surface);
  border-radius: 7px;
}
.collection-toolbar,
.news-channel,
.scoreboard-match,
.sports-toolbar,
.match-detail-teams {
  background: #101722;
  border-color: var(--line);
}
.news-logo,
.news-logo img {
  background: #172131;
}
.scoreboard-match:hover,
.news-channel:hover {
  background: #182435;
  border-color: #85e4f350;
}
.update-note {
  background: #102831;
  border-color: #85e4f330;
}
.login-art {
  background:
    radial-gradient(ellipse at 20% 60%, #193d4b, transparent 65%),
    linear-gradient(130deg, #121b2b, #080b12);
}
.art-fallback {
  color: #b9c6db;
}
dialog {
  border-radius: 20px;
  border-color: #ffffff24;
}
dialog::backdrop {
  background: #03060be0;
}
.close,
#player {
  background: #0b1019;
}
footer {
  color: var(--muted);
}
@media (max-width: 1050px) {
  header {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-block: 10px 4px;
  }
  header > .wordmark {
    grid-column: 1;
    font-size: 1.1rem;
  }
  header > .profile {
    grid-column: 2;
  }
  header > nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: center;
  }
  header nav button {
    flex: 0 1 auto;
    padding-inline: 18px;
  }
}
@media (max-width: 700px) {
  .hero {
    min-height: 620px;
    padding: 150px 6% 140px;
    align-items: end;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .hero:after {
    background: linear-gradient(0deg, var(--bg), #080b12b3 28%, #080b1233 58%, transparent 78%);
  }
  .hero .hero-description {
    -webkit-line-clamp: 2;
  }
  .hero-filmstrip {
    bottom: 24px;
    gap: 8px;
  }
  .hero-thumbnail {
    width: 48px;
    height: 70px;
  }
  .hero-navigation {
    top: 84px;
    right: 6%;
    bottom: auto;
  }
  #search-dock #search-form {
    width: 100%;
  }
  .catalog-grid {
    gap: 22px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .poster img,
  .poster-play,
  .hero-thumbnail {
    transition: none;
  }
  .card:is(:hover, :focus-visible) .poster img {
    transform: none;
  }
}

/* Landscape cards keep the artwork and title together, like the reference. */
.catalog-grid,
.shelf[data-release-type] .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.rail {
  grid-auto-columns: 300px;
  gap: 16px;
}
.card {
  border-radius: 2px;
  position: relative;
  text-align: left;
  align-self: start;
}
.card .poster {
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  isolation: isolate;
  text-align: left;
}
.card .poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #03060b40, #03060b00 35%, #03060b75 65%, #03060bf2);
  pointer-events: none;
}
/* Bottom-left stack: extra lines (year/rating, resume) sit above the title
   treatment; genres is always the bottom-most line at a fixed corner offset. */
.card-copy {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.card .card-copy h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
  min-height: 0;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 2px 8px #0008;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card-caption { padding: 0; display: contents; }
.card .card-caption small { color: #d4dbe6; font-size: .72rem; line-height: 1.5; text-shadow: 0 1px 4px #000; }
.card .card-caption > small:not(.card-genres) { order: -1; margin: 0 0 4px; }
.card .card-caption .card-genres { order: 1; margin: 6px 0 0; color: #e1e7ef; font-size: .72rem; }
.card .card-caption .card-resume { color: #dbe9ed; font-variant-numeric: tabular-nums; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.card .card-copy small {
  font-size: 0.68rem;
  line-height: 1.5;
  color: #d4dbe6;
}
.card-description {
  position: static;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #c5ceda;
  margin: 0 2px;
  min-height: 0;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 180ms ease-out, margin-top 180ms ease-out, opacity 180ms ease-out;
}
.card:is(:hover, :focus-visible) .card-description {
  max-height: 3em;
  opacity: 1;
  margin-top: 6px;
}
.card .poster-rating {
  top: 10px;
  right: 10px;
  bottom: auto;
  z-index: 1;
}
.card .poster-play {
  top: 12px;
  left: 12px;
  width: 30px;
  height: 30px;
  font-size: 11px;
  transform: none;
  z-index: 1;
}
.card:is(:hover, :focus-visible) .poster-play {
  transform: none;
}
.card .badge {
  top: 12px;
  left: 12px;
  z-index: 2;
}
.card:has(.badge) .poster-play {
  display: none;
}
.card .rank {
  top: 8px;
  bottom: auto;
  left: 12px;
  z-index: 1;
  font-size: 2rem;
}
.card:has(.rank) .poster-play {
  display: none;
}
.card progress {
  z-index: 2;
}
.card .art-fallback {
  font-size: 0;
}
.catalog-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  position: relative;
  background: linear-gradient(110deg, #141d2b 30%, #263349 50%, #141d2b 70%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.8s ease-in-out infinite;
}
.catalog-placeholder::after { content: ""; position: absolute; bottom: 16px; left: 16px; width: 55%; height: 22px; border-radius: 3px; background: #ffffff0c; }
@media (prefers-reduced-motion: reduce) { .catalog-placeholder { animation: none; } }
@media (max-width: 850px) {
  .catalog-grid,
  .shelf[data-release-type] .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .catalog-grid,
  .shelf[data-release-type] .grid,
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    grid-auto-columns: min(82vw, 330px);
  }
  .card .card-copy h3 {
    font-size: 1.15rem;
  }
}
@media (hover: none) {
  .card-description {
    position: static;
    max-height: 3em;
    opacity: 1;
    margin-top: 6px;
    color: #c5ceda;
    text-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card-description {
    transition: none;
  }
}
/* Compact catalog positions and independently reported release quality. */
.card .card-position,
.card .release-quality {
  position: absolute;
  top: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(8, 11, 18, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.card .card-position {
  left: 10px;
}
.card .release-quality {
  left: 52px;
}
.card .release-quality[data-quality="CAM"] {
  background: #f1c779;
  color: #251b09;
  border-color: transparent;
}
.card:has(.card-position) .poster-play {
  top: 44px;
  left: 10px;
}
.card:has(.card-position) .badge {
  top: 44px;
}
.card:has(.badge):has(.card-position) .poster-play {
  display: none;
}
/* Keep resume status inside the artwork, clear of the lower title treatment. */
.card.resume-card .badge {
  top: 10px;
  right: 10px;
  bottom: auto;
  left: auto;
}
.card.resume-card:has(.badge) .poster-rating {
  left: 52px;
  right: auto;
}
.quality-provenance {
  font-size: 0.8rem;
  color: var(--muted);
}
.card .card-genres {
  display: block;
  margin-top: 4px;
  color: #e1e7ef;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 250;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .card-genres[hidden] { display: none; }

/* Square provider tiles (full-colour, own background) stay clear of the title and genres. */
.card.has-channel { --channel-size: clamp(20px, 1.6vw, 24px); }
.card.has-channel .card-copy { padding-right: calc(var(--channel-size) + 6px); }
.card .card-channel {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  width: var(--channel-size);
  height: var(--channel-size);
  padding: 0;
  border-radius: 5px;
  overflow: hidden;
  background: none;
  box-shadow: 0 1px 4px #0006;
  pointer-events: none;
}
.card .card-channel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card:is(:hover, :focus-visible) .card-channel img { transform: none; filter: none; }

/* Collection artwork leads; supporting information appears on interaction.
   Touch and keyboard users retain the same information without hover-only UI. */
@media (hover: hover) and (pointer: fine) {
  .catalog-section .card .card-copy .card-caption > small:not(.card-genres) {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    transition: max-height 180ms ease-out, opacity 180ms ease-out, margin-bottom 180ms ease-out;
  }
  .catalog-section .card:is(:hover, :focus-visible) .card-copy .card-caption > small:not(.card-genres) {
    max-height: 5em;
    opacity: 1;
    margin-bottom: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-section .card .card-copy .card-caption > small:not(.card-genres) { transition: none; }
}

/* Keep the existing artwork/overlay treatment legible in five-column cards. */
@container (max-width: 230px) {
  .release-grid .card-copy { right: 10px; }
  .release-grid .card .card-copy h3 { font-size: .82rem; }
  .release-grid .card .card-copy .card-logo { max-width: min(42%, 122px); max-height: 36px; }
  .release-grid .card .card-caption small { font-size: .6rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .release-grid .card .badge { top: 10px; left: 10px; font-size: .5rem; padding: 2px 4px; }
  .release-grid .card-description { font-size: .6rem; }
}

#player {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #000;
  overflow: hidden;
}
#player .player-heading {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  padding: 16px 20px 40px;
  background: linear-gradient(#000d, transparent);
  pointer-events: none;
}
.player-heading > div:first-child { min-width: 0; }
#player-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-window-actions { display: flex; gap: 8px; pointer-events: auto; }
#player .player-window-actions button {
  position: static;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #0009;
  color: #fff;
}
#player .player-bottom {
  position: absolute;
  inset: auto 0 54px;
  z-index: 3;
  padding: 24px 20px 10px;
  gap: 10px 16px;
  background: linear-gradient(transparent, #000e);
  border: 0;
  align-items: center;
}
#player .player-bottom label { font-size: 12px; color: #fff; }
#player .player-bottom select {
  width: auto;
  max-width: 170px;
  min-height: 44px;
  padding: 8px;
  background: #17191e;
  color: #fff;
  border: 0;
}
#player .player-bottom button { min-height: 44px; border: 0; background: #17191e; color: #fff; }
#player .player-bottom p { color: #fff; }
#player-status { min-width: 140px; }
#player .player-heading, #player .player-bottom { transition: opacity 180ms ease; }
@media (max-width: 600px) {
  #player video { min-height: 360px; object-fit: contain; }
  #player .player-heading { padding: 12px 12px 32px; gap: 8px; }
  #player .player-bottom { padding: 16px 12px 6px; gap: 8px; flex-direction: row; justify-content: space-between; }
  #player .player-bottom p { flex-basis: 100%; }
  #player .player-bottom select { max-width: 115px; }
  #player-title { font-size: 15px; }
  #player-source { font-size: 10px; }
  #subtitle-status { max-width: 150px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #player .player-heading, #player .player-bottom { transition: none; }
}
#video-stage {
  position: relative;
  background: #000;
}
#pause-info {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: clamp(16px, 5vw, 64px);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.88),
    rgba(0, 0, 0, 0.48) 65%,
    rgba(0, 0, 0, 0.12)
  );
  pointer-events: none;
}
#pause-copy {
  max-width: 650px;
}
#pause-copy h3 {
  font-size: clamp(22px, 4vw, 54px);
  line-height: 1.05;
  margin: 12px 0;
  text-wrap: balance;
}
#pause-copy .pause-logo {
  width: auto;
  max-width: min(360px, 55vw);
  max-height: 120px;
  object-fit: contain;
  object-position: left;
  margin: 12px 0;
}
.pause-meta {
  color: #dedfe4;
  font-size: 0.85rem;
  margin: 12px 0;
}
.pause-plot {
  font-size: clamp(12px, 1.4vw, 17px);
  line-height: 1.55;
  color: #ececf1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
@media (max-width: 600px) {
  #pause-info {
    padding: 12px 16px;
  }
  #pause-copy {
    max-width: 85%;
  }
  #pause-copy .eyebrow {
    font-size: 9px;
    margin: 0;
  }
  #pause-copy .pause-logo {
    max-height: 42px;
    margin: 5px 0;
  }
  #pause-copy h3 {
    font-size: 20px;
    margin: 5px 0;
  }
  .pause-meta {
    font-size: 10px;
    margin: 5px 0;
  }
  .pause-plot {
    font-size: 11px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    margin: 5px 0;
  }
}

/* Live destinations deserve the same prominence as the on-demand catalog. */
header > nav {
  gap: 8px;
}
header nav button {
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 650;
}
header nav .nav-live,
header nav .nav-news {
  display: inline-flex;
  transition:
    border-color 150ms,
    box-shadow 150ms;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 16px;
  border: 1px solid #40546b;
  color: #f5f8ff;
  background: #19283b;
}
header nav .nav-live {
  background: #a3eee0;
  border-color: #a3eee0;
  color: #092a29;
}
header nav .nav-live i {
  background: #17685a;
}
header nav .nav-live[aria-current] {
  background: #c7fff3;
  color: #092a29;
  box-shadow: 0 0 0 3px #a3eee026;
}
header nav .nav-news[aria-current] {
  background: #b6d5ff;
  color: #102c51;
  border-color: #b6d5ff;
}
.nav-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  flex-shrink: 0;
}
.live-destinations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0 38px;
}
#app:is([data-section="sports"], [data-section="news"], [data-section="saved"])
  .live-destinations {
  display: none;
}
.live-destination {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 22px 26px;
  border: 1px solid #355c5c;
  border-radius: 14px;
  background: linear-gradient(115deg, #183a3a, #101d29);
  color: #f1f9ff;
  min-width: 0;
  transition:
    border-color 150ms,
    background-color 150ms;
}
.news-destination {
  background: linear-gradient(115deg, #1d3455, #111d30);
  border-color: #3b5579;
}
.live-destination > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.live-destination small {
  color: #a3eee0;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}
.news-destination small {
  color: #b6d5ff;
}
.live-destination strong {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}
.live-destination span > span {
  color: #c2d1df;
  font-size: 0.85rem;
  line-height: 1.5;
}
.destination-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #a3eee018;
  color: #b6fff0;
  font-size: 28px;
}
.news-destination .destination-icon {
  color: #b6d5ff;
  background: #b6d5ff18;
}
.destination-arrow {
  margin-left: auto;
  font-size: 26px;
  color: #dcecff;
}
.live-destination:hover {
  border-color: #a3eee0;
}
.news-destination:hover {
  border-color: #b6d5ff;
}
.live-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  margin: 8px 0 28px;
  border: 1px solid #365858;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 95% 10%, #285f5a80, transparent 65%),
    linear-gradient(120deg, #183532, #101b29);
}
.news-intro {
  border-color: #3c5479;
  background:
    radial-gradient(ellipse at 95% 10%, #315e9d70, transparent 65%),
    linear-gradient(120deg, #1d3150, #111a2a);
}
.live-intro h2 {
  position: relative;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 12px 0;
  text-wrap: balance;
}
.live-intro > p:not(.eyebrow) {
  color: #d1deeb;
  line-height: 1.65;
  max-width: 620px;
  margin: 12px 0 24px;
}
.live-intro-note {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid #b6e7de40;
  border-radius: 999px;
  color: #d4fff4;
  background: #091c2460;
  font-size: 0.8rem;
}
.news-intro .live-intro-note {
  color: #d6e7ff;
  border-color: #b6d5ff40;
}
.sports-tabs {
  gap: 8px;
}
.sports-tabs button {
  min-height: 44px;
  padding: 10px 18px;
  color: #d9e5f0;
  border: 1px solid #344459;
  background: #152132;
  border-radius: 999px;
  font-weight: 650;
}
.sports-tabs button.selected {
  color: #0a2926;
  background: #a3eee0;
  border-color: #a3eee0;
}
.sports-toolbar,
.news-toolbar {
  background: #131f30;
  border-color: #344459;
  padding: 20px;
  border-radius: 14px;
}
.scoreboard-match {
  background: linear-gradient(145deg, #1b2a3e, #121c2c);
  border-color: #3b4f67;
  padding: 22px;
  min-height: 258px;
}
.scoreboard-match:has(.is-live) {
  border-color: #538c83;
}
.match-status.is-live {
  color: #ffe4e7;
  background: #843440;
  border: 1px solid #bc6571;
  border-radius: 999px;
  padding: 6px 10px;
}
.match-team > strong {
  font-size: 0.9rem;
  color: #f3f7ff;
}
.team-badge {
  width: 68px;
  height: 68px;
  max-width: 100%;
  background: #30415a;
}
.match-score > strong {
  color: #f0f7ff;
  font-variant-numeric: tabular-nums;
}
.feed-choice[aria-pressed="true"] {
  border-color: #a3eee0;
  box-shadow: inset 0 0 0 1px #a3eee0;
}
.match-footer {
  border-top: 1px solid #ffffff15;
  padding-top: 16px;
}
.match-footer > span {
  color: #a3eee0;
  font-weight: 700;
}
.news-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.news-channel {
  padding: 20px;
  gap: 12px;
  border: 1px solid #3b4f6b;
  border-radius: 14px;
  background: linear-gradient(145deg, #1c2b43, #121c2c);
}
.news-logo,
.news-logo img {
  background: #30415b;
}
.news-logo {
  height: 116px;
  border: 1px solid #ffffff15;
  color: #d8e9ff;
}
.news-channel strong {
  font-size: 1.15rem;
  color: #f2f6ff;
}
.news-channel small {
  color: #c1cddd;
}
.news-watch {
  color: #d7e8ff;
  padding: 10px 14px;
  background: #2d4566;
  border: 1px solid #4b6485;
  border-radius: 999px;
  font-weight: 650;
}
.scoreboard-match:is(:hover, :focus-visible),
.news-channel:is(:hover, :focus-visible) {
  background: #24364f;
  border-color: #a3dcee;
}
@media (min-width: 1051px) and (max-width: 1250px) {
  header {
    grid-template-columns: 1fr auto auto;
  }
  header > .wordmark {
    font-size: 1.05rem;
  }
  header nav button {
    padding-inline: 12px;
  }
}
@media (max-width: 700px) {
  header > nav {
    width: 100%;
    gap: 8px;
    padding: 6px 0;
  }
  header nav button {
    padding-inline: 12px;
    font-size: 0.83rem;
  }
  header nav .nav-live,
  header nav .nav-news {
    padding-inline: 12px;
    gap: 6px;
  }
  .live-destinations {
    gap: 10px;
    margin: 20px 0 28px;
  }
  .live-destination {
    padding: 16px;
    gap: 8px;
    align-items: flex-start;
  }
  .destination-icon,
  .destination-arrow {
    display: none;
  }
  .live-destination strong {
    font-size: 1.2rem;
  }
  .live-destination small {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }
  .live-destination span > span {
    font-size: 0.75rem;
  }
  .live-intro {
    margin-top: 0;
    border-radius: 14px;
    padding: 20px;
  }
  .live-intro > p {
    display: none;
  }
  .live-intro h2 {
    font-size: 25px;
    margin: 0 0 14px;
  }
  .sports-toolbar,
  .news-toolbar {
    padding: 16px;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .news-channel {
    padding: 12px;
  }
  .news-logo {
    height: 88px;
  }
  .news-logo img {
    padding: 10px;
  }
  .news-channel strong {
    font-size: 0.95rem;
    overflow-wrap: anywhere;
  }
  .news-watch {
    padding: 8px 10px;
    font-size: 0.72rem;
  }
}

/* The hero exists before its data: artwork fills a stable surface instead of
   inserting a page-sized block above content the viewer has already seen. */
.hero-loading { background: radial-gradient(ellipse at 70% 35%, #17232c, var(--bg) 72%); }
.hero-loading .loading-line {
  display: block; height: 16px; width: 75%; margin: 18px 0;
  border-radius: 4px; background: #ffffff0b;
}
.hero-loading .loading-line:first-child { width: 55%; height: 48px; }
.hero-loading .loading-line:last-child { width: 42%; }
.startup-header { height: 57px; display: flex; align-items: center; justify-content: center; }
.hero > img { animation: hero-art-reveal 240ms ease-out both; }
.hero > img.hero-pending { opacity: 0; animation: none; }
@keyframes hero-art-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero > img { animation: none; } }
#app header { padding-block: 6px; gap: 8px 16px; }
#app header > nav { gap: 6px; padding-block: 0; }
#app header nav button { font-size: .8rem; }
#app header nav .nav-live, #app header nav .nav-news { padding-inline: 12px; }
#rankings-toggle { margin-left: auto; font-size: .76rem; min-height: 44px; }
#app:has(#top-ten[hidden]) #rankings-toggle { display: none; }
#catalog-layout:has(#top-ten[data-collapsed="true"]) { grid-template-columns: minmax(0, 1fr); }
#top-ten[data-collapsed="true"] { display: none; }
#app header { position: fixed; inset: 0 0 auto; background: transparent; border-bottom: 0; backdrop-filter: none; }
#app header > .wordmark { transition: opacity 180ms ease-out, transform 180ms ease-out; text-shadow: 0 2px 8px #000; }
#app header > .wordmark.logo-scrolled { opacity: 0; transform: translateY(-10px); pointer-events: none; }
#app header nav button, #app header nav .nav-live, #app header nav .nav-news,
#app header > .profile { background: transparent; border-color: transparent; color: #f5f8ff; text-shadow: 0 1px 5px #000; box-shadow: none; }
#app header nav button:is(:hover, [aria-current]) { color: var(--accent); background: #080b1259; }
#app header nav .nav-live i { background: var(--accent); }
#app #content { padding-top: calc(var(--header-height, 57px) + 20px); }
#app:not([data-section="sports"]) #content:has(#featured-hero .hero) { padding-top: 0; }
#app[data-section="sports"] main#content { padding-top: calc(var(--header-height, 57px) + 20px); }
@media (prefers-reduced-motion: reduce) {
  #app header > .wordmark { transition: none; }
}
#app header > .header-actions { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 4px; }
#app header .header-actions :is(.nav-live, .nav-news) { display: inline-flex; align-items: center; gap: 6px; padding-inline: 10px; font-size: .8rem; white-space: nowrap; }
#app header .header-actions [aria-current] { color: var(--accent); }
#app header .header-actions button { min-height: 44px; background: transparent; border-color: transparent; color: #f5f8ff; text-shadow: 0 1px 5px #000; }
#search-toggle { display: grid; place-items: center; width: 44px; padding: 10px; }
#search-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#search-toggle[hidden] { display: none; }
#search-dock { position: fixed; top: calc(var(--header-height, 56px) + 8px); right: 4.5%; padding: 0; height: auto; width: min(360px, 91%); transform: none; }
#search-dock #search-form { width: 100%; background: #101722f5; box-shadow: 0 10px 30px #0005; }
@media (max-width: 1050px) {
  #app header > .header-actions { grid-column: 2; }
}
@media (max-width: 540px) {
  #app header .header-actions #logout { font-size: .72rem; padding-inline: 8px; }
}
@media (max-width: 700px) {
  #app header { grid-template-columns: 1fr auto auto auto; }
  #app header > .header-actions { display: contents; }
  #app header > nav { grid-row: 2; grid-column: 1; justify-content: start; }
  #app header > nav button { padding-inline: 6px; }
  #app header #search-toggle { grid-row: 1; grid-column: 3; }
  #app header #logout { grid-row: 1; grid-column: 4; }
  #app header .nav-live { grid-row: 2; grid-column: 2 / 4; }
  #app header .nav-news { grid-row: 2; grid-column: 4; }
}
.hero-filmstrip { max-width: 86%; overflow-x: auto; scrollbar-width: none; }

/* Full-screen opening artwork; collections begin below the first viewport. */
#featured-hero .hero {
  min-height: max(640px, 100svh);
  padding: 110px 11.5% 170px;
  margin-bottom: 24px;
  align-items: center;
}
#featured-hero .hero > img {
  object-fit: cover;
  object-position: center;
  filter: none;
}
.hero-copy .hero-title-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 420px);
  max-height: 150px;
  margin: 0 0 24px;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 3px 14px #000b);
}
.hero-title { min-height: 150px; display: flex; align-items: end; }
.hero-copy.title-logo-pending h2 { visibility: hidden; }
.hero-copy .hero-title-logo[hidden] { display: none; }
.hero-copy.has-title-logo h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
#featured-hero .hero:after {
  background:
    linear-gradient(0deg, var(--bg), #06080d55 12%, transparent 30%),
    linear-gradient(90deg, #06080db3, #06080d55 35%, transparent 75%),
    linear-gradient(180deg, #06080d55, transparent 18%);
}
@media (max-width: 700px) {
  #featured-hero .hero {
    min-height: max(600px, 100svh);
    padding: 120px 6% 150px;
    align-items: end;
  }
  #featured-hero .hero:after {
    background: linear-gradient(0deg, var(--bg), #06080dc9 20%, #06080d33 65%, #06080d55);
  }
}

.viewer-comments { width: 100%; min-width: 0; }
.viewer-comments-panel { margin-top: 12px; padding-top: 16px; border-top: 1px solid #ffffff20; }
.viewer-comments-panel h3 { margin: 0 0 8px; }
.viewer-comment { padding: 18px 0; border-bottom: 1px solid #ffffff14; }
.viewer-comment h4 { margin: 0 0 6px; overflow-wrap: anywhere; }
.viewer-comment-meta { color: #b6bdc9; font-size: .8rem; line-height: 1.5; }
.viewer-comment-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; color: #e1e5ec; }
.viewer-comment summary { cursor: pointer; padding: 12px 0; min-height: 44px; color: var(--accent); }
.viewer-comment summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
