/* ==========================================================================
   SOUNDWAVE - AUTHENTIC NETFLIX CINEMATIC MUSIC PLAYER
   Iconic Top 10 Ranks • Dynamic Hover Cards • Live Charts • Pure Audio
   ========================================================================== */

:root {
  --bg-main: #141414;
  --bg-surface: #181818;
  --bg-card: #202020;
  --bg-card-hover: #262626;
  --accent-color: #E50914;
  --accent-color-dark: #B81D24;
  --accent-gradient: linear-gradient(135deg, #E50914 0%, #B81D24 100%);
  --text-primary: #FFFFFF;
  --text-secondary: #E5E5E5;
  --text-muted: #808080;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --player-dock-height: 82px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --shadow-card: 0 14px 30px rgba(0, 0, 0, 0.85);
  --shadow-dock: 0 -4px 20px rgba(0, 0, 0, 0.85);
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

button,
input[type="range"],
.netflix-card,
.top10-item-wrap,
.dock-left-sec,
.dock-center-sec,
.dock-right-sec {
  touch-action: manipulation;
}

.player-dock-bar,
.sheet-container,
.queue-panel,
.modal-container,
.netflix-brand,
.pwa-install-banner {
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.4;
  overflow-x: hidden;
  height: 100%;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Hide scrollbar on right side for Chrome, Safari, Edge, Opera, Firefox */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Hidden Audio Stream Driver Container (ZERO Video on Screen, fully active in viewport) */
.hidden-audio-container {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  opacity: 0.001;
  pointer-events: none;
  z-index: -999;
  overflow: hidden;
}

.hidden-audio-container iframe,
#audio-stream-driver {
  width: 200px !important;
  height: 200px !important;
  border: none !important;
  pointer-events: none;
}

/* ==========================================================================
   CLEAN MINIMALIST NETFLIX NAVIGATION BAR
   ========================================================================== */
.netflix-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(64px + env(safe-area-inset-top, 0px));
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 0px) 4% 0 4%;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  transition: background-color 0.3s ease;
}

.netflix-nav.scrolled {
  background-color: #141414;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-left {
  display: flex;
  align-items: center;
}

.netflix-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.netflix-logo-text {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--accent-color);
  line-height: 1;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Expandable Netflix Search Bar */
.netflix-search-box {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  transition: all 0.25s ease;
}

.netflix-search-box.open {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.45);
}

.search-toggle-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-svg-icon {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  display: block;
}

.netflix-search-input {
  width: 0;
  opacity: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: width 0.25s ease, opacity 0.2s ease;
}

.netflix-search-box.open .netflix-search-input {
  width: 170px;
  opacity: 1;
  padding-left: 8px;
}

@media (min-width: 600px) {
  .netflix-search-box.open .netflix-search-input {
    width: 240px;
  }
}

.netflix-search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  display: none;
  padding: 2px 4px;
}

.netflix-search-clear.visible {
  display: block;
}

/* ==========================================================================
   HERO BILLBOARD (CLEAN CINEMATIC BANNER)
   ========================================================================== */
.hero-billboard {
  position: relative;
  width: 100%;
  min-height: 52vh;
  display: flex;
  align-items: center;
  padding: calc(95px + env(safe-area-inset-top, 0px)) 4% 44px 4%;
  overflow: hidden;
}

.billboard-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center 25%;
  filter: brightness(0.65);
  transition: background-image 0.5s ease;
  z-index: 1;
}

.billboard-vignette {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(77deg, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.55) 50%, rgba(20, 20, 20, 0) 80%),
    linear-gradient(180deg, rgba(20, 20, 20, 0) 50%, rgba(20, 20, 20, 0.8) 85%, #141414 100%);
  z-index: 2;
}

.billboard-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

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

.n-series-badge {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent-color);
  font-weight: 900;
  line-height: 1;
}

.badge-text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.billboard-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  max-height: 2.3em;
}

.billboard-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
}

.age-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 1px 5px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 2px;
}

.billboard-duration {
  color: var(--text-secondary);
}

.billboard-artist {
  color: var(--text-muted);
}

.billboard-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.9em;
  max-width: 560px;
}

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

.btn-billboard-play {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 22px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-family: inherit;
}

