/* CRUNCHYROLL NEO UI STYLES */

/* ============================================================
   1. NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 32px;
  background: rgba(11, 12, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text-white);
  cursor: pointer;
  user-select: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent-orange);
  filter: drop-shadow(0 0 10px var(--accent-orange-glow));
}

.brand-tag {
  background: linear-gradient(135deg, var(--accent-orange), #ff4d00);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 0 12px var(--accent-orange-glow);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-item {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  transition: color var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item:hover, .nav-item.active {
  color: var(--accent-orange);
}

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

/* Search Bar */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 240px;
  height: 38px;
  padding: 0 38px 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 13px;
  transition: all var(--transition-fast);
}

.search-input:focus {
  width: 300px;
  border-color: var(--accent-orange);
  box-shadow: 0 0 12px var(--accent-orange-glow);
  outline: none;
  background: var(--bg-elevated);
}

.search-icon-btn {
  position: absolute;
  right: 8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast);
}

.search-icon-btn:hover {
  color: var(--accent-orange);
}

/* Instant Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  z-index: 1050;
  display: none;
  backdrop-filter: blur(20px);
}

.search-results-dropdown.show {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-item:hover {
  background: var(--bg-elevated-hover);
}

.search-item-thumb {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #20222a;
}

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

.search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Nav Action Buttons */
.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-btn:hover {
  color: var(--text-white);
  border-color: var(--accent-orange);
  background: var(--bg-elevated);
}

.nav-btn .badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--accent-orange-glow);
}

.premium-btn {
  color: var(--accent-yellow);
  background: rgba(255, 184, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.3);
}

.premium-btn:hover {
  color: #fff;
  background: var(--accent-yellow);
  box-shadow: 0 0 15px var(--accent-yellow-glow);
}

/* Nav Premium Pill Button (Removed per user request) */
.nav-premium-pill-btn {
  display: none !important;
}

/* ============================================================
   2. HERO & ANIME SPOTLIGHT (Matches Crunchyroll Screen)
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 520px;
  background-color: #07080b;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-anime-details-section {
  background-color: #050608;
}

.hero-bg-texture-layer {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero_bg_map.png');
  background-repeat: repeat;
  background-size: 260px 160px;
  opacity: 0.32;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.hero-stage-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 4;
}

@media (max-width: 1080px) {
  .hero-stage-split {
    grid-template-columns: 1fr;
  }
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-branding-area {
  display: flex;
  flex-direction: column;
}

.anime-title-logo-img {
  max-height: 95px;
  max-width: 380px;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.9));
  margin-bottom: 4px;
}

.award-badge-chip,
#heroAwardBadge,
#specAwardsRow {
  display: none !important;
}

.award-trophy {
  display: none !important;
}

.hero-right-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 10px;
}

/* NETFLIX-STYLE PREVIEW COMPONENT */
.netflix-preview-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.netflix-preview-frame:hover {
  border-color: var(--accent-orange);
}

.preview-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.preview-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.preview-vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 95%),
              linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 45%);
  pointer-events: none;
}

.preview-top-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 12, 15, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  z-index: 5;
}

.preview-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff334b;
  box-shadow: 0 0 8px #ff334b;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

.preview-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  z-index: 5;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.preview-info-snippet {
  display: flex;
  flex-direction: column;
}

.preview-tag {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-orange);
  letter-spacing: 0.08em;
}

.preview-scene-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.preview-btns-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(20, 22, 29, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preview-ctrl-btn:hover {
  background: rgba(244, 117, 33, 0.85);
  border-color: var(--accent-orange);
  transform: scale(1.08);
}

.preview-cinema-launch-btn {
  background: var(--accent-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 12px var(--accent-orange-glow);
}

.preview-cinema-launch-btn:hover {
  background: var(--accent-orange-light);
  transform: scale(1.04);
}

.hero-backdrop-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  mask-image: radial-gradient(ellipse at 75% 30%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 85%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 30%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 85%);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b0c0f 25%, rgba(11, 12, 15, 0.85) 55%, rgba(11, 12, 15, 0.15) 100%),
              linear-gradient(0deg, #0b0c0f 5%, transparent 60%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 36px 30px;
}

.hero-title-area {
  max-width: 680px;
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-white);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.hero-japanese-title {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

/* Badges Row */
.hero-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.badge-age {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.badge-format {
  font-weight: 600;
  color: var(--text-white);
}

.badge-dot {
  color: var(--text-muted);
}

.hero-genres-container {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.genre-chip,
.genre-link {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.genre-chip:hover,
.genre-link:hover {
  background: rgba(244, 117, 33, 0.2);
  border-color: var(--accent-orange);
  color: #fff;
  transform: translateY(-1px);
}

/* Star Rating */
.star-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.stars {
  color: var(--accent-yellow);
  font-size: 14px;
  letter-spacing: 2px;
}

.rating-score {
  font-weight: 700;
  color: var(--text-white);
}

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

/* Action Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.btn-primary-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-orange);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px var(--accent-orange-glow);
  transition: all var(--transition-fast);
}

.btn-primary-play:hover {
  background: var(--accent-orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 117, 33, 0.6);
}

.btn-icon-action {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  transition: all var(--transition-fast);
}

.btn-icon-action:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.btn-icon-action.active {
  background: var(--accent-orange-subtle);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* Synopsis & Metadata Split Grid */
.hero-details-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 4;
}

@media (max-width: 900px) {
  .hero-details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
}

.synopsis-column {
  position: relative;
}

.synopsis-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 650px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
  white-space: pre-line;
}

.synopsis-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  white-space: pre-line;
}

.synopsis-toggle-btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  cursor: pointer;
  border: none;
  background: transparent;
}

.synopsis-toggle-btn:hover {
  text-decoration: underline;
}

/* Metadata Specs Column */
.specs-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.spec-row {
  display: flex;
  gap: 8px;
  line-height: 1.5;
}

.spec-label {
  font-weight: 700;
  color: var(--text-white);
  min-width: 90px;
}

.spec-value {
  color: var(--text-secondary);
}

/* Crunchyroll Promo Banner (Removed per user request) */
.promo-ad-free-banner {
  display: none !important;
}

/* ============================================================
   3. EPISODES SECTION (Horizontal Cards with Duration Pill)
   ============================================================ */
.episodes-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 36px 60px;
}

