@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

:root {
  --header-h: 56px;
  --bg-0: #090b10;
  --bg-1: #0e1118;
  --bg: #090b10;
  --bg-elevated: #0e1118;
  --card: #141820;
  --card-hover: #1a2030;
  --card-strong: #1a2030;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f1f5f9;
  --text-dim: #a8b4c8;
  --text-soft: #a8b4c8;
  --text-mute: #6b7a94;
  --text-muted: #6b7a94;
  --brand: #3b82f6;
  --brand-light: #60a5fa;
  --primary: #3b82f6;
  --gold: #fbbf24;
  --success: #22c55e;
  --container: min(1280px, calc(100vw - 2rem));
}

body {
  background-color: var(--bg-0);
  background-image: none;
  font-family: "Inter", system-ui, sans-serif;
}

body.has-bottom-nav {
  padding-bottom: calc(56px + var(--safe-bottom));
}

.font-display {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  overflow: hidden;
  vertical-align: middle;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.ms-icon-xs { font-size: 16px; }
.ms-icon-sm { font-size: 18px; }
.ms-icon-md { font-size: 22px; }
.ms-fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.ms-bold { font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24; }

.glass-blur {
  background: rgba(9, 11, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-solid {
  background: rgba(14, 17, 24, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand-gradient-text {
  background: linear-gradient(135deg, var(--brand-light) 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Header ── */
.site-header,
#header {
  min-height: calc(var(--header-h) + var(--safe-top));
  background: rgba(9, 11, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.site-header.is-scrolled,
#header.is-scrolled {
  background: rgba(9, 11, 16, 0.88);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 0 auto;
  min-height: var(--header-h);
  gap: 12px;
  padding-left: max(0px, var(--safe-left));
  padding-right: max(0px, var(--safe-right));
}

@media (min-width: 1024px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
  }

  .site-header__brand-col {
    justify-self: start;
  }

  .site-nav {
    justify-self: center;
  }

  .site-header__actions {
    justify-self: end;
  }
}

.brand {
  font-size: 1.25rem;
  gap: 0;
}

.brand__720,
.brand__film {
  color: #fff;
}

.brand__hd {
  color: var(--brand-light);
}

.site-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.site-nav a::after {
  display: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.search-form {
  width: min(220px, 28vw);
  height: 36px;
}

.search-form .material-symbols-outlined {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}

.search-form input {
  border-radius: 8px;
  background: var(--card);
  border-color: var(--border);
  font-size: 13px;
  padding-left: 36px;
  text-align: left;
}

.search-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.menu-toggle,
.mobile-search-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

/* Mobile dropdown menu */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: calc(var(--header-h) + var(--safe-top));
  z-index: 1090;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-panel {
  position: absolute;
  inset-inline: 0;
  top: 0;
  max-height: calc(100vh - var(--header-h) - var(--safe-top));
  overflow-y: auto;
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-nav-overlay.open .mobile-nav-panel {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-panel ul {
  list-style: none;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 12px;
}

.mobile-nav-cta {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.mobile-nav-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}

.mobile-nav-cta__btn:hover {
  background: var(--brand-light);
}

.mobile-nav-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.mobile-nav {
  display: none;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  border-top: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.95);
  backdrop-filter: blur(12px);
  padding-bottom: var(--safe-bottom);
}

.bottom-nav__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  max-width: 28rem;
  margin: 0 auto;
  height: 56px;
  align-items: stretch;
}

.bottom-nav__list > li {
  display: flex;
  min-width: 0;
}

.bottom-nav__link {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 56px;
  padding: 6px 4px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-mute);
  transition: color 0.15s;
}

.bottom-nav__link.active {
  color: var(--brand-light);
}

.bottom-nav__link .material-symbols-outlined {
  font-size: 22px;
}

.bottom-nav__link--search {
  color: var(--text-mute);
}

.bottom-nav__search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.32);
}

.bottom-nav__search-icon .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.bottom-nav__active-bar {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }

  body.has-bottom-nav {
    padding-bottom: 0;
  }
}

/* ── Home hero (stats + categories) ── */
.hero.hero--search {
  position: relative;
  min-height: auto !important;
  max-height: none !important;
  margin-top: 0 !important;
  overflow: visible;
  isolation: auto;
  padding: calc(var(--header-h) + var(--safe-top) + 12px) 16px 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero.hero--search {
    padding: calc(var(--header-h) + var(--safe-top) + 20px) 24px 32px;
  }
}

.home-hero__brand {
  margin-bottom: 24px;
}

.brand-glow {
  display: flex;
  justify-content: center;
}

.home-hero__logo {
  display: inline-flex;
}

.brand--hero {
  font-size: clamp(2rem, 5vw, 3rem);
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.4));
}

.home-hero__search-wrap {
  max-width: 42rem;
  margin: 0 auto;
}

.home-hero__search {
  position: relative;
  width: 100%;
  text-align: left;
}

.home-hero__search-hint {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.home-hero__kbd {
  display: none;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-mute);
}

@media (min-width: 640px) {
  .home-hero__kbd {
    display: inline-block;
  }
}

.home-hero__search input {
  width: 100%;
  height: 48px;
  padding: 0 56px 0 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s, box-shadow 0.15s;
}

@media (min-width: 640px) {
  .home-hero__search input {
    font-size: 14px;
  }
}

.home-hero__search input::placeholder {
  color: var(--text-mute);
}

.home-hero__search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.home-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  row-gap: 12px;
  margin-top: 0;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
}

