/* ============================================================
   yflix.to Theme — style.css
   Dark streaming theme with red accent
   ============================================================ */

/* ============================================================
   FONTS — self-hosted Inter Variable (privacy + adblock-safe)
   ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/templates/yflix/assets/fonts/inter/InterVariable.woff2') format('woff2-variations'),
       url('/templates/yflix/assets/fonts/inter/InterVariable.woff2') format('woff2');
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

/* ============================================================
   CSS VARIABLES
   ============================================================ */
/* ==========================================================================
   2026 CORE SYSTEM — OKLCH P3 COLORS & MODERN TRANSITIONS
   ========================================================================== */
@view-transition { navigation: auto; }

:root {
  /* 2026 High-Vibrancy Color Palette (P3 / OKLCH) */
  --red:             oklch(0.6 0.25 25); 
  --red-hover:       oklch(0.55 0.25 25);
  --red-dark:        oklch(0.4 0.2 25);
  
  --bg-primary:      oklch(0.12 0.01 200); /* Deep Night Grey/Blue */
  --bg-secondary:    oklch(0.14 0.01 200);
  --bg-card:         oklch(0.16 0.01 200);
  --bg-header:       oklch(0.12 0.01 200);
  --bg-input:        oklch(0.18 0.01 200);
  
  --text-primary:    #ffffff;
  --text-secondary:  #a0a0a0;
  --text-muted:      #666666;
  --border:          rgba(255, 255, 255, 0.08);
  --gold:            #f5c518;
  --overlay:         rgba(0, 0, 0, 0.75);
  
  --gradient-hero:   linear-gradient(to right, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.1) 100%);
  --gradient-bottom: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  
  --font:            'Inter', sans-serif;
  --container:       1320px;
  --radius-sm:       6px;
  --radius-md:       10px;
  --radius-lg:       14px;
  --radius-pill:     50px;
  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
ul { list-style: none; }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 0; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   NOTIFICATION BAR
   ============================================================ */
.notification-bar {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.95) 0%, rgba(180, 7, 16, 0.95) 100%);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0;
  font-size: 0.85rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.notification-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.notification-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.notification-icon { flex-shrink: 0; opacity: 0.9; }