.btn-billboard-play:hover {
  background: rgba(255, 255, 255, 0.8);
}

.btn-billboard-info {
  background: rgba(109, 109, 110, 0.7);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-family: inherit;
}

.btn-billboard-info:hover {
  background: rgba(109, 109, 110, 0.5);
}

/* ==========================================================================
   NETFLIX CONTENT ROWS
   ========================================================================== */
.netflix-content-wrap {
  position: relative;
  z-index: 10;
  margin-top: 24px;
  padding: 0 4% calc(var(--player-dock-height) + var(--safe-bottom) + 40px) 4%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.netflix-row {
  position: relative;
}

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

.row-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #e5e5e5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.row-arrow {
  color: #54b9c5;
  font-size: 18px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}

.row-title:hover .row-arrow {
  opacity: 1;
  transform: translateX(0);
}

.row-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.row-clear-btn {
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.row-clear-btn:hover {
  background: #333333;
  color: var(--accent-color);
}

/* Content Row Sliders (Smooth Native & Touch/Mouse Scrolling) */
.row-slider-container {
  position: relative;
  width: 100%;
}

.row-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 0 18px 0;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.row-slider:active {
  cursor: grabbing;
}

.row-slider::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.slider-arrow {
  display: none !important;
}

/* ==========================================================================
   DYNAMIC MUSIC CARDS & HOVER EFFECTS (NOT BORING!)
   ========================================================================== */
.netflix-card {
  flex: 0 0 170px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.26s ease, border-color 0.26s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .netflix-card {
    flex: 0 0 200px;
  }
}

.netflix-card:hover {
  transform: translateY(-8px) scale(1.06);
  background: var(--bg-card-hover);
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: var(--shadow-card);
  z-index: 40;
}

.netflix-card.active-playing {
  border-color: var(--accent-color);
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.35);
}

.card-art-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111;
  position: relative;
  overflow: hidden;
}

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

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

/* Play button hover pop-up overlay */
.card-hover-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  pointer-events: none;
}

.netflix-card:hover .card-hover-play-badge,
.netflix-card.active-playing .card-hover-play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Card Bottom Info */
.card-info-box {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
}

.card-title-text {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-artist-text {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 2px;
}

/* ==========================================================================
   NETFLIX ICONIC TOP 10 RANKING CARDS
   ========================================================================== */
.top10-item-wrap {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  cursor: pointer;
}

.top10-rank-num {
  font-family: var(--font-display);
  font-size: 115px;
  line-height: 0.8;
  font-weight: 900;
  color: #141414;
  -webkit-text-stroke: 4px #555555;
  user-select: none;
  margin-right: -20px;
  z-index: 1;
  transition: transform 0.25s ease, -webkit-text-stroke-color 0.25s ease;
}

.top10-item-wrap:hover .top10-rank-num {
  transform: scale(1.06) translateX(-4px);
  -webkit-text-stroke-color: #ffffff;
}

.top10-card {
  width: 155px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.26s ease, border-color 0.26s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .top10-card {
    width: 175px;
  }
  .top10-rank-num {
    font-size: 130px;
    margin-right: -24px;
  }
}

.top10-item-wrap:hover .top10-card {
  transform: translateY(-8px) scale(1.06);
  background: var(--bg-card-hover);
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: var(--shadow-card);
}

.top10-card.active-playing {
  border-color: var(--accent-color);
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.35);
}

.top10-item-wrap:hover .card-poster-img {
  transform: scale(1.08);
}

/* ==========================================================================
   SEARCH RESULTS GRID
   ========================================================================== */
.search-results-section {
  padding: calc(85px + env(safe-area-inset-top, 0px)) 4% calc(var(--player-dock-height) + var(--safe-bottom) + 40px) 4%;
}

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

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

.results-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

@media (min-width: 768px) {
  .search-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
}

/* ==========================================================================
   NETFLIX PREVIEW "MORE INFO" MODAL
   ========================================================================== */
.netflix-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.netflix-modal-backdrop.open {
  display: flex;
}