a.stat-pill {
  cursor: pointer;
}

.stat-pill:hover {
  background: var(--card-hover);
  border-color: rgba(59, 130, 246, 0.3);
}

.stat-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--brand-light);
}

.stat-pill__value {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-pill__label {
  color: var(--text-dim);
}

.stat-pill--status {
  border-color: var(--border);
}

.stat-pill__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-mute);
}

/* Platform grid (dizi.life style) */
.home-platforms {
  width: min(1280px, calc(100vw - 2rem));
  margin: 24px auto 0;
}

.platform-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .platform-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .platform-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
  }
}

.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 1.3 / 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.platform-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--card-hover);
}

.platform-card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.2), transparent 70%);
  transition: opacity 0.3s;
  pointer-events: none;
}

.platform-card:hover .platform-card__glow {
  opacity: 1;
}

.platform-card__icon {
  position: relative;
  z-index: 1;
  color: var(--brand-light);
}

.platform-card__name {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  transition: color 0.15s;
}

.platform-card:hover .platform-card__name {
  color: var(--text);
}

.platform-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
}

.platform-pill {
  display: flex;
  width: 68px;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  scroll-snap-align: start;
}

.platform-pill__ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.5);
  background: var(--card);
  color: var(--brand-light);
  transition: transform 0.2s, border-color 0.2s;
}

.platform-pill:hover .platform-pill__ring {
  transform: scale(1.05);
  border-color: var(--brand-light);
}

.platform-pill__name {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
}

.platform-pill:hover .platform-pill__name {
  color: var(--text);
}

.page-home .hero:not(.hero--search) {
  margin-bottom: -48px;
}

.page-home .home {
  padding-top: 0;
}

.hero-slide__content h1,
.hero-slide__content h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #fff;
}

/* Homepage: header search is primary */
.page-home .site-header__actions .search-form {
  display: flex;
}

@media (min-width: 769px) {
  .page-home .site-header__actions .search-form {
    width: min(280px, 32vw);
  }
}

.home-row:first-child {
  margin-top: 8px;
}

.home-row--platforms {
  margin-bottom: 32px;
}

.home-row--platforms .home-platforms {
  margin-top: 0;
}

.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .sm\:grid {
    display: grid !important;
  }

  .sm\:hidden {
    display: none !important;
  }
}

.home-hero__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}

.live-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Home rows ── */
.home {
  width: 100%;
  max-width: none;
  padding: 8px 0 calc(48px + var(--safe-bottom));
}

.home {
  padding-bottom: 56px;
}