.notification-text { font-weight: 500; letter-spacing: 0.01em; }
.notification-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 4px 14px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.notification-btn:hover { background: rgba(255, 255, 255, 0.3); color: #fff; transform: translateY(-1px); }
.notification-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.notification-close:hover { background: rgba(255, 255, 255, 0.25); color: #fff; }

/* Notification Dialog (Learn More popup) */
.notification-dialog {
  border: none;
  border-radius: var(--radius, 8px);
  background: var(--bg-secondary, #1a1a1a);
  color: #fff;
  max-width: 480px;
  width: calc(100% - 32px);
  padding: 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
.notification-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.notification-dialog-content { padding: 24px; }
.notification-dialog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.notification-dialog-header h3 { font-size: 1.1rem; font-weight: 600; flex: 1; margin: 0; }
.notification-dialog-header svg { color: var(--red, #E50914); flex-shrink: 0; }
.notification-dialog-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.notification-dialog-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.notification-dialog-body p { font-size: 0.92rem; line-height: 1.7; color: var(--text-secondary); margin: 0; }
.notification-dialog-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.notification-dialog-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--red, #E50914);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.notification-dialog-link:hover { opacity: 0.8; color: var(--red, #E50914); }

body:has(.notification-bar) .site-header { top: 42px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  height: 60px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: var(--bg-header);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

/* Left nav */
.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-home-link {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-home-link:hover { color: var(--red); }
.nav-home-link svg { width: 18px; height: 18px; stroke: currentColor; flex-shrink: 0; }

.btn-browse {
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-browse:hover { background: var(--red-hover); }

/* Center logo */
.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Right actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search-link {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.nav-search-link:hover { color: var(--red); }
.nav-search-link svg { width: 16px; height: 16px; }


.mobile-menu-toggle {
  display: none;
  padding: 6px;
  color: var(--text-primary);
}
.mobile-menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 16px 20px;
}
.mobile-menu.active { display: block; }

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.mobile-menu-link {
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.mobile-menu-link:hover { background: var(--bg-secondary); }

.mobile-search form { display: flex; gap: 8px; }
.mobile-search input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 9px 14px;
  font-size: 14px;
  font-family: var(--font);
}
.mobile-search button {
  background: var(--red);
  color: #fff;
  padding: 9px 14px;
  border-radius: var(--radius-md);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main { padding-top: 60px; }
body:has(.notification-bar) main { padding-top: 102px; }
.page-home main,
.page-detail main { padding-top: 0; }
body:has(.notification-bar) .page-home main,
body:has(.notification-bar) .page-detail main { padding-top: 0; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.yf-hero {
  position: relative;
  height: 85vh;
  min-height: 520px;
  max-height: 760px;
  overflow: hidden;
  background: #000;
}

.yf-hero-slides { position: relative; width: 100%; height: 100%; }

.yf-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.yf-hero-slide.active { opacity: 1; }

.yf-hero-backdrop {
  position: absolute;
  inset: 0;
}
.yf-hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.yf-hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.yf-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 60px 0 80px;
  z-index: 1;
}

.yf-hero-info {
  max-width: 520px;
}

.yf-hero-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
}
a.badge:hover { opacity: .8; }
.badge-imdb {
  background: #f5c518;
  color: #000;
}
.badge-type {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.18);
}
.badge-genre {
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.1);
}
.meta-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.meta-link:hover { color: var(--red); }

.yf-hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.yf-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.yf-hero-meta span { display: flex; align-items: center; gap: 4px; }

.yf-hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 460px;
}

.yf-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.btn-play-circle:hover { background: var(--red); border-color: var(--red); }
.btn-play-circle svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }

.btn-add-list {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}
.btn-add-list:hover { background: rgba(229,9,20,0.3); border-color: var(--red); }
.btn-add-list svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Hero bottom nav bar: prev | counter | next */
.yf-hero-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  z-index: 5;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
}
.yf-hero-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.yf-hero-nav-btn:hover { background: var(--red); border-color: var(--red); }
.yf-hero-nav-btn svg { width: 16px; height: 16px; stroke: #fff; }
.yf-hero-count-num {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 32px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  padding-left: 12px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}
.btn-view-all:hover { color: var(--red); }
.btn-view-all svg { transition: transform 0.2s ease; }
.btn-view-all:hover svg { transform: translateX(3px); }

/* ============================================================
   TOP 10 SECTION
   ============================================================ */
.top10-section {
  padding: 36px 0 44px;
  background: #0b0b0b;
}

.top10-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

/* "TOP 10" — outlined, no fill */
.top10-big-title {
  font-size: 68px;
  font-weight: 900;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  line-height: 1;
  letter-spacing: -2px;
}

.top10-subtitle {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding-top: 4px;
}

/* ── Carousel wrapper ── */
.top10-carousel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 56px;
}

.top10-viewport {
  overflow: hidden;
  flex: 1;
  padding: 28px 0; /* vertical breathing room for scale effect */
}

.top10-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ── Individual item ── */
.top10-item {
  flex-shrink: 0;
  position: relative;
  width: 185px;
  transition: transform 0.4s ease, filter 0.35s ease;
}
.top10-item.is-center {
  transform: scale(1.07);
  filter: brightness(1);
  z-index: 2;
}

/* Large ghost number behind the poster */
.top10-bg-num {
  position: absolute;
  bottom: 30px;
  left: -18px;
  font-size: 160px;
  font-weight: 900;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(229, 9, 20, 0.5);
  z-index: 3;
  pointer-events: none;
  user-select: none;
  font-family: 'Arial Black', 'Impact', sans-serif;
  letter-spacing: -6px;
}

/* Poster — padding-top trick guarantees 2:3 portrait, no cropping */
.top10-poster-link {
  position: relative;
  display: block;
  z-index: 1;
  border-radius: 6px;
  overflow: hidden;
  padding-top: 150%; /* 2:3 = height is 150% of width */
  box-shadow: 0 6px 20px rgba(0,0,0,0.65);
  transition: box-shadow 0.35s ease;
}
.top10-item.is-center .top10-poster-link {
  box-shadow: 0 0 28px rgba(229,9,20,0.22), 0 8px 32px rgba(0,0,0,0.85);
}
.top10-poster-link img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* HD badge */
.top10-hd {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Title at the bottom of poster */
.top10-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%);
  padding: 24px 8px 8px;
  text-align: center;
  z-index: 2;
}
.top10-card-footer span {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Navigation arrows */
.top10-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.top10-nav:hover { background: var(--red); border-color: var(--red); }
.top10-nav svg { width: 18px; height: 18px; stroke: #fff; }
.top10-nav-prev { left: 10px; }
.top10-nav-next { right: 10px; }

/* ============================================================
   SLIDER
   ============================================================ */
.slider-wrap {
  position: relative;
}

.slider-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.slider-track::-webkit-scrollbar { display: none; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.slider-btn:hover { background: var(--red); border-color: var(--red); }
.slider-btn svg { width: 18px; height: 18px; stroke: #fff; }
.slider-btn-prev { left: -18px; }
.slider-btn-next { right: -18px; }


/* ============================================================
   CONTENT CARD
   ============================================================ */

/* Slider context: fixed width card */
.content-card {
  flex-shrink: 0;
  width: 160px;
  min-width: 0;
}

/* Grid context: fill the grid cell, never inherit the 160px */
.content-grid .content-card {
  width: 100% !important;
  min-width: 0;
}

/* Poster container — always a 2:3 portrait box */
.card-poster-wrap {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 150%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 0;
}

/* Image absolutely fills the poster box — always cropped to fit, never distorted */
.card-poster-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease;
}
.content-card:hover .card-poster-wrap img { transform: scale(1.06); }

.card-badge-hd {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.2);
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.content-card:hover .card-play-overlay { opacity: 1; }

.card-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-play-icon svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }

/* Info overlay — sits inside the poster at the bottom */
.card-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 55%, transparent 100%);
  padding: 32px 8px 9px;
  transition: opacity 0.2s ease;
}

.card-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.card-meta span { display: inline; }
.card-meta .sep { color: rgba(255,255,255,0.3); }

/* ============================================================
   AD BANNER / LOVE SITE
   ============================================================ */
.love-site-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 24px 0;
}

/* ============================================================
   PAGE HEADING (list pages)
   ============================================================ */
.page-heading-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 20px;
}

.page-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  padding-left: 12px;
  position: relative;
}
.page-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}

