/**
 * AURA STREAM - Components & Interactive UI
 * Left-Aligned Hero, Clean Non-Overlapping Layout, Crimson & Gold Theme
 */

/* ==========================================================================
   HERO SPOTLIGHT SECTION (Clean Left Alignment & Zero Overlap)
   ========================================================================== */
.hero-spotlight-section {
  position: relative;
  min-height: 620px;
  background: var(--bg-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slides-wrapper {
  position: relative;
  width: 100%;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

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

/* Backdrop Image with Left-Side Dark Vignette Fade */
.hero-backdrop-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.65) saturate(1.1);
  transform: scale(1.04);
  transition: transform 7s ease-out;
  z-index: 1;
}

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

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  /* Strong dark fade on the left so all text has 100% crystal clear contrast */
  background: linear-gradient(90deg, #070709 0%, #070709 42%, rgba(7, 7, 9, 0.85) 60%, rgba(7, 7, 9, 0.25) 100%),
              linear-gradient(0deg, #070709 0%, transparent 35%);
  z-index: 2;
}

/* HERO CONTENT - FIRMLY ALIGNED TO THE LEFT */
.hero-content-wrapper {
  position: relative;
  z-index: 3;
  max-width: 640px;
  margin-left: 0; /* Ensures it sits firmly on the left */
  text-align: left;
}

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

.hero-badge {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.badge-glow {
  background: rgba(255, 42, 68, 0.16);
  border-color: rgba(255, 42, 68, 0.5);
  color: var(--accent-primary);
  box-shadow: 0 0 14px rgba(255, 42, 68, 0.3);
}

.badge-rating {
  background: rgba(255, 183, 3, 0.14);
  border-color: rgba(255, 183, 3, 0.45);
  color: var(--accent-gold);
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-native-title {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-native-title b {
  color: #ffffff;
}

.hero-synopsis {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-genres-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-genre-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* HERO CTA BUTTONS */
.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 5;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px var(--accent-primary-glow);
  transition: all var(--transition-fast);
}

.btn-hero-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 42, 68, 0.6);
}

.play-triangle {
  font-size: 0.9rem;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

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

.btn-hero-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.btn-hero-icon:hover {
  background: rgba(255, 42, 68, 0.2);
  border-color: var(--accent-primary);
  transform: scale(1.08);
}

/* ==========================================================================
   SAFE HERO CONTROLS - (NO OVERLAPPING!)
   Positioned safely in bottom-right corner with Prev/Next arrows & dots
   ========================================================================== */
.hero-controls-bar {
  position: absolute;
  bottom: 30px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
  background: rgba(14, 15, 20, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(14px);
}

.hero-slide-counter {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hero-slide-counter b {
  color: #ffffff;
}

.hero-nav-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.hero-nav-arrow-btn:hover {
  background: var(--accent-primary);
  transform: scale(1.1);
}

.hero-dot-indicators {
  display: flex;
  gap: 6px;
}

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

.hero-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--accent-primary);
}

/* ==========================================================================
   WEEKLY RELEASE SCHEDULE (Jadwal Rilis)
   ========================================================================== */
.schedule-section-wrap {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-subtle);
}

.schedule-day-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 22px;
  scrollbar-width: thin;
}

.schedule-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

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

.schedule-tab-btn.active {
  background: rgba(255, 42, 68, 0.15);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 42, 68, 0.25);
}

.today-pulse {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-primary);
  color: #ffffff;
  letter-spacing: 0.5px;
}

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

.schedule-card {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: all var(--transition-fast);
}

.schedule-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 42, 68, 0.35);
  transform: translateY(-2px);
}

.schedule-poster {
  width: 72px;
  height: 98px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.schedule-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schedule-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 2px 5px;
  border-radius: 3px;
}

.schedule-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.schedule-time-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.schedule-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.schedule-title a:hover {
  color: var(--accent-primary);
}

.schedule-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.schedule-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.btn-schedule-play {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 42, 68, 0.15);
  border: 1px solid rgba(255, 42, 68, 0.4);
  color: #ffffff;
  transition: all var(--transition-fast);
}

.btn-schedule-play:hover {
  background: var(--accent-primary);
}

.btn-schedule-bookmark {
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 2px 4px;
}