.home__container {
  width: var(--container);
  margin: 0 auto;
}

.home-row {
  margin-bottom: 48px;
}

.home-row__head {
  margin-bottom: 16px;
}

.home-row__head h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.home-row__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.15s;
}

.home-row__more:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--card-hover);
}

/* Trend carousel */
.trend-carousel {
  position: relative;
}

.trend-carousel .home-row__track {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 48vw);
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 2px 32px;
  scroll-padding-inline: 4px;
  flex-wrap: unset;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.trend-carousel .home-row__track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .trend-carousel .home-row__track {
    grid-auto-columns: minmax(168px, 34vw);
    gap: 16px;
    padding-bottom: 28px;
  }
}

@media (min-width: 768px) {
  .trend-carousel .home-row__track {
    grid-auto-columns: minmax(178px, 26vw);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .trend-carousel .home-row__track {
    grid-auto-columns: 182px;
    gap: 18px;
    padding-bottom: 24px;
  }
}

.trend-item {
  position: relative;
  overflow: visible;
  min-width: 150px;
  flex: 0 0 auto;
  padding: 0 0 12px 38px;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .trend-item {
    padding-left: 46px;
  }
}

@media (min-width: 1024px) {
  .trend-item {
    min-width: 182px;
    padding-left: 54px;
  }
}

.trend-item__rank {
  position: absolute;
  bottom: 6px;
  left: 0;
  z-index: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(96, 165, 250, 0.92);
  text-shadow: 0 4px 20px rgba(96, 165, 250, 0.32);
  font-feature-settings: "tnum" 1;
  pointer-events: none;
  user-select: none;
}

.trend-item__rank--wide {
  font-size: 3.9rem;
  letter-spacing: -0.08em;
}

@media (min-width: 640px) {
  .trend-item__rank {
    font-size: 5.85rem;
    -webkit-text-stroke-width: 2.25px;
  }

  .trend-item__rank--wide {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .trend-item__rank {
    font-size: 6.75rem;
    bottom: 4px;
    left: -2px;
    -webkit-text-stroke-width: 2.5px;
  }

  .trend-item__rank--wide {
    font-size: 5.1rem;
  }
}

.trend-item__poster {
  position: relative;
  z-index: 1;
  display: block;
  transition: transform 0.3s;
}

.trend-item__poster:hover {
  transform: translateY(-4px);
}

.trend-item__img-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.trend-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.trend-item__poster:hover img {
  transform: scale(1.05);
}

.trend-item__rating {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
}

/* Media cards (poster carousel) */
.poster-carousel {
  position: relative;
}

.poster-carousel .home-row__track {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 38vw);
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: unset;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.poster-carousel .home-row__track::-webkit-scrollbar {
  display: none;
}

.poster-carousel .media-card {
  scroll-snap-align: start;
}

@media (min-width: 480px) {
  .poster-carousel .home-row__track {
    grid-auto-columns: minmax(140px, 28vw);
  }
}

@media (min-width: 640px) {
  .poster-carousel .home-row__track {
    grid-auto-columns: minmax(148px, 22vw);
  }
}

@media (min-width: 768px) {
  .poster-carousel .home-row__track {
    grid-auto-columns: minmax(156px, 18vw);
  }
}

@media (min-width: 1024px) {
  .poster-carousel .home-row__track {
    grid-auto-columns: minmax(160px, 160px);
  }
}

@media (min-width: 1280px) {
  .poster-carousel .home-row__track {
    grid-auto-columns: minmax(168px, 168px);
  }
}

.media-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s;
}

.media-card:hover .media-card__poster {
  border-color: var(--border-strong);
}

.media-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-card:hover .media-card__poster img {
  transform: scale(1.05);
}

.media-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.85));
  pointer-events: none;
}

.media-card__badge {
  position: absolute;
  top: 8px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.media-card__badge--new {
  left: 8px;
  background: var(--success);
}

.media-card__badge--type {
  right: 8px;
  background: var(--brand);
}

.media-card__title-overlay {
  position: absolute;
  inset-inline: 8px;
  bottom: 8px;
  z-index: 2;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  font-size: 11px;
  color: var(--text-mute);
}

.media-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: var(--gold);
}

