/* ==========================================================================
   THE STORY OF US — NETFLIX EDITION STYLESHEET
   ========================================================================== */

:root {
  --netflix-red: #e50914;
  --netflix-red-hover: #b80710;
  --bg-black: #141414;
  --bg-darker: #0d0d0d;
  --bg-card: #181818;
  --bg-glass: rgba(20, 20, 20, 0.75);
  --bg-glass-heavy: rgba(15, 15, 15, 0.92);
  --text-white: #ffffff;
  --text-gray: #a3a3a3;
  --text-muted: #737373;
  --border-light: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(255, 255, 255, 0.7);
  --font-primary: "Netflix Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --sidebar-width: 68px;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-primary);
  overflow-x: hidden;
  user-select: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--netflix-red);
}

/* ==========================================================================
   APP SCREENS CONTAINER & TRANSITIONS
   ========================================================================== */
#app {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.screen {
  display: none !important;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.screen.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

#screen-player.active {
  display: block !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
}

/* GHALI Brand Logo (Netflix styled typography) */
.ghali-brand-logo {
  font-family: "Bebas Neue", -apple-system, sans-serif;
  font-size: 2.8rem;
  letter-spacing: 6px;
  color: var(--netflix-red);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
  transition: transform 0.2s ease, text-shadow 0.2s ease;
  user-select: none;
}
.ghali-brand-logo:hover {
  transform: scale(1.05);
  text-shadow: 0 6px 18px rgba(229, 9, 20, 0.7);
}
.ghali-brand-logo.mobile-logo {
  font-size: 2rem;
  letter-spacing: 4px;
}

.ghali-sidebar-icon {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  color: #fff;
  background: var(--netflix-red);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(229, 9, 20, 0.6);
  cursor: pointer;
}

.ghali-player-badge {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--netflix-red);
  font-weight: 900;
}

/* Season Selectors */
.drawer-season-select,
.modal-season-select {
  background: #222;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 14px;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.drawer-season-select:hover,
.modal-season-select:hover {
  border-color: #fff;
}
.modal-episodes-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   SCREEN 1: WHO'S WATCHING? (PROFILE PICKER)
   ========================================================================== */
#screen-profiles {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 30px 20px;
  background: radial-gradient(circle at center, #222222 0%, #141414 70%, #0a0a0a 100%);
  text-align: center;
}
#screen-profiles.active {
  display: flex !important;
}

.profiles-header {
  position: absolute;
  top: 28px;
  left: 36px;
}

.profiles-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.profiles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 36px;
}

.profiles-title,
.manage-profiles-btn {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 125px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, filter 0.35s ease;
}

.profile-avatar-wrap {
  width: 115px;
  height: 115px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 3px solid transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  background-color: #262626;
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease;
}

.profile-card:hover .profile-avatar-wrap,
.profile-card:focus-visible .profile-avatar-wrap {
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.45);
  transform: translateY(-4px);
}

.profile-card:hover .profile-avatar-wrap img {
  transform: scale(1.08);
}

.profile-name {
  margin-top: 14px;
  font-size: 1.15rem;
  color: var(--text-gray);
  font-weight: 400;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.profile-card:hover .profile-name {
  color: var(--text-white);
  font-weight: 500;
}

/* Screen 1 Click Animation */
.profile-card.selected {
  transform: scale(1.18) translateY(-4px);
  z-index: 20;
}
.profile-card.selected .profile-avatar-wrap {
  border-color: #ffffff;
  box-shadow: 0 0 40px rgba(229, 9, 20, 0.9), 0 0 15px #ffffff;
}
.profile-card.selected .profile-name {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

.profile-card.dimmed {
  opacity: 0;
  transform: scale(0.82);
  filter: blur(4px);
  pointer-events: none;
}

#screen-profiles.launching .profiles-title,
#screen-profiles.launching .manage-profiles-btn {
  opacity: 0;
  transform: translateY(-12px);
}

#screen-profiles.fade-dissolve {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

#screen-browse.screen.active {
  animation: netflixBrowseFadeIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes netflixBrowseFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


.profile-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.manage-profiles-btn {
  margin-top: 10px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--text-muted);
  padding: 10px 26px;
  font-size: 0.95rem;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.manage-profiles-btn:hover {
  color: var(--text-white);
  border-color: var(--text-white);
}

/* ==========================================================================
   SCREEN 2: NETFLIX BROWSE & HOME PAGE
   ========================================================================== */
#screen-browse {
  display: none;
  background-color: var(--bg-black);
  min-height: 100vh;
}
#screen-browse.active {
  display: flex !important;
}

