/* Shared visual system for every page except the homepage. */
.inner-page {
  background: #0b0d14;
  background-image: linear-gradient(180deg, #111521 0, #0b0d14 360px);
}

.inner-page .page-main {
  min-height: 68vh;
  padding-top: 22px;
  padding-bottom: 56px;
}

.breadcrumbs {
  margin: 0 0 22px;
  color: var(--soft);
  font-size: 13px;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.breadcrumbs ol::-webkit-scrollbar {
  display: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  width: 4px;
  height: 4px;
  margin-left: 8px;
  border-top: 1px solid var(--soft);
  border-right: 1px solid var(--soft);
  content: "";
  transform: rotate(45deg);
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.section-kicker,
.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.page-heading {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 144px;
  gap: 28px;
  margin-bottom: 32px;
  padding: 24px 0 30px;
  border-bottom: 1px solid var(--line);
}

.page-heading::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.page-heading h1,
.search-hero h1,
.person-heading h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: 0;
}

.page-heading p,
.person-heading p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.result-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  padding-bottom: 2px;
}

.result-count strong {
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
}

.result-count span {
  color: var(--muted);
  font-size: 13px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.text-link:hover,
.section-more:hover {
  color: var(--accent);
}

.text-link svg,
.section-more svg {
  width: 16px;
  height: 16px;
}

.button-secondary,
.button-on-media {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.button-secondary:hover,
.button-on-media:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.11);
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.segmented a,
.segmented button {
  min-width: 64px;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
}

.segmented a:hover,
.segmented button:hover {
  color: #fff;
}

.segmented a[aria-current="page"],
.segmented button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 18px rgba(229, 9, 20, 0.25);
}

.catalog-filters {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(19, 22, 34, 0.62);
}

.catalog-filter-head,
.catalog-filter-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.catalog-filter-head {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.catalog-filter-head strong {
  color: #fff;
  font-size: 15px;
}

.catalog-filter-head > a {
  justify-self: end;
  grid-column: 2;
  grid-row: 1;
  color: #ff6674;
  font-size: 12px;
  font-weight: 700;
}

.catalog-filter-row + .catalog-filter-row {
  margin-top: 9px;
}

.catalog-filter-row > span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.catalog-filter-row > div {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.catalog-filter-row > div::-webkit-scrollbar {
  display: none;
}

.catalog-filter-row a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 32px;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-filter-row a small {
  color: var(--soft);
  font-size: 9px;
}

.catalog-filter-row a:hover {
  border-color: var(--glass-border);
  color: #fff;
}

.catalog-filter-row a[aria-current="page"] {
  border-color: rgba(229, 9, 20, 0.42);
  background: rgba(229, 9, 20, 0.12);
  color: #ff6674;
}

/* Reusable catalog cards */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px 18px;
}

.poster-card {
  min-width: 0;
}

.mobile-promo-card {
  display: none;
}

.poster-media {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.poster-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.poster-card:hover .poster-media {
  border-color: rgba(229, 9, 20, 0.62);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  transform: translateY(-4px);
}

.poster-card:hover .poster-media img {
  transform: scale(1.04);
}

.poster-media .score,
.poster-media .status {
  position: absolute;
  top: 9px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.poster-media .score {
  left: 9px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(11, 13, 20, 0.88);
  color: var(--gold);
}

.poster-media .status {
  right: 9px;
  max-width: 55%;
  overflow: hidden;
  background: rgba(229, 9, 20, 0.9);
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7, 9, 15, 0.46);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-card:hover .poster-overlay {
  opacity: 1;
}

.play-btn-circle {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.4);
}

.play-btn-circle svg {
  width: 20px;
  height: 20px;
}

.poster-copy {
  min-width: 0;
  padding-top: 10px;
}

.poster-copy h3 {
  margin: 0 0 3px;
  overflow: hidden;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-copy h3 a:hover {
  color: var(--accent);
}

.poster-copy p {
  margin: 0;
  overflow: hidden;
  color: var(--soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination a,
.pagination-step,
.pagination-ellipsis {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 13px;
}

.pagination a:hover,
.pagination a[aria-current="page"] {
  border-color: rgba(229, 9, 20, 0.65);
  background: rgba(229, 9, 20, 0.12);
  color: #fff;
}

.pagination-step {
  min-width: 68px;
  padding: 0 12px;
}

.pagination-step.disabled,
.pagination-ellipsis {
  opacity: 0.42;
}

@media (max-width: 640px) {
  .pagination {
    gap: 8px;
    margin-top: 26px;
  }

  .pagination-pages a,
  .pagination-ellipsis {
    display: none;
  }

  .pagination-pages a[aria-current="page"] {
    display: inline-flex;
  }
}

.image-failed {
  background: #171b28;
}

/* Channel */
.channel-heading {
  min-height: 156px;
}

.channel-heading-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.channel-filter-toggle {
  display: none;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.catalog-toolbar > div:first-child {
  min-width: 0;
}

.catalog-toolbar .section-kicker {
  margin-bottom: 4px;
  color: var(--teal);
}

.catalog-toolbar strong {
  display: block;
  color: #e2e8f0;
  font-size: 16px;
}

.channel-catalog-layout,
.watch-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 48px;
}

.channel-catalog-main,
.watch-content-main {
  min-width: 0;
}

.desktop-ranking-aside {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  min-width: 0;
}

.watch-ranking-aside {
  padding-top: 26px;
}

.desktop-hot-ranking {
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(19, 22, 34, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.desktop-hot-ranking-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.desktop-hot-ranking-head > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(229, 9, 20, 0.46);
  border-radius: 7px;
  background: rgba(229, 9, 20, 0.1);
  color: #ff4055;
}

.desktop-hot-ranking-head svg {
  width: 19px;
  height: 19px;
}

.desktop-hot-ranking-head small {
  display: block;
  margin-bottom: 2px;
  color: #ff4055;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.desktop-hot-ranking-head h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
}

.desktop-hot-ranking-list {
  margin: 0;
  padding: 4px 16px 8px;
  list-style: none;
}

.desktop-hot-ranking-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.desktop-hot-ranking-list li:last-child {
  border-bottom: 0;
}

.desktop-hot-rank {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: #8c98aa;
  font-size: 11px;
  font-weight: 800;
}

.desktop-hot-ranking-list li:nth-child(-n + 3) .desktop-hot-rank {
  background: rgba(229, 9, 20, 0.16);
  color: #ff5366;
}

.desktop-hot-ranking-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.desktop-hot-ranking-list strong {
  overflow: hidden;
  color: #dbe3ee;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.desktop-hot-ranking-list small {
  max-width: 82px;
  overflow: hidden;
  color: var(--soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-hot-ranking-list a:hover strong {
  color: #ff6674;
}

/* Detail */
.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #090b11;
}

.detail-backdrop,
.detail-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-backdrop {
  object-fit: cover;
  opacity: 0.64;
}

.detail-shade {
  background: linear-gradient(90deg, rgba(7, 9, 15, 0.97) 0%, rgba(7, 9, 15, 0.84) 42%, rgba(7, 9, 15, 0.28) 78%), linear-gradient(0deg, #0b0d14 0%, rgba(11, 13, 20, 0.04) 48%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 22px;
  padding-bottom: 54px;
}

.detail-hero .breadcrumbs {
  color: rgba(226, 232, 240, 0.72);
}

.detail-primary {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  align-items: center;
  gap: 38px;
  min-height: 438px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.48);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy {
  padding-bottom: 4px;
}

.detail-copy h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: 0;
}

.detail-subtitle {
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 17px;
}

.detail-score {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-score strong {
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
}

.detail-score span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.media-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 22px;
}

.media-facts div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.media-facts dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.media-facts dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 13px;
}

.detail-quick-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  max-width: 440px;
  gap: 18px;
  margin: 0 0 22px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-quick-info div {
  min-width: 0;
}

.detail-quick-info dt {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
}

.detail-quick-info dd {
  margin: 0;
  overflow: hidden;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-source-links {
  display: flex;
  max-width: min(520px, 55vw);
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.detail-source-links::-webkit-scrollbar {
  display: none;
}

.detail-source-links a,
.detail-source-links button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 5px;
  background: rgba(6, 182, 212, 0.09);
  color: #67d9ea;
  font: inherit;
  font-size: 12px;
  scroll-snap-align: start;
}

.detail-source-links a small,
.detail-source-links button small {
  color: rgba(226, 232, 240, 0.5);
  font-size: 10px;
  font-weight: 600;
}

.detail-source-links.is-scrollable.is-at-start:not(.is-at-end) {
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 24px), transparent 100%);
}

.detail-source-links.is-scrollable.is-at-end:not(.is-at-start) {
  mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 100%);
}

.detail-source-links.is-scrollable:not(.is-at-start):not(.is-at-end) {
  mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.detail-source-links a[aria-current="page"],
.detail-source-links button[aria-pressed="true"] {
  border-color: rgba(229, 9, 20, 0.55);
  background: rgba(229, 9, 20, 0.14);
  color: #ff6674;
}

.detail-source-links a[aria-current="page"] small,
.detail-source-links button[aria-pressed="true"] small {
  color: rgba(255, 182, 190, 0.78);
}

.source-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.source-status strong {
  color: var(--text);
  font-weight: 700;
}

.source-status i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-live-action {
  display: none;
}

.detail-favorite-action {
  display: inline-flex;
}

.availability-note {
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 48px;
  padding-top: 18px;
  padding-bottom: 58px;
}

.detail-layout.no-aside {
  grid-template-columns: minmax(0, 1fr);
}

.detail-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.long-copy {
  max-width: 860px;
  margin: 0;
  color: #aeb9ca;
  font-size: 15px;
  line-height: 1.9;
}

.detail-ai-insight .long-copy {
  margin-bottom: 20px;
}

.detail-highlight-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 860px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-highlight-list li {
  position: relative;
  padding: 13px 16px 13px 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #d5ddea;
}

.detail-highlight-list li::before {
  position: absolute;
  top: 20px;
  left: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.collapsible-copy {
  position: relative;
  max-width: 860px;
}

.collapsible-copy .long-copy.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.collapsible-copy.is-collapsible:not(.is-expanded)::after {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  height: 42px;
  background: linear-gradient(180deg, rgba(11, 13, 20, 0), #0b0d14 86%);
  content: "";
  pointer-events: none;
}

.story-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 34px;
  margin-top: 6px;
  padding: 4px 0;
  color: #ff5967;
  font-size: 13px;
  font-weight: 700;
}

.story-toggle[hidden] {
  display: none;
}

.story-toggle:hover {
  color: #ff7b86;
}

.story-toggle svg {
  width: 15px;
  height: 15px;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.collapsible-copy.is-expanded .story-toggle svg {
  transform: rotate(-90deg);
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 9px;
}

.episode-grid a {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

.episode-grid a:hover,
.episode-grid a[aria-current="page"] {
  border-color: var(--accent);
  background: rgba(229, 9, 20, 0.12);
  color: #fff;
}

.watch-source-panel .episode-grid a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.episode-playing-indicator {
  display: none;
  align-items: flex-end;
  justify-content: center;
  width: 13px;
  height: 14px;
  gap: 2px;
}

.episode-grid a[aria-current="page"] .episode-playing-indicator {
  display: inline-flex;
}

.episode-playing-indicator i {
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: #ff3b4d;
  transform-origin: center bottom;
  animation: episode-playing-wave 0.9s linear infinite;
}

.episode-playing-indicator i:nth-child(2) {
  animation-delay: -0.3s;
}

.episode-playing-indicator i:nth-child(3) {
  animation-delay: -0.6s;
}

@keyframes episode-playing-wave {
  0%,
  100% {
    transform: scaleY(0.3);
  }

  25% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0.48);
  }

  75% {
    transform: scaleY(0.78);
  }
}

.episode-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 10px;
}

.episode-order {
  display: inline-grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, 1fr);
  padding: 3px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.episode-order button {
  min-width: 46px;
  height: 28px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.episode-order button[aria-pressed="true"] {
  background: rgba(229, 9, 20, 0.16);
  color: #ff6674;
}

.episode-more {
  display: none;
}

.episode-more[hidden] {
  display: none !important;
}

.detail-aside {
  padding-top: 34px;
}

.info-panel {
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(19, 22, 34, 0.78);
}

.info-panel h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
}

.info-panel dl,
.info-panel p {
  margin: 0;
}

.info-panel dl > div {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.info-panel dt {
  margin-bottom: 5px;
  color: var(--soft);
  font-size: 11px;
}

.info-panel dd {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 0;
  color: #d9e0eb;
  font-size: 13px;
}

.info-panel dd a:hover {
  color: var(--teal);
}

.info-panel p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Watch */
#main-content.watch-page {
  min-height: 70vh;
  padding: 22px 0 56px;
}

.watch-shell {
  max-width: 1320px;
}

.watch-stage {
  background: #05070b;
}

.watch-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.watch-heading h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 3px 0 10px;
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
}

.watch-heading h1 em {
  color: #ff6674;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
}

.watch-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: var(--muted);
  font-size: 12px;
}

.watch-facts strong {
  color: var(--gold);
  font-size: 17px;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #020305;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
}

.player-frame > iframe,
.player-poster,
.player-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-frame > iframe {
  z-index: 2;
  border: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-poster {
  z-index: 0;
  object-fit: cover;
  opacity: 0.62;
  transition: opacity 0.2s ease;
}

.player-shade {
  z-index: 1;
  background: rgba(4, 6, 11, 0.46);
  transition: opacity 0.2s ease;
}

.player-start {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-start span {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 12px 36px rgba(229, 9, 20, 0.46);
}

.player-start svg {
  width: 28px;
  height: 28px;
}

.player-message {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 4;
  max-width: min(560px, calc(100% - 32px));
  margin: 0;
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(3, 5, 9, 0.72);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.player-frame.started > iframe {
  opacity: 1;
}

.player-frame.started .player-poster,
.player-frame.started .player-shade,
.player-frame.started .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-frame.is-playing .player-message {
  opacity: 0;
  pointer-events: none;
}

.player-frame.has-error .player-start {
  opacity: 1;
  pointer-events: auto;
}

.player-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 0;
  background: #0d1017;
}

.player-toolbar button,
.player-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 7px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 13px;
}

.player-toolbar > :last-child {
  border-right: 0;
}

.player-toolbar button:hover,
.player-toolbar a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.player-toolbar svg {
  width: 17px;
  height: 17px;
}

.player-toolbar [aria-disabled="true"] {
  color: rgba(148, 163, 184, 0.3);
  pointer-events: none;
}

.playback-report-dialog {
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: #131622;
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.66);
}

.playback-report-dialog:not([open]) {
  display: none;
}

.playback-report-dialog::backdrop {
  background: rgba(3, 5, 10, 0.76);
  backdrop-filter: blur(4px);
}

.playback-report-card {
  padding: 22px;
}

.playback-report-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.playback-report-card h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.playback-report-card header > button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  line-height: 0;
}

.playback-report-card header svg {
  display: block;
  width: 16px;
  height: 16px;
  margin: auto;
}

.playback-report-card > p {
  margin: 15px 0;
  color: var(--muted);
  font-size: 13px;
}

.playback-report-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.playback-report-options label {
  cursor: pointer;
}

.playback-report-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.playback-report-options span {
  display: grid;
  min-height: 44px;
  padding: 0 10px;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #d9e0eb;
  font-size: 13px;
  font-weight: 700;
}

.playback-report-options input:checked + span {
  border-color: var(--accent);
  background: rgba(229, 9, 20, 0.14);
  color: #ff6674;
}

.playback-report-options input:focus-visible + span {
  outline: 2px solid #67d9ea;
  outline-offset: 2px;
}

.playback-report-status {
  min-height: 20px;
  margin: 12px 0 0 !important;
  color: #9be5f1 !important;
}

.playback-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 16px;
}

.playback-report-actions .button {
  min-width: 96px;
  border-radius: 7px;
}

.watch-controls {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}

.watch-control-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.watch-control-head h2 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 22px;
}

.watch-source-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.watch-source-tabs::-webkit-scrollbar {
  display: none;
}

.watch-source-tabs a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(6, 182, 212, 0.26);
  border-radius: 5px;
  background: rgba(6, 182, 212, 0.08);
  color: #67d9ea;
  font-size: 13px;
  scroll-snap-align: start;
}