/* Episode cards */
.latest-episodes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.latest-episodes-grid .episode-tile:nth-child(n + 6) {
  display: none;
}

@media (min-width: 640px) {
  .latest-episodes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .latest-episodes-grid .episode-tile:nth-child(n + 6) {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .latest-episodes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .latest-episodes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-row--episodes {
  margin-bottom: 24px;
}

.home-row--episodes .home-row__head {
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  .home-row--episodes {
    margin-bottom: 40px;
  }

  .home-row--episodes .home-row__head {
    margin-bottom: 16px;
  }
}

.episode-row__track {
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  grid-auto-columns: min(85%, 360px);
  gap: 12px;
  overflow-x: auto;
}

@media (min-width: 640px) {
  .episode-row__track {
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
  }
}

@media (min-width: 1024px) {
  .episode-row__track {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .episode-row__track {
    grid-template-columns: repeat(4, 1fr);
  }
}

.episode-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 20, 31, 0.92);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.episode-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(20, 25, 37, 0.98);
}

.episode-tile__thumb {
  width: 68px;
  height: 38px;
  flex-shrink: 0;
  margin: 5px 0 5px 5px;
  border-radius: 4px;
  background: var(--bg-1);
  overflow: hidden;
}

.episode-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-tile__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  flex: 1;
  padding: 5px 8px 5px 0;
}

.episode-tile__title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-tile__sub {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-tile__time {
  display: none;
  font-size: 10px;
  color: var(--text-mute);
}

@media (min-width: 640px) {
  .episode-tile {
    gap: 12px;
    min-height: 74px;
    border-radius: 10px;
  }

  .episode-tile__thumb {
    width: 104px;
    height: 58px;
    margin: 8px 0 8px 8px;
    border-radius: 6px;
  }

  .episode-tile__body {
    gap: 3px;
    padding: 10px 12px 10px 0;
  }

  .episode-tile__title {
    font-size: 13px;
  }

  .episode-tile__sub {
    font-size: 11px;
  }

  .episode-tile__time {
    display: block;
  }
}

/* Carousel scroll hints */
.hcarousel-track {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.hcarousel-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* About box */
.home-about {
  margin-bottom: 64px;
}

.home-about__box {
  padding: 24px 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
}

.home-about__box h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.home-about__box p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* Footer (compact) */
.site-footer,
#footer {
  margin-top: 0;
  padding: 32px 16px 20px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}

.site-footer__compact {
  width: var(--container);
  margin: 0 auto;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  list-style: none;
}

.site-footer__nav a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.15s;
}

.site-footer__nav a:hover {
  color: var(--brand-light);
}

.site-footer__copy {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-mute);
}

/* Page shell padding for fixed header */
.page-shell main {
  padding-top: calc(var(--header-h) + var(--safe-top));
}

.page-home main {
  padding-top: 0;
}

.page-shell:not(.page-home) .page-hero {
  padding-top: calc(var(--header-h) + var(--safe-top) + 24px);
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .search-form {
    display: none;
  }

  .page-home .site-header__actions .search-form {
    display: flex;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .page-home .site-header__inner {
    gap: 8px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  body.has-bottom-nav .mobile-search-link {
    display: none;
  }
}

.hero--skeleton.hero--search,
.hero.hero--search.hero--skeleton {
  min-height: 120px !important;
  margin-top: 0 !important;
  background: linear-gradient(110deg, #12151d 8%, #1a2030 18%, #12151d 33%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.home--skeleton {
  min-height: 420px;
  background: linear-gradient(110deg, #0e1118 8%, #141820 18%, #0e1118 33%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-row--live .home-row__track,
.home-row--matches .home-row__track {
  display: flex !important;
  gap: 12px;
  overflow-x: auto;
}

.episode-row__track {
  display: grid !important;
}

.media-card {
  display: block;
  min-width: 0;
}

.media-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