/* Left Thin Sidebar (TV/Netflix app style) */
.browse-sidebar {
  width: var(--sidebar-width);
  background: rgba(18, 18, 18, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.sidebar-logo {
  margin-bottom: 32px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 100%;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.sidebar-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.sidebar-item:hover,
.sidebar-item.active {
  color: var(--text-white);
}

.sidebar-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background-color: var(--netflix-red);
  border-radius: 0 4px 4px 0;
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.sidebar-avatar:hover {
  transform: scale(1.1);
}

/* Browse Main Viewport */
.browse-main {
  flex: 1;
  min-width: 0;
  max-width: calc(100vw - var(--sidebar-width));
  width: calc(100vw - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-black);
  position: relative;
  overflow-x: hidden;
}

/* Mobile top navigation bar */
.mobile-top-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  backdrop-filter: blur(8px);
}

/* Hero Section (Sleek & Proportional) */
/* Hero Section (Netflix Cinematic Standard) */
.browse-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 40px 50px 40px;
  overflow: hidden;
  background-color: #141414;
}

.hero-background-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-main-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 26%;
  filter: brightness(0.96) contrast(1.05);
  display: block;
}

.hero-vignette {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, 
      rgba(20, 20, 20, 0.94) 0%, 
      rgba(20, 20, 20, 0.78) 32%, 
      rgba(20, 20, 20, 0.2) 62%, 
      rgba(20, 20, 20, 0.02) 100%
    ),
    linear-gradient(0deg, 
      #141414 0%, 
      rgba(20, 20, 20, 0.6) 16%, 
      transparent 38%
    ),
    linear-gradient(180deg,
      rgba(20, 20, 20, 0.5) 0%,
      transparent 20%
    );
  z-index: 2;
  pointer-events: none;
}

.hero-inner-container {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.hero-content {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.series-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.n-series-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #e5e5e5;
  text-transform: uppercase;
}

.n-series-tag .red-n {
  color: var(--netflix-red);
  font-size: 1.2rem;
  font-weight: 900;
}

.hero-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,0.8);
  margin: 2px 0;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}

.meta-match {
  color: #46d369;
}

.meta-rating {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1px 5px;
  font-size: 0.74rem;
  border-radius: 2px;
}

.meta-seasons {
  color: var(--text-gray);
}

.meta-badge-hd {
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 0.62rem;
  padding: 1px 4px;
  border-radius: 2px;
}

.hero-description {
  font-size: 0.92rem;
  line-height: 1.48;
  color: #dedede;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.btn-netflix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-netflix svg {
  width: 22px;
  height: 22px;
}

.btn-play-hero {
  background-color: #ffffff;
  color: #000000;
}
.btn-play-hero:hover {
  background-color: rgba(255, 255, 255, 0.75);
  transform: scale(1.03);
}

.btn-info-hero {
  background-color: rgba(109, 109, 110, 0.7);
  color: #ffffff;
  backdrop-filter: blur(4px);
}
.btn-info-hero:hover {
  background-color: rgba(109, 109, 110, 0.45);
  transform: scale(1.03);
}

/* Vinyl / Nostalgic polaroid feature detail on right */
.hero-right-feature {
  position: absolute;
  right: 60px;
  bottom: 60px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(20, 20, 20, 0.65);
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hero-right-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.3);
}