.btn-schedule-bookmark:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   CONTINUE WATCHING ROW
   ========================================================================== */
.continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.continue-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.continue-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 42, 68, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.continue-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #101117;
}

.continue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.continue-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.7);
}

.continue-progress-fill {
  height: 100%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

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

.continue-card:hover .continue-play-hover {
  opacity: 1;
}

.play-sym {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--accent-primary-glow);
}

.btn-clear-history {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.continue-card:hover .btn-clear-history {
  opacity: 1;
}

.continue-meta {
  padding: 12px 14px;
}

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

.continue-ep-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.continue-percent {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.continue-title {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-title a:hover {
  color: var(--accent-primary);
}

/* ==========================================================================
   MEDIA CARDS GRID (Clean Netflix/Anichin Standard)
   ========================================================================== */
.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.filter-tab-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-tab-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.filter-tab-pill.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--accent-primary-glow);
}

.main-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px 18px;
}

.aura-media-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.aura-media-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.card-poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #11131a;
}

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

.aura-media-card:hover .card-poster-wrap img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(10, 11, 15, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  z-index: 2;
}

.card-badge.badge-fire {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 42, 68, 0.5);
}

.card-ep-count {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold);
  z-index: 2;
}

/* Quick Action Overlay on Card Hover */
.card-quick-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 7, 9, 0.92) 0%, rgba(7, 7, 9, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 3;
}

.aura-media-card:hover .card-quick-overlay {
  opacity: 1;
}

.card-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-primary-glow);
  transition: transform var(--transition-bounce);
}

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

.card-overlay-actions {
  display: flex;
  gap: 8px;
}

.overlay-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
  transition: all var(--transition-fast);
}

.overlay-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.1);
}

.card-meta {
  padding: 12px;
}

.card-title {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title a:hover {
  color: var(--accent-primary);
}

.card-sub-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.card-rating {
  color: var(--accent-gold);
  font-weight: 700;
}

.card-type-tag {
  color: var(--text-secondary);
}

.card-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: auto;
}

.card-status-dot.ongoing {
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.card-status-dot.completed {
  background: var(--text-muted);
}

.card-genres-strip {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   TOP 10 RANKED SECTION
   ========================================================================== */
.top-ten-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all var(--transition-fast);
}

.top-rank-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 42, 68, 0.35);
  transform: translateX(4px);
}

.rank-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  width: 42px;
  line-height: 1;
  color: var(--text-muted);
}

.rank-1 {
  color: var(--accent-primary);
  text-shadow: 0 0 14px rgba(255, 42, 68, 0.5);
}

.rank-2 {
  color: #f3f4f6;
}

.rank-3 {
  color: var(--accent-gold);
}

.rank-thumb {
  width: 46px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-meta {
  flex: 1;
}

.rank-title {
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #ffffff;
}

.rank-genres {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
}

.rank-stats {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  margin-top: 4px;
}

.rank-star {
  color: var(--accent-gold);
  font-weight: 700;
}

.rank-views {
  color: var(--text-muted);
}

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.search-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-dialog {
  width: 92%;
  max-width: 660px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: translateY(-20px) scale(0.98);
  transition: all var(--transition-bounce);
}

.search-modal-backdrop.active .search-modal-dialog {
  transform: translateY(0) scale(1);
}

.search-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  display: none;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 4px;
}

.search-esc-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.search-modal-body {
  padding: 18px 20px;
  max-height: 460px;
  overflow-y: auto;
}

.search-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tags-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.search-tag-chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.search-tag-chip:hover {
  background: rgba(255, 42, 68, 0.15);
  color: var(--accent-primary);
  border-color: rgba(255, 42, 68, 0.4);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 42, 68, 0.3);
  transform: translateX(4px);
}

.search-thumb {
  width: 48px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-item-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 0.55rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.85);
  color: var(--accent-primary);
  text-align: center;
  padding: 1px 0;
}

.search-info {
  flex: 1;
}

.search-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.search-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
}

.search-highlight {
  background: rgba(255, 42, 68, 0.3);
  color: #ffffff;
  padding: 0 2px;
  border-radius: 2px;
}