.btn-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.btn-filter:hover { background: var(--red-hover); }
.btn-filter svg { width: 16px; height: 16px; stroke: currentColor; }

/* ============================================================
   CONTENT GRID
   ============================================================ */
.content-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px 10px;
  margin-bottom: 32px;
  align-items: start;
}

.content-grid .card-poster-wrap { width: 100%; }

/* ============================================================
   PAGINATION  (paginationHtml() helper classes)
   ============================================================ */
.pagination {
  padding: 28px 0 40px;
}

.pagination__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 8px;
  background: #1e1e1e;
  border: 1px solid #333;
  color: #bbb;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  user-select: none;
}
.pagination__link:hover {
  background: #2a2a2a;
  border-color: var(--red);
  color: #fff;
}
.pagination__link--active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(229,9,20,0.35);
  pointer-events: none;
}
.pagination__link--disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}
.pagination__arrow {
  color: #888;
}
.pagination__ellipsis {
  color: #555;
  font-size: 14px;
  padding: 0 6px;
  line-height: 40px;
  user-select: none;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.yf-breadcrumbs {
  padding: 10px 0;
  margin-bottom: 25px;
}
.yf-breadcrumbs-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
}
.yf-breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.yf-breadcrumbs-link {
  color: var(--text-muted);
  transition: color var(--transition);
  text-decoration: none;
}
.yf-breadcrumbs-link:hover {
  color: var(--text-primary);
}
.yf-breadcrumbs-separator {
  color: #333;
  user-select: none;
}
.yf-breadcrumbs-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.detail-backdrop {
  position: relative;
  background: #000;
  overflow: hidden;
}

.detail-backdrop-img {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}
.detail-backdrop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
}
.detail-backdrop-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-primary) 100%);
}

.detail-content {
  position: relative;
  z-index: 2;
  padding: 100px 0 36px;
}

.detail-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.detail-poster-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 220px;
}

.detail-poster img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
}

.detail-info { flex: 1; min-width: 0; }

.detail-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.detail-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #fff;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 600px;
}

.detail-meta-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 13px;
}
.detail-meta-row {
  display: flex;
  gap: 8px;
}
.detail-meta-label {
  color: var(--text-muted);
  min-width: 80px;
  flex-shrink: 0;
}
.detail-meta-value { color: var(--text-secondary); }
.detail-meta-value a { color: var(--text-secondary); transition: color var(--transition); }
.detail-meta-value a:hover { color: var(--red); }

/* Meta Grid (2-column centered box) */
.detail-card {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 22px;
  text-align: left;
  font-size: 13px;
}
.detail-meta-col { display: flex; flex-direction: column; gap: 8px; }