.vinyl-disc {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 10%, #111 30%, #333 35%, #111 50%, #222 70%, #000 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
  animation: spinSlow 8s linear infinite;
}
.vinyl-center-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--netflix-red);
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.feature-info {
  display: flex;
  flex-direction: column;
}

.feature-tag {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--netflix-red);
  font-weight: 700;
  text-transform: uppercase;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

/* ==========================================================================
   CAROUSEL ROWS (Sleek 16:9 ratio & authentic Netflix scale)
   ========================================================================== */
.browse-content-rows {
  position: relative;
  z-index: 10;
  margin-top: -16px;
  padding: 0 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.row-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.row-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #e5e5e5;
  letter-spacing: -0.2px;
}

.row-see-all {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}
.row-see-all:hover {
  color: #fff;
}

/* Row Carousel Slider */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 4px 18px;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Slider Arrow Buttons */
.carousel-arrow {
  position: absolute;
  top: 0;
  bottom: 18px;
  width: 40px;
  background: rgba(20, 20, 20, 0.7);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(4px);
}

.carousel-arrow svg {
  width: 22px;
  height: 22px;
}

.carousel-arrow.arrow-left {
  left: -40px;
  border-radius: 4px 0 0 4px;
}

.carousel-arrow.arrow-right {
  right: -40px;
  border-radius: 0 4px 4px 0;
}

.carousel-wrapper:hover .carousel-arrow {
  opacity: 1;
}
.carousel-arrow:hover {
  background: rgba(20, 20, 20, 0.95);
  color: var(--netflix-red);
}

/* Poster Cards (Refined 16:9 Widescreen) */
.poster-card {
  flex: 0 0 205px;
  width: 205px;
  height: 118px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-color: var(--bg-card);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

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

/* Red "G" badge on top-left of each card */
.card-n-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 8px 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 75%, rgba(0,0,0,0.98) 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.card-subtitle {
  font-size: 0.65rem;
  color: var(--text-gray);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-play-hover-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 4;
}

.card-play-hover-icon svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.poster-card:hover {
  transform: scale(1.06) translateY(-3px);
  z-index: 10;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.85), 0 0 10px rgba(229, 9, 20, 0.3);
}

.poster-card:hover .card-play-hover-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

/* ==========================================================================
   POLAROID CAMERA ROLL CARDS (NORMAL SIZES / UN-CROPPED PROPORTIONS)
   ========================================================================== */
.polaroid-card {
  flex: 0 0 150px;
  width: 150px;
  background: #ffffff;
  padding: 6px 6px 18px 6px;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  user-select: none;
}

.polaroid-photo-frame {
  width: 100%;
  height: 160px;
  background: #111111;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid-photo-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Normal size & proportions, no stretching or weird crop! */
  transition: transform 0.3s ease;
}

