:root {
  --bg: #fff8f8;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --text: #171717;
  --muted: #6b5f63;
  --line: rgba(177, 17, 22, 0.14);
  --accent: #b11116;
  --accent-soft: #ea3643;
  --cyan: #b11116;
  --shadow: 0 16px 36px rgba(80, 14, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(177, 17, 22, 0.16), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(177, 17, 22, 0.08), transparent 22%),
    linear-gradient(160deg, #ffffff 0%, #fbf1f2 45%, #f4ecec 100%);
}

.watch-body {
  background:
    radial-gradient(circle at top left, rgba(177, 17, 22, 0.14), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(177, 17, 22, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f9f0f1 48%, #f5ecec 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 90%);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand strong,
.hero h1,
.section-heading h2,
.hero-feature h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

.brand span,
.brand strong {
  display: block;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 16px 36px rgba(177, 17, 22, 0.22);
}

.brand div span {
  color: var(--muted);
  font-size: 0.86rem;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.free-badge,
.primary-action,
.secondary-action,
.ai-submit {
  border: 0;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.free-badge,
.primary-action,
.ai-submit {
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: 0 16px 30px rgba(177, 17, 22, 0.22);
}

.free-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.primary-action,
.secondary-action,
.ai-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  text-decoration: none;
}

.secondary-action {
  color: var(--text);
  border: 1px solid rgba(177, 17, 22, 0.16);
  background: rgba(255, 255, 255, 0.88);
}

.free-badge:hover,
.primary-action:hover,
.secondary-action:hover,
.ai-submit:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 28px;
  padding: 52px 0 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.featured-strip,
.catalog-section,
.ai-section,
.roadmap-section {
  position: relative;
}

.hero-copy {
  padding: 28px 4px;
}

.eyebrow,
.mini-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.6rem, 9vw, 6.8rem);
  line-height: 0.92;
}

.hero-text,
.section-heading p,
.hero-feature p,
.media-description,
.roadmap-grid p,
.ai-result p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-text {
  max-width: 640px;
  font-size: 1.05rem;
}

.hero-notice {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(177, 17, 22, 0.16);
  border-radius: 20px;
  background: rgba(177, 17, 22, 0.05);
}

.hero-notice strong {
  color: var(--accent);
}

.hero-notice span {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.install-button[hidden] {
  display: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.stats article,
.hero-feature,
.floating-card,
.ai-panel,
.ai-result,
.roadmap-grid article,
.media-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.stats article {
  padding: 18px;
  border-radius: 22px;
}

.stats strong {
  display: block;
  font-size: 1.6rem;
}

.stats span {
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-feature {
  min-height: 420px;
  padding: 28px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(28, 8, 10, 0.28), rgba(18, 10, 11, 0.92)),
    url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.feature-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.badge,
.feature-meta span,
.result-tags span,
.media-tags span,
.media-type,
.media-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(177, 17, 22, 0.12);
  background: rgba(177, 17, 22, 0.05);
}

.hero-feature h2 {
  margin: 14px 0 8px;
  font-size: 2.6rem;
}

.feature-meta,
.result-tags,
.media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.floating-card {
  margin-left: auto;
  width: min(280px, 100%);
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(177, 17, 22, 0.12), rgba(255, 255, 255, 0.84));
}

.inline-watch-link {
  color: #fff6e4;
  text-decoration: none;
}

.inline-watch-link:hover {
  text-decoration: underline;
}

section {
  margin-top: 52px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p {
  max-width: 520px;
}

.featured-grid,
.continue-grid,
.smart-grid,
.schedule-grid,
.favorites-grid,
.history-grid,
.episodes-grid,
.catalog-grid,
.roadmap-grid {
  display: grid;
  gap: 18px;
}

.featured-grid,
.continue-grid,
.smart-grid,
.schedule-grid,
.favorites-grid,
.episodes-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.history-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 14px;
}

.search-box,
.filter-box,
.ai-panel label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box span,
.filter-box span,
.ai-panel span {
  color: #5f5155;
  font-size: 0.92rem;
  font-weight: 600;
}

.search-box input,
.filter-box select,
.ai-panel select {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.96);
}

.search-box input:focus,
.filter-box select:focus,
.ai-panel select:focus {
  border-color: rgba(177, 17, 22, 0.42);
  box-shadow: 0 0 0 4px rgba(177, 17, 22, 0.08);
}

.media-card {
  overflow: hidden;
  border-radius: 28px;
}

.media-poster {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.media-content {
  padding: 18px;
}

.media-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.media-title {
  margin: 16px 0 10px;
  font-size: 1.3rem;
}

.watch-button {
  width: 100%;
  padding: 12px 16px;
  color: var(--text);
  border: 1px solid rgba(177, 17, 22, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(234, 54, 67, 0.12), rgba(177, 17, 22, 0.12));
  cursor: pointer;
}

.watch-button:hover {
  background: linear-gradient(135deg, rgba(234, 54, 67, 0.18), rgba(177, 17, 22, 0.18));
}

.favorite-button {
  width: 100%;
  padding: 12px 16px;
  color: var(--text);
  border: 1px solid rgba(177, 17, 22, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(177, 17, 22, 0.07), rgba(255, 255, 255, 0.9));
  cursor: pointer;
}

.favorite-button.active,
.secondary-action.active {
  border-color: rgba(177, 17, 22, 0.35);
  background: linear-gradient(135deg, rgba(234, 54, 67, 0.16), rgba(177, 17, 22, 0.16));
}

.watch-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(177, 17, 22, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(234, 54, 67, 0.12), rgba(177, 17, 22, 0.12));
}

.detail-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(177, 17, 22, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.detail-link-button:hover {
  background: rgba(177, 17, 22, 0.05);
}

.watch-link-button:hover {
  background: linear-gradient(135deg, rgba(234, 54, 67, 0.18), rgba(177, 17, 22, 0.18));
}

.schedule-card,
.anime-season-card,
.anime-info-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.schedule-view-switch {
  display: inline-flex;
  gap: 10px;
}

.schedule-toggle {
  padding: 10px 16px;
  color: var(--text);
  border: 1px solid rgba(177, 17, 22, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.schedule-toggle.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.schedule-live {
  color: var(--muted);
  font-size: 0.95rem;
}

.schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.schedule-head span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.schedule-item {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(177, 17, 22, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.schedule-item span,
.schedule-item small,
.schedule-item.empty {
  color: var(--muted);
}

.anime-layout {
  display: grid;
  gap: 24px;
  margin-top: 34px;
}

.anime-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.anime-hero-overlay {
  min-height: 430px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: linear-gradient(180deg, rgba(25, 8, 10, 0.08), rgba(15, 8, 9, 0.88));
}

.anime-hero-overlay h1 {
  margin: 0 0 10px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.anime-synopsis {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.anime-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.anime-info-grid strong,
.anime-season-card strong {
  display: block;
}

.anime-info-grid span {
  color: var(--muted);
}

.anime-seasons-list {
  display: grid;
  gap: 18px;
}

.categories-layout {
  display: grid;
  gap: 24px;
  margin-top: 34px;
}

.category-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(177, 17, 22, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}

.category-chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.quality-select-wrap {
  display: block;
  margin-top: 8px;
}

.quality-select {
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid rgba(177, 17, 22, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form input,
.comment-form select,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
}

.comments-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.comment-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-card p,
.comment-card small {
  color: var(--muted);
}

.progress-track {
  width: 100%;
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(177, 17, 22, 0.08);
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 380px;
  gap: 22px;
  margin-top: 36px;
}

.player-column,
.sidebar-column {
  display: grid;
  gap: 20px;
}

.player-hero,
.episode-panel,
.watch-details,
.watch-info-grid article {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.player-hero,
.episode-panel,
.watch-details {
  border-radius: 30px;
  overflow: hidden;
}

.player-screen {
  position: relative;
  min-height: 520px;
  background-position: center;
  background-size: cover;
}

.player-video {
  display: block;
  width: 100%;
  min-height: 520px;
  background: #060606;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 520px;
  padding: 34px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 10, 11, 0.06), rgba(12, 7, 8, 0.86));
}

.player-overlay h1,
.player-overlay p,
.anime-hero-overlay h1,
.anime-hero-overlay p,
.hero-feature,
.hero-feature p,
.hero-feature h2,
.hero-feature .feature-meta span,
.hero-feature .badge,
.player-status,
.next-episode-banner {
  color: #ffffff;
}

.player-overlay h1 {
  margin: 0 0 10px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
}

.player-overlay p {
  max-width: 640px;
  color: var(--muted);
}

.player-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.player-status {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(177, 17, 22, 0.58);
  white-space: nowrap;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  pointer-events: auto;
}

.player-utility-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  pointer-events: auto;
}

.speed-control {
  display: grid;
  gap: 6px;
}

.speed-control span,
.keyboard-hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.next-episode-banner {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(18, 10, 11, 0.92);
  box-shadow: var(--shadow);
}

.thumbnail-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.thumbnail-card {
  padding: 0;
  overflow: hidden;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
}

.thumbnail-card strong,
.thumbnail-card small {
  display: block;
  padding: 0 14px 10px;
}

.thumbnail-card small {
  color: var(--muted);
}

.thumbnail-shot {
  display: block;
  width: 100%;
  height: 92px;
  margin-bottom: 10px;
  background-position: center;
  background-size: cover;
}

.watch-details {
  padding: 24px;
}

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

.watch-info-grid article {
  padding: 18px;
  border-radius: 22px;
}

.watch-info-grid strong,
.episode-item strong,
.related-copy strong {
  display: block;
}

.watch-info-grid span,
.episode-item span,
.episode-item small,
.related-copy small {
  color: var(--muted);
}

.episode-panel {
  padding: 20px;
}

.compact-heading {
  margin-bottom: 14px;
}

.episode-list,
.season-list,
.related-list {
  display: grid;
  gap: 12px;
}

.season-item,
.episode-item,
.related-item {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.season-item:hover,
.season-item.active,
.episode-item:hover,
.episode-item.active,
.related-item:hover {
  transform: translateY(-2px);
  border-color: rgba(177, 17, 22, 0.24);
  background: rgba(177, 17, 22, 0.06);
}

.related-item {
  grid-template-columns: 92px 1fr;
  align-items: center;
}

.related-thumb {
  display: block;
  width: 92px;
  height: 72px;
  border-radius: 16px;
  background-position: center;
  background-size: cover;
}

.related-copy {
  display: grid;
  gap: 6px;
}

.ai-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.ai-panel,
.ai-result,
.roadmap-grid article {
  padding: 24px;
  border-radius: 28px;
}

.ai-panel {
  display: grid;
  gap: 16px;
}

.ai-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 243, 244, 0.98)),
    radial-gradient(circle at top right, rgba(177, 17, 22, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(177, 17, 22, 0.08), transparent 24%);
}

.ai-result h3 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.roadmap-grid article h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.media-card.reveal,
.roadmap-grid article,
.hero-feature,
.floating-card,
.ai-result,
.ai-panel,
.stats article {
  animation: rise 680ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .ai-layout,
  .roadmap-grid,
  .catalog-grid,
  .continue-grid,
  .smart-grid,
  .schedule-grid,
  .favorites-grid,
  .history-grid,
  .episodes-grid,
  .featured-grid,
  .watch-layout,
  .watch-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .schedule-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .thumbnail-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 14px;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  .hero-actions,
  .section-heading,
  .stats,
  .featured-grid,
  .continue-grid,
  .smart-grid,
  .schedule-grid,
  .favorites-grid,
  .history-grid,
  .episodes-grid,
  .catalog-grid,
  .ai-layout,
  .roadmap-grid,
  .watch-layout,
  .watch-info-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .section-heading {
    align-items: start;
  }

  .stats {
    display: grid;
  }

  .player-screen,
  .player-video,
  .player-overlay {
    min-height: 380px;
  }

  .player-header {
    align-items: start;
    flex-direction: column;
  }

  .anime-info-grid {
    grid-template-columns: 1fr;
  }

  .player-utility-row,
  .next-episode-banner {
    align-items: start;
    flex-direction: column;
  }

  .thumbnail-strip {
    grid-template-columns: 1fr;
  }
}

.admin-shell {
  padding-bottom: 56px;
}

.admin-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-gate-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 36px 28px;
  border: 1px solid rgba(177, 17, 22, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(80, 14, 18, 0.12);
}

.admin-gate-card h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  color: #171717;
}

.admin-gate-card input {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  border: 1px solid rgba(177, 17, 22, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
}

.admin-gate-message {
  min-height: 1.3rem;
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.admin-main {
  display: grid;
  gap: 24px;
}

.admin-hero {
  min-height: 420px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.admin-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 241, 242, 0.96));
  border: 1px solid rgba(177, 17, 22, 0.12);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 18px 40px rgba(80, 14, 18, 0.08);
}

.admin-form {
  display: grid;
  gap: 16px;
}

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

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form span {
  color: #5d5054;
  font-size: 0.92rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(177, 17, 22, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.admin-form textarea {
  resize: vertical;
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding-top: 30px;
}

.checkbox-line input {
  width: 20px;
  height: 20px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.draft-list,
.admin-library {
  display: grid;
  gap: 16px;
}

.admin-upload-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px dashed rgba(177, 17, 22, 0.22);
  border-radius: 22px;
  background: rgba(255, 252, 252, 0.92);
}

.upload-status {
  margin: 0;
  font-size: 0.92rem;
  color: #6f5b60;
}

.upload-status[data-tone="working"] {
  color: #8a2f35;
}

.upload-status[data-tone="success"] {
  color: #1f7a42;
}

.upload-status[data-tone="error"] {
  color: #b11116;
}

.upload-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(177, 17, 22, 0.08);
  overflow: hidden;
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b11116, #ef4444);
  transition: width 160ms ease;
}

.quality-summary,
.subtitle-summary {
  display: grid;
  gap: 10px;
}

.asset-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(177, 17, 22, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.asset-pill strong {
  color: #171717;
}

.asset-pill span {
  color: #6f5b60;
  font-size: 0.92rem;
}

.asset-pill button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(177, 17, 22, 0.08);
  color: #b11116;
  cursor: pointer;
  font: inherit;
}

.draft-season-card,
.admin-library-card {
  border-radius: 22px;
  border: 1px solid rgba(177, 17, 22, 0.12);
  background: rgba(255, 255, 255, 0.98);
  overflow: hidden;
}

.draft-season-card {
  padding: 18px 20px;
}

.draft-season-head,
.draft-episode-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.draft-season-head {
  margin-bottom: 14px;
  align-items: center;
}

.draft-season-head span,
.draft-episode-row span,
.draft-episode-row small {
  color: rgba(220, 229, 248, 0.68);
}

.draft-episode-list {
  display: grid;
  gap: 10px;
}

.draft-episode-row {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(11, 20, 34, 0.92);
}

.draft-episode-row div {
  display: grid;
  gap: 4px;
}

.admin-library-card {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.admin-library-poster {
  min-height: 240px;
  background-size: cover;
  background-position: center;
}

.admin-library-copy {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.admin-library-copy h3 {
  margin: 0;
  font-size: 1.6rem;
}

.admin-library-copy p {
  margin: 0;
  color: #65595c;
}

.danger-action {
  border-color: rgba(177, 17, 22, 0.22);
  color: var(--accent);
}

@media (max-width: 980px) {
  .admin-layout,
  .admin-library-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    display: grid;
  }
}

.portal-body {
  min-height: 100vh;
  color: #29333d;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.75), transparent 20%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.65), transparent 16%),
    linear-gradient(180deg, #f7f7f7 0%, #f1f1f1 100%);
}

.portal-body::before {
  background-image:
    radial-gradient(circle at 25px 25px, rgba(0, 0, 0, 0.018) 2px, transparent 2px),
    radial-gradient(circle at 0 0, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 46px 46px, 18px 18px;
  mask-image: none;
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #2f363d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.portal-topbar-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
}

.portal-logo {
  display: grid;
  text-decoration: none;
}

.portal-logo-main {
  font-family: "Outfit", sans-serif;
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.portal-logo-main span {
  color: #29c6ff;
}

.portal-logo-sub {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.portal-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.portal-nav a {
  color: #dce3ea;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.portal-nav a:hover,
.portal-nav a:focus-visible {
  color: #ffffff;
}

.portal-search {
  display: flex;
  align-items: center;
  min-width: 280px;
  overflow: hidden;
  border-radius: 999px;
  background: #252c32;
}

.portal-search input {
  width: 100%;
  padding: 12px 16px;
  color: #f7fbff;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
}

.portal-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.portal-search button {
  width: 48px;
  height: 44px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: transparent;
  font-size: 1.1rem;
}

.portal-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  background: #242a31;
}

.portal-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 60px;
}

.portal-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  margin-bottom: 20px;
  color: #ffffff;
  border-radius: 6px;
  border-bottom: 3px solid #27d5ff;
  background:
    linear-gradient(180deg, rgba(24, 30, 35, 0.86), rgba(24, 30, 35, 0.94)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 12%),
    radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.04), transparent 10%),
    #2d3339;
}

.portal-banner-copy {
  display: grid;
  gap: 6px;
}

.portal-banner-copy strong {
  font-size: 1.1rem;
}

.portal-banner-copy span {
  font-size: clamp(1.1rem, 2.6vw, 1.65rem);
  font-weight: 300;
}

.portal-banner-actions {
  display: flex;
  gap: 10px;
}

.portal-banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.portal-banner-link.secondary {
  border: 0;
  cursor: pointer;
}

.portal-main-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  align-items: start;
}

.portal-sidebar-card,
.portal-content-card,
.portal-section-block {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  box-shadow: 0 12px 34px rgba(19, 28, 37, 0.08);
}

.portal-sidebar-card,
.portal-content-card {
  padding: 16px;
}

.portal-section-block {
  padding: 18px;
  margin-top: 18px;
}

.portal-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.portal-section-title h2 {
  margin: 0;
  color: #303942;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 500;
}

.portal-section-title.wide p {
  margin: 8px 0 0;
  color: #6a7885;
}

.portal-headline-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.portal-day-badge {
  position: relative;
  padding: 12px 16px;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.84rem;
  border-radius: 999px;
  background: #1fc6f4;
}

.portal-day-badge::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -7px;
  border-width: 8px 7px 0 7px;
  border-style: solid;
  border-color: #1fc6f4 transparent transparent transparent;
}

.portal-airing-list {
  display: grid;
  gap: 8px;
}

.portal-airing-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: #32404d;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.portal-airing-item:last-child {
  border-bottom: 0;
}

.portal-airing-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8cfd6;
}

.portal-airing-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-airing-tag {
  padding: 4px 10px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
  background: #74d8ff;
}

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

.portal-episode-card {
  position: relative;
  display: block;
  min-height: 140px;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  background: #1c2127;
  box-shadow: 0 14px 26px rgba(14, 18, 24, 0.12);
  animation: portalRise 420ms ease both;
}

.portal-episode-thumb {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.portal-episode-badge,
.portal-episode-play,
.portal-episode-title,
.portal-episode-meta {
  position: absolute;
  z-index: 1;
}

.portal-episode-badge {
  left: 14px;
  top: 92px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  background: #ff8d1b;
}

.portal-episode-play {
  right: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.portal-episode-title {
  left: 14px;
  right: 14px;
  bottom: 18px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.48);
}

.portal-episode-meta {
  left: 14px;
  bottom: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
}

.portal-cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 14px;
  margin-bottom: 18px;
}

.portal-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 18px;
}

.compact-block {
  margin-top: 0;
}

.portal-install-button {
  padding: 12px 16px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #303942;
}

.portal-media-card {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 21, 29, 0.08);
}

.portal-media-card .media-poster {
  min-height: 190px;
}

.portal-media-card .media-content {
  color: #2e3944;
}

.portal-media-card .media-description,
.portal-media-card .media-tags span,
.portal-media-card .media-type,
.portal-media-card .media-rating {
  color: #66727d;
}

.portal-media-card .media-type,
.portal-media-card .media-rating,
.portal-media-card .media-tags span {
  background: #eef3f6;
  border-color: rgba(0, 0, 0, 0.04);
}

.portal-media-card .favorite-button,
.portal-media-card .watch-button,
.portal-media-card .detail-link-button,
.portal-media-card .watch-link-button {
  color: #2f3a44;
  background: #f4f7f9;
  border-color: rgba(0, 0, 0, 0.06);
}

.portal-media-card .watch-button:hover,
.portal-media-card .watch-link-button:hover,
.portal-media-card .detail-link-button:hover {
  background: #e9f7fd;
}

@keyframes portalRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .portal-topbar-inner,
  .portal-main-grid,
  .portal-bottom-grid {
    grid-template-columns: 1fr;
  }

  .portal-topbar-inner {
    padding: 14px 0;
  }

  .portal-nav {
    justify-content: start;
    flex-wrap: wrap;
  }

  .portal-search {
    min-width: 0;
  }

  .portal-episodes-grid,
  .portal-cards-grid,
  .portal-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .portal-shell,
  .portal-topbar-inner {
    width: min(100% - 18px, 100%);
  }

  .portal-banner,
  .portal-headline-row {
    flex-direction: column;
    align-items: start;
  }

  .portal-episodes-grid,
  .portal-cards-grid,
  .portal-catalog-grid,
  .portal-filters {
    grid-template-columns: 1fr;
  }
}

.portal-flv-body {
  font-family: "Open Sans", sans-serif;
  color: #2f3b45;
  background:
    radial-gradient(circle at 12px 12px, rgba(0, 0, 0, 0.02) 2px, transparent 2px),
    radial-gradient(circle at 36px 36px, rgba(0, 0, 0, 0.016) 2px, transparent 2px),
    linear-gradient(180deg, #f6f6f6 0%, #efefef 100%);
  background-size: 48px 48px;
}

.portal-flv-body::before {
  display: none;
}

.portal-flv-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #2f363d;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.portal-flv-inner {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: 180px 1fr auto 260px auto;
  align-items: center;
  gap: 16px;
}

.portal-flv-logo {
  display: grid;
  text-decoration: none;
}

.portal-flv-logo-main {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  text-transform: lowercase;
}

.portal-flv-logo-main span {
  color: #18c3ef;
}

.portal-flv-logo-sub {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.portal-flv-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
}

.portal-flv-nav a,
.portal-flv-mini-link {
  color: #d8e0e8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}

.portal-flv-search {
  display: flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
  border-radius: 999px;
  background: #23292f;
}

.portal-flv-search input {
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  color: #ffffff;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
}

.portal-flv-search input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.portal-flv-search button,
.portal-flv-arrow {
  border: 0;
  cursor: pointer;
}

.portal-flv-search button {
  width: 46px;
  height: 42px;
  color: #ffffff;
  background: transparent;
}

.portal-flv-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  background: #23292f;
}

.portal-flv-shell {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.portal-flv-hero {
  margin-bottom: 20px;
}

.portal-flv-hero-banner {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 14px 24px;
  color: #ffffff;
  font-size: clamp(1.1rem, 2.8vw, 1.55rem);
  border-radius: 6px;
  border-bottom: 3px solid #19c9f1;
  background:
    linear-gradient(180deg, rgba(41, 48, 54, 0.92), rgba(41, 48, 54, 0.98)),
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.03) 2px, transparent 2px),
    radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.03) 2px, transparent 2px);
  background-size: auto, 32px 32px, 32px 32px;
}