.watch-source-tabs a[aria-current="page"] {
  border-color: rgba(229, 9, 20, 0.65);
  background: rgba(229, 9, 20, 0.16);
  color: #ff6674;
}

.watch-source-tabs small {
  display: grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.7);
  font-size: 10px;
  font-weight: 700;
}

.watch-source-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

.watch-source-status strong {
  color: var(--text);
}

.watch-source-status i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
}

.watch-source-panel[hidden] {
  display: none;
}

.watch-source-panel .episode-more {
  margin-top: 14px;
}

.episode-grid-wide {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.watch-after .detail-section {
  padding-top: 34px;
}

body.watch-page .floating-tools {
  display: none;
}

/* Search */
.search-hero {
  max-width: 880px;
  margin: 16px auto 46px;
  padding: 58px 0 48px;
  text-align: center;
}

.search-hero p {
  margin: 0 auto 24px;
  color: var(--muted);
}

.large-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}

.large-search > svg {
  position: absolute;
  top: 16px;
  left: 17px;
  z-index: 1;
  width: 21px;
  height: 21px;
  color: var(--soft);
}

.large-search input {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.large-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
}

.large-search .button {
  height: 54px;
  border-radius: 8px;
}

.result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.result-summary a {
  color: var(--teal);
}

.search-suggestions {
  padding: 30px 0 62px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.search-suggestions h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 18px;
}