.episodes-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

/* Season / Arc Dropdown Selector (matches screenshot) */
.season-selector-wrapper {
  position: relative;
}

.btn-season-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-white);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color var(--transition-fast);
}

.btn-season-dropdown:hover {
  color: var(--accent-orange);
}

.season-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: rgba(18, 20, 27, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  z-index: 100;
  display: none;
  padding: 6px 0;
}

.season-dropdown-menu.show {
  display: block;
}

.season-dropdown-item {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  border: none;
}

.season-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.season-dropdown-item.active {
  color: var(--accent-orange);
  font-weight: 800;
  background: var(--accent-orange-subtle);
}

.season-dropdown-divider {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  margin-top: 6px;
}

.season-dropdown-item.season-related-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge-season-nav {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.badge-nav-prequel {
  background: rgba(41, 121, 255, 0.18);
  color: #2979ff;
  border: 1px solid rgba(41, 121, 255, 0.4);
}

.badge-nav-sequel {
  background: rgba(244, 117, 33, 0.2);
  color: var(--accent-orange);
  border: 1px solid rgba(244, 117, 33, 0.4);
}

.episodes-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.episodes-count-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-orange);
  background: var(--accent-orange-subtle);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

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

.episode-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.episode-search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

.episode-search-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  padding: 6px 26px 6px 28px;
  font-size: 12.5px;
  width: 170px;
  transition: all var(--transition-fast);
}

.episode-search-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange-glow);
  width: 210px;
}

.episode-search-clear {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
}

.episode-search-clear:hover {
  color: #fff;
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.sort-btn:hover {
  color: var(--text-white);
  border-color: var(--accent-orange);
}

/* Episodes Grid */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.episode-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.episode-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-neon);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(244, 117, 33, 0.2);
}

.episode-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #191c24;
  overflow: hidden;
}

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

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

.duration-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.86);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
  z-index: 6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Continue Watching - Small Red 'X' Button at Top-Right of thumbnail */
.remove-continue-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), 0 0 6px rgba(229, 9, 20, 0.4);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s ease,
              box-shadow 0.2s ease,
              opacity 0.2s ease;
  opacity: 0.85;
}

.episode-card:hover .remove-continue-btn {
  opacity: 1;
}

.remove-continue-btn:hover {
  background: #ff1e27;
  transform: scale(1.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65), 0 0 14px rgba(255, 30, 40, 0.85);
  border-color: #ffffff;
}

.remove-continue-btn:active {
  transform: scale(0.92);
}

.remove-continue-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 14px rgba(255, 30, 40, 0.95);
}

.remove-continue-btn svg {
  pointer-events: none;
  stroke: #ffffff;
}

.toast-action-btn {
  background: #f47521;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.2s ease;
}

.toast-action-btn:hover {
  background: #ff8c3b;
  transform: scale(1.05);
}

.play-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 4;
}

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

.play-hover-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-orange-glow);
}

/* Watched Progress Bar */
.watched-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.watched-progress-fill {
  height: 100%;
  background: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange-glow);
  transition: width 0.3s ease;
}

.episode-info {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.episode-show-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-orange);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.episode-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-card-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 8px;
}

/* ============================================================
   4. CINEMA VIDEO PLAYER MODAL & SERVER SELECTOR DROPDOWN
   ============================================================ */
.player-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: transparent;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.player-modal-overlay.active {
  display: flex;
}

/* Atmospheric Blurred Anime Backdrop behind player */
.player-backdrop-bg {
  position: fixed;
  inset: -40px;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  filter: blur(28px) brightness(0.72) saturate(1.5);
  transform: scale(1.1);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-image 0.4s ease;
  will-change: opacity, transform;
}

.player-backdrop-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(11, 12, 15, 0.15) 0%, rgba(5, 6, 8, 0.38) 100%),
              linear-gradient(180deg, rgba(5, 6, 8, 0.15) 0%, rgba(5, 6, 8, 0.40) 100%);
  z-index: 1;
  pointer-events: none;
}

.player-modal-overlay > *:not(.player-backdrop-bg):not(.player-backdrop-vignette) {
  position: relative;
  z-index: 2;
}

.player-modal-overlay .player-top-bar,
.player-top-bar {
  position: sticky;
  top: 0;
  z-index: 10000 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(14, 16, 22, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.player-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-player-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.btn-player-back:hover {
  color: var(--text-white);
  border-color: var(--accent-orange);
}

.btn-player-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(244, 117, 33, 0.18);
  border: 1px solid var(--accent-orange);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(244, 117, 33, 0.2);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

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

.player-current-anime {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.player-current-ep-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
}

/* ============================================================
   SERVER SELECTOR DROPDOWN (User requirement: sleek dropdown)
   ============================================================ */
.server-selector-container {
  position: relative;
  display: inline-block;
  z-index: 10050;
}

.btn-server-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(244, 117, 33, 0.15), rgba(20, 22, 29, 0.9));
  border: 1px solid var(--border-neon);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 15px rgba(244, 117, 33, 0.2);
}

.btn-server-dropdown:hover {
  border-color: var(--accent-orange);
  background: linear-gradient(135deg, rgba(244, 117, 33, 0.28), rgba(20, 22, 29, 0.95));
  box-shadow: 0 0 20px var(--accent-orange-glow);
}

.server-dropdown-menu {
  position: absolute;
  top: 110%;
  right: 0;
  width: 260px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(244, 117, 33, 0.35);
  padding: 6px;
  display: none;
  z-index: 10060 !important;
  backdrop-filter: blur(20px);
}

.server-dropdown-menu.show {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.server-menu-header {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 12px 4px;
}

.server-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: all var(--transition-fast);
}

.server-item-btn:hover {
  background: var(--bg-elevated-hover);
  color: var(--accent-orange);
}

