/* ==========================================================
   SOO JAN - Premium Cinema & Streaming Application
   Reconstructed 100% from TryBox Production Architecture
   ========================================================== */

:root {
  --background: #050505;
  --surface: #0e0e0e;
  --surface-raised: #141414;
  --primary: #e50914;
  --primary-hover: #b80710;
  --accent: #f43f5e;
  --foreground: #f3f4f6;
  --muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(229, 9, 20, 0.5);
  --card-radius: 4px;
  --font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #222222;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e50914;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================
   HEADER & FLOATING PILL NAV (TryBox Exact Structure)
   ========================================================== */
#siteHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  transition: all 0.3s ease;
}

.desktop-header-layout {
  display: grid !important;
  grid-template-columns: minmax(100px, 1fr) minmax(0, max-content) minmax(100px, 1fr);
  align-items: center;
  height: 64px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1024px) {
  .desktop-header-layout {
    height: 72px;
    padding: 0 44px;
  }
}

.desktop-header-nav {
  display: flex !important;
  align-items: center;
  gap: 2px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 14, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 4px;
  height: 42px;
  max-width: calc(100vw - 280px);
  overflow-x: auto;
  pointer-events: auto;
  user-select: none;
}

.nav-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.nav-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.nav-pill.active {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767px) {
  .desktop-header-nav {
    display: none !important;
  }
  #mobileNavToggle {
    display: flex !important;
  }
}
@media (min-width: 768px) {
  #mobileNavToggle {
    display: none !important;
  }
}

/* ==========================================================
   HERO BILLBOARD (Ambient Video Preview + Logo + Cinema Card)
   ========================================================== */
[data-billboard="true"] {
  position: relative;
}

#heroCard {
  position: relative;
  width: 100%;
  height: 56vw;
  min-height: 520px;
  max-height: 680px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 1440px) {
  #heroCard {
    height: 640px;
    min-height: 600px;
  }
}
@media (max-width: 767px) {
  #heroCard {
    height: 480px;
    min-height: 420px;
  }
}

/* Hero Banner Action Buttons (Exact TryBox Premium Styling) */
#heroPlayBtn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  height: 44px;
  border-radius: 9999px;
  background: #E50914 !important;
  color: #ffffff !important;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
#heroPlayBtn:hover {
  background: #f40612 !important;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 28px rgba(229, 9, 20, 0.6);
}
#heroPlayBtn svg {
  fill: #ffffff !important;
  width: 16px;
  height: 16px;
}

#heroInfoBtn, #heroMyBoxBtn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(30, 30, 30, 0.75) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#heroInfoBtn:hover, #heroMyBoxBtn:hover {
  background: rgba(50, 50, 50, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-1px);
}

/* ==========================================================
   DETAIL MODAL / QUICK PREVIEW (Exact TryBox Specification)
   ========================================================== */
#detailModal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  overflow-y: auto !important;
  animation: fadeInModal 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#detailModal.hidden {
  display: none !important;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.detail-modal-card {
  position: relative !important;
  width: 100% !important;
  max-width: 860px !important;
  background-color: #141414 !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: 92vh !important;
  margin: auto !important;
}

.detail-modal-scroll {
  overflow-y: auto !important;
  flex: 1 1 auto !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
.detail-modal-scroll::-webkit-scrollbar {
  display: none !important;
}

#detailBackdrop {
  position: relative !important;
  width: 100% !important;
  height: 420px !important;
  min-height: 360px !important;
  background-size: cover !important;
  background-position: center 20% !important;
  background-repeat: no-repeat !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background-color: #000000 !important;
}

@media (max-width: 640px) {
  #detailBackdrop {
    height: 320px !important;
    min-height: 280px !important;
  }
}

#detailVideoContainer {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  transition: opacity 0.6s ease !important;
}
#detailVideoContainer.opacity-100 {
  opacity: 1 !important;
}

#detailTrailerFrame {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  pointer-events: auto !important;
}

.detail-vignette-bottom {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(0deg, #141414 0%, rgba(20, 20, 20, 0.7) 35%, rgba(20, 20, 20, 0) 70%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.detail-vignette-left {
  position: absolute !important;
  inset: 0 !important;
  width: 70% !important;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.85) 0%, rgba(20, 20, 20, 0.3) 45%, rgba(20, 20, 20, 0) 80%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

#detailCloseBtn {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 50 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(20, 20, 20, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(10px) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
}
#detailCloseBtn:hover {
  background: rgba(45, 45, 45, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  transform: scale(1.08) !important;
}

