/* ==========================================================================
   LIYU CINEMA - MAIN PORTAL STYLES (css/style.css)
   Commercial Netflix / Apple TV+ UI Architecture
   ========================================================================== */

/* Layout & Containers */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  position: relative;
}

.content-wrapper {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  width: 100%;
}

/* Announcement Ticker */
.announcement-bar {
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.6) 0%, rgba(88, 28, 135, 0.6) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  font-size: 0.85rem;
  color: #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1010;
}
.announcement-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announcement-close {
  color: #94a3b8;
  font-size: 1.1rem;
  padding: 0 4px;
  transition: color var(--transition-fast);
}
.announcement-close:hover {
  color: #fff;
}

/* Header & Glassmorphic Navigation */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: var(--z-header);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}
.site-header.scrolled {
  background: rgba(7, 9, 14, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: #fff;
  user-select: none;
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}
.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}
.brand-title {
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-domain {
  font-size: 0.68rem;
  color: var(--accent-primary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-item a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav-item.active a,
.nav-item a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Search Box */
.search-container {
  position: relative;
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  width: 220px;
  transition: all var(--transition-normal);
}
.search-input-wrapper:focus-within {
  width: 300px;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-focus);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}
.search-input-wrapper input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.88rem;
  margin-left: 8px;
  width: 100%;
}
.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}
.search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* Search Dropdown Results */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1050;
}
.search-dropdown.active {
  display: flex;
}
.search-result-item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition-fast);
}
.search-result-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.search-result-thumb {
  width: 48px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.search-result-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.search-result-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Action Buttons */
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-icon svg {
  width: 18px;
  height: 18px;
}
.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 5px;
}

.btn-vip-upgrade {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--accent-vip-gradient);
  color: #451a03;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-gold-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-vip-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
}

/* ==========================================================================
   Hero Spotlight Section (Netflix Cinema Showcase)
   ========================================================================== */
.hero-spotlight {
  position: relative;
  width: 100%;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
}

.hero-backdrop-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.65);
  transition: opacity 0.8s ease-in-out;
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 75% 30%, transparent 20%, rgba(7, 9, 14, 0.7) 70%, var(--bg-primary) 100%),
              linear-gradient(180deg, rgba(7, 9, 14, 0.3) 0%, rgba(7, 9, 14, 0.85) 75%, var(--bg-primary) 100%),
              linear-gradient(90deg, var(--bg-primary) 0%, rgba(7, 9, 14, 0.8) 45%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-badge-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-pill.badge-4k {
  background: var(--badge-4k-bg);
  border: 1px solid var(--badge-4k-border);
  color: var(--badge-4k-color);
}
.badge-pill.badge-hdr {
  background: var(--badge-hdr-bg);
  border: 1px solid var(--badge-hdr-border);
  color: var(--badge-hdr-color);
}
.badge-pill.badge-score {
  background: var(--badge-score-bg);
  color: var(--badge-score-color);
  font-weight: 800;
}
.badge-pill.badge-type {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.hero-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.hero-synopsis {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-primary-play {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #030712;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}
.btn-primary-play:hover {
  background: #e2e8f0;
  transform: scale(1.03);
}
.btn-primary-play svg {
  width: 20px;
  height: 20px;
  fill: #030712;
}

.btn-secondary-action {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}
.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Carousel Rails (Horizontal Media Rows)
   ========================================================================== */
.carousel-section {
  position: relative;
  margin-bottom: 3.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-indicator {
  width: 4px;
  height: 20px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
}
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.section-view-all {
  font-size: 0.88rem;
  color: var(--accent-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}
.section-view-all:hover {
  color: var(--accent-primary-hover);
}

/* Media Rail Container */
.rail-track-container {
  position: relative;
  overflow: hidden;
}

.rail-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 4px 24px;
  scrollbar-width: none;
}
.rail-track::-webkit-scrollbar {
  display: none;
}

.rail-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(13, 17, 26, 0.85);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  z-index: 10;
  opacity: 0;
  transition: all var(--transition-normal);
  cursor: pointer;
}
.rail-track-container:hover .rail-arrow {
  opacity: 1;
}
.rail-arrow:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}
.rail-arrow.left {
  left: 10px;
}
.rail-arrow.right {
  right: 10px;
}

/* Media Card */
.media-card {
  flex: 0 0 210px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tertiary);
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  user-select: none;
}
@media (max-width: 768px) {
  .media-card {
    flex: 0 0 160px;
  }
}
.media-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(59, 130, 246, 0.25);
}

.card-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.media-card:hover .card-poster {
  transform: scale(1.08);
}

.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 9, 14, 0.95) 100%);
}