.server-item-btn.active {
  background: var(--accent-orange-subtle);
  color: var(--accent-orange);
  font-weight: 800;
  border-left: 3px solid var(--accent-orange);
}

.server-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.server-item-btn.active .server-badge {
  background: var(--accent-orange);
  color: #fff;
}

/* Player Stage Layout */
.player-modal-overlay .player-stage,
.player-stage {
  position: relative;
  z-index: 1 !important;
  max-width: 1500px;
  width: 100%;
  margin: 20px auto 40px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.player-main-area {
  display: flex;
  flex-direction: column;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(11, 12, 15, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-medium);
}

.video-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* Video Loading & Fallback Overlay */
.video-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 15, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.video-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.neon-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(244, 117, 33, 0.2);
  border-top-color: var(--accent-orange);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 15px var(--accent-orange-glow);
}

/* Floating "Saltar Intro" Button removed from video surface per user request; persistent in bottom bar only */
#playerSkipIntroBtn,
.player-skip-intro-btn {
  position: absolute;
  bottom: 48px;
  right: 24px;
  z-index: 25;
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  align-items: center;
  gap: 8px;
  background: rgba(11, 12, 15, 0.9);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--accent-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 15px var(--accent-orange-glow);
  transition: all var(--transition-fast);
}

.player-skip-intro-btn:hover {
  background: var(--accent-orange);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--accent-orange-glow);
}

/* Bottom Player Controls Bar */
.player-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 8px 18px 12px;
  background: rgba(20, 22, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* Full-Width Interactive Scrubber / Seek Bar (Netflix / Crunchyroll style) */
.player-scrubber-wrapper {
  width: 100%;
  padding: 6px 0 8px;
  cursor: pointer;
  position: relative;
  touch-action: none;
}

.player-scrubber-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
  overflow: visible;
  transition: height 0.15s ease;
}

.player-scrubber-wrapper:hover .player-scrubber-track {
  height: 8px;
}

.player-scrubber-buffer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  pointer-events: none;
  transition: width 0.2s ease;
}

.player-scrubber-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--accent-orange);
  border-radius: 3px;
  pointer-events: none;
  box-shadow: 0 0 8px var(--accent-orange-glow);
}

.player-scrubber-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent-orange);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.player-scrubber-wrapper:hover .player-scrubber-handle,
.player-scrubber-wrapper.dragging .player-scrubber-handle {
  transform: translate(-50%, -50%) scale(1);
}

.player-scrubber-tooltip {
  position: absolute;
  bottom: 24px;
  left: 0;
  transform: translateX(-50%);
  background: rgba(11, 12, 15, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-medium);
  pointer-events: none;
  display: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  z-index: 30;
}

.player-scrubber-wrapper:hover .player-scrubber-tooltip {
  display: block;
}

/* On-Screen Transient HUD (Play, Pause, Volume, Seek, Skip feedback) */
.player-hud-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(11, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(244, 117, 33, 0.4);
  border-radius: var(--radius-lg);
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 40;
  pointer-events: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-orange-glow);
  animation: hudPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes hudPop {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.player-hud-icon {
  font-size: 32px;
  color: var(--accent-orange);
}

.player-hud-text {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

/* Next Episode Countdown Overlay (Netflix Style) - Disabled per user request */
.player-next-countdown-overlay {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(11, 12, 15, 0.95);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  z-index: 35;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 20px var(--accent-orange-glow);
  max-width: 320px;
  animation: slideInRight 0.3s ease;
  display: none !important;
}

@keyframes slideInRight {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.next-countdown-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.next-countdown-sub {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-orange);
}

.next-countdown-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.next-countdown-timer {
  font-size: 12px;
  color: var(--text-secondary);
}

.next-countdown-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.episodes-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.episodes-empty-state-btn {
  margin-top: 12px;
  display: inline-block;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--accent-orange);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
}

.player-ctrls-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.player-ctrls-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-ctrl:hover:not(:disabled) {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.btn-ctrl.active {
  background: var(--accent-orange-subtle);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.btn-ctrl:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ctrl-play {
  font-size: 14px;
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  justify-content: center;
  background: rgba(244, 117, 33, 0.15);
  border-color: rgba(244, 117, 33, 0.4);
  color: var(--accent-orange);
}

.btn-ctrl-play:hover {
  background: var(--accent-orange) !important;
  color: #fff !important;
}

.btn-ctrl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.btn-ctrl-icon:hover {
  color: #fff;
}

.player-volume-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

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

.player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-orange);
  cursor: pointer;
  box-shadow: 0 0 6px var(--accent-orange-glow);
}

.player-volume-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 32px;
}

.player-time-display {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

.speed-selector-container {
  position: relative;
}

.player-speed-menu {
  top: auto;
  bottom: 115%;
  width: 140px;
  right: 0;
}

/* ============================================================
   ANIME BOOST AI CONTROLS & MENU (RX 6700 XT RDNA 2 / WebGPU)
   ============================================================ */
.boost-selector-container {
  position: relative;
  display: inline-block;
  z-index: 10050;
}

.btn-boost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: all var(--transition-fast);
}

.btn-boost .boost-icon {
  font-size: 13px;
  color: var(--accent-orange);
  transition: transform 0.2s ease;
}

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

.btn-boost.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(20, 22, 29, 0.95)) !important;
  border-color: #00e5ff !important;
  color: #00e5ff !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4), inset 0 0 8px rgba(0, 229, 255, 0.15) !important;
}

.btn-boost.active .boost-icon {
  color: #00e5ff;
  text-shadow: 0 0 8px #00e5ff;
}

.boost-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: all var(--transition-fast);
}

.btn-boost.active .boost-badge {
  background: #00e5ff;
  color: #0b0c0f;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

/* Touch devices guard: completely suppress Boost PC GPU button */
@media (pointer: coarse) and (not (pointer: fine)) {
  #playerBoostBtn {
    display: none !important;
  }
}
@media (hover: none) and (pointer: coarse) {
  #playerBoostBtn {
    display: none !important;
  }
}