.detail-hero-content {
  position: absolute !important;
  bottom: 24px !important;
  left: 28px !important;
  right: 28px !important;
  z-index: 10 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 16px !important;
}
@media (max-width: 640px) {
  .detail-hero-content {
    bottom: 16px !important;
    left: 18px !important;
    right: 18px !important;
  }
}

.detail-title-block {
  max-width: 520px !important;
}

#detailLogo {
  max-height: 70px !important;
  max-width: 75% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.95)) !important;
  margin-bottom: 8px !important;
}
#detailLogo.hidden {
  display: none !important;
}

#detailTitle {
  font-size: 32px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.9) !important;
}
@media (min-width: 768px) {
  #detailTitle {
    font-size: 40px !important;
  }
}
#detailTitle.hidden {
  display: none !important;
}

#detailTagline {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-style: italic !important;
  margin-top: 4px !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

.detail-actions-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

#detailPlayBtn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 44px !important;
  padding: 0 28px !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
#detailPlayBtn:hover {
  background: rgba(255, 255, 255, 0.88) !important;
  transform: scale(1.05) !important;
}
#detailPlayBtn svg {
  fill: #000000 !important;
  width: 15px !important;
  height: 15px !important;
}

#detailTrailerToggleBtn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 44px !important;
  padding: 0 20px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
#detailTrailerToggleBtn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px) !important;
}
#detailTrailerToggleBtn.hidden {
  display: none !important;
}
#detailTrailerToggleBtn svg {
  width: 15px !important;
  height: 15px !important;
}

#detailMyBoxBtn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}
#detailMyBoxBtn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: scale(1.08) !important;
}
#detailMyBoxBtn svg {
  width: 16px !important;
  height: 16px !important;
}

.detail-body-container {
  padding: 24px 30px 32px 30px !important;
  background-color: #141414 !important;
}
@media (max-width: 640px) {
  .detail-body-container {
    padding: 18px 20px 24px 20px !important;
  }
}

.detail-meta-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
}
@media (min-width: 768px) {
  .detail-meta-grid {
    grid-template-columns: minmax(0, 1fr) 250px !important;
    gap: 32px !important;
  }
}

.detail-badges-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.detail-match-badge {
  color: #46d369 !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
}

.detail-year-badge {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.detail-runtime-badge {
  color: rgba(255, 255, 255, 0.7) !important;
}

.detail-age-badge {
  padding: 2px 7px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 700 !important;
}

.detail-4k-badge {
  padding: 2px 7px !important;
  border-radius: 4px !important;
  background: #E50914 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.detail-audio-badge {
  padding: 2px 7px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 600 !important;
}

.detail-overview-text {
  font-size: 14.5px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.65 !important;
  margin-top: 14px !important;
  font-weight: 400 !important;
}

.detail-sidebar-right {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  font-size: 13px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 18px !important;
}
@media (min-width: 768px) {
  .detail-sidebar-right {
    border-top: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 0 !important;
    padding-left: 24px !important;
  }
}

.detail-sidebar-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.detail-sidebar-label {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-weight: 500 !important;
}

.detail-sidebar-val {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
}

#detailTVSeasonsSection {
  margin-top: 24px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#detailTVSeasonsSection.hidden {
  display: none !important;
}

.detail-seasons-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
}
.detail-seasons-header h4 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

#seasonSelector {
  padding: 6px 14px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  outline: none !important;
  cursor: pointer !important;
}
#seasonSelector option {
  background: #1f1f1f !important;
  color: #ffffff !important;
}

#episodesList {
  display: flex !important;
  align-items: stretch !important;
  gap: 14px !important;
  overflow-x: auto !important;
  padding-bottom: 8px !important;
}

.detail-episode-card {
  flex: 0 0 220px !important;
  width: 220px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.detail-episode-card:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px) !important;
}
.detail-episode-card img {
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  object-fit: cover !important;
}
.detail-episode-card .ep-info {
  padding: 8px 10px !important;
}

/* Dedicated Platform Hero Experience (Generous height & never overlaps SOO JAN) */
.platform-hero-container {
  position: relative;
  width: 100%;
  height: 500px;
  min-height: 440px;
  max-height: 600px;
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (min-width: 1024px) {
  .platform-hero-container {
    height: 540px;
    min-height: 480px;
    padding-top: 130px;
    padding-bottom: 44px;
  }
}
@media (max-width: 767px) {
  .platform-hero-container {
    height: 400px;
    min-height: 350px;
    padding-top: 96px;
    padding-bottom: 24px;
  }
}

#platformHeroLogo {
  max-height: 80px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.95));
  margin-top: 24px;
  margin-bottom: 14px;
}
@media (min-width: 768px) {
  #platformHeroLogo {
    max-height: 96px;
    max-width: 360px;
  }
}