.search-native {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.search-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.meta-pill {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.search-action .search-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 42, 68, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.search-shortcuts-guide {
  display: flex;
  gap: 12px;
}

.search-shortcuts-guide kbd {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.search-empty-state, .search-no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-icon, .no-res-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
}

/* ==========================================================================
   WATCHLIST SLIDE-OUT DRAWER
   ========================================================================== */
.watchlist-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.watchlist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 390px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -10px 0 45px rgba(0, 0, 0, 0.85);
  z-index: 2200;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.watchlist-drawer.open {
  transform: translateX(0);
}

body.drawer-open .watchlist-drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

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

.drawer-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.drawer-close-btn {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.drawer-close-btn:hover {
  color: #ffffff;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-thumb {
  width: 60px;
  height: 84px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drawer-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.drawer-type {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.drawer-item-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-drawer-watch {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-primary);
  color: #ffffff;
}

.btn-drawer-remove {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-drawer-remove:hover {
  color: var(--accent-primary);
}

.drawer-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.drawer-empty-state .subtext {
  font-size: 0.8rem;
  margin-top: 8px;
  display: block;
}

/* ==========================================================================
   QUICK PREVIEW MODAL & TRAILER MODAL
   ========================================================================== */
.aura-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.aura-modal-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.preview-modal-dialog {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  z-index: 2501;
}

.preview-modal-backdrop-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #121520;
}

.preview-modal-backdrop-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-card) 0%, rgba(20, 21, 28, 0.4) 100%);
}

.preview-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 16, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2510;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.preview-close-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  transform: scale(1.1);
}

.preview-modal-content {
  padding: 0 26px 26px 26px;
  position: relative;
  margin-top: -30px;
}

.preview-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.badge-pill.rating-pill {
  background: rgba(255, 183, 3, 0.18);
  color: var(--accent-gold);
}

.preview-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.preview-native {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.preview-synopsis {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 16px;
}

.preview-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.tag-pill {
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

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

.btn-play-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 800;
  padding: 12px;
  border-radius: var(--radius-pill);
}

.btn-bookmark-preview {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Trailer Modal */
.aura-modal-content.trailer-modal {
  width: 90%;
  max-width: 800px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.trailer-iframe-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.trailer-iframe-wrap iframe {
  width: 100%;
  height: 100%;
}

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

.aura-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 21, 28, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 42, 68, 0.4);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-bounce);
}

.aura-toast.toast-show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.1rem;
}

/* ==========================================================================
   ANICHIN PORTAL SPOTLIGHT BANNER (1:1 with Screenshot)
   ========================================================================== */
.anichin-spotlight-wrapper {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.anichin-spotlight-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7.2;
  min-height: 290px;
  background-size: cover;
  background-position: center 20%;
  overflow: hidden;
  transition: background-image 0.5s ease;
}

.anichin-spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,9,13,0.15) 0%, rgba(8,9,13,0.85) 100%),
              radial-gradient(circle at center, transparent 35%, rgba(8,9,13,0.75) 100%);
}

.spotlight-top-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 17, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  backdrop-filter: blur(8px);
  z-index: 5;
}

.spotlight-top-badge .badge-type {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-red);
  letter-spacing: 0.5px;
}

.spotlight-top-badge .badge-star {
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
}

.spotlight-slider-dots {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.spotlight-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.spotlight-slider-dot.active {
  background: var(--accent-red);
  width: 20px;
  border-radius: 4px;
}

/* Red / Dark Info Bar Attached Directly Underneath */
.anichin-spotlight-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #ff2a44 0%, #e01e38 70%, #b80c23 100%);
  padding: 14px 20px;
  color: #ffffff;
  gap: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.spotlight-bar-left {
  flex: 1;
  min-width: 0;
}

.spotlight-bar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.spotlight-bar-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.spotlight-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f1118;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.18);
}

.spotlight-bar-btn:hover {
  background: #ffffff;
  color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* ==========================================================================
   PORTAL SECTION HEADERS
   ========================================================================== */
.portal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.portal-section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-red);
}

.portal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-title-bar {
  width: 4px;
  height: 18px;
  background: var(--accent-red);
  border-radius: 2px;
}

.portal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.portal-view-all {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-blue);
  background: rgba(0, 112, 243, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0, 112, 243, 0.25);
  transition: all var(--transition-fast);
}

.portal-view-all:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
}