/* Action buttons (play circle + heart) */
.detail-action-play {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.detail-action-play svg { width: 22px; height: 22px; fill: #000; margin-left: 2px; }
.detail-action-play:hover { background: var(--red); transform: scale(1.08); }
.detail-action-play:hover svg { fill: #fff; }

.detail-action-trailer {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0; cursor: pointer; color: #fff;
}
.detail-action-trailer:hover { background: rgba(255,255,255,0.15); transform: scale(1.08); }

/* Trailer Modal */
.yf-trailer-modal { display: none; position: fixed; inset: 0; z-index: 600; align-items: center; justify-content: center; }
.yf-trailer-modal.open { display: flex; }
.yf-trailer-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.yf-trailer-modal-content { position: relative; z-index: 1; width: 90%; max-width: 860px; }
.yf-trailer-modal-close { position: absolute; top: 8px; right: 8px; z-index: 10; background: rgba(0,0,0,0.7); border: none; color: #fff; font-size: 28px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; opacity: 0.9; transition: opacity 0.2s, background 0.2s; display: flex; align-items: center; justify-content: center; line-height: 1; }
.yf-trailer-modal-close:hover { opacity: 1; background: rgba(255,0,0,0.6); }
.yf-trailer-modal-player { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 8px; overflow: hidden; background: #000; }
.yf-trailer-modal-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.detail-action-heart {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0; cursor: pointer;
}
.detail-action-heart svg { width: 22px; height: 22px; fill: #fff; }
.detail-action-heart:hover { background: #fff; border-color: #fff; transform: scale(1.08); }
.detail-action-heart:hover svg { fill: var(--red); }

.detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.detail-stars {
  display: flex;
  align-items: center;
  gap: 3px;
}
.detail-stars svg { width: 16px; height: 16px; }

/* ============================================================
   VIDEO PLAYER
   ============================================================ */
.player-section {
  padding: 24px 0;
  background: var(--bg-primary);
}

.player-wrap {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}

.player-wrap iframe,
.player-wrap video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.player-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
}
.player-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.player-play-btn {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(229,9,20,0.9);
  border: 3px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.player-play-btn:hover { background: var(--red); transform: scale(1.08); }
.player-play-btn svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.player-control-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  transition: background var(--transition), color var(--transition);
}
.player-control-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.player-control-btn svg { width: 14px; height: 14px; stroke: currentColor; }

/* ============================================================
   SERVER SELECTION
   ============================================================ */
.server-select {
  padding: 14px 0 4px;
  text-align: center;
}
.server-hint-banner {
  text-align: center;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, var(--bg) 100%);
}
.server-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #f5c518;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: var(--radius);
  padding: 8px 16px;
  margin-bottom: 14px;
}
.server-hint svg {
  flex-shrink: 0;
}
.server-btns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .server-btns { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .server-btns { grid-template-columns: repeat(2, 1fr); }
}
.server-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.server-btn:hover {
  background: rgba(229,9,20,0.15);
  color: #fff;
  border-color: var(--red);
}
.server-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 12px rgba(229,9,20,0.4);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .notification-bar { font-size: 0.75rem; }
  .notification-bar-inner { padding: 8px 0; }
  .notification-content { gap: 6px; }
  .notification-icon { width: 14px; height: 14px; }
  .notification-btn { padding: 3px 10px; font-size: 0.7rem; }
  .notification-close { width: 24px; height: 24px; }
  .notification-close svg { width: 14px; height: 14px; }
  body:has(.notification-bar) .site-header { top: 36px; }
  .server-hint-banner { padding: 8px 0 0; }
  .server-hint { font-size: 11px; padding: 6px 12px; gap: 4px; }
  .server-hint svg { width: 12px; height: 12px; }
  .server-btns { gap: 6px; }
  .server-btn { padding: 6px 14px; font-size: 12px; justify-content: center; }
}

/* ============================================================
   EPISODES (Series)
   ============================================================ */
.episodes-section { padding: 24px 0; }

/* ── Season selector ── */
.season-selector {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}
.season-selector-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.season-selector-btn svg { flex-shrink: 0; }
.season-chevron {
  transition: transform .2s;
}
.season-selector-btn[aria-expanded="true"] .season-chevron {
  transform: rotate(180deg);
}
.season-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #1e1e1e;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 150px;
  z-index: 200;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.season-dropdown[hidden] { display: none; }
.season-dropdown-item {
  display: block;
  width: 100%;
  padding: 11px 18px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.season-dropdown-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.season-dropdown-item.active { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }

/* ── Episode grid ── */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 900px) { .episode-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .episode-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .episode-grid { grid-template-columns: 1fr; } }

.episode-item {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
  overflow: hidden;
}
.episode-item:hover { border-color: var(--red); background: rgba(229,9,20,0.05); }
.episode-item.active { border-color: var(--red); background: rgba(229,9,20,0.1); }
.ep-label {
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.episode-item.active .ep-label { color: var(--red); }
.ep-empty {
  color: var(--text-muted);
  padding: 16px 0;
  font-size: 14px;
  grid-column: 1 / -1;
}

.player-episode-prompt {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-header {
  padding: 0 0 20px;
  text-align: center;
}
.search-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.search-count {
  font-size: 13px;
  color: var(--text-muted);
}

.search-form-wrap {
  padding: 36px 0 24px;
  display: flex;
  justify-content: center;
}
.search-input-group {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 620px;
}
.search-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 12px 18px;
  font-size: 15px;
  font-family: var(--font);
  transition: border-color var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--red);
}
.search-input::placeholder { color: var(--text-muted); }
.search-submit {
  background: var(--red);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  transition: background var(--transition);
}
.search-submit:hover { background: var(--red-hover); }

/* ============================================================
   FILTER PANEL — row-based pill design
   ============================================================ */

/* Outer wrapper */
#filterPanel {
  margin-bottom: 20px;
}

/* Form card */
.fp-form {
  background: #242424;
  border: 1px solid #333;
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 20px 22px 16px;
}

/* Each filter row */
.fp-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.fp-row:last-of-type { border-bottom: none; }

/* Row label */
.fp-label {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  min-width: 76px;
  padding-top: 5px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Pills container */
.fp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1;
}

/* Individual pill */
.fp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: #2e2e2e;
  border: 1px solid #484848;
  color: #ccc;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
  line-height: 1.4;
  text-decoration: none;
}
.fp-pill:hover {
  border-color: #888;
  color: #fff;
  background: #383838;
}

/* Active pill — red dot + red border */
.fp-pill.is-active {
  border-color: var(--red);
  color: #fff;
  background: rgba(229,9,20,0.12);
}
.fp-pill.is-active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* Action buttons row */
.fp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.fp-btn-cancel {
  padding: 8px 20px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid #555;
  color: #bbb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.fp-btn-cancel:hover { border-color: #999; color: #fff; }
.fp-btn-filter {
  padding: 8px 24px;
  border-radius: 6px;
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.fp-btn-filter:hover { background: var(--red-hover); }

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.search-overlay[hidden] { display: none; }

/* Dark semi-transparent backdrop */
.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Content sits above backdrop */
.search-overlay-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  padding: 0 16px;
  animation: soSlideDown 0.22s ease;
}
@keyframes soSlideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Input wrapper — pill shape */
.search-overlay-form { width: 100%; }
.search-overlay-input-wrap {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  border: 1.5px solid #444;
  border-radius: 50px;
  padding: 0 18px;
  gap: 12px;
  transition: border-color 0.2s;
}
.search-overlay-input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.15);
}
.search-overlay-icon {
  width: 20px;
  height: 20px;
  color: #888;
  flex-shrink: 0;
}
.search-overlay-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  padding: 16px 0;
  line-height: 1;
}
.search-overlay-input::placeholder { color: #666; }
.search-overlay-input::-webkit-search-cancel-button { display: none; }

/* X close button inside input */
.search-overlay-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  flex-shrink: 0;
}
.search-overlay-close svg { width: 18px; height: 18px; }
.search-overlay-close:hover { color: #fff; }

/* Hint text */
.search-overlay-hint {
  text-align: center;
  font-size: 12px;
  color: #555;
  margin-top: 14px;
  letter-spacing: 0.02em;
}
.search-overlay-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #444;
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  color: #888;
  background: #222;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.yf-breadcrumbs {
    position: relative;
    z-index: 10;
    margin-bottom: 25px;
}