.player-boost-menu {
  top: auto;
  bottom: 115%;
  right: 0;
  width: 295px;
  max-height: 480px;
}

.boost-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: all var(--transition-fast);
  gap: 10px;
}

.boost-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.boost-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
}

.boost-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.boost-item-btn:hover {
  background: var(--bg-elevated-hover);
}

.boost-item-btn.active {
  background: rgba(0, 229, 255, 0.12);
  border-left: 3px solid #00e5ff;
}

.boost-item-btn.active .boost-item-title {
  color: #00e5ff;
}

.boost-item-btn.active .server-badge {
  background: #00e5ff;
  color: #0b0c0f;
  font-weight: 800;
}

.boost-controls-divider {
  height: 1px;
  background: var(--border-light);
  margin: 6px 4px;
}

.boost-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

.boost-action-btn:hover {
  background: var(--bg-elevated-hover);
}

.boost-action-btn.active {
  background: rgba(0, 229, 255, 0.15) !important;
  border-left: 3px solid #00e5ff !important;
}

.server-badge.badge-active {
  background: #00e5ff !important;
  color: #0b0c0f !important;
  font-weight: 800 !important;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.boost-slider-row {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.boost-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.boost-slider-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.boost-slider-val {
  font-size: 11px;
  font-weight: 800;
  color: #00e5ff;
}

.boost-intensity-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.boost-intensity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
  cursor: pointer;
}

.boost-menu-footer {
  padding: 8px 10px 6px;
  margin-top: 6px;
  border-top: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

.boost-engine-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  display: block;
}

.boost-engine-tag.engine-f16 {
  color: #00e5ff;
}

.boost-engine-tag.engine-f32 {
  color: var(--accent-orange);
}

.boost-engine-tag.engine-webgl {
  color: #a855f7;
}

.boost-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

.btn-bar-skip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: rgba(244, 117, 33, 0.15);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.btn-bar-skip:hover {
  background: var(--accent-orange) !important;
  color: #fff !important;
}

/* Theater Mode (Cinema Width) */
.player-stage.theater-mode {
  max-width: 100%;
  padding: 0 16px;
  grid-template-columns: 1fr;
}

.player-stage.theater-mode .video-container {
  aspect-ratio: 16 / 9;
  max-height: 82vh;
  margin: 0 auto;
}

.player-stage.theater-mode .player-episode-drawer {
  height: auto;
  max-height: 360px;
  margin-top: 16px;
}

/* ============================================================
   TRUE FULLSCREEN THEATER MODE (VIDEO + AUTO-HIDING CONTROLS BAR)
   ============================================================ */
#playerFullscreenContainer:fullscreen,
.player-main-area:fullscreen,
.player-main-area.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
}

#playerFullscreenContainer:fullscreen .video-container,
.player-main-area:fullscreen .video-container,
.player-main-area.is-fullscreen .video-container {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

#playerFullscreenContainer:fullscreen .video-frame,
.player-main-area:fullscreen .video-frame,
.player-main-area.is-fullscreen .video-frame {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  background: #000 !important;
}

#playerFullscreenContainer:fullscreen .player-controls-bar,
.player-main-area:fullscreen .player-controls-bar,
.player-main-area.is-fullscreen .player-controls-bar {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(5, 6, 8, 0.75) 40%, rgba(5, 6, 8, 0.95) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  padding: 24px 36px 28px !important;
  z-index: 100 !important;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Inactivity Auto-Hide: Controls Bar and Mouse Cursor */
#playerFullscreenContainer:fullscreen.idle .player-controls-bar,
#playerFullscreenContainer:fullscreen.controls-hidden .player-controls-bar,
.player-main-area:fullscreen.idle .player-controls-bar,
.player-main-area:fullscreen.controls-hidden .player-controls-bar,
.player-main-area.is-fullscreen.idle .player-controls-bar,
.player-main-area.is-fullscreen.controls-hidden .player-controls-bar {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(14px) !important;
}

#playerFullscreenContainer:fullscreen.idle,
#playerFullscreenContainer:fullscreen.controls-hidden,
#playerFullscreenContainer:fullscreen.idle *,
#playerFullscreenContainer:fullscreen.controls-hidden *,
.player-main-area:fullscreen.idle,
.player-main-area:fullscreen.controls-hidden,
.player-main-area:fullscreen.idle *,
.player-main-area:fullscreen.controls-hidden *,
.player-main-area.is-fullscreen.idle,
.player-main-area.is-fullscreen.controls-hidden,
.player-main-area.is-fullscreen.idle *,
.player-main-area.is-fullscreen.controls-hidden * {
  cursor: none !important;
}

#playerFullscreenContainer:fullscreen:hover .player-controls-bar:hover,
.player-main-area.is-fullscreen:hover .player-controls-bar:hover {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  cursor: default !important;
}

.btn-ctrl:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Side Episode Drawer */
.player-episode-drawer {
  background: rgba(20, 22, 29, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: calc((1500px - 64px - 24px) * 9 / 16 / 1.3);
  max-height: 640px;
  overflow: hidden;
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-episodes-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-ep-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.drawer-ep-item:hover {
  background: var(--bg-elevated-hover);
  border-color: var(--border-light);
}

.drawer-ep-item.active {
  border-color: var(--accent-orange);
  background: var(--accent-orange-subtle);
}

.drawer-ep-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-orange);
  min-width: 34px;
}

.drawer-ep-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   MÁS DETALLES CARD SECTION (Below Player Stage & Episodes Drawer)
   ============================================================ */
.player-details-section {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto 50px;
  padding: 0 32px;
}

.player-details-card {
  background: rgba(18, 20, 27, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.player-details-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-orange), #ff4d00);
  box-shadow: 0 0 12px var(--accent-orange-glow);
}

.player-details-card:hover {
  border-color: rgba(244, 117, 33, 0.4);
}

.player-details-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 14px;
}

.player-details-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-details-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
}

.player-details-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-player-ficha-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-orange), #e05e0c);
  border: 1px solid var(--accent-orange);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(244, 117, 33, 0.35);
  transition: all var(--transition-fast);
}