.netflix-modal {
  width: 100%;
  max-width: 640px;
  background: #181818;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  animation: modalPop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalPop {
  0% { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #181818;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-hero {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

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

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

.modal-hero-content {
  position: absolute;
  bottom: 20px;
  left: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.modal-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(42, 42, 42, 0.7);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-circle-btn:hover {
  border-color: #fff;
}

.modal-body {
  padding: 20px 28px 28px 28px;
}

.modal-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.modal-tags-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.modal-overview {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-credit-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.credit-row {
  line-height: 1.4;
}

.credit-label {
  color: var(--text-muted);
}
.credit-val {
  color: var(--text-secondary);
}

/* ==========================================================================
   PERSISTENT BOTTOM MINI-PLAYER DOCK (High-End Spotify / Netflix Style)
   ========================================================================== */
.player-dock-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--player-dock-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(18, 18, 18, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 500;
  box-shadow: var(--shadow-dock);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 20px;
  padding-right: 20px;
}

/* Left: Track Info & Artwork (Click to expand Full Player) */
.dock-left-sec {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 300px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease;
}

.dock-left-sec:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dock-left-sec:hover .dock-expand-hint {
  opacity: 1;
}

.dock-left-sec:hover .dock-track-name {
  color: #ffffff;
  text-decoration: underline;
}

.dock-poster-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

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

.dock-expand-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dock-meta {
  min-width: 0;
  flex: 1;
}

.dock-track-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  line-height: 1.3;
}

.dock-artist-name {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Center: Transport Controls & Scrub Timeline */
.dock-center-sec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 580px;
  padding: 0 16px;
}

.dock-btn-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-dock-action {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-dock-action:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-dock-action.active {
  color: var(--accent-color);
}

.btn-dock-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-dock-play:hover {
  transform: scale(1.06);
  background: #f0f0f0;
}

.btn-dock-play svg {
  display: block;
}

/* Timeline Row */
.dock-timeline-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: 480px;
}

.dock-time-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  text-align: center;
}

.dock-scrub-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.dock-scrub-track:hover {
  height: 6px;
}

.dock-scrub-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-color);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.dock-scrub-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: opacity 0.15s ease;
}

.dock-scrub-track:hover .dock-scrub-thumb {
  opacity: 1;
}

/* Right: Visualizer, Queue & Volume */
.dock-right-sec {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 300px;
  justify-content: flex-end;
}

.dock-canvas-visualizer {
  width: 76px;
  height: 24px;
  display: none;
}

@media (min-width: 768px) {
  .dock-canvas-visualizer {
    display: block;
  }
}

.dock-volume-box {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 860px) {
  .dock-volume-box {
    display: flex;
  }
}

.dock-volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.dock-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ==========================================================================
   CINEMATIC FULL-SCREEN NOW-PLAYING PLAYER (Desktop & Mobile)
   ========================================================================== */
.full-mobile-sheet {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(28px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(20px);
}

.full-mobile-sheet.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sheet-container {
  width: 100%;
  max-width: 420px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: auto;
}

.sheet-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-dismiss-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #e5e5e5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sheet-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.sheet-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color);
}

.sheet-poster-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0 16px 0;
}

.sheet-poster-img {
  width: min(76vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

.sheet-canvas-visualizer {
  width: min(76vw, 320px);
  height: 36px;
  margin-top: 14px;
}

.sheet-track-info {
  margin-bottom: 14px;
  text-align: left;
}

.sheet-track-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 3px;
  word-break: break-word;
  color: #FFFFFF;
}

.sheet-track-artist {
  font-size: 14px;
  color: var(--text-muted);
}

.sheet-scrub-box {
  margin-bottom: 20px;
}

.sheet-scrub-slider {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.sheet-scrub-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.sheet-time-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.sheet-transport-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.sheet-ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.sheet-ctrl-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.sheet-ctrl-btn.active {
  color: var(--accent-color);
}

.sheet-big-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, background 0.15s ease;
}

.sheet-big-play:hover {
  transform: scale(1.06);
  background: #f0f0f0;
}

/* ==========================================================================
   UP NEXT QUEUE DRAWER - Modern Glassmorphism
   ========================================================================== */
.queue-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 92vw;
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-subtle);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.85);
}

.queue-panel.open {
  transform: translateX(0);
}

.queue-header-bar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.queue-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-heading {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.queue-pill-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.queue-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.queue-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease;
}

.queue-clear-btn:hover {
  color: var(--accent-color);
}