/* Full Bleed Background Video Frame */
.billboard-video-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

#billboardVideoFrame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  filter: brightness(0.85);
  transition: opacity 0.8s ease-in-out;
}

#billboardBackdrop {
  will-change: transform, opacity;
  transition: opacity 0.6s ease-in-out, transform 0.8s ease-out;
}

/* Slide Dash Indicators */
.billboard-dot {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}
.billboard-dot.active {
  background: #ffffff;
  width: 38px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ==========================================================
   BROWSE BY PLATFORM (Exact TryBox Wide Cards)
   ========================================================== */
.platform-section-title {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 800;
  color: #f3f4f6;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .platform-section-title {
    font-size: 24px;
  }
}

.platform-card-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px 4px;
  scroll-behavior: smooth;
}

.platform-card {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 1.85;
  width: clamp(240px, 24vw, 360px);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.platform-card:hover {
  transform: translateY(-4px) scale(1.04);
  z-index: 10;
}

.platform-card img {
  max-width: 75%;
  max-height: 70px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.platform-card:hover img {
  transform: scale(1.08);
}

/* Individual Brand Surfaces & Glows */
.platform-card[data-brand="netflix"] {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.25) 0%, #111111 100%);
}
.platform-card[data-brand="netflix"]:hover {
  border-color: #E50914;
  box-shadow: 0 14px 32px rgba(229, 9, 20, 0.35);
}

.platform-card[data-brand="prime-video"] {
  background: linear-gradient(135deg, rgba(0, 168, 225, 0.25) 0%, #111111 100%);
}
.platform-card[data-brand="prime-video"]:hover {
  border-color: #00A8E1;
  box-shadow: 0 14px 32px rgba(0, 168, 225, 0.35);
}

.platform-card[data-brand="disney"] {
  background: linear-gradient(135deg, rgba(17, 60, 207, 0.25) 0%, #111111 100%);
}
.platform-card[data-brand="disney"]:hover {
  border-color: #113CCF;
  box-shadow: 0 14px 32px rgba(17, 60, 207, 0.35);
}

.platform-card[data-brand="hbo-max"] {
  background: linear-gradient(135deg, rgba(88, 34, 180, 0.25) 0%, #111111 100%);
}
.platform-card[data-brand="hbo-max"]:hover {
  border-color: #5822B4;
  box-shadow: 0 14px 32px rgba(88, 34, 180, 0.35);
}

.platform-card[data-brand="apple-tv"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, #111111 100%);
}
.platform-card[data-brand="apple-tv"]:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.25);
}

.platform-card[data-brand="hulu"] {
  background: linear-gradient(135deg, rgba(28, 231, 131, 0.25) 0%, #111111 100%);
}
.platform-card[data-brand="hulu"]:hover {
  border-color: #1CE783;
  box-shadow: 0 14px 32px rgba(28, 231, 131, 0.35);
}

/* ==========================================================
   MEDIA SHELVES & CAROUSEL (TryBox category-row)
   ========================================================= */
.shelf-wrapper {
  position: relative;
}

.shelf-title {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 800;
  color: #f3f4f6;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .shelf-title {
    font-size: 22px;
  }
}

.shelf-scroll-container {
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 2px 14px 2px;
}
@media (min-width: 768px) {
  .shelf-scroll-container {
    gap: 16px;
  }
}

/* Carousel Floating Glide Arrows (Exact TryBox h-24 w-8 pills) */
.shelf-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 34px;
  height: 96px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
}
.shelf-wrapper:hover .shelf-arrow-btn {
  opacity: 1;
}
.shelf-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.05);
}
.shelf-arrow-left {
  left: -14px;
}
.shelf-arrow-right {
  right: -14px;
}

/* ==========================================================
   MEDIA POSTER CARD (TryBox Clean Cinema Poster)
   ========================================================== */
.media-card {
  position: relative;
  flex-shrink: 0;
  width: 150px;
  cursor: pointer;
  outline: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .media-card {
    width: 170px;
  }
}
@media (min-width: 1024px) {
  .media-card {
    width: 195px;
  }
}
@media (min-width: 1536px) {
  .media-card {
    width: 220px;
  }
}

.media-poster-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--card-radius);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.media-card:hover {
  transform: scale(1.06);
  z-index: 10;
}
.media-card:hover .media-poster-container {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.85);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.media-card:hover .media-overlay {
  opacity: 1;
}

.media-play-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}
.media-play-circle:hover {
  transform: scale(1.15);
}