.btn-player-ficha-action:hover {
  background: linear-gradient(135deg, #ff8533, var(--accent-orange));
  box-shadow: 0 6px 24px var(--accent-orange-glow);
  transform: translateY(-2px);
}

.player-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 24px;
}

.player-spec-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: all var(--transition-fast);
}

.player-spec-box:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(244, 117, 33, 0.25);
  transform: translateY(-1px);
}

.player-spec-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.player-spec-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.airing-dot-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00be82;
  margin-right: 6px;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 190, 130, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(0, 190, 130, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 190, 130, 0); }
}

.player-spec-box.spec-box-wide {
  grid-column: span 2;
  min-width: min(100%, 460px);
}

.player-season-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.season-title-pill {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}

.season-chronology-tag {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.player-season-relations-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
}

.season-rel-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all var(--transition-fast);
  max-width: 100%;
  flex: 1 1 200px;
  box-sizing: border-box;
}

.season-rel-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 117, 33, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.season-rel-chip.prequel-chip:hover {
  border-color: rgba(41, 121, 255, 0.6);
  box-shadow: 0 4px 14px rgba(41, 121, 255, 0.25);
}

.season-rel-chip.sequel-chip:hover {
  border-color: rgba(244, 117, 33, 0.6);
  box-shadow: 0 4px 14px rgba(244, 117, 33, 0.25);
}

.season-rel-thumb {
  width: 22px;
  height: 30px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.season-rel-chip .relation-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.season-rel-chip a.spec-chronology-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 340px;
  flex: 1 1 auto;
  min-width: 0;
}

.season-rel-chip:hover a.spec-chronology-link {
  color: var(--accent-orange);
}

.drawer-season-nav {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.drawer-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.drawer-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.drawer-nav-prequel:hover {
  border-color: #2979ff;
  color: #2979ff;
}

.drawer-nav-btn small {
  color: var(--text-muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

@media (max-width: 900px) {
  .player-details-section {
    padding: 0 16px;
    margin-bottom: 30px;
  }
  .player-details-card {
    padding: 18px 20px;
  }
  .player-details-grid {
    grid-template-columns: 1fr;
  }
  .player-spec-box.spec-box-wide {
    grid-column: 1 / -1;
  }
}

.hero-details-grid.highlight-glow {
  box-shadow: 0 0 35px rgba(244, 117, 33, 0.65), 0 0 10px rgba(244, 117, 33, 0.4) !important;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-orange) !important;
  transition: all 0.4s ease;
}

/* ============================================================
   5. QUICK PREVIEW MODAL ("Pre-visualización tipo sinopsis")
   ============================================================ */
.preview-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.preview-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.preview-card {
  position: relative;
  max-width: 760px;
  width: 100%;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(244, 117, 33, 0.2);
}

.preview-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.preview-close-btn:hover {
  background: var(--accent-orange);
}

.preview-banner {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.preview-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-elevated) 10%, transparent 80%);
  pointer-events: none;
}

.preview-body {
  padding: 24px 32px 32px;
}

.preview-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-white);
}

.preview-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.preview-synopsis {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
  max-height: 180px;
  overflow-y: auto;
}

.preview-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

/* ============================================================
   6. DIRECTORY & BROWSE VIEW
   ============================================================ */
.directory-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 36px 60px;
}

.directory-header {
  margin-bottom: 24px;
}

.directory-page-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-white);
}

.directory-title-wrap {
  margin-bottom: 20px;
}

.directory-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

.directory-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
}

.directory-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  min-width: 260px;
}

.directory-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.directory-search-input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.directory-search-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px var(--accent-orange-glow);
}

.directory-search-clear {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}
.directory-search-clear:hover {
  color: #fff;
}

.directory-filters-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.directory-filter-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.directory-select {
  height: 40px;
  padding: 0 32px 0 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  transition: all var(--transition-fast);
}

.directory-select:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px var(--accent-orange-glow);
}

.directory-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.directory-reset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.directory-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Pagination Bar */
.directory-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding: 24px 0;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-orange-glow);
  transform: translateY(-2px);
}

.pagination-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 14px var(--accent-orange-glow);
  pointer-events: none;
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: var(--text-muted);
  padding: 0 6px;
  font-size: 14px;
}

.directory-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.genre-filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.genre-filter-chip:hover {
  border-color: var(--accent-orange);
  color: var(--text-white);
}

.genre-filter-chip.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-orange-glow);
}

/* Directory Posters Grid */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.anime-poster-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.anime-poster-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-neon);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(244, 117, 33, 0.25);
}

.poster-img-container {
  position: relative;
  aspect-ratio: 3 / 4.4;
  overflow: hidden;
  background: #191c24;
}

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

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

.poster-quick-preview-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border-light);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.anime-poster-card:hover .poster-quick-preview-btn {
  opacity: 1;
}

.poster-quick-preview-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.poster-info {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.poster-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   7. TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-neon);
  border-left: 4px solid var(--accent-orange);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(244, 117, 33, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.25s ease-out;
}

/* ============================================================
   8. RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  .hero-backdrop-wrapper {
    width: 100%;
    opacity: 0.35;
  }
  .hero-details-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .player-stage {
    grid-template-columns: 1fr;
  }
  .player-episode-drawer {
    height: auto;
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
  }
  .nav-menu {
    display: none;
  }
  .hero-content {
    padding: 24px 16px;
  }
  .hero-title {
    font-size: 28px;
  }
  .episodes-section, .directory-section {
    padding: 16px;
  }
  .episodes-grid {
    grid-template-columns: 1fr;
  }
  .player-top-bar {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .btn-boost {
    padding: 6px 10px;
    font-size: 11.5px;
  }
}

@media (max-width: 480px) {
  .btn-boost {
    padding: 5px 8px;
    font-size: 11px;
    gap: 4px;
  }
  .btn-boost .boost-badge {
    display: none;
  }
  #playerTheaterBtn {
    display: none !important;
  }
}

/* ============================================================
   9. KEYBOARD SHORTCUTS MODAL
   ============================================================ */