.portal-flv-hero-banner strong {
  font-weight: 800;
}

.portal-flv-primary {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
}

.portal-flv-airing,
.portal-flv-latest,
.portal-flv-strip {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e4e7ea;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(32, 44, 56, 0.05);
}

.portal-flv-airing,
.portal-flv-latest {
  padding: 14px;
}

.portal-flv-strip {
  margin-top: 16px;
  padding: 16px;
}

.portal-flv-block-title,
.portal-flv-headline,
.portal-flv-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-flv-block-title {
  padding-bottom: 12px;
  border-bottom: 1px solid #eceef1;
  margin-bottom: 10px;
}

.portal-flv-headline {
  margin-bottom: 14px;
}

.portal-flv-section-header {
  margin-bottom: 14px;
}

.portal-flv-section-header.split {
  align-items: start;
}

.portal-flv-block-title h2,
.portal-flv-headline h2,
.portal-flv-section-header h2 {
  margin: 0;
  color: #2f3a45;
  font-size: 1rem;
  font-weight: 800;
}

.portal-flv-headline h2 {
  font-size: 0;
}

.portal-flv-headline h2::before {
  content: "Últimos episodios";
  font-size: 1rem;
}

.portal-flv-section-header p {
  margin: 4px 0 0;
  color: #73808b;
  font-size: 0.88rem;
}

