/* ==========================================================================
   Drameeo Cinema — Component Styles
   Hero, Cards, Carousels, Player, Controls, Modals, Forms
   ========================================================================== */

/* ==========================================================================
   Cinematic Hero Featured Banner
   ========================================================================== */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-6);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
  display: flex;
  align-items: flex-end;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.03);
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide.active .hero-backdrop {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(9, 11, 24, 0.96) 0%,
    rgba(9, 11, 24, 0.82) 40%,
    rgba(9, 11, 24, 0.3) 100%
  ),
  linear-gradient(
    0deg,
    rgba(9, 11, 24, 0.95) 0%,
    rgba(9, 11, 24, 0) 50%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 660px;
  padding: 44px 84px;
}

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

.hero-badge {
  background: rgba(169, 112, 255, 0.18);
  border: 1px solid rgba(169, 112, 255, 0.35);
  color: var(--accent-purple);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-badge.quality {
  background: rgba(80, 185, 245, 0.15);
  border-color: rgba(80, 185, 245, 0.35);
  color: var(--secondary-blue);
}

.hero-badge.year {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text-main);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-synopsis {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

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

/* Primary and Secondary Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-purple), #9050F5);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--accent-purple-glow);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(169, 112, 255, 0.5);
  filter: brightness(1.1);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.pagination-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 50% !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--accent-purple);
  transform: scale(1.08);
}

.btn-icon.active {
  background: var(--accent-purple-dim);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

/* Hero Carousel Navigation Controls */
.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 15, 28, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.hero-nav-arrow:hover {
  background: var(--accent-purple);
  box-shadow: 0 0 16px var(--accent-purple-glow);
}

.hero-nav-arrow.prev { left: 20px; }
.hero-nav-arrow.next { right: 20px; }

.hero-indicators {
  position: absolute;
  bottom: 24px;
  right: 44px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-dot.active {
  width: 24px;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

/* ==========================================================================
   Horizontal Carousels
   ========================================================================== */
.carousel-wrapper {
  position: relative;
  margin-bottom: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

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

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(21, 21, 38, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  opacity: 0;
}

.carousel-wrapper:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 0 16px var(--accent-purple-glow);
}

.carousel-btn.left { left: 6px; }
.carousel-btn.right { right: 6px; }

/* ==========================================================================
   Movie Cards (Grid & Carousel)
   ========================================================================== */
.movie-card {
  flex: 0 0 180px;
  width: 180px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  overflow: hidden;
  transition: all var(--transition-smooth);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.movie-card:hover {
  transform: translateY(-6px);
  background-color: var(--bg-card-hover);
  border-color: rgba(169, 112, 255, 0.4);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(169, 112, 255, 0.15);
}

.poster-box {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background-color: #121224;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 24, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--transition-fast);
  backdrop-filter: blur(3px);
}

.movie-card:hover .card-overlay {
  opacity: 1;
}

.play-action-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--secondary-blue));
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px var(--accent-purple-glow);
  transform: scale(0.85);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.movie-card:hover .play-action-btn {
  transform: scale(1);
}

.play-action-btn:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
  color: #FFFFFF;
}

.card-fav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(18, 18, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(6px);
}

.card-fav-btn svg,
.btn-fav-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
}

.hero-actions .btn-fav-toggle svg {
  width: 20px;
  height: 20px;
}

.card-fav-btn:hover {
  background: var(--color-favourite-bg);
  border-color: var(--color-favourite-border);
  color: var(--color-favourite);
  transform: scale(1.1);
}

.card-fav-btn.active,
.btn-fav-toggle.active {
  background: var(--color-favourite-bg) !important;
  border-color: var(--color-favourite) !important;
  color: var(--color-favourite) !important;
  box-shadow: 0 0 12px var(--color-favourite-glow);
}

.card-fav-btn.active svg,
.btn-fav-toggle.active svg {
  fill: var(--color-favourite) !important;
  stroke: var(--color-favourite) !important;
}

/* Curated Collection Preview Card */
.collection-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.collection-preview-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-3px);
}

/* Card Progress Bar for Continue Watching */
.card-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--secondary-blue));
  box-shadow: 0 0 8px var(--accent-purple);
}

.card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(9, 11, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  color: var(--secondary-blue);
  backdrop-filter: blur(6px);
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #FBBF24;
  font-weight: 600;
}

/* ==========================================================================
   Movie Catalogue Grid
   ========================================================================== */
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}

/* Compact List View */
.catalogue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.movie-list-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.movie-list-item:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(169, 112, 255, 0.4);
  transform: translateX(4px);
}