.yf-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.yf-breadcrumbs-item {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.yf-breadcrumbs-link {
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
}

.yf-breadcrumbs-link:hover {
    color: var(--text-primary);
}

.yf-breadcrumbs-separator {
    color: var(--text-muted);
    opacity: 0.5;
    user-select: none;
    font-weight: 300;
}

.yf-breadcrumbs-current {
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

@media (max-width: 768px) {
    .yf-breadcrumbs {
        margin-bottom: 15px;
    }
    .yf-breadcrumbs-current {
        max-width: 150px;
    }
}
.breadcrumbs {
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text-secondary); }

/* ============================================================
   INDEX / LANDING PAGE  — exact competitor clone
   ============================================================ */

/* Search row: input + outlined Filter button */
.idx-search-wrap {
  padding: 48px 20px 0;
  display: flex;
  justify-content: center;
}

.idx-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
}

.idx-search-form {
  flex: 1;
  display: flex;
  align-items: center;
  background: #1e1e1e;
  border: 1px solid #2e2e2e;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 0 14px;
}
.idx-search-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--text-muted);
}
.idx-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  padding: 12px 10px;
  outline: none;
}
.idx-search-input::placeholder { color: var(--text-muted); }

/* Outlined "Filter" button — transparent with border */
.idx-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border: 1px solid #3a3a3a;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  transition: border-color var(--transition), color var(--transition);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.idx-filter-btn svg { width: 14px; height: 14px; stroke: currentColor; }
.idx-filter-btn:hover { border-color: var(--red); color: var(--red); }