.portal-flv-arrow {
  width: 34px;
  height: 34px;
  color: #ff8c1f;
  font-size: 1.2rem;
  border-radius: 50%;
  background: transparent;
}

.portal-flv-today {
  position: relative;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 999px;
  background: #1ec8f4;
}

.portal-flv-today::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -6px;
  border-width: 7px 6px 0 6px;
  border-style: solid;
  border-color: #1ec8f4 transparent transparent transparent;
}

.portal-flv-airing-list {
  display: grid;
}

.portal-airing-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: #35414d;
  text-decoration: none;
  border-bottom: 1px solid #eff1f3;
}

.portal-airing-item:last-child {
  border-bottom: 0;
}

.portal-airing-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cfd6dc;
}

.portal-airing-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.93rem;
}

.portal-airing-tag {
  padding: 4px 10px;
  color: #ffffff;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 999px;
  background: #76d7fa;
}

.portal-flv-episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portal-episode-card {
  position: relative;
  display: block;
  min-height: 142px;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  background: #20262b;
}

.portal-episode-thumb {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.portal-episode-badge,
.portal-episode-play,
.portal-episode-title,
.portal-episode-meta {
  position: absolute;
  z-index: 1;
}

.portal-episode-badge {
  left: 12px;
  top: 86px;
  padding: 4px 8px;
  font-size: 0.69rem;
  font-weight: 800;
  border-radius: 4px;
  background: #ff8d1f;
}

.portal-episode-play {
  right: 10px;
  top: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.portal-episode-title {
  left: 12px;
  right: 12px;
  bottom: 20px;
  font-size: 0.97rem;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.44);
}

.portal-episode-meta {
  left: 12px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
}

.portal-flv-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-flv-catalog {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-flv-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.portal-flv-filters .filter-box {
  min-width: 200px;
}

.portal-flv-bottom {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 16px;
}

.portal-flv-strip.compact {
  margin-top: 0;
}

.portal-install-button {
  padding: 10px 16px;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  background: #303942;
}

.portal-flv-media-card {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #e6eaee;
  background: #ffffff;
  box-shadow: none;
}

.portal-flv-media-card .media-poster {
  min-height: 170px;
}

.portal-flv-media-card .media-content {
  padding: 14px;
}

.portal-flv-media-card .media-title {
  margin: 10px 0 8px;
  color: #2f3a45;
  font-size: 1rem;
}

.portal-flv-media-card .media-description {
  color: #73808b;
  font-size: 0.87rem;
}

.portal-flv-media-card .media-type,
.portal-flv-media-card .media-rating,
.portal-flv-media-card .media-tags span {
  color: #62707c;
  border-color: #e9edf0;
  background: #f4f7f9;
}

.portal-flv-media-card .card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.portal-flv-media-card .favorite-button,
.portal-flv-media-card .watch-button,
.portal-flv-media-card .detail-link-button,
.portal-flv-media-card .watch-link-button {
  width: 100%;
  color: #2f3a45;
  border: 1px solid #e4e8ec;
  border-radius: 4px;
  background: #f5f7f9;
}

.portal-flv-toolbar {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .portal-flv-inner,
  .portal-flv-primary,
  .portal-flv-bottom {
    grid-template-columns: 1fr;
  }

  .portal-flv-inner {
    width: min(1080px, calc(100% - 24px));
    padding: 12px 0;
  }

  .portal-flv-nav {
    justify-content: start;
    flex-wrap: wrap;
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .portal-flv-shell,
  .portal-flv-inner {
    width: min(100% - 16px, 100%);
  }

  .portal-flv-headline,
  .portal-flv-section-header,
  .portal-flv-section-header.split {
    flex-direction: column;
    align-items: start;
  }

  .portal-flv-episodes-grid,
  .portal-flv-card-grid,
  .portal-flv-catalog,
  .portal-flv-bottom {
    grid-template-columns: 1fr;
  }

  .portal-flv-filters {
    display: grid;
  }

  .portal-flv-search {
    min-width: 0;
  }
}

.hybrid-body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: #edf2f7;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 132, 0, 0.16), transparent 22%),
    linear-gradient(180deg, #0c1015 0%, #121821 45%, #0d131a 100%);
}

.hybrid-body::before {
  display: none;
}

.hybrid-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 16, 21, 0.92);
  backdrop-filter: blur(18px);
}

.hybrid-topbar-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  align-items: center;
  gap: 18px;
}