/* ==========================================================================
   ANICHIN 5-COLUMN CARD GRID & BADGES (1:1 Replica)
   ========================================================================== */
.anichin-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 12px;
}

.anichin-portal-card {
  position: relative;
  background: #11141f;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.anichin-portal-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red);
  box-shadow: 0 8px 22px rgba(255, 42, 68, 0.25);
}

.card-thumbnail-box {
  position: relative;
  aspect-ratio: 2 / 2.85;
  overflow: hidden;
  background: #090a0f;
}

.card-thumbnail-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.anichin-portal-card:hover .card-thumbnail-box img {
  transform: scale(1.06);
}

/* Badges: Top-Left Play Icon */
.badge-play-icon {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.65rem;
  box-shadow: 0 0 10px rgba(255, 42, 68, 0.6);
  z-index: 3;
}

/* Badges: Top-Right Type Pill */
.badge-type-pill {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(14, 16, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(4px);
  z-index: 3;
}

/* Badges: Bottom-Left Solid Red Episode Pill */
.badge-ep-red {
  position: absolute;
  bottom: 7px;
  left: 7px;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  z-index: 3;
  letter-spacing: 0.3px;
}

/* Badges: Bottom-Right Sub Pill */
.badge-sub-pill {
  position: absolute;
  bottom: 7px;
  right: 7px;
  background: #ffb703;
  color: #000000;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 3;
  text-transform: uppercase;
}

.card-title-box {
  padding: 8px 9px 10px 9px;
  background: #0d0f17;
}

.card-title-text {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  color: #e2e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.anichin-portal-card:hover .card-title-text {
  color: var(--accent-red);
}

/* Quick hover play overlay */
.card-hover-play-link {
  position: absolute;
  inset: 0;
  z-index: 4;
}

/* ==========================================================================
   VIP TELEGRAM BANNER
   ========================================================================== */
.anichin-vip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0f121d 0%, #171b29 50%, #1c0e13 100%);
  border: 1px solid rgba(255, 42, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.anichin-vip-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-red);
}

.vip-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vip-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0070f3 0%, #00d2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0, 112, 243, 0.5);
}

.vip-text-wrap h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
}

.vip-text-wrap h3 span {
  color: var(--accent-red);
}

.vip-text-wrap p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.btn-vip-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 42, 68, 0.4);
}

.btn-vip-join:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 42, 68, 0.6);
}

/* ==========================================================================
   RECOMMENDATIONS TABS
   ========================================================================== */
.recom-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.recom-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.recom-tab-btn:hover, .recom-tab-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
}

/* ==========================================================================
   BLOG / GUIDES CARDS
   ========================================================================== */
.anichin-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.guide-card-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #10131d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: all var(--transition-fast);
}

.guide-card-box:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.guide-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,42,68,0.2) 0%, rgba(0,112,243,0.2) 100%);
  border: 1px solid rgba(255, 42, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

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

.guide-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-red);
  text-transform: uppercase;
}

.guide-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   SIDEBAR WIDGETS (Right Column)
   ========================================================================== */
.sidebar-box-widget {
  background: #0c0e15;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.sidebar-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #11141e;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent-red);
  border-radius: 2px;
}

.sidebar-widget-body {
  padding: 14px;
}

/* FILTER SEARCH BOX */
.sidebar-filter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-select-wrap select {
  width: 100%;
  background: #151926;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.sidebar-select-wrap select:focus {
  border-color: var(--accent-blue);
}

.sidebar-select-wrap select option {
  background: #0f1118;
  color: #ffffff;
}