/* Hero text block */
.idx-hero {
  padding: 36px 20px 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.idx-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.idx-hero-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Red pill CTA button with play icon */
.idx-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
}
.idx-cta-btn:hover { background: var(--red-hover); transform: translateY(-1px); }
.idx-cta-btn svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

/* FAQ content column — one continuous dark block */
.idx-content {
  max-width: 780px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: var(--radius-md);
  padding: 32px 36px 36px;
  margin-bottom: 40px;
}

.idx-faq-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.idx-faq-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.idx-faq-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.idx-faq-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* Bullet feature list */
.idx-feature-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.idx-feature-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0 5px 20px;
  position: relative;
  line-height: 1.7;
}
.idx-feature-list li::before {
  content: '•';
  color: var(--red);
  position: absolute;
  left: 0;
  font-size: 16px;
  line-height: 1.4;
}
.idx-feature-list strong { color: var(--text-primary); }

/* ============================================================
   CATEGORY / COUNTRY / PERSON PAGES
   ============================================================ */
.person-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 0 24px;
}
.person-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  flex-shrink: 0;
}
.person-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.person-role {
  font-size: 14px;
  color: var(--text-muted);
}
.person-intro {
  font-size: 15px;
  color: var(--text-secondary, #aaa);
  margin-top: 8px;
  line-height: 1.5;
  max-width: 600px;
}

/* ============================================================
   REQUEST PAGE
   ============================================================ */
.request-form-wrap {
  max-width: 600px;
  padding: 40px 0;
}
.request-form-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.request-form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--red); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
.btn-submit {
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-submit:hover { background: var(--red-hover); }

.request-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) { .request-row-2col { grid-template-columns: 1fr; } }

.req-star { color: var(--red); }
.opt-label { opacity: 0.5; font-size: 0.85em; font-weight: 400; }

.request-howto {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.request-howto-heading { font-weight: 600; font-size: 14px; color: var(--text-primary); margin-bottom: 6px; }
.request-howto-steps { padding-left: 20px; margin: 8px 0; color: var(--text-secondary); font-size: 13px; line-height: 1.8; }
.request-howto-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.request-helper-links {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.request-helper-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.request-helper-links a:hover { color: var(--red); }

.request-alert {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}
.request-alert--success { background: rgba(229,9,20,0.1); border: 1px solid var(--red); color: #fff; }
.request-alert--error { background: rgba(229,9,20,0.15); border: 1px solid var(--red); color: #fff; }

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
}
.not-found-code {
  font-size: 120px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.8;
}
.not-found-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.not-found-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 380px;
}
.btn-go-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  transition: background var(--transition);
}
.btn-go-home:hover { background: var(--red-hover); }

/* ============================================================
   NOTIFICATION BAR
   ============================================================ */
.notification-bar {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
}
.notification-bar a { color: #fff; text-decoration: underline; }
.notification-bar-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
}
.notification-bar-close:hover { opacity: 1; }

/* ============================================================
   REPORT TOAST
   ============================================================ */
.report-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  z-index: 9999;
  pointer-events: none;
}
.report-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REPORT MODAL
   ============================================================ */
.report-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.report-modal-overlay[hidden] { display: none; }
.report-modal-box {
  position: relative;
  background: #1e1e1e;
  border-radius: 10px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.report-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  transition: color var(--transition);
}
.report-modal-close:hover { color: #fff; }
.report-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.report-modal-context {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 6px;
}
.report-modal-context:empty { display: none; }
.report-modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 18px;
  line-height: 1.5;
}
.report-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 20px;
}
.report-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}
.report-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}
.report-other-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.report-other-textarea {
  width: 100%;
  min-height: 110px;
  background: #111;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  padding: 12px 14px;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color var(--transition);
  font-family: inherit;
}
.report-other-textarea::placeholder { color: var(--text-muted); }
.report-other-textarea:focus { outline: none; border-color: var(--red); }
.report-submit-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  letter-spacing: .3px;
}
.report-submit-btn:hover { background: #c0392b; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #0e0e0e 0%, #080808 100%);
  margin-top: 60px;
}