.hybrid-logo {
  display: grid;
  text-decoration: none;
}

.hybrid-logo-main {
  color: #ffffff;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.hybrid-logo-main span {
  color: #ff8b10;
}

.hybrid-logo-sub {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.hybrid-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.hybrid-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hybrid-nav a:hover,
.hybrid-nav a:focus-visible {
  color: #ffffff;
}

.hybrid-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: #181f29;
}

.hybrid-search input {
  width: 100%;
  padding: 13px 16px;
  color: #ffffff;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
}

.hybrid-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hybrid-search button {
  width: 48px;
  height: 46px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.hybrid-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.hybrid-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 320px;
  gap: 18px;
  margin-bottom: 22px;
}

.hybrid-hero-feature,
.hybrid-airing-panel,
.hybrid-block {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: #141b24;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.22);
}

.hybrid-hero-feature {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.hybrid-hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 13, 17, 0.84), rgba(10, 13, 17, 0.36)),
    url("https://images.unsplash.com/photo-1517604931442-7e0c8ed2963c?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.hybrid-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: 42px;
}

.hybrid-kicker,
.hybrid-label {
  margin: 0 0 10px;
  color: #ff9b2d;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hybrid-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 0.94;
}

.hybrid-hero-copy p#featuredDescription {
  max-width: 520px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hybrid-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.hybrid-primary,
.hybrid-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.hybrid-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ffb11a, #ff7d11);
}

.hybrid-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

.hybrid-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hybrid-hero-meta span {
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.hybrid-hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.hybrid-hero-strip article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.hybrid-hero-strip strong,
.hybrid-hero-strip span {
  display: block;
}

.hybrid-hero-strip strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.hybrid-hero-strip span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hybrid-airing-panel {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(20, 27, 36, 0.98), rgba(15, 21, 28, 0.98)),
    radial-gradient(circle at top right, rgba(255, 139, 16, 0.09), transparent 28%);
}

.hybrid-panel-head,
.hybrid-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.hybrid-block-head.split {
  align-items: start;
}

.hybrid-panel-head h2,
.hybrid-block-head h2 {
  margin: 0;
  font-size: 1.32rem;
}

.hybrid-panel-head span {
  padding: 8px 12px;
  color: #11151c;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 999px;
  background: linear-gradient(135deg, #44d2ff, #1fb8ff);
}

.hybrid-block {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(20, 27, 36, 0.98), rgba(15, 21, 28, 0.98)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
}

.hybrid-block-head p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.58);
}

.hybrid-episodes-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hybrid-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.hybrid-grid-two.lower {
  align-items: start;
}

.hybrid-card-grid,
.hybrid-catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hybrid-history-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hybrid-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.hybrid-filters .filter-box {
  min-width: 220px;
}

.hybrid-filters .filter-box span,
.hybrid-block .filter-box span,
.hybrid-block .ai-panel span {
  color: rgba(255, 255, 255, 0.72);
}

.hybrid-filters .filter-box select,
.hybrid-block .filter-box select,
.hybrid-block .ai-panel select,
.hybrid-block .ai-panel input,
.hybrid-block .ai-panel textarea {
  border-color: rgba(255, 255, 255, 0.08);
  background: #101720;
}

.hybrid-install {
  background: linear-gradient(135deg, #ffb11a, #ff7d11);
}

.hybrid-media-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #18212b;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hybrid-media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 177, 26, 0.22);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.24);
}

.hybrid-media-card .media-poster {
  min-height: 200px;
}

.hybrid-media-card .media-content {
  color: #ffffff;
}

.hybrid-media-card .media-title {
  margin: 12px 0 8px;
  font-size: 1.02rem;
}

.hybrid-media-card .media-description,
.hybrid-media-card .media-tags span,
.hybrid-media-card .media-type,
.hybrid-media-card .media-rating {
  color: rgba(255, 255, 255, 0.68);
}

.hybrid-media-card .media-type,
.hybrid-media-card .media-rating,
.hybrid-media-card .media-tags span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.07);
}

.hybrid-media-card .favorite-button,
.hybrid-media-card .watch-button,
.hybrid-media-card .detail-link-button,
.hybrid-media-card .watch-link-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.hybrid-media-card .watch-button,
.hybrid-media-card .watch-link-button {
  background: linear-gradient(135deg, rgba(255, 177, 26, 0.16), rgba(255, 125, 17, 0.18));
}

.hybrid-block .ai-panel,
.hybrid-block .ai-result,
.hybrid-block .roadmap-grid article,
.hybrid-block .schedule-card {
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.06);
  background: #18212b;
  box-shadow: none;
}

.hybrid-block .roadmap-grid article {
  background:
    linear-gradient(180deg, rgba(24, 33, 43, 0.98), rgba(19, 27, 36, 0.98)),
    radial-gradient(circle at top right, rgba(255, 177, 26, 0.08), transparent 32%);
}

.hybrid-block .schedule-live,
.hybrid-block .schedule-item span,
.hybrid-block .schedule-item small,
.hybrid-block .schedule-head span {
  color: rgba(255, 255, 255, 0.6);
}

.hybrid-block .schedule-item {
  border-color: rgba(255, 255, 255, 0.06);
  background: #101720;
}

.hybrid-block .schedule-toggle {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.hybrid-block .schedule-toggle.active {
  color: #ffffff;
  background: linear-gradient(135deg, #ffb11a, #ff7d11);
}

.hybrid-toolbar {
  margin-bottom: 0;
}

@media (max-width: 1080px) {
  .hybrid-topbar-inner,
  .hybrid-hero,
  .hybrid-grid-two {
    grid-template-columns: 1fr;
  }

  .hybrid-topbar-inner {
    padding: 14px 0;
  }

  .hybrid-nav {
    justify-content: start;
    flex-wrap: wrap;
  }

  .hybrid-hero-strip,
  .hybrid-episodes-grid,
  .hybrid-card-grid,
  .hybrid-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hybrid-shell,
  .hybrid-topbar-inner {
    width: min(100% - 18px, 100%);
  }

  .hybrid-topbar-inner {
    grid-template-columns: 1fr;
  }

  .hybrid-search,
  .hybrid-filters {
    width: 100%;
  }

  .hybrid-filters,
  .hybrid-hero-strip,
  .hybrid-episodes-grid,
  .hybrid-card-grid,
  .hybrid-catalog-grid,
  .hybrid-history-grid {
    grid-template-columns: 1fr;
  }

  .hybrid-block-head,
  .hybrid-block-head.split,
  .hybrid-hero-actions {
    flex-direction: column;
    align-items: start;
  }
}

.portal-clone-body {
  min-height: 100vh;
  color: #34414e;
  font-family: "Open Sans", sans-serif;
  background:
    radial-gradient(circle at 18px 18px, rgba(0, 0, 0, 0.015) 2px, transparent 2px),
    radial-gradient(circle at 38px 38px, rgba(0, 0, 0, 0.012) 2px, transparent 2px),
    linear-gradient(180deg, #f7f7f7 0%, #efefef 100%);
  background-size: 48px 48px;
}

.portal-clone-body::before {
  display: none;
}

.portal-clone-topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: #2f363d;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.portal-clone-inner {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: 210px 1fr 250px auto;
  align-items: center;
  gap: 16px;
}

.portal-clone-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.portal-clone-logo-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffb33b, #ff7a1c);
}

.portal-clone-logo-copy strong,
.portal-clone-logo-copy small {
  display: block;
}

.portal-clone-logo-copy strong {
  color: #ffffff;
  font-size: 1rem;
}

.portal-clone-logo-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
}