.shortcuts-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.shortcuts-modal-overlay.active {
  display: flex;
}

.shortcuts-modal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.shortcuts-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
}

.shortcuts-table {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 70vh;
  overflow-y: auto;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-primary);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.key-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-orange);
}

/* ============================================================
   5. EXTENDED METADATA & SPEC HIGHLIGHTS
   ============================================================ */
.spec-next-ep-row {
  background: rgba(244, 117, 33, 0.08);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-orange);
  margin: 4px 0;
}

.next-ep-highlight {
  color: #ff9800 !important;
  font-weight: 800 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.next-ep-dot {
  width: 8px;
  height: 8px;
  background-color: #00e676;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #00e676;
  animation: pulseGreen 1.6s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.status-badge-inline {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-airing {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.status-finished {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

/* ============================================================
   6. SECTION SUBHEADINGS (Relacionados, Trailers)
   ============================================================ */
.section-subheading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: -0.01em;
}

.section-subheading-icon {
  font-size: 20px;
}

/* ============================================================
   7. RELACIONES: PRECUELA / SECUELA ("Relacionados")
   ============================================================ */
.anime-relations-section {
  width: 100%;
}

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

.relation-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.relation-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-orange);
  background: var(--bg-elevated);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(244, 117, 33, 0.2);
}

.relation-card-thumb {
  width: 64px;
  height: 90px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #14161d;
  flex-shrink: 0;
}

.relation-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  flex: 1;
}

.relation-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
}

.badge-prequel {
  background: rgba(41, 121, 255, 0.18);
  color: #2979ff;
  border: 1px solid rgba(41, 121, 255, 0.4);
}

.badge-sequel {
  background: rgba(244, 117, 33, 0.2);
  color: var(--accent-orange);
  border: 1px solid rgba(244, 117, 33, 0.4);
}

.badge-related {
  background: rgba(156, 39, 176, 0.18);
  color: #ce93d8;
  border: 1px solid rgba(156, 39, 176, 0.4);
}

.relation-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.relation-action-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-orange);
  margin-top: 4px;
}

/* ============================================================
   8. VIDEOS PROMOCIONALES (PV / TRAILERS)
   ============================================================ */
.anime-promos-section {
  width: 100%;
}

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

.promo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.promo-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-orange);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 20px rgba(244, 117, 33, 0.25);
}

.promo-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0f14;
  overflow: hidden;
}

.promo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.promo-card:hover .promo-thumb {
  transform: scale(1.05);
}

.promo-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.promo-card:hover .promo-play-overlay {
  background: rgba(244, 117, 33, 0.25);
}

.promo-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 16px var(--accent-orange-glow);
  transition: transform var(--transition-fast);
}

.promo-card:hover .promo-play-btn {
  transform: scale(1.15);
}

.promo-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   9. NATIVE TRAILER MODAL (In-App Player without redirect)
   ============================================================ */
.trailer-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease-out;
}

.trailer-modal-dialog {
  width: 100%;
  max-width: 900px;
  background: #101217;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(244, 117, 33, 0.2);
}

.trailer-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-light);
}

.trailer-modal-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-white);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trailer-modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.trailer-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.trailer-modal-body {
  padding: 0;
  background: #000;
}

.trailer-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.trailer-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   10. WEEKLY EMISSIONS CALENDAR VIEW
   ============================================================ */
.calendar-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 36px 80px;
}

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

.calendar-title-wrap {
  margin-bottom: 20px;
}

.calendar-page-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 6px;
}

.calendar-page-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

.calendar-day-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.calendar-day-pill {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.calendar-day-pill:hover {
  color: var(--text-white);
  border-color: var(--border-medium);
}

.calendar-day-pill.active {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
  box-shadow: 0 0 15px var(--accent-orange-glow);
}

.calendar-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.calendar-day-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calendar-day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-orange-subtle);
}

.calendar-day-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.calendar-day-badge {
  font-size: 11px;
  font-weight: 800;
  background: rgba(244, 117, 33, 0.2);
  color: var(--accent-orange);
  border: 1px solid rgba(244, 117, 33, 0.4);
  padding: 3px 8px;
  border-radius: 12px;
}

.calendar-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.calendar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.calendar-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(244, 117, 33, 0.25);
}

.calendar-card-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #14161d;
}

.calendar-card-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calendar-card-next {
  font-size: 11px;
  color: var(--accent-orange);
  font-weight: 600;
}

.countdown-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.countdown-today {
  background: linear-gradient(135deg, #f47521 0%, #ff4500 100%);
  color: #fff;
  box-shadow: 0 0 10px rgba(244, 117, 33, 0.4);
}

.countdown-soon {
  background: rgba(255, 170, 0, 0.18);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.4);
}