.polaroid-caption {
  margin-top: 6px;
  color: #111111;
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.polaroid-note {
  color: #666666;
  font-size: 0.62rem;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.polaroid-card:hover {
  transform: translateY(-6px) rotate(-1.5deg) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.95), 0 0 12px rgba(255, 255, 255, 0.35);
  z-index: 10;
}

.polaroid-card:hover .polaroid-photo-frame img {
  transform: scale(1.06);
}

/* ==========================================================================
   FLOATING MUSIC PLAYER WIDGET
   ========================================================================== */
.music-pill-widget {
  position: fixed;
  top: 18px;
  right: 28px;
  z-index: 200;
  background: rgba(20, 20, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 14px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
  transition: all 0.25s ease;
}

.music-pill-widget:hover {
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.35);
}

.music-eq-anim {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.music-eq-bar {
  width: 3px;
  background-color: var(--netflix-red);
  border-radius: 1px;
  animation: eqBounce 1s ease-in-out infinite alternate;
}
.music-eq-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.music-eq-bar:nth-child(2) { height: 14px; animation-delay: 0.35s; }
.music-eq-bar:nth-child(3) { height: 9px; animation-delay: 0.2s; }
.music-eq-bar:nth-child(4) { height: 12px; animation-delay: 0.45s; }

.music-eq-anim.paused .music-eq-bar {
  animation-play-state: paused;
  height: 4px;
}

@keyframes eqBounce {
  0% { height: 4px; }
  100% { height: 14px; }
}

.music-pill-info {
  display: flex;
  flex-direction: column;
  max-width: 170px;
}

.music-pill-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-pill-artist {
  font-size: 0.64rem;
  color: var(--text-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-btn-icon {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.2s ease;
}

.music-btn-icon:hover {
  color: var(--netflix-red);
  transform: scale(1.15);
}

.music-btn-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Realistic Footer */
.browse-footer {
  margin-top: auto;
  padding: 60px 60px 40px;
  max-width: 980px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-social-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-social-row svg {
  width: 20px;
  height: 20px;
  fill: var(--text-gray);
  cursor: pointer;
}
.footer-social-row svg:hover {
  fill: #fff;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover {
  text-decoration: underline;
  color: #fff;
}

.service-code-btn {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  margin-bottom: 20px;
}
.service-code-btn:hover {
  color: #fff;
  border-color: #fff;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #555;
}

/* ==========================================================================
   SCREEN 3: CINEMATIC EPISODE PLAYER
   ========================================================================== */
#screen-player {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 1000;
  overflow: hidden;
  cursor: default;
}
#screen-player.active {
  display: block !important;
}

#screen-player.user-idle {
  cursor: none;
}
#screen-player.user-idle .player-overlay-top,
#screen-player.user-idle .player-overlay-bottom {
  opacity: 0;
  pointer-events: none;
}

/* Player Media Canvas */
.player-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

#player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#player-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #0c0c0c;
  overflow: hidden;
}

.player-image-backdrop {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(45px) brightness(0.35);
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

#player-image {
  position: relative;
  z-index: 2;
  max-width: 82vw;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain; /* NORMAL SIZE & NATURAL PROPORTIONS! */
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95), 0 0 24px rgba(0, 0, 0, 0.7);
  animation: subtleBreathe 10s ease-in-out infinite alternate;
}

@keyframes subtleBreathe {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.02);
  }
}

/* Player Overlays (Header & Controls) */
.player-overlay-top,
.player-overlay-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

.player-overlay-top {
  top: 0;
  padding: 30px 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-player-back {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.btn-player-back:hover {
  background-color: rgba(255,255,255,0.15);
}
.btn-player-back svg {
  width: 28px;
  height: 28px;
}

.player-title-info {
  display: flex;
  flex-direction: column;
}

.player-episode-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.player-show-name {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-top: 2px;
}

/* Bottom Controls */
.player-overlay-bottom {
  bottom: 0;
  padding: 20px 40px 30px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 65%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Netflix Scrub Bar */
.scrub-container {
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.scrub-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  position: relative;
  transition: height 0.15s ease;
}

.scrub-container:hover .scrub-track {
  height: 7px;
}

.scrub-buffer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.scrub-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--netflix-red);
  border-radius: 2px;
}

.scrub-handle {
  position: absolute;
  top: 50%;
  right: -7px;
  transform: translateY(-50%) scale(0);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--netflix-red);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
  transition: transform 0.15s ease;
}

.scrub-container:hover .scrub-handle {
  transform: translateY(-50%) scale(1);
}

/* Control Buttons Row */
.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-player-ctrl {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: transform 0.15s ease, color 0.15s ease;
}

.btn-player-ctrl svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-player-ctrl:hover {
  transform: scale(1.15);
  color: var(--netflix-red);
}