.portal-clone-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.portal-clone-nav a {
  color: #dbe2ea;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.portal-clone-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #242a31;
}

.portal-clone-search input {
  width: 100%;
  padding: 12px 16px;
  color: #ffffff;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
}

.portal-clone-search input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.portal-clone-search button {
  width: 44px;
  height: 42px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.portal-clone-login,
.portal-clone-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  background: #242a31;
}

.portal-clone-shell {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.portal-clone-banner {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: clamp(1.08rem, 2.4vw, 1.55rem);
  border-radius: 6px;
  border-bottom: 3px solid #19c9f1;
  background:
    linear-gradient(180deg, rgba(42, 48, 54, 0.92), rgba(42, 48, 54, 0.96)),
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.03) 2px, transparent 2px),
    radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.03) 2px, transparent 2px);
  background-size: auto, 32px 32px, 32px 32px;
}

.portal-clone-banner strong {
  font-weight: 800;
}

.portal-clone-primary {
  display: grid;
  grid-template-columns: 304px 1fr;
  gap: 14px;
}

.portal-clone-airing,
.portal-clone-latest,
.portal-clone-strip {
  border: 1px solid #e6eaee;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(22, 31, 39, 0.05);
}

.portal-clone-airing,
.portal-clone-latest {
  padding: 14px;
}

.portal-clone-strip {
  padding: 16px;
  margin-top: 16px;
}

.portal-clone-title-row,
.portal-clone-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.portal-clone-section-head.split {
  align-items: start;
}

.portal-clone-title-row h2,
.portal-clone-section-head h2 {
  margin: 0;
  color: #31404d;
  font-size: 1rem;
  font-weight: 800;
}

.portal-clone-section-head p {
  margin: 5px 0 0;
  color: #73808b;
  font-size: 0.88rem;
}

.portal-clone-arrow {
  width: 32px;
  height: 32px;
  color: #ff8c1f;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.portal-clone-day {
  position: relative;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 999px;
  background: #1ec8f4;
}

.portal-clone-day::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: -6px;
  border-width: 7px 6px 0 6px;
  border-style: solid;
  border-color: #1ec8f4 transparent transparent transparent;
}

.portal-clone-airing-list {
  display: grid;
}

.portal-clone-airing-list .portal-airing-item {
  background: transparent;
}

.portal-clone-airing-list .portal-airing-name {
  font-size: 0.95rem;
}

.portal-clone-episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portal-clone-episode-grid .portal-episode-card {
  min-height: 142px;
  border-radius: 6px;
  box-shadow: 0 10px 18px rgba(10, 15, 21, 0.09);
}

.portal-clone-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-clone-history-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-clone-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.portal-clone-filters .filter-box {
  min-width: 210px;
}

.portal-clone-filters .filter-box span,
.portal-clone-strip .filter-box span,
.portal-clone-strip .ai-panel span {
  color: #5a6875;
}

.portal-clone-filters .filter-box select,
.portal-clone-strip .filter-box select,
.portal-clone-strip .ai-panel select,
.portal-clone-strip .ai-panel input,
.portal-clone-strip .ai-panel textarea {
  color: #33414f;
  border-color: #e2e7eb;
  background: #f8fafb;
}

.portal-clone-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.portal-clone-strip.compact {
  margin-top: 0;
}

.portal-clone-media-card {
  overflow: hidden;
  border: 1px solid #e6eaee;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.portal-clone-media-card .media-poster {
  min-height: 174px;
}

.portal-clone-media-card .media-content {
  color: #34414e;
}

.portal-clone-media-card .media-title {
  margin: 10px 0 8px;
  font-size: 1rem;
}

.portal-clone-media-card .media-description {
  color: #71808b;
  font-size: 0.87rem;
}

.portal-clone-media-card .media-type,
.portal-clone-media-card .media-rating,
.portal-clone-media-card .media-tags span {
  color: #62707c;
  border-color: #eaedf0;
  background: #f4f7f9;
}

.portal-clone-media-card .card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.portal-clone-media-card .favorite-button,
.portal-clone-media-card .watch-button,
.portal-clone-media-card .detail-link-button,
.portal-clone-media-card .watch-link-button {
  color: #34414e;
  border: 1px solid #e5e9ed;
  border-radius: 4px;
  background: #f6f8fa;
}

.portal-clone-toolbar {
  margin-bottom: 0;
}

.portal-clone-strip .schedule-toggle {
  color: #42505c;
  border-color: #e1e6ea;
  background: #f5f8fa;
}

.portal-clone-strip .schedule-toggle.active {
  color: #ffffff;
  background: #2f363d;
}

.portal-clone-strip .schedule-live,
.portal-clone-strip .schedule-item span,
.portal-clone-strip .schedule-item small,
.portal-clone-strip .schedule-head span {
  color: #6f7c88;
}

.portal-clone-strip .schedule-card,
.portal-clone-strip .ai-panel,
.portal-clone-strip .ai-result,
.portal-clone-strip .roadmap-grid article {
  border-color: #e4e8eb;
  background: #ffffff;
  box-shadow: none;
}

@media (max-width: 1080px) {
  .portal-clone-inner,
  .portal-clone-primary,
  .portal-clone-lower {
    grid-template-columns: 1fr;
  }

  .portal-clone-inner {
    padding: 14px 0;
  }

  .portal-clone-nav {
    justify-content: start;
    flex-wrap: wrap;
  }

  .portal-clone-episode-grid,
  .portal-clone-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .portal-clone-shell,
  .portal-clone-inner {
    width: min(100% - 16px, 100%);
  }

  .portal-clone-inner {
    grid-template-columns: 1fr;
  }

  .portal-clone-section-head,
  .portal-clone-section-head.split,
  .portal-clone-title-row {
    flex-direction: column;
    align-items: start;
  }

  .portal-clone-search,
  .portal-clone-filters {
    width: 100%;
  }

  .portal-clone-episode-grid,
  .portal-clone-card-grid,
  .portal-clone-history-grid,
  .portal-clone-lower {
    grid-template-columns: 1fr;
  }
}

.crunch-body {
  min-height: 100vh;
  color: #eef3f8;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 14% -6%, rgba(244, 117, 33, 0.18), transparent 22%),
    radial-gradient(circle at 86% 0, rgba(255, 149, 46, 0.08), transparent 18%),
    linear-gradient(180deg, #090b0f 0%, #0e1117 22%, #11161e 100%);
}

.crunch-body::before {
  display: none;
}

.crunch-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 9, 12, 0.94);
  backdrop-filter: blur(18px);
}

.crunch-topbar-inner {
  width: min(1280px, calc(100% - 34px));
  margin: 0 auto;
  min-height: 70px;
  display: grid;
  grid-template-columns: 220px 1fr 290px;
  align-items: center;
  gap: 24px;
}

.crunch-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.crunch-logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59c2b, #f47521 76%);
  box-shadow: 0 12px 28px rgba(244, 117, 33, 0.22);
}

.crunch-logo-copy strong,
.crunch-logo-copy small {
  display: block;
}

.crunch-logo-copy strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crunch-logo-copy small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
}

.crunch-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.crunch-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.crunch-nav a:hover,
.crunch-nav a:focus-visible {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.crunch-topbar-tools {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
  min-width: 0;
}

.crunch-search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: #11151d;
}

.crunch-search input {
  width: 100%;
  padding: 12px 16px;
  color: #ffffff;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
}

.crunch-search input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.crunch-search button {
  min-width: 70px;
  height: 44px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(245, 156, 43, 0.3), rgba(244, 117, 33, 0.56));
}

.crunch-topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 44px;
  padding: 0 16px;
  color: #101318;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffbf63, #f47521);
}

.crunch-shell {
  width: min(1280px, calc(100% - 34px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.crunch-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 300px;
  gap: 20px;
  min-height: 560px;
  margin-bottom: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  background: #090c11;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.crunch-hero-backdrop,
.crunch-hero-shade {
  position: absolute;
  inset: 0;
}

.crunch-hero-backdrop {
  background-position: center;
  background-size: cover;
}

.crunch-hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.94) 0%, rgba(7, 9, 12, 0.76) 34%, rgba(7, 9, 12, 0.16) 76%),
    linear-gradient(180deg, rgba(7, 9, 12, 0.1) 0%, rgba(7, 9, 12, 0.76) 100%);
}

.crunch-hero-content,
.crunch-live-panel,
.crunch-featured-rail {
  position: relative;
  z-index: 1;
}

.crunch-hero-content {
  padding: 52px 0 156px 58px;
  max-width: 600px;
}