.queue-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #e5e5e5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.queue-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.queue-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.queue-card-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.queue-card-item.active {
  background: rgba(229, 9, 20, 0.1);
  border-color: rgba(229, 9, 20, 0.4);
}

.queue-card-item.active .queue-item-title {
  color: var(--accent-color);
}

.queue-item-thumb {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

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

.queue-item-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.queue-item-artist {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.queue-del-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.15s ease;
}

.queue-card-item:hover .queue-del-btn {
  opacity: 1;
}

.queue-del-btn:hover {
  color: #ff4d58;
  background: rgba(255, 77, 88, 0.1);
}

/* ==========================================================================
   MOBILE RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 680px) {
  .netflix-nav {
    height: 54px;
    padding: 0 14px;
  }

  .netflix-logo-letter {
    font-size: 26px;
  }

  .netflix-logo-text {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .netflix-search-box.open .netflix-search-input {
    width: 140px;
    font-size: 12px;
  }

  .hero-billboard {
    min-height: auto;
    padding: 68px 14px 18px 14px;
  }

  .billboard-title {
    font-size: 26px;
  }

  .billboard-desc {
    display: none;
  }

  .billboard-buttons {
    margin-top: 8px;
    gap: 8px;
  }

  .btn-billboard-play, .btn-billboard-info {
    padding: 7px 14px;
    font-size: 13px;
  }

  .netflix-content-wrap {
    margin-top: 10px;
    padding: 0 14px calc(var(--player-dock-height) + var(--safe-bottom) + 30px) 14px;
    gap: 24px;
  }

  .slider-arrow {
    display: none;
  }

  .netflix-card {
    flex: 0 0 135px;
  }

  .top10-card {
    width: 130px;
  }

  .top10-rank-num {
    font-size: 96px;
    margin-right: -16px;
  }

  .modal-details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modal-hero {
    height: 190px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-body {
    padding: 14px 18px 20px 18px;
  }

  .player-dock-bar {
    height: calc(68px + var(--safe-bottom));
    padding-left: 12px;
    padding-right: 12px;
  }

  .dock-left-sec {
    flex: 1;
    max-width: 170px;
  }

  .dock-poster-wrap {
    width: 42px;
    height: 42px;
  }

  .dock-timeline-row {
    display: none;
  }

  .dock-btn-row {
    gap: 10px;
  }

  #dock-shuffle-btn, #dock-repeat-btn {
    display: none;
  }

  .full-mobile-sheet {
    align-items: flex-end;
  }

  .sheet-container {
    max-width: 100%;
    height: 100vh;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 18px calc(24px + var(--safe-bottom)) 18px;
  }
}

/* =========================================================================
   PWA "ADD TO HOME SCREEN" DROP-DOWN NOTIFICATION BANNER
   ========================================================================= */
.pwa-install-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -180%);
  width: calc(100% - 32px);
  max-width: 500px;
  background: rgba(20, 20, 20, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.pwa-install-banner.show {
  transform: translate(-50%, calc(16px + env(safe-area-inset-top, 0px)));
  opacity: 1;
  pointer-events: auto;
}

.pwa-install-banner.closing {
  transform: translate(-50%, -180%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease-in, opacity 0.3s ease;
}

.pwa-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pwa-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.pwa-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.pwa-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.05em;
}

.pwa-subtitle {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  margin: 2px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}

.pwa-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-btn-install {
  background: var(--accent-color, #E50914);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, background-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.pwa-btn-install:hover {
  background: #c10811;
  transform: scale(1.03);
}

.pwa-btn-install:active {
  transform: scale(0.96);
}

.pwa-btn-svg {
  width: 14px;
  height: 14px;
}

.pwa-btn-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pwa-btn-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: scale(1.08);
}

.pwa-ios-instructions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pwaFadeIn 0.3s ease;
}

@keyframes pwaFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .pwa-install-banner {
    width: calc(100% - 20px);
    padding: 10px 14px;
  }
  .pwa-install-banner.show {
    transform: translate(-50%, calc(10px + env(safe-area-inset-top, 0px)));
  }
  .pwa-subtitle {
    max-width: 140px;
  }
  .pwa-btn-install span {
    font-size: 12px;
  }
}