.btn-player-text-ctrl {
  background: none;
  border: none;
  color: #e5e5e5;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-player-text-ctrl svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.btn-player-text-ctrl:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.player-time-display {
  font-size: 0.95rem;
  color: var(--text-gray);
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
}

/* Big center play icon indicator animation */
.center-action-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 30;
}
.center-action-indicator svg {
  width: 38px;
  height: 38px;
  fill: #ffffff;
}
.center-action-indicator.animate {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* ==========================================================================
   MODALS: EPISODES DRAWER & MORE INFO
   ========================================================================== */

/* Episodes Quick-Selector Drawer (In Player) */
.episodes-drawer {
  position: absolute;
  bottom: 90px;
  right: 40px;
  width: 360px;
  max-height: 480px;
  background: var(--bg-glass-heavy);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  z-index: 50;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.episodes-drawer.open {
  display: flex;
  animation: slideUpFade 0.25s ease;
}

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

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-drawer-close {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 1.2rem;
}
.btn-drawer-close:hover {
  color: #fff;
}

.drawer-list {
  padding: 8px 0;
  overflow-y: auto;
  max-height: 400px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.drawer-item:hover,
.drawer-item.active {
  background-color: rgba(255, 255, 255, 0.12);
}

.drawer-thumb {
  width: 70px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
}

.drawer-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.drawer-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.drawer-item-ep {
  font-size: 0.72rem;
  color: var(--text-gray);
}

/* Audio & Subtitles Dialog */
.audio-subtitles-dialog {
  position: absolute;
  bottom: 90px;
  right: 140px;
  width: 320px;
  background: var(--bg-glass-heavy);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  z-index: 50;
  display: none;
  padding: 20px;
}

.audio-subtitles-dialog.open {
  display: block;
  animation: slideUpFade 0.25s ease;
}

.dialog-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.dialog-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-gray);
  transition: color 0.15s ease;
}
.dialog-option:hover,
.dialog-option.selected {
  color: #ffffff;
  font-weight: 600;
}
.dialog-option.selected::after {
  content: "✓";
  color: var(--netflix-red);
  font-weight: 900;
}

/* Next Episode Auto-prompt overlay */
.next-episode-card {
  position: absolute;
  bottom: 110px;
  right: 40px;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  display: none;
  align-items: center;
  gap: 16px;
  z-index: 60;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.8);
}

.next-episode-card.show {
  display: flex;
  animation: slideUpFade 0.3s ease;
}

.next-thumb {
  width: 90px;
  height: 55px;
  border-radius: 4px;
  object-fit: cover;
}

.next-info {
  display: flex;
  flex-direction: column;
}
.next-badge {
  font-size: 0.72rem;
  color: var(--netflix-red);
  font-weight: 700;
  text-transform: uppercase;
}
.next-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.next-timer {
  font-size: 0.78rem;
  color: var(--text-gray);
}

.btn-play-next-now {
  background: #fff;
  color: #000;
  border: none;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 4px;
  cursor: pointer;
}
.btn-play-next-now:hover {
  background: rgba(255,255,255,0.8);
}

/* More Info Modal (Screen 2) */
.info-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 1500;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 36px 16px 60px;
  backdrop-filter: blur(8px);
  -webkit-overflow-scrolling: touch;
}

.info-modal-backdrop.open {
  display: block;
}

.info-modal-box {
  background: #181818;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
  animation: modalZoomIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-hero {
  position: relative;
  height: 340px;
  width: 100%;
  background-color: #111;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.modal-hero-vignette {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, #181818 0%, rgba(24, 24, 24, 0.3) 55%, rgba(0,0,0,0.65) 100%);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  z-index: 25;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.modal-hero-title-wrap {
  position: absolute;
  bottom: 24px;
  left: 36px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-body {
  padding: 24px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.modal-meta-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.modal-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #e5e5e5;
}

.modal-details-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-gray);
}
.modal-details-sidebar span strong {
  color: #fff;
}

.modal-episodes-heading {
  font-size: 1.3rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}