.list-item-poster {
  width: 50px;
  height: 75px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

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

.list-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.list-item-tags {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Filter and Search Toolbar
   ========================================================================== */
.catalogue-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.filter-pill.active {
  background: var(--accent-purple);
  color: #FFFFFF;
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple-glow);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.select-control {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
}

.select-control:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.view-mode-toggle {
  display: flex;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-btn {
  background: var(--bg-input);
  border: none;
  padding: 8px 10px;
  color: var(--text-muted);
  cursor: pointer;
}

.view-btn.active {
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
}

/* ==========================================================================
   Full Cinema Video Player
   ========================================================================== */
.player-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-ui-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.85) 100%);
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 50;
  pointer-events: none;
}

.player-ui-overlay * {
  pointer-events: auto;
}

.player-ui-overlay.idle {
  opacity: 0;
  cursor: none;
}

.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-title-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-movie-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}

.player-movie-badge {
  background: rgba(169, 112, 255, 0.25);
  border: 1px solid rgba(169, 112, 255, 0.4);
  color: var(--accent-purple);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.player-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(169, 112, 255, 0.8);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 30px var(--accent-purple-glow);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.player-center-play.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.player-controls-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Player Scrub Bar */
.scrub-container {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: height var(--transition-fast);
}

.scrub-container:hover {
  height: 12px;
}

.scrub-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--secondary-blue));
  border-radius: 4px;
  width: 0%;
  box-shadow: 0 0 10px var(--accent-purple);
}

.scrub-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #FFFFFF;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  display: none;
}

.scrub-container:hover .scrub-handle {
  display: block;
}

.player-buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-left-group, .player-right-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.player-btn:hover {
  color: var(--accent-purple);
  transform: scale(1.12);
}

.player-time-display {
  font-size: 13px;
  color: #D1D0DE;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.volume-slider-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-range {
  width: 70px;
  accent-color: var(--accent-purple);
  cursor: pointer;
}

/* Resume Playback Prompt Banner */
.resume-modal {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(21, 21, 38, 0.95);
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(169, 112, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 60;
  backdrop-filter: blur(16px);
  animation: slide-down 0.4s ease;
}

@keyframes slide-down {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   Forms & Authentication
   ========================================================================== */
.auth-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top center, #1A153A 0%, var(--bg-main) 70%);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 46px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 16px;
  color: var(--text-main);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 16px var(--accent-purple-glow);
  background: var(--bg-card-hover);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent-purple);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Toasts & Alerts
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-purple);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  color: var(--text-main);
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.3s ease;
}

.toast.success { border-left-color: #10B981; }
.toast.error { border-left-color: #EF4444; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Interactive Movie Rating Stars
   ========================================================================== */
.rating-stars-interactive {
  display: flex;
  gap: 4px;
  cursor: pointer;
}

.star-btn {
  font-size: 20px;
  color: #4B4A60;
  transition: transform 0.15s ease, color 0.15s ease;
  user-select: none;
  cursor: pointer;
  display: inline-block;
}

.star-btn.active {
  color: #FBBF24;
}

.star-btn:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   Player Buffering Spinner & Subtitles Overlay Controls
   ========================================================================== */

.player-buffer-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  pointer-events: none;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-buffer-spinner.show {
  display: flex !important;
}

.spinner-ring {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: vibePlayerSpin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(169, 112, 255, 0.4);
}

@keyframes vibePlayerSpin {
  to { transform: rotate(360deg); }
}

/* Subtitles Popover Menu */
.subtitles-menu {
  position: absolute;
  bottom: 48px;
  right: -20px;
  background: rgba(18, 18, 32, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 8px 0;
  min-width: 230px;
  max-width: 290px;
  z-index: 60;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
}

.subtitles-menu-title {
  padding: 4px 14px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.subtitles-list {
  max-height: 180px;
  overflow-y: auto;
}

.sub-track-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.sub-track-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.sub-track-option.active {
  color: var(--accent-purple);
  font-weight: 700;
  background: rgba(169, 112, 255, 0.12);
}

.subtitles-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

.sub-auto-search-btn {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-purple);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}

.sub-auto-search-btn:hover {
  background: rgba(169, 112, 255, 0.1);
  color: #FFFFFF;
}

.sub-upload-label {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.sub-upload-label:hover {
  color: #FFFFFF;
}

/* Subtitle Cues Styling */
video::cue {
  background-color: rgba(0, 0, 0, 0.78);
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 3px 8px;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}