.card-badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.card-rating-top {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #34d399;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(52, 211, 153, 0.3);
  z-index: 2;
}

.card-info {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-tags {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.card-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   Filter and Catalog Grid
   ========================================================================== */
.catalog-filter-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 50px;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.filter-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.filter-chip.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}

/* ==========================================================================
   VIP Modal & Commercial Pricing
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: 1rem;
}
.modal-backdrop.active {
  display: flex;
}
.vip-modal-card {
  background: linear-gradient(180deg, #181d2a 0%, #0d111a 100%);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 50px rgba(251, 191, 36, 0.2);
  overflow-y: auto;
  max-height: 90vh;
}
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.vip-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}
.vip-modal-header h2 {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-vip-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vip-modal-header p {
  color: var(--text-secondary);
  margin-top: 6px;
  font-size: 0.95rem;
}

.vip-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.vip-card-plan {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}
.vip-card-plan:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.15);
}
.vip-card-plan.featured {
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.05);
}
.vip-plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent-vip-gradient);
  color: #451a03;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
}
.vip-plan-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.vip-plan-price-wrap {
  margin: 1rem 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.vip-plan-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-gold);
}
.vip-plan-period {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.vip-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.vip-features-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.vip-features-list li::before {
  content: "✓";
  color: var(--accent-gold);
  font-weight: 800;
}
.btn-select-plan {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all var(--transition-fast);
}
.vip-card-plan.featured .btn-select-plan,
.btn-select-plan:hover {
  background: var(--accent-vip-gradient);
  color: #451a03;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand {
  max-width: 320px;
}
.footer-brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}
.footer-links-group {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--accent-primary);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast-message {
  background: rgba(13, 17, 26, 0.95);
  border: 1px solid var(--border-focus);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  animation: slideInRight 0.3s ease-out;
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Hero Rotation Dot Indicators
   ═══════════════════════════════════════════════════════════════════════ */
.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: width var(--transition-normal), background var(--transition-normal);
  padding: 0;
}
.hero-dot.active {
  width: 28px;
  background: #fff;
}
.hero-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════════
   Mobile Hamburger Button
   ═══════════════════════════════════════════════════════════════════════ */
.btn-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}
[aria-expanded="true"] .btn-hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
[aria-expanded="true"] .btn-hamburger-bar:nth-child(2) {
  opacity: 0;
}
[aria-expanded="true"] .btn-hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════════════
   Mobile Nav Overlay Panel
   ═══════════════════════════════════════════════════════════════════════ */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: calc(var(--z-header) + 10);
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
}
.mobile-nav-overlay.active { display: flex; }

.mobile-nav-panel {
  width: 280px;
  min-height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  animation: slideInRight 0.25s ease-out;
}

.mobile-nav-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1rem 0 0.5rem;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-links .nav-item a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.mobile-nav-links .nav-item.active a,
.mobile-nav-links .nav-item a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 1rem 0;
}