/* ==========================================================
   TOP 10 SHELVES (Exact TryBox / Netflix SVG Outline Numeral)
   ========================================================== */
.top10-item-container {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  outline: none;
}

.top10-svg-num {
  overflow: visible;
  user-select: none;
  pointer-events: none;
  margin-right: -28px;
  z-index: 0;
  transition: all 0.3s ease;
}

.top10-item-container:hover .top10-svg-num text {
  stroke: #e50914 !important;
  filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.5));
}

.top10-poster-wrap {
  position: relative;
  z-index: 1;
  width: 145px;
  aspect-ratio: 2 / 3;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 640px) {
  .top10-poster-wrap {
    width: 165px;
  }
}
@media (min-width: 1024px) {
  .top10-poster-wrap {
    width: 185px;
  }
}

.top10-item-container:hover .top10-poster-wrap {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.85);
}

/* ==========================================================
   DETAIL MODAL / DRAWER (TryBox quick-preview)
   ========================================================== */
#detailModal {
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.episode-card {
  width: 250px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  cursor: pointer;
}
@media (min-width: 768px) {
  .episode-card {
    width: 290px;
  }
}
.episode-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(229, 9, 20, 0.4);
}

/* ==========================================================
   FULLSCREEN PLAYER & 20 REAL SERVERS
   ========================================================== */
#fullscreenPlayer {
  background: #000000;
}

.player-server-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #e5e5e5;
  transition: background 0.15s ease;
  cursor: pointer;
  text-align: left;
  border: none;
  background: transparent;
}
.player-server-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.player-server-item.active {
  background: #e50914;
  color: #ffffff;
  font-weight: 700;
}


/* ==========================================================
   PLATFORM TINTS & DEDICATED PLATFORM EXPERIENCE
   ========================================================== */
.platform-card-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 18px 4px;
  scroll-behavior: smooth;
}

.platform-card {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 1.85;
  width: clamp(240px, 24vw, 360px);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.platform-card:hover {
  transform: translateY(-4px) scale(1.04);
  z-index: 10;
}

.platform-card img {
  max-width: 75%;
  max-height: 70px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.platform-card:hover img {
  transform: scale(1.08);
}

.platform-tint-red {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.28) 0%, #111111 100%);
}
.platform-tint-red:hover {
  border-color: #E50914;
  box-shadow: 0 14px 36px rgba(229, 9, 20, 0.4);
}

.platform-tint-blue {
  background: linear-gradient(135deg, rgba(0, 168, 225, 0.28) 0%, #111111 100%);
}
.platform-tint-blue:hover {
  border-color: #00A8E1;
  box-shadow: 0 14px 36px rgba(0, 168, 225, 0.4);
}

.platform-tint-teal {
  background: linear-gradient(135deg, rgba(17, 60, 207, 0.35) 0%, #0d1e3d 100%);
}
.platform-tint-teal:hover {
  border-color: #113CCF;
  box-shadow: 0 14px 36px rgba(17, 60, 207, 0.45);
}

.platform-tint-neutral {
  background: linear-gradient(135deg, rgba(88, 34, 180, 0.28) 0%, #120e1f 100%);
}
.platform-tint-neutral:hover {
  border-color: #5822B4;
  box-shadow: 0 14px 36px rgba(88, 34, 180, 0.4);
}

.platform-tint-green {
  background: linear-gradient(135deg, rgba(28, 231, 131, 0.25) 0%, #0a1f14 100%);
}
.platform-tint-green:hover {
  border-color: #1CE783;
  box-shadow: 0 14px 36px rgba(28, 231, 131, 0.4);
}

.platform-card[data-brand="apple-tv"] img,
.platform-card[data-platform-brand="apple-tv"] img {
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

#billboardVideoContainer {
  mask-image: radial-gradient(ellipse 100% 20% at 50% 115%, transparent 98.5%, rgba(0,0,0,0.55) 99.25%, black 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 20% at 50% 115%, transparent 98.5%, rgba(0,0,0,0.55) 99.25%, black 100%);
}


.shelf-row {
  display: flex !important;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 14px 4px;
}


/* 0% Opacity and click shield for billboard video controls */
#billboardVideoFrame, #detailTrailerFrame {
  pointer-events: none !important;
}

#heroPrevBtn, #heroNextBtn, #heroAudioToggle, #billboardDots, .billboard-dot {
  opacity: 0 !important;
  display: none !important;
  pointer-events: none !important;
}

/* ==========================================================
   INFINITE CATALOG VIEW (Starts directly below navbar, no top-left text)
   ========================================================== */
#catalogView {
  padding-top: 76px !important;
}
@media (min-width: 768px) {
  #catalogView {
    padding-top: 80px !important;
  }
}

.catalog-filters-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding-bottom: 12px !important;
}