.search-suggestions > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.search-suggestions a {
  padding: 9px 17px;
  border: 1px solid var(--glass-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: #cbd5e1;
  font-size: 13px;
}

.search-suggestions a:hover {
  border-color: var(--accent);
  color: #fff;
}

/* Ranking */
.ranking-page-list {
  counter-reset: ranking;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 84px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.ranking-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.ranking-index {
  color: var(--soft);
  font-size: 25px;
  font-weight: 800;
  text-align: center;
}

.ranking-row:nth-child(-n + 3) .ranking-index {
  color: var(--gold);
}

.ranking-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
}

.ranking-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-copy {
  min-width: 0;
}

.ranking-copy .section-kicker {
  margin-bottom: 5px;
}

.ranking-copy h2 {
  margin: 0 0 4px;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-copy p {
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-copy > div {
  display: flex;
  gap: 12px;
  color: var(--soft);
  font-size: 12px;
}

.ranking-heat {
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  gap: 4px;
  text-align: right;
}

.ranking-heat strong,
.ranking-heat span {
  grid-column: 1;
}

.ranking-heat strong {
  color: var(--gold);
  font-size: 18px;
}

.ranking-heat span {
  color: var(--soft);
  font-size: 11px;
}

.ranking-heat .icon-button {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  color: var(--muted);
}

/* Schedule */
.day-tabs {
  position: sticky;
  top: calc(var(--header-height) + 8px);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(11, 13, 20, 0.94);
  backdrop-filter: blur(16px);
}

.day-tabs a {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
}

.day-tabs strong {
  color: #d7deea;
  font-size: 14px;
}

.day-tabs span {
  margin-top: 3px;
  color: var(--soft);
  font-size: 11px;
}

.day-tabs a[aria-current="date"] {
  border-color: var(--accent);
  background: rgba(229, 9, 20, 0.13);
}

.day-tabs a[aria-current="date"] strong {
  color: #fff;
}

.schedule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
}

.schedule-day {
  scroll-margin-top: calc(var(--header-height) + 96px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.schedule-day > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.schedule-day > header span,
.schedule-day > header small {
  color: var(--soft);
  font-size: 11px;
}

.schedule-day > header h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 18px;
}

.schedule-day.active > header h2,
.schedule-day.active > header small {
  color: var(--accent);
}

.schedule-items {
  display: grid;
  gap: 8px;
}

.schedule-items > a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 84px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.schedule-items > a:hover {
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
}

.schedule-items img {
  width: 52px;
  height: 68px;
  border-radius: 5px;
  object-fit: cover;
}

.schedule-items span {
  min-width: 0;
}

.schedule-items strong,
.schedule-items small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-items strong {
  margin-bottom: 4px;
  color: #e7edf6;
  font-size: 14px;
}

.schedule-items small {
  color: var(--soft);
  font-size: 11px;
}

.schedule-items em {
  color: var(--teal);
  font-size: 11px;
  font-style: normal;
}

/* Person, history and feedback */
.person-heading {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 180px;
  margin-bottom: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.person-avatar {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgba(229, 9, 20, 0.36);
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.09);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.content-section {
  padding-bottom: 38px;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.history-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.history-item img {
  width: 64px;
  height: 86px;
  border-radius: 5px;
  object-fit: cover;
}

.history-item div {
  min-width: 0;
}

.history-item strong,
.history-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item strong {
  margin-bottom: 5px;
  color: #fff;
}

.history-item small {
  color: var(--soft);
}

.narrow-page {
  max-width: 920px;
}

.gbook-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(19, 22, 34, 0.68);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  position: relative;
  display: grid;
  gap: 8px;
}

.form-row label {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.form-row input {
  height: 48px;
  padding: 0 14px;
}

.form-row textarea {
  min-height: 150px;
  padding: 13px 14px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.form-row small {
  justify-self: end;
  color: var(--soft);
  font-size: 11px;
}

.gbook-form > .button {
  justify-self: start;
  border-radius: 8px;
}

.gbook-notes {
  margin-top: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.gbook-notes h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

.gbook-notes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.gbook-notes li::before {
  margin-right: 7px;
  color: var(--accent);
  content: "·";
}

.success-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 7px;
  background: rgba(6, 182, 212, 0.08);
  color: #9be5f1;
  font-size: 13px;
}

/* Empty and error states */
.empty-state {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 20px;
  text-align: center;
}

.empty-mark {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(229, 9, 20, 0.32);
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.09);
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}

.empty-state h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

main.error-page {
  display: grid;
  min-height: 70vh;
  padding: 70px 20px;
  place-items: center;
}

.error-content {
  max-width: 560px;
  text-align: center;
}

.error-code {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.error-content h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 26px;
}

.error-content p {
  margin: 0 0 26px;
  color: var(--muted);
}

.error-content > div {
  display: flex;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 1120px) {
  .poster-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .channel-catalog-layout,
  .watch-content-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 30px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 30px;
  }

  .episode-grid-wide {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .channel-catalog-layout,
  .watch-content-layout,
  .detail-layout.ranking-only-aside {
    display: block;
  }

  .desktop-ranking-aside,
  .desktop-hot-ranking,
  .detail-layout.ranking-only-aside .detail-aside {
    display: none;
  }
}

@media (max-width: 900px) {
  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-layout {
    display: block;
  }

  .detail-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 0;
  }

  .info-panel {
    margin: 0;
  }

  .episode-grid,
  .episode-grid-wide {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .schedule-list,
  .history-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {

  .detail-live-action {
    display: inline-flex;
  }

  .detail-favorite-action {
    display: none;
  }

	.detail-highlight-list {
		grid-template-columns: 1fr;
	}
  .inner-page .page-main,
  #main-content.watch-page {
    padding-top: 16px;
    padding-bottom: 34px;
  }

  .breadcrumbs {
    margin-bottom: 14px;
    font-size: 11px;
  }

  .page-heading {
    min-height: 0;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 18px 0 22px;
  }

  .page-heading h1,
  .search-hero h1,
  .person-heading h1 {
    font-size: 24px;
  }

  .page-heading p,
  .person-heading p {
    font-size: 13px;
  }

  .result-count strong {
    font-size: 22px;
  }

  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .mobile-promo-card {
    display: block;
  }

  .mobile-promo-displaced {
    display: none;
  }

  .poster-overlay {
    display: none;
  }

  .catalog-toolbar {
    align-items: flex-end;
    margin-bottom: 18px;
  }

  .channel-heading {
    align-items: flex-end;
  }

  .channel-heading > div:first-child {
    min-width: 0;
  }

  .channel-heading-actions {
    align-self: flex-end;
  }

  .channel-filter-toggle.is-ready {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 38px;
    gap: 6px;
    padding: 0 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }

  .channel-filter-toggle .icon {
    width: 17px;
    height: 17px;
  }

  .channel-filter-toggle:hover,
  .channel-filter-toggle[aria-expanded="true"],
  .channel-filter-toggle.has-active {
    color: #ff6674;
  }

  .channel-filter-toggle.has-active::after {
    position: absolute;
    top: 5px;
    right: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
  }

  .catalog-filters {
    margin-right: -20px;
    margin-left: -20px;
    padding: 16px 20px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .catalog-filters.is-toggle-ready:not(.is-open) {
    display: none;
  }

  .catalog-filters.is-open {
    display: block;
  }

  .catalog-filter-head,
  .catalog-filter-row {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
  }

  .catalog-filter-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
  }

  .catalog-filter-head .section-kicker {
    display: none;
  }

  .catalog-filter-head > a {
    grid-column: auto;
    grid-row: auto;
  }

  .catalog-filter-row > div {
    flex-wrap: wrap;
    overflow: visible;
  }

  .segmented {
    flex: 0 0 auto;
  }

  .segmented a,
  .segmented button {
    min-width: 54px;
    padding: 0 10px;
  }

  .detail-hero {
    min-height: 0;
  }

  .detail-backdrop {
    opacity: 0.48;
  }

  .detail-shade {
    background: linear-gradient(90deg, rgba(7, 9, 15, 0.94), rgba(7, 9, 15, 0.62)), linear-gradient(0deg, #0b0d14, rgba(11, 13, 20, 0.18));
  }

  .detail-hero-inner {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .detail-primary {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    min-height: 0;
  }

  .detail-quick-info {
    display: none;
  }

  .detail-source-links {
    width: 100%;
    max-width: 100%;
    padding-right: 18px;
  }

  .episode-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .detail-copy h1 {
    font-size: 25px;
  }

  .detail-subtitle {
    display: -webkit-box;
    margin-bottom: 12px;
    overflow: hidden;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .detail-score {
    margin-bottom: 10px;
  }

  .detail-score strong {
    font-size: 23px;
  }

  .media-facts {
    gap: 5px 12px;
    margin-bottom: 10px;
  }

  .media-facts div:nth-child(n + 3) {
    display: none;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .button {
    height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .detail-layout {
    padding-top: 0;
    padding-bottom: 34px;
  }

  .detail-section {
    padding: 26px 0;
  }

  .section-head {
    margin-bottom: 16px;
  }

  .section-head h2 {
    font-size: 18px;
  }

  .episode-controls {
    width: 100%;
  }

  .episode-controls .detail-source-links {
    flex: 1 1 auto;
    min-width: 0;
  }

  .episode-grid,
  .episode-grid-wide {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .episode-grid a,
  .episode-grid-wide a {
    min-width: 0;
    min-height: 40px;
    font-size: 12px;
  }

  .episode-grid.is-collapsed > a:nth-child(n + 17) {
    display: none;
  }

  .episode-more {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 36px;
    margin-top: 12px;
    color: #ff5967;
    font-size: 12px;
    font-weight: 700;
  }

  .episode-more svg {
    width: 14px;
    height: 14px;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
  }

  .episode-more[aria-expanded="true"] svg {
    transform: rotate(-90deg);
  }

  .detail-aside {
    grid-template-columns: 1fr;
  }

  .info-panel {
    padding: 17px;
  }

  .watch-heading {
    align-items: center;
    gap: 14px;
    padding: 18px 0;
  }

  .watch-heading h1 {
    font-size: 17px;
  }

  .watch-heading h1 em {
    font-size: 13px;
  }

  .watch-heading .text-link {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .player-frame {
    margin-right: -20px;
    margin-left: -20px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .player-toolbar {
    margin-right: -20px;
    margin-left: -20px;
    border-right: 0;
    border-left: 0;
  }

  .player-toolbar button,
  .player-toolbar a {
    min-height: 46px;
    gap: 5px;
    font-size: 11px;
  }

  .playback-report-card {
    padding: 18px;
  }

  .player-start span {
    width: 52px;
    height: 52px;
  }

  .player-start strong {
    font-size: 13px;
  }

  .player-message {
    right: 10px;
    bottom: 8px;
    font-size: 10px;
  }

  .watch-control-head {
    align-items: center;
  }

  .watch-control-head h2 {
    font-size: 19px;
  }

  .watch-source-tabs {
    margin-top: 16px;
    margin-right: -20px;
    padding-right: 20px;
  }

  .watch-source-tabs a {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }

  .search-hero {
    margin: 0 auto 30px;
    padding: 32px 0 28px;
  }

  .ranking-row {
    grid-template-columns: 38px 68px minmax(0, 1fr) 92px;
    gap: 10px;
    min-height: 116px;
    padding: 12px 0;
  }

  .ranking-index {
    font-size: 19px;
  }

  .ranking-copy h2 {
    font-size: 15px;
  }

  .ranking-copy p {
    display: none;
  }

  .ranking-copy > div span:nth-child(2) {
    display: none;
  }

  .ranking-heat {
    grid-template-columns: 1fr;
  }

  .ranking-heat strong,
  .ranking-heat span {
    grid-column: 1;
  }

  .ranking-heat .icon-button {
    display: none;
  }

  .day-tabs {
    position: static;
    display: flex;
    margin-right: -20px;
    margin-bottom: 22px;
    margin-left: -20px;
    padding: 8px 20px;
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .day-tabs::-webkit-scrollbar {
    display: none;
  }

  .day-tabs a {
    min-width: 82px;
    scroll-snap-align: start;
  }

  .schedule-list {
    gap: 24px;
  }

  .person-heading {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 20px 0 24px;
  }

  .person-avatar {
    width: 74px;
    height: 74px;
    font-size: 24px;
  }

  .gbook-form {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .page-heading {
    gap: 14px;
  }

  .channel-heading .section-kicker {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .channel-heading h1 {
    margin-bottom: 6px;
    font-size: 20px;
  }

  .channel-heading p {
    font-size: 12px;
    line-height: 1.55;
  }

  .channel-filter-toggle.is-ready {
    min-width: 60px;
    min-height: 34px;
    font-size: 12px;
  }

  .channel-filter-toggle .icon {
    width: 15px;
    height: 15px;
  }

  .page-heading .result-count {
    display: none;
  }

  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 8px;
  }

  .poster-media .score,
  .poster-media .status {
    top: 6px;
    padding: 2px 5px;
    font-size: 10px;
  }

  .poster-media .score {
    left: 6px;
  }

  .poster-media .status {
    right: 6px;
    max-width: 58%;
  }

  .poster-copy {
    padding-top: 7px;
  }

  .poster-copy h3 {
    font-size: 12px;
  }

  .poster-copy p {
    font-size: 10px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .catalog-toolbar .section-kicker {
    font-size: 10px;
  }

  .catalog-toolbar strong {
    font-size: 14px;
  }

  .catalog-toolbar .segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .catalog-toolbar .segmented a {
    width: 100%;
    height: 32px;
    font-size: 12px;
    line-height: 32px;
  }

  .detail-primary {
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: stretch;
    gap: 13px;
  }

  .detail-copy {
    display: flex;
    align-self: stretch;
    flex-direction: column;
    min-width: 0;
    padding-bottom: 0;
  }

  .detail-hero-inner {
    padding-bottom: 24px;
  }

  .detail-copy h1 {
    margin-bottom: 4px;
    font-size: 22px;
  }

  .detail-copy .eyebrow {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .detail-score span,
  .media-facts div:nth-child(n + 2) {
    display: none;
  }

  .detail-subtitle {
    margin-bottom: 6px;
    -webkit-line-clamp: 1;
  }

  .detail-score-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 7px;
  }

  .detail-score {
    margin: 0;
  }

  .media-facts {
    display: inline-flex;
    margin: 0;
    vertical-align: top;
  }

  .detail-quick-info {
    display: flex;
    gap: 8px;
    max-width: 100%;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
  }

  .detail-quick-info div {
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
  }

  .detail-quick-info div:nth-child(n + 2) {
    display: none;
  }

  .detail-quick-info dt {
    margin: 0;
    font-size: 10px;
  }

  .detail-quick-info dd {
    font-size: 11px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin-top: auto;
    margin-left: 0;
  }

  .hero-actions.has-live {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions.no-source {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding-inline: 8px;
  }

  .hero-actions.no-source .availability-note {
    flex: 1 1 auto;
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero-actions.no-source .button {
    width: auto;
    min-width: 92px;
    height: 36px;
    padding-inline: 12px;
  }

  .detail-source-links {
    max-width: 100%;
  }

  .long-copy {
    font-size: 14px;
    line-height: 1.8;
  }

  .collapsible-copy .long-copy.is-collapsed {
    -webkit-line-clamp: 6;
  }

  .large-search {
    grid-template-columns: 1fr;
  }

  .large-search .button {
    width: 100%;
  }

  .result-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .ranking-row {
    grid-template-columns: 28px 62px minmax(0, 1fr) 62px;
  }

  .ranking-heat strong {
    font-size: 14px;
  }

  .ranking-heat span {
    font-size: 9px;
  }

  .schedule-items > a {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .schedule-items img {
    width: 48px;
    height: 64px;
  }

  .schedule-items em {
    display: none;
  }

  .history-item {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .history-item img {
    width: 54px;
    height: 74px;
  }

  .history-item .button {
    width: 54px;
    padding: 0;
  }

  .gbook-form {
    margin-right: -4px;
    margin-left: -4px;
    padding: 16px;
  }

  .gbook-notes ul {
    display: grid;
  }

  .error-content > div {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster-media,
  .poster-media img {
    transition: none;
  }

  .episode-playing-indicator i {
    animation-duration: 1.8s;
  }
}