.crunch-kicker,
.crunch-label {
  margin: 0 0 10px;
  color: #f59c2b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.crunch-hero-content h1 {
  margin: 0;
  max-width: 10ch;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3.1rem, 5vw, 4.9rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.crunch-hero-description {
  max-width: 540px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  line-height: 1.62;
}

.crunch-free-note {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.6;
}

.crunch-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.crunch-hero-meta span {
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.crunch-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.crunch-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.crunch-hero-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.crunch-primary,
.crunch-secondary,
.crunch-ghost,
.crunch-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
}

.crunch-primary,
.crunch-install {
  color: #111318;
  background: linear-gradient(135deg, #ffb457, #f47521);
}

.crunch-secondary,
.crunch-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.crunch-ghost {
  cursor: pointer;
}

.crunch-live-panel {
  margin: 28px 28px 156px 0;
  padding: 22px;
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(244, 117, 33, 0.12), rgba(244, 117, 33, 0) 20%),
    rgba(8, 11, 15, 0.78);
  backdrop-filter: blur(18px);
}

.crunch-panel-head,
.crunch-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.crunch-shelf-head.split {
  align-items: start;
}

.crunch-panel-head h2,
.crunch-shelf-head h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.crunch-panel-head span {
  padding: 8px 12px;
  color: #0f1116;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd25c, #f59c2b);
}

.crunch-airing-list {
  display: grid;
  gap: 10px;
}

.crunch-airing-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.crunch-airing-item:last-child {
  border-bottom: 0;
}

.crunch-airing-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59c2b;
}

.crunch-airing-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.92rem;
  font-weight: 600;
}