.catalog-filter-pill {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: rgba(22, 22, 22, 0.82) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 9999px !important;
  padding: 6px 16px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  outline: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
.catalog-filter-pill:hover {
  background: rgba(38, 38, 38, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}
.catalog-filter-pill option {
  background: #141414 !important;
  color: #ffffff !important;
}

/* ==========================================================
   PLATFORM QUICK SWITCHER PILLS (Ultra-Polished, Developed & Cool)
   ========================================================== */
#platformSwitcherPills {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  overflow-x: auto !important;
  padding: 8px 4px 14px 4px !important;
  -webkit-overflow-scrolling: touch !important;
}

.platform-switcher-pill {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  height: 40px !important;
  padding: 0 18px !important;
  border-radius: 9999px !important;
  background: rgba(18, 18, 18, 0.72) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  user-select: none !important;
}

.platform-pill-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: var(--brand-color, #E50914) !important;
  box-shadow: 0 0 10px var(--brand-color, #E50914), 0 0 4px var(--brand-color, #E50914) !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s ease !important;
}

.platform-pill-text {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 0.25s ease !important;
}

.platform-switcher-pill:hover {
  transform: translateY(-2px) scale(1.02) !important;
  background: rgba(30, 30, 30, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}
.platform-switcher-pill:hover .platform-pill-dot {
  transform: scale(1.25) !important;
}
.platform-switcher-pill:hover .platform-pill-text {
  color: #ffffff !important;
}

/* Active State with Brand Glow & Inner Radiance */
.platform-switcher-pill.active {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}
.platform-switcher-pill.active .platform-pill-text {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Specific Brand Theming for Active Pills */
.platform-switcher-pill[data-brand="netflix"].active {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.38) 0%, rgba(25, 10, 12, 0.9) 100%) !important;
  border-color: #E50914 !important;
  box-shadow: 0 8px 28px rgba(229, 9, 20, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}

.platform-switcher-pill[data-brand="prime-video"].active {
  background: linear-gradient(135deg, rgba(0, 168, 225, 0.38) 0%, rgba(8, 24, 36, 0.9) 100%) !important;
  border-color: #00A8E1 !important;
  box-shadow: 0 8px 28px rgba(0, 168, 225, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}

.platform-switcher-pill[data-brand="disney"].active {
  background: linear-gradient(135deg, rgba(56, 132, 255, 0.38) 0%, rgba(10, 20, 48, 0.9) 100%) !important;
  border-color: #3884FF !important;
  box-shadow: 0 8px 28px rgba(56, 132, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}

.platform-switcher-pill[data-brand="hbo-max"].active {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.38) 0%, rgba(28, 12, 45, 0.9) 100%) !important;
  border-color: #9D4EDD !important;
  box-shadow: 0 8px 28px rgba(157, 78, 221, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}

.platform-switcher-pill[data-brand="apple-tv"].active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(35, 35, 35, 0.9) 100%) !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
}

.platform-switcher-pill[data-brand="hulu"].active {
  background: linear-gradient(135deg, rgba(28, 231, 131, 0.38) 0%, rgba(10, 36, 20, 0.9) 100%) !important;
  border-color: #1CE783 !important;
  box-shadow: 0 8px 28px rgba(28, 231, 131, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}

/* ==========================================================
   MY BOX VIEW (Starts below navbar, zero top-left overlap)
   ========================================================== */
#myBoxView {
  padding-top: 76px !important;
}
@media (min-width: 768px) {
  #myBoxView {
    padding-top: 80px !important;
  }
}

.mybox-top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-bottom: 12px !important;
}

.mybox-clear-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 16px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.mybox-clear-btn:hover {
  background: rgba(229, 9, 20, 0.2) !important;
  border-color: rgba(229, 9, 20, 0.4) !important;
  color: #ff6b6b !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================
   ATTRACTIVE LOAD MORE TITLES BUTTON
   ========================================================== */
.load-more-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px 38px !important;
  height: 46px !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(20, 20, 20, 0.85) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
}

.load-more-btn svg {
  transition: transform 0.25s ease !important;
}

.load-more-btn:hover {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.28) 0%, rgba(32, 10, 15, 0.95) 100%) !important;
  border-color: rgba(229, 9, 20, 0.6) !important;
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

.load-more-btn:hover svg {
  transform: translateY(2px) !important;
}

.load-more-btn:active {
  transform: translateY(0) scale(0.98) !important;
}