.countdown-upcoming {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================================================
   11. RECENTS DATE GROUPING & TOGGLES
   ============================================================ */
.recents-view-toggles {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.recents-view-toggles .sort-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.recents-view-toggles .sort-btn.active {
  background: var(--accent-orange);
  color: #fff;
  border-radius: 4px;
}

.recents-date-group {
  margin-bottom: 28px;
}

.recents-date-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.recents-date-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-white);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.recents-date-pill {
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Season & Chronology Track Badges */
.badge-season-track {
  background: linear-gradient(135deg, rgba(244, 117, 33, 0.25), rgba(244, 117, 33, 0.08));
  color: var(--accent-orange);
  border: 1px solid rgba(244, 117, 33, 0.4);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-completed {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.home-calendar-section {
  padding: 0 40px 36px;
  max-width: 1500px;
  margin: 0 auto;
}

.spec-chronology-link {
  color: var(--accent-orange);
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.spec-chronology-link:hover {
  color: #fff;
}

/* ============================================================
   EMBED MODE (Mega, OK.ru, 3rd Party Player Integration)
   ============================================================ */
.embed-notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(20, 24, 34, 0.95), rgba(15, 17, 23, 0.98));
  border: 1px solid rgba(244, 117, 33, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  z-index: 10;
  transition: all var(--transition-fast);
}

.embed-notice-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.embed-notice-badge {
  background: rgba(142, 68, 173, 0.25);
  color: #c39bd3;
  border: 1px solid rgba(142, 68, 173, 0.5);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.embed-notice-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-switch-direct {
  background: linear-gradient(135deg, var(--accent-orange), #ff8a3d);
  color: #fff;
  border: none;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(244, 117, 33, 0.3);
  transition: all var(--transition-fast);
}

.btn-switch-direct:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(244, 117, 33, 0.5);
  filter: brightness(1.1);
}

.embed-ctrl-status {
  font-size: 11.5px;
  font-weight: 700;
  color: #c39bd3;
  background: rgba(142, 68, 173, 0.15);
  border: 1px solid rgba(142, 68, 173, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* When player is in .embed-mode: hide native-only controls */
.player-modal-overlay.embed-mode .player-scrubber-wrapper,
.player-main-area.embed-mode .player-scrubber-wrapper,
.player-modal-overlay.embed-mode #playerPlayPauseBtn,
.player-main-area.embed-mode #playerPlayPauseBtn,
.player-modal-overlay.embed-mode .player-volume-group,
.player-main-area.embed-mode .player-volume-group,
.player-modal-overlay.embed-mode #playerTimeDisplay,
.player-main-area.embed-mode #playerTimeDisplay,
.player-modal-overlay.embed-mode #playerBarSkipIntroBtn,
.player-main-area.embed-mode #playerBarSkipIntroBtn,
.player-modal-overlay.embed-mode .speed-selector-container,
.player-main-area.embed-mode .speed-selector-container {
  display: none !important;
}

.player-modal-overlay.embed-mode #embedCtrlStatus,
.player-main-area.embed-mode #embedCtrlStatus {
  display: inline-flex !important;
}

.player-modal-overlay.embed-mode .player-controls-bar,
.player-main-area.embed-mode .player-controls-bar {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================
   10. VER TODOS - CONTINUAR VIENDO MODAL & HUB
   ============================================================ */
.continue-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.continue-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.continue-modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1320px;
  height: 90vh;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(244, 117, 33, 0.15);
  transform: scale(0.97);
  transition: transform var(--transition-smooth);
}

.continue-modal-overlay.active .continue-modal-dialog {
  transform: scale(1);
}

.continue-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
  flex-wrap: wrap;
}

.continue-modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.continue-modal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--accent-orange-glow);
}

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

.continue-modal-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.continue-modal-badge {
  font-size: 11px;
  padding: 3px 9px;
  background: var(--accent-orange-subtle);
  border: 1px solid var(--border-neon);
  color: var(--accent-orange);
  border-radius: var(--radius-full);
  font-weight: 700;
}

.continue-modal-subtitle {
  margin: 2px 0 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.continue-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 5;
  margin-left: auto;
  flex-shrink: 0;
}

#continueModalClearAllBtn,
.continue-modal-clear-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  position: static !important;
  top: auto !important;
  right: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0 !important;
}
#continueModalClearAllBtn:hover,
.continue-modal-clear-btn:hover {
  color: #ff5252;
  background: rgba(255, 82, 82, 0.1);
  border-color: rgba(255, 82, 82, 0.4);
}

#continueModalCloseBtn,
.continue-modal-header-actions #continueModalCloseBtn,
.continue-modal-header-actions .preview-close-btn,
.continue-modal-header-actions .continue-modal-close-btn,
.continue-modal-close-btn {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  margin: 0 !important;
  box-shadow: none;
  z-index: 2;
}

#continueModalCloseBtn:hover,
.continue-modal-header-actions #continueModalCloseBtn:hover,
.continue-modal-header-actions .preview-close-btn:hover,
.continue-modal-header-actions .continue-modal-close-btn:hover,
.continue-modal-close-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
  transform: scale(1.06);
}

/* Toolbar: Search & Filters */
.continue-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(11, 12, 15, 0.65);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.continue-search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 260px;
  max-width: 380px;
}

.continue-search-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  padding: 8px 32px 8px 34px;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.continue-search-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 12px var(--accent-orange-glow);
  background: var(--bg-surface);
}

.continue-search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.continue-search-clear:hover {
  color: #fff;
}

.continue-filter-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.continue-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.continue-control-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.continue-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}
.continue-select:hover,
.continue-select:focus {
  border-color: var(--accent-orange);
  color: #fff;
}
.continue-select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.continue-dir-btn {
  padding: 6px 12px;
  font-size: 12px;
  gap: 6px;
  cursor: pointer;
}
.continue-dir-btn:hover {
  border-color: var(--accent-orange);
  color: #fff;
}

.continue-status-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-darkest);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.continue-chip {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.continue-chip:hover {
  color: #fff;
}
.continue-chip.active {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-orange-glow);
}

/* Stats Bar */
.continue-modal-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
}

.continue-stats-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.continue-stats-divider {
  opacity: 0.4;
}

.continue-reset-filters-btn {
  background: transparent;
  border: none;
  color: var(--accent-orange);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  transition: all var(--transition-fast);
}
.continue-reset-filters-btn:hover {
  text-decoration: underline;
  color: var(--accent-orange-light);
}

/* Modal Body & Grid */
.continue-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  position: relative;
}

.continue-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.continue-modal-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.continue-modal-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-neon);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 16px rgba(244, 117, 33, 0.25);
}

.continue-card-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.continue-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.continue-date-tag {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.continue-ep-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.continue-progress-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.continue-progress-percent {
  color: var(--accent-orange);
  font-weight: 700;
}

.continue-meta-bullet {
  opacity: 0.4;
}

.continue-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-continue-play-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-continue-play-action:hover {
  background: var(--accent-orange-light);
  box-shadow: 0 4px 12px var(--accent-orange-glow);
}

.btn-continue-details-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-continue-details-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Empty State */
.continue-modal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 360px;
}

.continue-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.continue-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 8px 0;
}

.continue-empty-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.continue-empty-action {
  padding: 8px 20px;
  font-size: 13px;
}