.btn-sidebar-search {
  background: var(--accent-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 9px;
  border-radius: 4px;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-sidebar-search:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 4px 14px rgba(255, 42, 68, 0.4);
}

/* SOCIAL MEDIA BUTTONS */
.sidebar-social-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-social-red {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #ff2a44 0%, #e01e38 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 9px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.btn-social-red:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-social-blue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #0070f3 0%, #0060df 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 9px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.btn-social-blue:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ONGOING SERIES LIST */
.ongoing-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  transition: background var(--transition-fast);
}

.ongoing-list-row:last-child {
  border-bottom: none;
}

.ongoing-list-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.ongoing-title-link {
  color: #cbd5e1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
  transition: color var(--transition-fast);
}

.ongoing-list-row:hover .ongoing-title-link {
  color: var(--accent-red);
}

.ongoing-ep-tag {
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* POPULAR RANKED LIST WITH TABS */
.popular-tabs-row {
  display: flex;
  gap: 4px;
  padding: 8px 14px;
  background: #0f111a;
  border-bottom: 1px solid var(--border-subtle);
}

.popular-tab-btn {
  flex: 1;
  padding: 5px 8px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  border-radius: 3px;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.popular-tab-btn.active, .popular-tab-btn:hover {
  background: var(--accent-red);
  color: #ffffff;
}

.popular-ranked-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.popular-ranked-item:last-child {
  border-bottom: none;
}

.rank-index-badge {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.rank-top-1 {
  background: var(--accent-red);
  color: #ffffff;
}

.rank-top-2 {
  background: var(--accent-blue);
  color: #ffffff;
}

.rank-top-3 {
  background: #ffb703;
  color: #000000;
}

.rank-item-poster {
  width: 42px;
  height: 56px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.rank-item-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-item-details {
  flex: 1;
  min-width: 0;
}

.rank-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}

.popular-ranked-item:hover .rank-item-title {
  color: var(--accent-red);
}

.rank-item-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.rank-item-rating {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-top: 1px;
}

/* NEW ADDITIONS LIST */
.new-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.new-item-row:last-child {
  border-bottom: none;
}

.new-item-poster {
  width: 40px;
  height: 52px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.new-item-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-item-details {
  flex: 1;
  min-width: 0;
}

.new-item-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-item-row:hover .new-item-title {
  color: var(--accent-blue);
}

.new-item-genres {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.new-item-date {
  font-size: 0.68rem;
  color: var(--accent-red);
  margin-top: 2px;
}

/* ==========================================================================
   ANICHIN TOP SCHEDULE DAY BAR WITH INTERACTIVE DROPDOWNS (1:1 Replica)
   ========================================================================== */
.anichin-schedule-bar-strip {
  width: 100%;
  margin-top: 14px;
  margin-bottom: 12px;
  position: relative;
  z-index: 100;
}

.schedule-bar-inner {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.schedule-day-item {
  position: relative;
  flex: 1;
  min-width: 0;
}

.schedule-day-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 10px;
  background: #1c1f26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2.5px solid transparent;
  border-radius: 4px;
  color: #c4c9d4;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  user-select: none;
}

.schedule-day-icon {
  flex-shrink: 0;
  opacity: 0.85;
  color: currentColor;
}

/* Hover & Active / Open State */
.schedule-day-btn:hover,
.schedule-day-item:hover .schedule-day-btn,
.schedule-day-item.is-open .schedule-day-btn,
.schedule-day-item.active .schedule-day-btn {
  background: #171920;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  border-bottom: 2.5px solid #ff4500;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.schedule-day-item.is-today .schedule-day-btn {
  border-bottom: 2.5px solid #ff4500;
  color: #ffffff;
}

/* Dropdown Menu Container */
.schedule-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  max-width: 290px;
  background: #181a20;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.88), 0 0 1px rgba(255, 255, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
  z-index: 1050;
  overflow: hidden;
}

/* Dropdown open on hover or active class */
.schedule-day-item:hover .schedule-dropdown-menu,
.schedule-day-item.is-open .schedule-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown List */
.schedule-dropdown-list {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.schedule-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: #c9cfdc;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.15s ease;
  overflow: hidden;
}

.schedule-dropdown-item:last-child {
  border-bottom: none;
}

.schedule-dropdown-icon {
  flex-shrink: 0;
  color: #8c93a4;
  transition: all 0.15s ease;
}

.schedule-dropdown-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.schedule-dropdown-item:hover {
  background: rgba(255, 69, 0, 0.14);
  color: #ffffff;
  padding-left: 17px;
}

.schedule-dropdown-item:hover .schedule-dropdown-icon {
  color: #ff4500;
  transform: scale(1.1);
}

.schedule-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #8c93a4;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.schedule-dropdown-footer:hover {
  background: #ff4500;
  color: #ffffff;
}

/* Right-align dropdowns for Saturday, Sunday, and Random tabs so they don't overflow viewport */
.schedule-day-item:nth-last-child(-n+3) .schedule-dropdown-menu {
  left: auto;
  right: 0;
}