/* Prevent body scroll when mobile nav is open */
body.mobile-nav-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════════════
   Responsive: Show hamburger, hide desktop nav on narrow screens
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .btn-hamburger { display: flex; }
  .nav-menu { display: none; }
  .search-input-wrapper { width: 160px !important; }
  .search-input-wrapper:focus-within { width: 220px !important; }
  .btn-vip-upgrade span { display: none; }
  .btn-vip-upgrade::after { content: "💎"; font-size: 1.1rem; }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-primary-play, .btn-secondary-action {
    width: 100%;
    justify-content: center;
  }
  .header-actions {
    gap: 0.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Cache Management Modal
   ═══════════════════════════════════════════════════════════════════════ */
.cache-modal-card {
  background: linear-gradient(180deg, #181d2a 0%, #0d111a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.cache-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.cache-modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.cache-action-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cache-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.cache-action-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.cache-action-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.btn-cache-action {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-cache-action:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.btn-cache-clear-all {
  width: 100%;
  margin-top: 1rem;
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  transition: all var(--transition-fast);
}
.btn-cache-clear-all:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Search History & Hot Tags
   ========================================================================== */
.search-dropdown-box {
  padding: 12px;
}
.search-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}
.search-box-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.btn-clear-search-history {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: #ef4444;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition-fast);
}
.btn-clear-search-history:hover {
  opacity: 0.8;
  text-decoration: underline;
}
.search-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.search-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.search-tag-pill:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #fff;
}
.search-tag-pill.hot {
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

/* ==========================================================================
   Card Hover Play Overlay & Quick Fav
   ========================================================================== */
.card-poster-wrap {
  position: relative;
  overflow: hidden;
}
.card-hover-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 3;
}
.media-card:hover .card-hover-mask {
  opacity: 1;
  pointer-events: auto;
}
.card-hover-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.6);
  transform: scale(0.85);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.media-card:hover .card-hover-play-btn {
  transform: scale(1);
}
.card-hover-play-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 3px;
}
.card-quick-fav-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
}
.media-card:hover .card-quick-fav-btn {
  opacity: 1;
  transform: translateY(0);
}
.card-quick-fav-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
.card-quick-fav-btn.active {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  opacity: 1;
}

/* ==========================================================================
   Movie Detail Quick-View Modal
   ========================================================================== */
.detail-modal-card {
  position: relative;
  width: 90%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0d131f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
}
.detail-backdrop-box {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.detail-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}
.detail-backdrop-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 19, 31, 0.2) 0%, #0d131f 100%);
}
.detail-modal-body {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 0 32px 32px;
  margin-top: -60px;
  z-index: 2;
}
.detail-poster-wrap {
  width: 160px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 2/3;
  background: #111827;
}
.detail-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-info-wrap {
  flex: 1;
  min-width: 0;
}
.detail-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 8px 0 12px;
}
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.detail-synopsis {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-height: 120px;
  overflow-y: auto;
}
.detail-credits-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.credit-line {
  color: var(--text-muted);
  margin: 4px 0;
}
.credit-line strong {
  color: var(--text-primary);
}
.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .detail-modal-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -40px;
    padding: 0 20px 24px;
  }
  .detail-poster-wrap {
    width: 130px;
  }
  .detail-meta-row,
  .detail-actions {
    justify-content: center;
  }
}

/* ==========================================================================
   Skeleton Shimmer Loading
   ========================================================================== */
@keyframes shimmerAnim {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.skeleton-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}
.skeleton-poster {
  aspect-ratio: 2/3;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.skeleton-poster::after,
.skeleton-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
  animation: shimmerAnim 1.6s infinite;
}
.skeleton-info {
  padding: 12px;
}
.skeleton-line {
  height: 14px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.skeleton-line.short {
  width: 60%;
}

/* ==========================================================================
   Watchlist Empty State
   ========================================================================== */
.empty-state-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.6;
}
.empty-state-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.empty-state-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   User Auth & Member Center Styles
   ========================================================================== */
.header-user-wrapper {
  display: flex;
  align-items: center;
}
.btn-nav-login {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-nav-login:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-primary);
  color: #60a5fa;
}
.btn-user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-full);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-user-profile:hover {
  background: rgba(255, 255, 255, 0.12);
}
.user-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
}
.user-name-sm {
  font-size: 0.82rem;
  font-weight: 600;
}
.user-vip-dot {
  font-size: 0.75rem;
}

/* User Auth Modal */
.user-auth-card {
  width: 100%;
  max-width: 400px;
  background: #111726;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  position: relative;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}
.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.auth-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--accent-primary);
}

/* Member Center Modal */
.user-center-card {
  width: 100%;
  max-width: 480px;
  background: #111726;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  position: relative;
}
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.5rem;
}
.user-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.user-profile-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.user-profile-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.vip-status-box {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.vip-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-redeem-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.user-center-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}
.btn-center-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.btn-center-action:hover {
  color: #fff;
}