/* Home Section Button & More Card */
.view-all-continue-btn {
  background: var(--accent-orange-subtle);
  border-color: var(--border-neon);
  color: var(--accent-orange);
  gap: 6px;
}
.view-all-continue-btn:hover {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-orange-glow);
}

.continue-all-count-badge {
  background: rgba(244, 117, 33, 0.25);
  color: var(--accent-orange-light);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
}
.view-all-continue-btn:hover .continue-all-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.continue-more-card {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(20, 22, 29, 0.95), rgba(27, 30, 40, 0.95));
  border: 1.5px dashed var(--border-neon);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-smooth);
}
.continue-more-card:hover {
  background: linear-gradient(135deg, rgba(27, 30, 40, 1), rgba(35, 39, 52, 1));
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 20px var(--accent-orange-glow);
}

.continue-more-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px;
}

.continue-more-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-orange-subtle);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-bounce);
}
.continue-more-card:hover .continue-more-icon-circle {
  transform: scale(1.15);
  background: var(--accent-orange);
  color: #fff;
}

.continue-more-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-orange);
}

.continue-more-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}

.continue-more-badge {
  font-size: 11px;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .continue-modal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .continue-search-box {
    max-width: none;
  }
  .continue-filter-controls {
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .continue-modal-overlay {
    padding: 10px;
  }
  .continue-modal-dialog {
    height: 96vh;
    border-radius: var(--radius-md);
  }
  .continue-modal-header {
    padding: 12px 14px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .continue-modal-title-wrap {
    min-width: 0;
  }
  .continue-modal-subtitle {
    display: none;
  }
  .continue-modal-header-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  .continue-modal-clear-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  .continue-modal-toolbar {
    padding: 12px 16px;
  }
  .continue-filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .continue-control-group {
    justify-content: space-between;
  }
  .continue-status-chips {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .continue-status-chips::-webkit-scrollbar {
    display: none;
  }
  .continue-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .continue-modal-body {
    padding: 16px;
  }
  .continue-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ANIME LATINO (LATINO MX DUB) STYLES
   ============================================================ */
.nav-item-latino {
  position: relative;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.nav-item-latino span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-item-latino:hover {
  color: #4ade80 !important;
}

.nav-item-latino.active {
  color: #4ade80 !important;
  border-bottom: 2px solid #009c3b !important;
}

.latino-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 156, 59, 0.25), rgba(0, 156, 59, 0.1));
  border: 1px solid rgba(0, 156, 59, 0.5);
  padding: 6px 14px;
  border-radius: 999px;
  color: #4ade80;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 156, 59, 0.2);
}

.latino-flag-badge .flag-icon {
  font-size: 16px;
}

.badge-latino-mx {
  background: #009c3b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.latino-controls-bar select:focus {
  outline: none;
  border-color: #009c3b;
  box-shadow: 0 0 0 2px rgba(0, 156, 59, 0.25);
}

/* ============================================================
   USER PROFILE DROPDOWN
   ============================================================ */
.user-dropdown-menu {
  position: absolute;
  top: 48px;
  right: 0;
  width: 230px;
  background: var(--bg-surface, #14151a);
  border: 1px solid var(--border-light, #2b2f3a);
  border-radius: var(--radius-md, 10px);
  padding: 8px 0;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  z-index: 1002;
  backdrop-filter: blur(20px);
}

.user-dropdown-menu.active {
  display: flex;
}

.user-dropdown-header {
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--border-light, #2b2f3a);
  margin-bottom: 4px;
}

.user-dropdown-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted, #737b8b);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.user-dropdown-email {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: transparent;
  border: none;
  width: 100%;
  color: var(--text-secondary, #b3b9c6);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s);
}

.user-dropdown-item:hover {
  background: rgba(244, 117, 33, 0.12);
  color: var(--accent-orange, #f47521);
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border-light, #2b2f3a);
  margin: 6px 0;
}

/* ============================================================
   AUTH MODAL & FORMS
   ============================================================ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.auth-modal-overlay.active {
  display: flex;
}

.auth-modal-card {
  width: 100%;
  max-width: 420px;
  background: #14151a;
  border: 1px solid #2b2f3a;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  animation: modalScaleUp 0.25s ease-out;
}

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

.auth-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.auth-tabs-row {
  display: flex;
  gap: 8px;
  background: #0b0c0f;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #8c93a0;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: #23252b;
  color: #f47521;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: #b3b9c6;
}

.auth-input-group input {
  height: 42px;
  padding: 0 14px;
  background: #0b0c0f;
  border: 1px solid #2b2f3a;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  transition: border-color 0.2s;
}

.auth-input-group input:focus {
  outline: none;
  border-color: #f47521;
}

.auth-submit-btn {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
}

.auth-error-msg {
  padding: 10px 12px;
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.4);
  border-radius: 8px;
  color: #ff5252;
  font-size: 12px;
  font-weight: 600;
}

.auth-cloud-badge {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #23252b;
  text-align: center;
  font-size: 11px;
  color: #737b8b;
  font-weight: 500;
}

/* ============================================================
   AVATAR GALLERY MODAL
   ============================================================ */
.avatar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.avatar-modal-overlay.active {
  display: flex;
}

.avatar-modal-card {
  width: 100%;
  max-width: 540px;
  background: #14151a;
  border: 1px solid #2b2f3a;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  animation: modalScaleUp 0.25s ease-out;
}

.avatar-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.avatar-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.avatar-modal-subtitle {
  font-size: 13px;
  color: #8c93a0;
  margin: 0;
}

.avatar-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
}

@media (max-width: 520px) {
  .avatar-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background: #0b0c0f;
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.avatar-card:hover {
  background: #1c1e24;
  transform: translateY(-3px);
  border-color: rgba(244, 117, 33, 0.5);
}

.avatar-card.selected {
  background: #1e1b18;
  border-color: #f47521;
  box-shadow: 0 0 16px rgba(244, 117, 33, 0.35);
}

.avatar-preview-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.avatar-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

.avatar-modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}