/* ── Top section ── */
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 40px 36px;
  gap: 22px;
}

/* Logo row: ——— logo ——— */
.footer-logo-row {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 960px;
}

/* Neon red lines extending from both sides */
.footer-line {
  flex: 1;
  height: 1px;
  position: relative;
}
.footer-line--left {
  background: linear-gradient(to left, #ff2a2a 0%, rgba(255,42,42,0.2) 65%, transparent 100%);
  box-shadow: 0 0 6px rgba(255,42,42,0.35);
}
.footer-line--right {
  background: linear-gradient(to right, #ff2a2a 0%, rgba(255,42,42,0.2) 65%, transparent 100%);
  box-shadow: 0 0 6px rgba(255,42,42,0.35);
}

/* Logo image (same as header) */
.footer-logo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 28px;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.footer-logo-btn:hover {
  opacity: 0.85;
  transform: scale(1.05);
}
.footer-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Description */
.footer-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  max-width: 580px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* ── Bottom bar ── */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-legal {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  line-height: 1.6;
  flex: 1;
  padding: 0 20px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.footer-nav a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
  white-space: nowrap;
}
.footer-nav a:hover { color: #ff2a2a; }

@media (max-width: 768px) {
  .footer-top { padding: 40px 24px 28px; }
  .footer-logo-btn { margin: 0 18px; }
  .footer-logo-img { height: 34px; }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 16px 24px 20px;
  }
  .footer-legal { padding: 0; }
}

/* ============================================================
   SUBSCRIBE POPUP
   ============================================================ */
.subscribe-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
.subscribe-popup.active { display: flex; }
.subscribe-popup-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   AD BANNER
   ============================================================ */
.ad-banner-wrap {
  text-align: center;
  padding: 12px 0;
  min-height: 1px;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .content-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1000px) {
  .content-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: repeat(3, 1fr); }
  .yf-hero-title { font-size: 30px; }
  .detail-poster-wrap { width: 160px; }
}

@media (max-width: 640px) {
  /* Backdrop: cinematic full-width hero */
  .detail-backdrop { overflow: visible; }
  .detail-backdrop-img { position: relative; height: 260px; opacity: 1; }
  .detail-backdrop-img img { height: 260px; object-fit: cover; object-position: center top; }
  .detail-backdrop-img::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 30%, var(--bg-primary) 95%);
  }

  /* Pull content up to overlap backdrop bottom */
  .detail-content { position: relative; z-index: 3; padding: 0 0 28px; margin-top: -90px; }

  /* Outer: column, centered */
  .detail-layout { flex-direction: column; align-items: center; gap: 20px; }

  /* Poster-wrap: ROW — portrait poster left, play button right */
  .detail-poster-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 24px;
  }

  /* Portrait poster — keep natural ratio */
  .detail-poster { width: 110px; flex-shrink: 0; position: relative; z-index: 4; }
  .detail-poster img { border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,0.85); }

  /* Info full-width below */
  .detail-info { width: 100%; }

  .detail-title { font-size: 20px; line-height: 1.25; margin-bottom: 10px; }
  .detail-badges { flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
  .detail-desc { font-size: 13px; line-height: 1.65; margin-bottom: 14px; }
  .detail-meta-rows { gap: 6px; margin-bottom: 14px; }
  .detail-meta-grid { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .detail-card { padding: 20px 16px; }
  .detail-meta-label { font-size: 12px; min-width: 78px; }
  .detail-meta-value { font-size: 12px; }
  .detail-actions { gap: 12px; }
}

@media (max-width: 768px) {
  .header-right .nav-search-link span { display: none; }
  .mobile-menu-toggle { display: flex; }
  .main-nav-desktop { display: none; }
  /* Logo truly centered on mobile — left nav is hidden so we use absolute */
  .header-inner { position: relative; }
  .site-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .content-grid { grid-template-columns: repeat(3, 1fr); }
  .top10-big-title { font-size: 44px; }
  .top10-carousel { padding: 0 40px; }
  .top10-bg-num { font-size: 120px; left: -12px; }
  .top10-item { width: 155px; }
  .top10-nav { width: 32px; height: 32px; }
  .top10-nav svg { width: 14px; height: 14px; }
  /* Full-screen hero on mobile, content pinned to bottom */
  .yf-hero { height: 100svh; max-height: none; min-height: 500px; }
  .yf-hero-content { align-items: flex-end; padding: 0 0 70px; }
  .yf-hero-backdrop::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.92) 100%);
  }
  .yf-hero-info { max-width: 100%; }
  .yf-hero-title { font-size: 26px; }
  .yf-hero-desc { display: block; font-size: 13px; margin-bottom: 16px; }
  .detail-title { font-size: 22px; }
}