.modal-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-ep-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  background-color: rgba(255,255,255,0.03);
  transition: background-color 0.2s ease;
}
.modal-ep-item:hover {
  background-color: rgba(255,255,255,0.1);
}

.modal-ep-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px;
  text-align: center;
}

.modal-ep-thumb {
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  object-fit: cover;
}

.modal-ep-text {
  flex: 1;
}
.modal-ep-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}
.modal-ep-desc {
  font-size: 0.82rem;
  color: var(--text-gray);
  margin-top: 4px;
  line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE DESIGN (PHONE, TABLET, TV)
   ========================================================================== */
@media (max-width: 900px) {
  :root {
    --sidebar-width: 0px;
  }

  .browse-sidebar {
    display: none;
  }

  .browse-main {
    margin-left: 0;
  }

  .mobile-top-nav {
    display: flex;
  }

  .browse-hero {
    min-height: 60vh;
    padding: 30px 20px 20px;
  }

  .hero-right-feature {
    display: none;
  }

  .browse-content-rows {
    padding: 0 20px 40px;
    margin-top: -10px;
  }

  .poster-card {
    flex: 0 0 160px;
    min-width: 150px;
  }

  .carousel-arrow {
    display: none;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-meta-split {
    grid-template-columns: 1fr;
  }

  .player-overlay-top,
  .player-overlay-bottom {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .profiles-grid {
    gap: 18px;
  }
  .profile-card {
    width: 110px;
  }
  .profile-avatar-wrap {
    width: 105px;
    height: 105px;
  }
  .profile-name {
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }
  .btn-netflix {
    padding: 9px 18px;
    font-size: 0.95rem;
  }

  .player-controls-row {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ==========================================================================
   NETFLIX FINALE UNLOCKED POPUP MODAL
   ========================================================================== */
.finale-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.finale-popup-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.finale-popup-card {
  position: relative;
  background: linear-gradient(170deg, #1f1418 0%, #161616 45%, #0f0f0f 100%);
  border: 1.5px solid rgba(229, 9, 20, 0.4);
  border-radius: 28px;
  max-width: 520px;
  width: 100%;
  padding: 44px 36px 36px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(229, 9, 20, 0.3), 0 10px 40px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.finale-popup-backdrop.open .finale-popup-card {
  transform: translateY(0) scale(1);
}

.finale-popup-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 200px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.35) 0%, rgba(229, 9, 20, 0) 70%);
  pointer-events: none;
}

.finale-popup-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
}

.finale-popup-close:hover {
  background: rgba(229, 9, 20, 0.8);
  border-color: #e50914;
  transform: rotate(90deg) scale(1.1);
}

.finale-popup-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb4be;
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid rgba(229, 9, 20, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.finale-popup-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px rgba(225, 29, 72, 0.6));
  animation: pulse 2s infinite ease-in-out;
}

.finale-popup-title {
  font-family: 'Bebas Neue', var(--font-primary);
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.15;
}

.finale-popup-lead {
  font-size: 1.05rem;
  color: #e5e7eb;
  line-height: 1.6;
  margin-bottom: 16px;
}

.finale-popup-quote {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
  border-left: 3px solid #f43f5e;
  padding: 10px 16px;
  border-radius: 8px;
  margin: 16px 0 18px;
  text-align: center;
}

.finale-popup-desc {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.55;
  margin-bottom: 26px;
}

.finale-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-goto-finale {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #e50914 0%, #be123c 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-goto-finale:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(229, 9, 20, 0.6);
  filter: brightness(1.1);
}

.btn-popup-stay {
  width: 100%;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d1d5db;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-popup-stay:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

@media (max-width: 600px) {
  .finale-popup-card {
    padding: 34px 22px 26px;
  }
  .finale-popup-title {
    font-size: 2.1rem;
  }
  .btn-goto-finale {
    padding: 14px 20px;
    font-size: 1rem;
  }
}