.crunch-airing-chip {
  padding: 4px 10px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.crunch-featured-rail {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.crunch-featured-tile {
  padding: 0;
  overflow: hidden;
  color: inherit;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  cursor: pointer;
  background: rgba(10, 13, 17, 0.78);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.crunch-featured-tile:hover,
.crunch-featured-tile.active {
  transform: translateY(-3px);
  border-color: rgba(244, 117, 33, 0.34);
  background: rgba(15, 19, 25, 0.96);
}

.crunch-featured-thumb {
  display: block;
  height: 108px;
  background-position: center;
  background-size: cover;
}

.crunch-featured-copy {
  display: grid;
  gap: 4px;
  padding: 12px 14px 14px;
}

.crunch-featured-copy strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.crunch-featured-copy small {
  color: rgba(255, 255, 255, 0.58);
}

.crunch-shelf {
  padding: 0;
  margin-top: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.crunch-shelf-head p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.52);
}

.crunch-highlight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.crunch-highlight-card {
  position: relative;
  display: block;
  min-height: 236px;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background: #0d1015;
  animation: crunchRise 420ms ease both;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.crunch-highlight-thumb {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.crunch-highlight-badge,
.crunch-highlight-title,
.crunch-highlight-meta {
  position: absolute;
  z-index: 1;
}

.crunch-highlight-badge {
  left: 14px;
  top: 14px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59c2b, #f47521);
}

.crunch-highlight-title {
  left: 14px;
  right: 14px;
  bottom: 30px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.42);
}

.crunch-highlight-meta {
  left: 14px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
}

.crunch-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.crunch-history-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.crunch-dual-shelf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.crunch-dual-shelf.lower {
  margin-top: 18px;
}

.crunch-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.crunch-filters .filter-box {
  min-width: 220px;
}

.crunch-filters .filter-box span,
.crunch-shelf .filter-box span,
.crunch-shelf .ai-panel span {
  color: rgba(255, 255, 255, 0.72);
}

.crunch-filters .filter-box select,
.crunch-shelf .filter-box select,
.crunch-shelf .ai-panel select,
.crunch-shelf .ai-panel input,
.crunch-shelf .ai-panel textarea {
  border-color: rgba(255, 255, 255, 0.08);
  background: #0f141b;
}

.crunch-catalog-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.crunch-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, #151b24, #10151d);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.14);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.crunch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 117, 33, 0.28);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.crunch-card .media-poster {
  min-height: 246px;
}

.crunch-card .media-content {
  color: #ffffff;
  padding: 16px 16px 18px;
}

.crunch-card .media-title {
  margin: 10px 0 8px;
  font-size: 1rem;
}

.crunch-card .media-description,
.crunch-card .media-type,
.crunch-card .media-rating,
.crunch-card .media-tags span {
  color: rgba(255, 255, 255, 0.66);
}

.crunch-card .media-type,
.crunch-card .media-rating,
.crunch-card .media-tags span {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.crunch-card .favorite-button,
.crunch-card .watch-button,
.crunch-card .detail-link-button,
.crunch-card .watch-link-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.crunch-card .watch-button,
.crunch-card .watch-link-button {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(245, 156, 43, 0.24), rgba(244, 117, 33, 0.26));
}

.crunch-toolbar {
  margin-bottom: 0;
}

.crunch-shelf .schedule-toggle {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.crunch-shelf .schedule-toggle.active {
  color: #ffffff;
  background: linear-gradient(135deg, #f59c2b, #f47521);
}

.crunch-shelf .schedule-live,
.crunch-shelf .schedule-item span,
.crunch-shelf .schedule-item small,
.crunch-shelf .schedule-head span {
  color: rgba(255, 255, 255, 0.6);
}

.crunch-shelf .schedule-card,
.crunch-shelf .schedule-item,
.crunch-shelf .ai-panel,
.crunch-shelf .ai-result,
.crunch-shelf .roadmap-grid article {
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #161d27, #10151d);
  box-shadow: none;
}

@keyframes crunchRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .crunch-topbar-inner,
  .crunch-hero,
  .crunch-dual-shelf {
    grid-template-columns: 1fr;
  }

  .crunch-topbar-inner {
    padding: 14px 0;
  }

  .crunch-nav {
    justify-content: start;
    flex-wrap: wrap;
  }

  .crunch-topbar-tools {
    justify-content: start;
    flex-wrap: wrap;
  }

  .crunch-live-panel {
    margin: 0 28px 170px 28px;
  }

  .crunch-highlight-grid,
  .crunch-card-grid,
  .crunch-catalog-grid,
  .crunch-history-grid,
  .crunch-featured-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .crunch-shell,
  .crunch-topbar-inner {
    width: min(100% - 18px, 100%);
  }

  .crunch-topbar-inner {
    grid-template-columns: 1fr;
  }

  .crunch-topbar-tools,
  .crunch-search,
  .crunch-filters {
    width: 100%;
  }

  .crunch-topbar-cta {
    min-width: 0;
  }

  .crunch-hero-content {
    padding: 34px 22px 242px;
  }

  .crunch-live-panel {
    margin: 0 22px 154px;
  }

  .crunch-featured-rail {
    left: 22px;
    right: 22px;
    bottom: 22px;
    grid-template-columns: 1fr;
  }

  .crunch-shelf-head,
  .crunch-shelf-head.split,
  .crunch-hero-actions {
    flex-direction: column;
    align-items: start;
  }

  .crunch-highlight-grid,
  .crunch-card-grid,
  .crunch-catalog-grid,
  .crunch-history-grid {
    grid-template-columns: 1fr;
  }
}

.flv-body {
  min-height: 100vh;
  color: #151515;
  font-family: "Nunito Sans", sans-serif;
  background:
    radial-gradient(circle at 12px 12px, rgba(0, 0, 0, 0.018) 2px, transparent 0),
    radial-gradient(circle at 52px 52px, rgba(0, 0, 0, 0.014) 2px, transparent 0),
    linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
  background-size: 64px 64px, 64px 64px, auto;
}

.flv-body::before {
  display: none;
}

.flv-header {
  background: #8f0f17;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.flv-header-inner {
  width: min(1240px, calc(100% - 24px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr 330px;
  align-items: center;
  gap: 18px;
}

.flv-brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.flv-brand-wordmark {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
}

.flv-brand-wordmark span {
  color: #ffd4d7;
}

.flv-brand small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flv-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.flv-nav a {
  color: #e6e6e6;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.flv-nav a:hover,
.flv-nav a:focus-visible {
  color: #ffffff;
}

.flv-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.flv-search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #8f0f17;
  border-radius: 999px;
  background: #ffffff;
}

.flv-search input {
  width: 100%;
  padding: 12px 16px;
  color: #111111;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
}

.flv-search input::placeholder {
  color: rgba(17, 17, 17, 0.46);
}

.flv-search button {
  min-width: 74px;
  height: 44px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  background: #b11116;
}

.flv-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 44px;
  padding: 0 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 6px;
  background: #111111;
}

.flv-shell {
  width: min(1240px, calc(100% - 24px));
  margin: 18px auto 0;
  padding-bottom: 56px;
}

.flv-banner {
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.04) 2px, transparent 0),
    #8f0f17;
  background-size: auto, 26px 26px, auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.flv-banner-copy {
  padding: 18px 26px;
  color: #ffffff;
  font-size: clamp(1.15rem, 2vw, 2rem);
  line-height: 1.2;
  border-bottom: 3px solid #ffc7cb;
}

.flv-banner-copy strong {
  font-weight: 900;
}

.flv-top-grid {
  display: grid;
  grid-template-columns: 294px 1fr;
  gap: 16px;
}

.flv-sidebar-panel,
.flv-main-panel,
.flv-section {
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #ecd9db;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.flv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.flv-panel-head h2 {
  margin: 0;
  color: #191919;
  font-size: 1.85rem;
  font-weight: 300;
  line-height: 1.05;
}

.flv-sidebar-panel .flv-panel-head h2 {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.flv-panel-head-main {
  align-items: start;
}

.flv-day-badge {
  position: relative;
  padding: 9px 14px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  border-radius: 999px;
  background: #b11116;
}

.flv-airing-list {
  display: grid;
}

.flv-airing-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: #2d2d2d;
  text-decoration: none;
  border-bottom: 1px solid #ececec;
}

.flv-airing-item:last-child {
  border-bottom: 0;
}

.flv-airing-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b11116;
}

.flv-airing-title {
  overflow: hidden;
  font-size: 0.98rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.flv-airing-type {
  padding: 4px 10px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 999px;
  background: #b11116;
}

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

.flv-episode-card {
  position: relative;
  display: block;
  min-height: 150px;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  background: #161616;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.flv-episode-thumb {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.flv-episode-badge,
.flv-episode-title {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 1;
}

.flv-episode-badge {
  top: 12px;
  width: fit-content;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  border-radius: 4px;
  background: #b11116;
}

.flv-episode-title {
  bottom: 12px;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.flv-section {
  margin-top: 18px;
}

.flv-added-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.flv-added-card {
  overflow: hidden;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  background: #ffffff;
}

.flv-added-poster {
  min-height: 220px;
  background-position: center;
  background-size: cover;
}

.flv-added-content {
  padding: 14px;
}

.flv-added-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #666666;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.flv-added-card h3 {
  margin: 10px 0 8px;
  color: #181818;
  font-size: 1.1rem;
}

.flv-added-card p {
  margin: 0;
  color: #616161;
  font-size: 0.92rem;
  line-height: 1.55;
}

.flv-added-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 14px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 4px;
  background: #b11116;
}

.flv-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flv-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  color: #161616;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid #ecd9db;
  background: #ffffff;
}

.flv-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.flv-small-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flv-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.flv-card {
  overflow: hidden;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.flv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.flv-card .media-poster {
  min-height: 220px;
}

.flv-card .media-content {
  padding: 14px;
  color: #1b1b1b;
}

.flv-card .media-title {
  margin: 10px 0 8px;
  color: #181818;
  font-size: 1.05rem;
}

.flv-card .media-description {
  color: #656565;
  font-size: 0.92rem;
}

.flv-card .media-type,
.flv-card .media-rating,
.flv-card .media-tags span {
  color: #5d5d5d;
  border-color: #e6e6e6;
  background: #f7f7f7;
}

.flv-card .detail-link-button,
.flv-card .favorite-button,
.flv-card .watch-button,
.flv-card .watch-link-button {
  width: 100%;
  min-height: 40px;
  color: #202020;
  border-radius: 4px;
  border-color: #e7e7e7;
  background: #f7f7f7;
}

.flv-card .watch-button,
.flv-card .watch-link-button {
  color: #ffffff;
  background: #b11116;
}

.flv-card .favorite-button.active {
  color: #ffffff;
  border-color: #b11116;
  background: #b11116;
}

.flv-toolbar {
  margin-bottom: 0;
}

.flv-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  border: 0;
  border-radius: 4px;
  background: #b11116;
}

.flv-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.flv-filters .filter-box {
  min-width: 210px;
}

.flv-empty-card {
  padding: 18px;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  background: #ffffff;
}

.flv-empty-card h3 {
  margin: 8px 0;
  color: #171717;
}

.flv-empty-card p {
  margin: 0;
  color: #666666;
}

.flv-progress-card .progress-track,
.flv-history-card .progress-track {
  margin-top: 14px;
}

.flv-section .schedule-card,
.flv-section .schedule-item {
  border-color: #ebebeb;
  background: #ffffff;
  box-shadow: none;
}

.flv-section .schedule-head strong {
  color: #1a1a1a;
}

.flv-section .schedule-toggle {
  color: #232323;
  border-color: #e5e5e5;
  background: #ffffff;
}

.flv-section .schedule-toggle.active {
  color: #ffffff;
  background: #b11116;
}

.flv-section .schedule-live,
.flv-section .schedule-item span,
.flv-section .schedule-item small,
.flv-section .schedule-head span {
  color: #6a6a6a;
}

@media (max-width: 1180px) {
  .flv-header-inner {
    grid-template-columns: 1fr;
    padding: 14px 0;
  }

  .flv-nav,
  .flv-actions {
    justify-content: start;
    flex-wrap: wrap;
  }

  .flv-top-grid,
  .flv-split-row {
    grid-template-columns: 1fr;
  }

  .flv-episode-grid,
  .flv-added-grid,
  .flv-card-grid,
  .flv-small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .flv-shell,
  .flv-header-inner {
    width: min(100% - 16px, 100%);
  }

  .flv-nav {
    gap: 12px;
  }

  .flv-nav a {
    font-size: 0.82rem;
  }

  .flv-actions,
  .flv-search,
  .flv-filters {
    width: 100%;
  }

  .flv-panel-head,
  .flv-panel-head-main {
    flex-direction: column;
    align-items: start;
  }

  .flv-episode-grid,
  .flv-added-grid,
  .flv-card-grid,
  .flv-small-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium home refresh */
.flv-body {
  color: #161616;
  background:
    radial-gradient(circle at top left, rgba(177, 17, 22, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f6f0f1 56%, #f3ecec 100%);
}

.flv-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 12, 14, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.flv-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.flv-header-inner {
  min-height: 76px;
  grid-template-columns: 220px 1fr 360px;
}

.flv-brand-wordmark {
  font-size: 2.1rem;
  letter-spacing: -0.04em;
}

.flv-brand-wordmark span {
  color: #f2a2a9;
}

.flv-brand small {
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.11em;
}

.flv-nav {
  gap: 20px;
}

.flv-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.flv-search {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.flv-search button,
.flv-open-button,
.flv-primary-link,
.flv-install,
.flv-added-link,
.flv-section .schedule-toggle.active,
.flv-day-badge {
  background: linear-gradient(135deg, #d91924, #930c15);
}

.flv-search button {
  min-width: 86px;
}

.flv-open-button {
  min-width: 122px;
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(145, 12, 21, 0.24);
}

.flv-shell {
  width: min(1260px, calc(100% - 32px));
  margin-top: 0;
  padding-bottom: 72px;
}

.flv-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: calc(100svh - 76px);
  overflow: hidden;
  background: #070709;
}

.flv-hero-backdrop,
.flv-hero-wash {
  position: absolute;
  inset: 0;
}

.flv-hero-backdrop {
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  transition: background-image 220ms ease;
}

.flv-hero-wash {
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.18), rgba(7, 7, 10, 0.72) 60%, rgba(7, 7, 10, 0.96)),
    radial-gradient(circle at 12% 26%, rgba(217, 25, 36, 0.24), transparent 24%);
}

.flv-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1260px, calc(100% - 32px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  display: grid;
  align-content: end;
  padding: 88px 0 34px;
}

.flv-hero-copy {
  max-width: 680px;
  padding-bottom: 166px;
  animation: flvHeroFade 520ms ease both;
}

.flv-kicker,
.flv-band-label,
.mini-label {
  margin: 0 0 12px;
  color: #ffccd0;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.flv-hero-copy h1 {
  max-width: 11ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.flv-hero-text {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.04rem;
  line-height: 1.7;
}

.flv-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.flv-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.flv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.flv-primary-link,
.flv-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.flv-primary-link {
  color: #ffffff;
  box-shadow: 0 20px 36px rgba(145, 12, 21, 0.26);
}

.flv-secondary-link {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.flv-primary-link:hover,
.flv-secondary-link:hover,
.flv-rail-card:hover,
.flv-card:hover,
.flv-added-card:hover,
.flv-episode-card:hover {
  transform: translateY(-3px);
}

.flv-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin-top: 32px;
}

.flv-hero-proof article {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.flv-hero-proof strong,
.flv-editorial-copy h2,
.flv-panel-head h2,
.flv-added-card h3,
.flv-card .media-title,
.flv-empty-card h3 {
  letter-spacing: -0.03em;
}

.flv-hero-proof strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 0.96rem;
}

.flv-hero-proof span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.55;
}

.flv-featured-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  animation: flvRailRise 620ms ease both;
}

.flv-rail-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(10, 10, 12, 0.64);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.flv-rail-card.active {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(18, 18, 21, 0.9);
}

.flv-rail-thumb {
  display: block;
  height: 110px;
  background-position: center;
  background-size: cover;
}

.flv-rail-copy {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.flv-rail-copy small,
.flv-rail-copy span {
  color: rgba(255, 255, 255, 0.62);
}

.flv-rail-copy strong {
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.1;
}

.flv-editorial-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: center;
  margin-top: 26px;
  padding: 26px 28px;
  border: 1px solid rgba(177, 17, 22, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.06);
}

.flv-editorial-copy h2 {
  max-width: 16ch;
  margin: 0;
  color: #191919;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.98;
}

.flv-editorial-copy p:last-child {
  max-width: 560px;
  margin: 10px 0 0;
  color: #6a6466;
  line-height: 1.65;
}

.flv-chip-row {
  justify-content: end;
}

.flv-chip {
  min-height: 42px;
  padding: 0 16px;
  border-color: rgba(177, 17, 22, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #faf5f5);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.flv-chip:hover {
  transform: translateY(-2px);
  color: #930c15;
  border-color: rgba(177, 17, 22, 0.24);
}

.flv-top-grid,
.flv-split-row,
.flv-shelf-pair {
  gap: 20px;
}

.flv-top-grid {
  grid-template-columns: 296px minmax(0, 1fr);
  margin-top: 26px;
}

.flv-sidebar-panel,
.flv-main-panel,
.flv-section {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(177, 17, 22, 0.08);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
}

.flv-sidebar-panel {
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(217, 25, 36, 0.2), transparent 34%),
    linear-gradient(180deg, #131315 0%, #0c0c0f 100%);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.18);
}

.flv-panel-head h2 {
  font-size: 1.65rem;
  font-weight: 900;
}

.flv-sidebar-panel .flv-panel-head h2 {
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.flv-airing-item {
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.flv-airing-bullet {
  background: linear-gradient(135deg, #ff7b84, #d91924);
  box-shadow: 0 0 0 4px rgba(217, 25, 36, 0.18);
}

.flv-airing-type {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.flv-main-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at top left, rgba(177, 17, 22, 0.08), transparent 26%);
}

.flv-day-badge {
  padding: 10px 16px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 28px rgba(145, 12, 21, 0.18);
}

.flv-episode-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.flv-episode-card {
  min-height: 172px;
  border-radius: 22px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.flv-episode-card.is-featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 360px;
}

.flv-episode-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.06), rgba(8, 8, 12, 0.78));
}

.flv-episode-badge,
.flv-episode-title,
.flv-episode-meta {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
}

.flv-episode-badge {
  top: 16px;
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d91924, #930c15);
}

.flv-episode-title {
  bottom: 38px;
  font-size: 1.12rem;
}

.flv-episode-card.is-featured .flv-episode-title {
  bottom: 52px;
  font-size: 1.72rem;
}

.flv-episode-meta {
  bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.flv-section {
  margin-top: 20px;
}

.flv-shelf-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
}

.flv-added-grid,
.flv-card-grid {
  gap: 16px;
}

.flv-added-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flv-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flv-added-card,
.flv-card,
.flv-empty-card,
.flv-section .schedule-card,
.flv-section .schedule-item {
  overflow: hidden;
  border: 1px solid rgba(177, 17, 22, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 246, 0.96));
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.05);
}

.flv-added-card,
.flv-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.flv-added-card:hover,
.flv-card:hover {
  border-color: rgba(177, 17, 22, 0.16);
  box-shadow: 0 24px 38px rgba(0, 0, 0, 0.08);
}

.flv-added-poster,
.flv-card .media-poster {
  min-height: 252px;
}

.flv-added-content,
.flv-card .media-content {
  padding: 18px;
}

.flv-added-topline,
.flv-card .media-topline {
  color: #776f72;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.flv-added-card h3,
.flv-card .media-title {
  margin: 12px 0 8px;
  font-size: 1.18rem;
}

.flv-added-card p,
.flv-card .media-description,
.flv-empty-card p,
.flv-section .schedule-live,
.flv-section .schedule-item span,
.flv-section .schedule-item small,
.flv-section .schedule-head span {
  color: #6b6467;
}

.flv-card .media-type,
.flv-card .media-rating,
.flv-card .media-tags span {
  color: #4d4548;
  border-color: rgba(177, 17, 22, 0.08);
  background: rgba(177, 17, 22, 0.05);
}

.flv-card .detail-link-button,
.flv-card .favorite-button,
.flv-card .watch-button,
.flv-card .watch-link-button {
  min-height: 42px;
  border-radius: 14px;
  border-color: rgba(177, 17, 22, 0.1);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.flv-card .detail-link-button,
.flv-card .favorite-button {
  background: #ffffff;
}

.flv-card .watch-button,
.flv-card .watch-link-button,
.flv-added-link {
  color: #ffffff;
  background: linear-gradient(135deg, #d91924, #930c15);
}

.flv-card .favorite-button.active {
  color: #ffffff;
  border-color: #930c15;
  background: linear-gradient(135deg, #d91924, #930c15);
}

.flv-empty-card {
  padding: 20px;
}

.flv-progress-card .progress-track,
.flv-history-card .progress-track {
  margin-top: 16px;
}

.progress-track {
  height: 9px;
  background: rgba(177, 17, 22, 0.08);
}

.progress-fill {
  background: linear-gradient(135deg, #d91924, #930c15);
}

.flv-toolbar {
  gap: 16px;
}

.flv-filters {
  gap: 14px;
}

.flv-filters .filter-box {
  min-width: 220px;
}

.flv-filters .filter-box span {
  color: #5d5659;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flv-filters .filter-box select,
.flv-search input {
  font-weight: 700;
}

.flv-section .schedule-card {
  padding: 18px;
}

.flv-section .schedule-item {
  border-radius: 18px;
}

.flv-install {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(145, 12, 21, 0.18);
}

@keyframes flvHeroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flvRailRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .flv-header-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0;
  }

  .flv-nav,
  .flv-actions {
    justify-content: flex-start;
  }

  .flv-hero {
    min-height: auto;
  }

  .flv-hero-inner {
    min-height: auto;
    padding: 72px 0 24px;
  }

  .flv-hero-copy {
    max-width: none;
    padding-bottom: 26px;
  }

  .flv-featured-rail,
  .flv-added-grid,
  .flv-card-grid,
  .flv-episode-grid,
  .flv-small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flv-hero-proof,
  .flv-editorial-band,
  .flv-top-grid,
  .flv-shelf-pair,
  .flv-split-row {
    grid-template-columns: 1fr;
  }

  .flv-chip-row {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .flv-shell,
  .flv-header-inner,
  .flv-hero-inner {
    width: min(100% - 18px, 100%);
  }

  .flv-nav {
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .flv-actions,
  .flv-search,
  .flv-filters {
    width: 100%;
  }

  .flv-hero {
    min-height: auto;
  }

  .flv-hero-inner {
    padding-top: 54px;
  }

  .flv-hero-copy h1 {
    max-width: 9ch;
    font-size: clamp(2.9rem, 15vw, 4.5rem);
  }

  .flv-hero-actions,
  .flv-panel-head,
  .flv-panel-head-main,
  .flv-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .flv-featured-rail,
  .flv-added-grid,
  .flv-card-grid,
  .flv-small-grid,
  .flv-episode-grid {
    grid-template-columns: 1fr;
  }

  .flv-episode-card.is-featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }

  .flv-hero-proof {
    grid-template-columns: 1fr;
  }
}

/* Panel routes */
.panel-app-shell {
  width: min(1480px, calc(100% - 28px));
}

.panel-frame-topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(177, 17, 22, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.08);
}

.panel-topbar-route {
  justify-self: center;
  padding: 10px 16px;
  color: #5f5457;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(177, 17, 22, 0.06);
}

.panel-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-frame {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.panel-sidebar {
  position: sticky;
  top: 116px;
  align-self: start;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(177, 17, 22, 0.08);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 244, 244, 0.96));
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.06);
}

.panel-sidebar-group {
  display: grid;
  gap: 8px;
}

.panel-sidebar-label {
  margin: 0 0 6px;
  color: #8e171d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  color: #2b2527;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 18px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.panel-nav-link small {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7b6f73;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(177, 17, 22, 0.08);
}

.panel-nav-link:hover,
.panel-nav-link.active {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: rgba(177, 17, 22, 0.1);
  background: linear-gradient(135deg, #d91924, #930c15);
}

.panel-nav-link:hover small,
.panel-nav-link.active small {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.panel-workspace {
  display: grid;
  gap: 20px;
}

.panel-route-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.panel-route-hero h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: 0.03em;
}

.panel-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.panel-stat-card {
  padding: 20px;
  border: 1px solid rgba(177, 17, 22, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 243, 0.96));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.05);
}

.panel-stat-card span,
.panel-stat-card small {
  color: #6d6467;
}

.panel-stat-card span {
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-stat-card strong {
  display: block;
  margin: 10px 0 8px;
  color: #141414;
  font-size: 2.2rem;
}

.panel-view[hidden] {
  display: none !important;
}

.admin-shell .admin-layout {
  margin-top: 0;
}

.admin-shell .admin-card {
  border-radius: 30px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.06);
}

.admin-shell .admin-library {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-shell .admin-library-card {
  border-radius: 24px;
}

@media (max-width: 1180px) {
  .panel-frame-topbar,
  .panel-frame {
    grid-template-columns: 1fr;
  }

  .panel-topbar-route {
    justify-self: start;
  }

  .panel-sidebar {
    position: static;
    top: auto;
  }

  .panel-dashboard-grid,
  .admin-shell .admin-library {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .panel-app-shell {
    width: min(100% - 16px, 100%);
  }

  .panel-frame-topbar,
  .panel-route-hero,
  .panel-route-actions,
  .panel-topbar-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-dashboard-grid,
  .admin-shell .admin-library {
    grid-template-columns: 1fr;
  }
}