@media (max-width: 520px) {
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .idx-hero-title { font-size: 26px; }
  .top10-big-title { font-size: 32px; }
  .top10-carousel { padding: 0 34px; }
  .top10-bg-num { font-size: 80px; left: -8px; }
  .top10-item { width: 130px; }
  .top10-card-footer span { font-size: 10px; }
}

/* ============================================================
   HOME PAGE — TRANSPARENT HEADER OVER HERO
   ============================================================ */


/* Hero takes up full viewport */
.page-home .yf-hero {
  height: 100vh;
  max-height: 900px;
  min-height: 600px;
}

/* Push hero content down so it clears the header */
.page-home .yf-hero-content {
  padding-top: 60px;
  padding-bottom: 100px;
}

/* ============================================================
   CINEMATIC DETAIL V2
   ============================================================ */
.detail-layout-v2 {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    padding: 20px 0;
}

.detail-poster-column {
    flex: 0 0 300px;
}

.detail-poster-v2 {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.detail-poster-v2 img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

.detail-info-v2 {
    flex: 1;
}

.detail-title-v2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.detail-badges-v2 {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.badge-v2 {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}

.badge-imdb { background: #f5c518; color: #000; border: none; }
.badge-hd { background: var(--red); border: none; }

.detail-description-v2 {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 30px;
    max-width: 800px;
}

.meta-grid-box {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.meta-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    font-size: 14px;
    color: #aaa;
}

.meta-item strong {
    color: #fff;
    font-weight: 600;
    margin-right: 5px;
}

.meta-item a {
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.meta-item a:hover {
    color: var(--red);
}

.detail-actions-v2 {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-play-v2 {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.btn-play-v2 svg {
    width: 32px;
    height: 32px;
    fill: #000;
    margin-left: 4px;
}

.btn-play-v2:hover {
    transform: scale(1.1);
    background: var(--red);
}

.btn-play-v2:hover svg {
    fill: #fff;
}

.rating-v2 {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stars-v2 {
    display: flex;
    gap: 4px;
}

.stars-v2 svg {
    width: 18px;
    height: 18px;
    fill: #333;
}

.stars-v2 svg.active {
    fill: #f5c518;
}

.rating-text {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.btn-heart-v2 {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    color: #fff;
}

.btn-heart-v2 svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.btn-heart-v2:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

@media (max-width: 1100px) {
    .detail-layout-v2 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .detail-poster-column {
        margin-bottom: 30px;
    }
    .detail-info-v2 {
        width: 100%;
    }
    .detail-title-v2 {
        font-size: 32px;
    }
    .detail-badges-v2, .detail-actions-v2 {
        justify-content: center;
    }
    .meta-grid-box {
        grid-template-columns: 1fr;
        text-align: left;
    }
}


/* Upcoming episode — aired in the future, not yet playable */
.episode-item.episode-upcoming {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    border-style: dashed;
    font-style: italic;
}
.episode-item.episode-upcoming .ep-label { font-style: italic; }
.ep-airs-label {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    font-style: normal;
    color: #fff;
    background: rgba(229, 9, 20, 0.7);
    border-radius: 999px;
}

.yf-share-cta { margin: 28px auto; padding: 16px; text-align: center; max-width: 720px; }
.yf-share-cta__title { font-size: 17px; font-weight: 700; color: var(--text-primary, #fff); margin: 0 0 4px; }
.yf-share-cta__desc { font-size: 13px; color: var(--text-muted, rgba(255,255,255,.6)); margin: 0 0 12px; }
.yf-share-cta__buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.yf-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; transition: transform .15s, opacity .15s; text-decoration: none; color: #fff; }
.yf-share-btn:hover { transform: scale(1.1); opacity: .85; }
.yf-share-btn--x { background: #000; border: 1px solid rgba(255,255,255,.2); }
.yf-share-btn--fb { background: #1877F2; }
.yf-share-btn--wa { background: #25D366; }
.yf-share-btn--tg { background: #0088cc; }
.yf-share-btn--reddit { background: #FF4500; }
.yf-share-btn--copy { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.yf-share-btn--copy.copied { background: #22c55e; border-color: #22c55e; }
