/* ============================================
   DropMovies — Global Stylesheet
   Modern, minimal dark theme
   ============================================ */

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

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a26;
  --bg-glass: rgba(18, 18, 26, 0.85);
  --surface: #1e1e2e;
  --border: rgba(255, 255, 255, 0.06);
  --text: #e4e4ed;
  --text-muted: #8888a0;
  --text-dim: #555568;
  --accent: #7c5cfc;
  --accent-light: #9b82fc;
  --accent-glow: rgba(124, 92, 252, 0.25);
  --green: #44d690;
  --yellow: #fbbf24;
  --red: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
select { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }

.hidden { display: none !important; }
.page { min-height: 100vh; }

/* === LOGIN SCREEN === */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(20px);
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid rgba(124, 92, 252, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 92, 252, 0.15);
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.login-logo {
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.login-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.login-card .input-group {
  margin-bottom: 16px;
}

.login-card input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--text);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-align: center;
  outline: none;
  transition: all var(--transition);
}

.login-card input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.login-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 16px;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Horror nav tag */
.nav-horror-tag {
  color: #ff5555 !important;
  text-shadow: 0 0 10px rgba(255, 85, 85, 0.4);
}
.nav-horror-tag:hover {
  background: rgba(255, 85, 85, 0.15) !important;
}

/* === NAVBAR === */
/* === NAVBAR (Liquid Glass) === */
.navbar {
  position: fixed;
  top: 12px; left: 24px; right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  height: 64px;
  background: rgba(18, 18, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all var(--transition);
}

.navbar.scrolled {
  top: 8px;
  background: rgba(12, 12, 18, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 0 30px rgba(124, 92, 252, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(124, 92, 252, 0.4));
}

.login-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.accent { color: var(--accent-light); }

/* === SEARCH BAR (Liquid Glass Bubble) === */
.search-box {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition);
}

#searchInput {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 46px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 40px;
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12), inset 0 -1px 1px rgba(0, 0, 0, 0.4);
  transition: all var(--transition);
}

#searchInput::placeholder { color: var(--text-dim); }

#searchInput:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

#searchInput:focus {
  background: rgba(26, 26, 38, 0.95);
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(124, 92, 252, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

#searchInput:focus + .search-icon {
  color: var(--accent-light);
}

/* Shortcut badge / */
.search-shortcut-badge {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: opacity var(--transition);
}

#searchInput:focus ~ .search-shortcut-badge {
  opacity: 0;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  background: rgba(18, 18, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  max-height: 420px;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(124, 92, 252, 0.15);
  display: none;
  z-index: 100;
}

.search-results.active { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition);
}

.search-result-item:hover { background: rgba(124, 92, 252, 0.15); }

.search-result-item img {
  width: 40px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.search-result-info h4 {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-result-rating {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yellow);
}

/* === NAV LINKS (Liquid Glass Bubble Container) === */
.nav-links {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 40px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.nav-link {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 40px;
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn svg { width: 22px; height: 22px; }

/* === HERO === */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: 0 40px 60px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transition: opacity 1s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(10, 10, 15, 0.85) 30%,
    rgba(10, 10, 15, 0.4) 60%,
    rgba(10, 10, 15, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  animation: fadeSlideUp 0.8s ease forwards;
}

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

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(124, 92, 252, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-overview {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-meta .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--yellow);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 40px;
  transition: all var(--transition);
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-sm { padding: 8px 20px; font-size: 0.82rem; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* === ROW SECTIONS === */
.main-content {
  position: relative;
  z-index: 2;
  padding: 0 40px 40px;
  margin-top: -20px;
}

.row-section {
  margin-bottom: 48px;
}

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

.row-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.see-all-btn {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-light);
  transition: color var(--transition);
}
.see-all-btn:hover { color: var(--accent); }

/* Row Slider */
.row-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.row-slider::-webkit-scrollbar { display: none; }

/* === MOVIE CARD === */
.movie-card {
  flex-shrink: 0;
  width: 180px;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition);
}

.movie-card:hover { transform: translateY(-8px); }

.card-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

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

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

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  transition: opacity var(--transition);
}

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

.card-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform var(--transition);
}
.card-play-btn:hover { transform: scale(1.1); }
.card-play-btn svg { width: 18px; height: 18px; fill: #fff; }

.card-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-info {
  padding: 10px 2px 0;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.card-year {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* === CATEGORY PAGE === */
.category-page-inner {
  padding: 100px 40px 40px;
}

.category-header {
  margin-bottom: 32px;
}

.category-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.category-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* === BROWSE PAGE === */
.browse-page-inner {
  padding: 100px 40px 40px;
}

.browse-header {
  margin-bottom: 28px;
}

.browse-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.browse-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 150px;
}

.filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filter-select-wrap {
  position: relative;
}

.filter-select {
  width: 100%;
  height: 40px;
  padding: 0 32px 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.filter-select option {
  background: var(--bg-elevated);
  color: var(--text);
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding-bottom: 1px;
}

/* Active Filters (chips) */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(124, 92, 252, 0.12);
  border: 1px solid rgba(124, 92, 252, 0.25);
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-light);
  animation: fadeSlideUp 0.3s ease;
}

.filter-chip .chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.65rem;
  cursor: pointer;
  transition: background var(--transition);
}

.filter-chip .chip-remove:hover {
  background: rgba(255, 255, 255, 0.2);
}

.browse-results-info {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* === MOVIE GRID (shared) === */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px;
}

.movie-grid .movie-card {
  width: 100%;
}

.load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow-y: auto;
}

.modal-overlay.show {
  opacity: 1;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.show .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text);
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.15); }

.modal-backdrop-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

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

.modal-backdrop-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.modal-body {
  display: flex;
  gap: 28px;
  padding: 0 32px 28px;
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.modal-poster-wrap {
  flex-shrink: 0;
}

.modal-poster {
  width: 180px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-info {
  flex: 1;
  min-width: 0;
  padding-top: 40px;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.modal-meta .rating {
  color: var(--yellow);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-meta .genre-tag {
  padding: 3px 10px;
  background: var(--surface);
  border-radius: 40px;
  font-size: 0.75rem;
}

.modal-overview {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.modal-details .detail-label { color: var(--text-muted); font-weight: 500; }
.modal-details .detail-value { color: var(--text); }

.modal-actions {
  display: flex;
  gap: 12px;
}

/* Similar */
.modal-similar {
  padding: 20px 32px 32px;
  border-top: 1px solid var(--border);
}

.similar-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.similar-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.similar-row::-webkit-scrollbar { display: none; }
.similar-row .movie-card { width: 140px; }

/* === PLAYER PAGE === */
.player-page {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #000;
  display: flex;
  flex-direction: column;
}

.player-topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.player-movie-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.player-wrapper {
  flex: 1;
  display: flex;
}

.player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo { font-size: 1.1rem; }

.footer-text {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--text); }

/* === LOADING SKELETON === */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--bg-elevated) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  flex-shrink: 0;
  width: 180px;
}

.skeleton-poster {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
}

.skeleton-line {
  height: 12px;
  margin-top: 10px;
  border-radius: 4px;
}

.skeleton-line.short { width: 60%; }

/* Grid skeletons */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px;
}

.skeleton-grid .skeleton-card { width: 100%; }

/* === BACK BUTTON === */
.back-btn {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-light);
  transition: color var(--transition);
}
.back-btn:hover { color: var(--text); }

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* === TYPE TOGGLE (Movies / TV Shows) === */
.type-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.type-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 40px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.type-btn:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.type-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* === CARD MEDIA BADGE === */
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 8px;
  background: rgba(124, 92, 252, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* === LOGO STYLING === */
.hero-logo-wrapper {
  margin-bottom: 16px;
  max-width: 420px;
}

.hero-logo-img {
  max-height: 120px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.9)) drop-shadow(0 0 20px rgba(124, 92, 252, 0.35));
  animation: floatLogo 4s ease-in-out infinite alternate;
}

.modal-logo-wrapper {
  margin-bottom: 12px;
  max-width: 360px;
}

.modal-title-logo {
  max-height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.9)) drop-shadow(0 0 20px rgba(124, 92, 252, 0.4));
  animation: floatLogo 4s ease-in-out infinite alternate;
}

.player-title-logo {
  max-height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

@keyframes floatLogo {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

/* === MODAL SEASONS & EPISODES === */
.modal-seasons {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.seasons-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.season-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.season-tabs::-webkit-scrollbar { display: none; }

.season-tab {
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 40px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all var(--transition);
}

.season-tab:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.season-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.episodes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Rich Episode Card */
.episode-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.episode-card:hover {
  background: var(--bg-elevated);
  border-color: rgba(124, 92, 252, 0.4);
  transform: translateX(4px);
}

.episode-card.active {
  background: rgba(124, 92, 252, 0.15);
  border-color: var(--accent);
}

.ep-still-wrap {
  position: relative;
  width: 140px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  flex-shrink: 0;
}

.ep-still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.episode-card:hover .ep-still {
  transform: scale(1.05);
}

.ep-number {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
}

.ep-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  font-size: 1.2rem;
  color: #fff;
  transition: opacity var(--transition);
}

.episode-card:hover .ep-play-overlay {
  opacity: 1;
}

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

.ep-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.ep-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-meta {
  font-size: 0.75rem;
  color: var(--accent-light);
  font-weight: 500;
  white-space: nowrap;
}

.ep-overview {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === PLAYER SERVER SWITCHER === */
.player-servers-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.server-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
}

.player-server-select {
  height: 32px;
  padding: 0 28px 0 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color var(--transition);
}

/* === PLAYER EPISODE NAVIGATION === */
.player-ep-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.player-ep-info {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .filter-bar {
    gap: 12px;
  }
  .filter-group {
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .navbar { padding: 0 16px; gap: 12px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); }
  .mobile-menu-btn { display: flex; }
  .search-box { max-width: 100%; }
  .hero { min-height: 70vh; padding: 0 20px 40px; }
  .hero-title { font-size: 2rem; }
  .main-content { padding: 0 20px 20px; }
  .movie-card { width: 140px; }
  .category-page-inner,
  .browse-page-inner { padding: 80px 16px 20px; }
  .category-title,
  .browse-title { font-size: 1.6rem; }
  .filter-bar { padding: 16px; gap: 12px; }
  .filter-group { min-width: 100%; }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
  .modal-body { flex-direction: column; gap: 16px; padding: 0 20px 20px; }
  .modal-poster { width: 120px; }
  .modal-info { padding-top: 0; }
  .modal-title { font-size: 1.3rem; }
  .modal-similar { padding: 16px 20px 24px; }
  .modal-seasons { padding: 16px 20px; }
  .episodes-grid { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); }
}

