/* GLOBAL TEXT SELECTION & CARET FIX (PREVENTS TYPING CURSOR ON TEXT/CLICK) */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
}

/* Allow text selection, typing caret and cursor ONLY inside inputs, textareas and editable fields */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
  user-select: auto !important;
  cursor: text !important;
}

/* Clickable elements have pointer cursor */
button, a, .anime-card, .rec-card, .sidebar-ep-item, .cr-nav-arrow, .cr-indicator-bar, .page-btn, .nav-brand {
  cursor: pointer !important;
}

:root {
  --bg-primary: #000000;
  --bg-secondary: #0b0c10;
  --bg-card: #14151f;
  --bg-card-hover: #1e202f;
  --accent-orange: #ff640a; /* Crunchyroll vibrant orange */
  --accent-pink: #ff2a85;
  --accent-purple: #8b5cf6;
  --accent-cyan: #00f2fe;
  --text-main: #f8fafc;
  --text-muted: #a0a6b5;
  --text-dim: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 100, 10, 0.5);
  --glow-orange: rgba(255, 100, 10, 0.35);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 44px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-brand:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.brand-logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 100, 10, 0.35));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.nav-brand:hover .brand-logo-img {
  transform: scale(1.06) rotate(3deg);
  filter: drop-shadow(0 0 16px rgba(255, 100, 10, 0.7));
}

.brand-icon {
  font-size: 28px;
  color: var(--accent-orange);
  filter: drop-shadow(0 0 12px var(--glow-orange));
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.brand-title span {
  color: var(--accent-orange);
}

.brand-title-img {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-brand:hover .brand-title-img {
  filter: drop-shadow(0 0 12px rgba(255, 120, 20, 0.5));
}

.search-input {
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-btn:hover {
  color: #fff;
}

.nav-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid var(--accent-orange);
  border-radius: 0;
}

/* =======================================================
   CRUNCHYROLL-STYLE FULL-WIDTH HERO SPOTLIGHT SLIDER
   ======================================================= */
.cr-spotlight {
  position: relative;
  width: 100%;
  height: 560px;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.cr-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  display: flex;
  align-items: center;
}

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

.cr-slide-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: right center;
  z-index: 1;
}

.cr-left-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, 
    rgba(4, 5, 8, 0.82) 0%, 
    rgba(4, 5, 8, 0.72) 28%, 
    rgba(4, 5, 8, 0.42) 52%, 
    rgba(4, 5, 8, 0.08) 72%, 
    transparent 88%
  ),
  linear-gradient(to top, 
    rgba(4, 5, 8, 0.95) 0%, 
    rgba(4, 5, 8, 0.3) 12%, 
    transparent 24%
  );
  pointer-events: none;
}

.cr-slide-content {
  position: relative;
  z-index: 3;
  max-width: 580px;
  margin-left: 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cr-title {
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.08;
  color: #ffffff;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9);
}

.cr-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.cr-meta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #252634;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.cr-dot {
  font-size: 8px;
  color: var(--accent-orange);
}

.cr-desc {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

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

.cr-btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-orange);
  color: #000;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px var(--glow-orange);
}

.cr-btn-watch:hover {
  background: #ff7824;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 100, 10, 0.5);
}

.cr-btn-bookmark {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: var(--transition);
}

.cr-btn-bookmark:hover {
  background: rgba(255, 100, 10, 0.15);
  color: #fff;
}

.cr-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  width: 46px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.cr-nav-arrow:hover {
  background: rgba(255, 100, 10, 0.8);
  color: #000;
}

.cr-nav-arrow.prev { left: 0; border-radius: 0 8px 8px 0; }
.cr-nav-arrow.next { right: 0; border-radius: 8px 0 0 8px; }

.cr-indicators {
  position: absolute;
  bottom: 24px;
  left: 60px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cr-indicator-bar {
  width: 32px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.cr-indicator-bar.active {
  width: 48px;
  background: var(--accent-orange);
  box-shadow: 0 0 10px var(--glow-orange);
}

/* MAIN CONTENT */
.main-container {
  padding: 30px 44px 70px;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 5px;
  height: 26px;
  background: var(--accent-orange);
  border-radius: var(--radius-full);
}

.badge-count {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--accent-orange);
}

/* ANIME GRID */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 1400px) {
  .anime-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .anime-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.anime-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--glow-orange);
}

.card-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.anime-card:hover .card-thumb img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--accent-orange);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-year {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

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

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

.play-circle {
  width: 58px;
  height: 58px;
  background: var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 20px;
  box-shadow: 0 0 25px var(--glow-orange);
  transform: scale(0.8);
  transition: transform 0.2s ease;
}

.anime-card:hover .play-circle {
  transform: scale(1);
}

.card-info {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* PAGINATION */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
  color: #fff;
  border-color: var(--accent-orange);
  background: var(--bg-card-hover);
}

.page-btn.active {
  background: var(--accent-orange);
  color: #000;
  font-weight: 800;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--glow-orange);
}

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

.page-dots {
  color: var(--text-dim);
  padding: 0 6px;
  font-size: 16px;
  user-select: none;
}

/* THEATER MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.96);
  backdrop-filter: blur(25px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-secondary);
  width: 100%;
  max-width: 1400px;
  max-height: 94vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85), 0 0 50px rgba(255, 100, 10, 0.15);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(18, 19, 28, 0.95);
  position: sticky;
  top: 0;
  z-index: 50;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.modal-close:hover {
  color: #fff;
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.theater-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  padding: 24px 28px;
  background: #08090d;
}

.theater-container.no-sidebar {
  grid-template-columns: 1fr;
}

/* PLAYER WRAPPER */
.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#artplayer-container {
  width: 100%;
  height: 100%;
}

/* SEEKBAR HOVER PREVIEW (EXACT SCREENSHOT MATCH) */
.art-progress-tip {
  display: none !important;
}

.as-seek-preview-tooltip {
  position: absolute;
  bottom: 60px;
  left: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.95));
}

.as-seek-preview-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.as-seek-preview-frame {
  width: 160px;
  height: 90px;
  background: #000;
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: none;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.as-seek-preview-canvas {
  width: 160px;
  height: 90px;
  display: block;
  object-fit: cover;
  background: #0d0e14;
}

.as-seek-preview-spinner {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.as-seek-preview-spinner.show {
  opacity: 1;
}

.as-seek-preview-spinner::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ff640a;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.as-seek-preview-timebox {
  width: 160px;
  height: 24px;
  background: #ffffff;
  color: #000000;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  line-height: 24px;
  border-radius: 0 0 3px 3px;
  letter-spacing: 0.5px;
  position: relative;
}

.as-seek-preview-caret {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff;
}

.player-loader {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 16, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 100, 10, 0.2);
  border-top-color: var(--accent-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* =======================================================
   OTT-STYLE IN-PLAYER NEXT EPISODE FLOATING CARD (BOTTOM-RIGHT)
   ======================================================= */
.player-next-card {
  position: absolute;
  bottom: 85px;
  right: 20px;
  z-index: 120;
  background: linear-gradient(135deg, rgba(16, 18, 28, 0.96), rgba(10, 11, 18, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 100, 10, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 100, 10, 0.22);
  border-radius: 16px;
  padding: 12px;
  width: 360px;
  max-width: calc(100% - 40px);
  cursor: pointer;
  animation: cardSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.player-next-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-orange);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 100, 10, 0.35);
}

.next-card-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  background: #1e202f;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ccc;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.next-card-close:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  transform: scale(1.1);
}

.next-card-inner {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* 16:9 Video Frame Thumbnail Preview */
.next-card-frame {
  position: relative;
  width: 125px;
  min-width: 125px;
  height: 74px;
  border-radius: 10px;
  overflow: hidden;
  background: #08090d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}


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

.player-next-card:hover .next-card-img {
  transform: scale(1.08);
}

.next-card-frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.65));
  display: flex;
  align-items: center;
  justify-content: center;
}

.next-frame-play-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 100, 10, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 0 16px rgba(255, 100, 10, 0.6);
  padding-left: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-next-card:hover .next-frame-play-btn {
  transform: scale(1.15);
  background: #ff7824;
}

.next-frame-badge {
  position: absolute;
  bottom: 4px;
  right: 5px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Info Details */
.next-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.next-card-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-orange);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.next-card-tag i {
  font-size: 9px;
}

.next-card-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.next-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.next-card-countdown {
  font-size: 11px;
  color: #ddd;
  margin-top: 2px;
}

.next-card-countdown strong {
  color: var(--accent-orange);
  font-weight: 800;
  font-size: 13px;
}

.adv-page-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.adv-page-logo-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 100, 10, 0.45));
}
.adv-page-subtitle {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.5;
}

/* BIG SEARCH INPUT (Orange and White Theme) */
.adv-search-input-card {
  max-width: 1000px;
  margin: 0 auto 32px auto;
  background: #0f111c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.adv-search-input-card:focus-within {
  border-color: #ff640a;
  box-shadow: 0 4px 24px rgba(255, 100, 10, 0.25);
}
.adv-search-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 100, 10, 0.15);
  border: 1px solid rgba(255, 100, 10, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff640a;
  font-size: 18px;
  flex-shrink: 0;
}
.adv-big-search-input {
  flex: 1;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-body);
  outline: none;
}
.adv-big-search-input::placeholder {
  color: #64748b;
}
.adv-search-submit-btn {
  background: #ff640a;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 100, 10, 0.4);
}
.adv-search-submit-btn:hover {
  background: #ff7824;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(255, 100, 10, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 100, 10, 0.6);
}

.next-card-cta-btn {
  background: rgba(255, 100, 10, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 100, 10, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.player-next-card:hover .next-card-cta-btn {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
}

@media (max-width: 600px) {
  .player-next-card {
    right: 8px;
    bottom: 50px;
    padding: 6px 10px;
    width: auto;
    max-width: min(300px, calc(100% - 16px));
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
  }
  .next-card-inner {
    gap: 8px;
  }
  .next-card-frame {
    width: 68px;
    min-width: 68px;
    height: 40px;
    border-radius: 6px;
  }
  .next-frame-play-btn {
    width: 20px;
    height: 20px;
    font-size: 8px;
  }
  .next-frame-badge {
    font-size: 8px;
    padding: 1px 3px;
    bottom: 2px;
    right: 2px;
  }
  .next-card-tag {
    font-size: 8.5px;
    letter-spacing: 0.5px;
    gap: 3px;
  }
  .next-card-tag i {
    font-size: 7.5px;
  }
  .next-card-title {
    font-size: 11px;
    max-width: 150px;
    line-height: 1.2;
  }
  .next-card-meta {
    display: none;
  }
  .next-card-countdown {
    font-size: 9.5px;
    margin-top: 1px;
  }
  .next-card-countdown strong {
    font-size: 11px;
  }
  .next-card-cta-btn {
    padding: 2px 7px;
    font-size: 9.5px;
    margin-top: 2px;
    border-radius: 5px;
    gap: 4px;
  }
  .next-card-close {
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    font-size: 9px;
  }
}

/* Custom Sleek Picture-in-Picture Mini Player for Mobile & Tablets */
.art-video-player.art-mini {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 18px rgba(255, 100, 10, 0.25) !important;
  border: 1px solid rgba(255, 100, 10, 0.45) !important;
  z-index: 9999 !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 768px) {
  .art-video-player.art-mini {
    width: 175px !important;
    height: 98px !important;
    bottom: 16px !important;
    right: 14px !important;
  }
}

/* =======================================================
   IN-PLAYER SERIES FINALE RECOMMENDATION OVERLAY
   ======================================================= */
.player-finish-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.94);
  backdrop-filter: blur(18px);
  z-index: 85;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.4s ease;
}

.player-finish-overlay.show {
  display: flex;
}

.finish-badge {
  background: rgba(255, 100, 10, 0.2);
  color: var(--accent-orange);
  border: 1px solid var(--accent-orange);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.finish-heading {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}

.finish-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 720px;
}

.finish-card {
  background: #14151f;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.finish-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: 0 8px 20px rgba(255, 100, 10, 0.25);
}

.finish-thumb {
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
}

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

.finish-title {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.finish-replay-btn {
  margin-top: 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.finish-replay-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* HEADPHONE AUDIO POPUP */
.audio-menu-panel {
  position: absolute;
  bottom: 55px;
  right: 65px;
  background: rgba(15, 16, 26, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-active);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 150;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--glow-orange);
  min-width: 180px;
  display: none;
}

.audio-menu-panel.show {
  display: block;
}

.audio-menu-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent-orange);
  font-weight: 700;
  padding: 6px 16px 8px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-menu-item {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.audio-menu-item:hover {
  background: rgba(255, 100, 10, 0.15);
  color: #fff;
}

.audio-menu-item.active {
  color: var(--accent-orange);
  font-weight: 700;
}

.audio-menu-item.active::after {
  content: '✔';
  font-size: 12px;
}

/* RIGHT COLUMN: EPISODE SIDEBAR */
.sidebar-episodes {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 520px;
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-header-title i {
  color: var(--accent-orange);
}

.sidebar-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(255, 100, 10, 0.2);
  color: var(--accent-orange);
  border-radius: var(--radius-full);
}

.sidebar-season-bar {
  padding: 8px 12px;
  background: rgba(20, 21, 30, 0.95);
  border-bottom: 1px solid var(--border-color);
}

.season-select {
  width: 100%;
  background: #141520;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.season-select:hover, .season-select:focus {
  border-color: var(--accent-orange);
}

.season-select option {
  background: #141520;
  color: #fff;
}

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

/* SIDEBAR RECOMMENDED MOVIES */
.sidebar-movie-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-movie-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-orange);
  transform: translateX(4px);
}

.sidebar-movie-thumb {
  width: 44px;
  height: 62px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
}

.sidebar-movie-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.sidebar-movie-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-movie-sub {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-movie-mini {
  background: rgba(255, 100, 10, 0.2);
  color: var(--accent-orange);
  border: 1px solid var(--accent-orange);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.sidebar-ep-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
  text-decoration: none;
}

.sidebar-ep-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-orange);
  transform: translateX(4px);
}

.sidebar-ep-item.active {
  background: rgba(255, 100, 10, 0.2);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 100, 10, 0.2);
}

.sidebar-ep-num {
  font-size: 13px;
  font-weight: 700;
}

.sidebar-ep-status {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-ep-item.active .sidebar-ep-status {
  color: var(--accent-orange);
  font-weight: 700;
}

/* DETAILS & OVERVIEW */
.modal-details {
  padding: 18px 28px 24px;
  border-bottom: 1px solid var(--border-color);
}

.details-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.chip {
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-muted);
}

.chip.highlight {
  color: var(--accent-orange);
  border-color: var(--border-active);
}

.details-overview {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* RECOMMENDATIONS SECTION */
.recommendations-section {
  padding: 28px 28px 48px;
}

.recommendations-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.recommendations-heading i {
  color: var(--accent-orange);
}

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

.rec-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.rec-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-orange);
  box-shadow: 0 12px 25px rgba(255, 100, 10, 0.2);
}

.rec-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.rec-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rec-card:hover .rec-thumb img {
  transform: scale(1.06);
}

.rec-title {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

@media (max-width: 950px) {
  .theater-container {
    grid-template-columns: 1fr;
  }
  .sidebar-episodes {
    max-height: 300px;
  }
  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .cr-title {
    font-size: 34px;
  }
  .cr-slide-art {
    width: 100%;
    opacity: 0.35;
  }
  .cr-slide-content {
    margin-left: 24px;
  }
  .finish-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ==========================================================================
   DESIDUBANIME UI / UX THEME EXTENSION
   ========================================================================== */

body.desidub-theme {
  background-color: #0d0f14;
  color: #f8fafc;
}

/* NAVBAR UPGRADES */
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-icon-btn {
  width: 38px;
  height: 38px;
  background: #181c27;
  border: 1px solid #262d3e;
  color: #cbd5e1;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s ease;
}

.nav-icon-btn:hover {
  background: #202534;
  color: #fff;
  border-color: #ff640a;
}

.nav-search-box {
  width: 360px;
  max-width: 420px;
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 4px 6px 4px 14px;
  margin-left: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search-box:focus-within {
  border-color: #ff640a;
  box-shadow: 0 0 14px rgba(255, 100, 10, 0.35);
}

.nav-search-icon {
  color: #ff640a;
  font-size: 14px;
  margin-right: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-search-box:focus-within .nav-search-icon {
  transform: scale(1.1);
}

.nav-search-box .search-input {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 600;
  width: 100%;
  padding: 6px 8px 6px 0;
}

.nav-search-box .search-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.nav-search-box .search-input:focus {
  outline: none;
  box-shadow: none;
  border: none;
}

.search-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ff640a;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 100, 10, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-filter-btn:hover {
  background: #ff7824;
  box-shadow: 0 3px 12px rgba(255, 100, 10, 0.55);
  transform: translateY(-1px);
}

.search-filter-btn i {
  color: #ffffff;
  font-size: 11px;
}

@media (max-width: 900px) {
  .nav-search-box {
    width: 240px;
  }
}
@media (max-width: 680px) {
  .nav-search-box {
    display: none;
  }
}

.nav-telegram-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0088cc;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.nav-telegram-btn:hover {
  transform: scale(1.08);
}

.lang-toggle-group {
  display: flex;
  background: #181c27;
  border: 1px solid #262d3e;
  border-radius: 6px;
  overflow: hidden;
}

.lang-btn {
  padding: 4px 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: #ff640a;
  color: #fff;
}

.nav-login-btn {
  background: #ff640a;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 6px;
  border: none;
  transition: background 0.2s ease;
}

.nav-login-btn:hover {
  background: #ff7a29;
  color: #fff;
}

/* MOBILE NAV DRAWER */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
}
.nav-drawer-overlay.active { display: block; }

.nav-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #11141c;
  border-right: 1px solid #1f2434;
  z-index: 1000;
  transition: left 0.3s ease;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.nav-drawer.active { left: 0; }

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

.drawer-close {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 20px;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  text-align: left;
  transition: background 0.15s ease;
}

.drawer-link:hover, .drawer-link.active {
  background: #1c2130;
  color: #ff640a;
}

/* ==========================================================================
   VIEW 2: ANIME DETAILS PAGE (Screenshots 1 & 2)
   ========================================================================== */

.details-top-bar {
  padding: 14px 32px;
  background: #0d0f14;
  border-bottom: 1px solid #1a1e2b;
}

.back-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #141722;
  border: 1px solid #242b3d;
  color: #cbd5e1;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-link-btn:hover {
  background: #1c2130;
  color: #ff640a;
  border-color: #ff640a;
}

.details-hero-section {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 40px 48px;
  background: #0d0f14;
}

.details-hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.22);
  transform: scale(1.1);
}

.details-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13, 15, 20, 0.95) 25%, rgba(13, 15, 20, 0.75) 65%, rgba(13, 15, 20, 0.95) 100%),
              linear-gradient(to top, #0d0f14 0%, transparent 60%);
}

.details-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.details-poster-wrap {
  flex-shrink: 0;
  width: 240px;
}

.details-poster-img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
}

.details-info-wrap {
  flex: 1;
}

.details-anime-title {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.details-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-badge {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  background: #1a1e2b;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-badge.rating {
  color: #ff9452;
  background: rgba(255, 100, 10, 0.12);
  border-color: rgba(255, 100, 10, 0.3);
}

.meta-badge.dub-badge {
  background: #f59e0b;
  color: #000;
  font-weight: 800;
  border: none;
}

.details-genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.genre-pill {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}

.details-overview-box {
  margin-bottom: 26px;
  max-width: 950px;
}

.overview-heading {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.overview-text {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
  max-height: 72px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.overview-text.expanded {
  max-height: 600px;
}

.overview-read-more {
  background: transparent;
  border: none;
  color: #ff640a;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

.btn-watch-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff640a 0%, #ff7a29 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 100, 10, 0.35);
  transition: all 0.2s ease;
}

.btn-watch-now:hover {
  background: #ff7a29;
  color: #fff;
  transform: translateY(-2px);
}

.btn-action-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-glass:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* DETAILS 2-COLUMN BODY */
.details-body-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
}

.details-info-sidebar {
  background: #141722;
  border: 1px solid #1f2434;
  border-radius: 10px;
  padding: 22px;
  height: fit-content;
}

.info-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1f2434;
}

.info-meta-list {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 12px 10px;
  font-size: 13px;
}

.info-meta-list dt {
  color: #64748b;
  font-weight: 600;
}

.info-meta-list dd {
  color: #cbd5e1;
  font-weight: 500;
  word-break: break-word;
}

/* MAIN CONTENT TABS */
.details-main-content {
  flex: 1;
}

.details-tab-bar {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid #1f2434;
  margin-bottom: 24px;
}

.detail-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 4px;
  position: relative;
  cursor: pointer;
  transition: color 0.2s ease;
}

.detail-tab-btn:hover {
  color: #fff;
}

.detail-tab-btn.active {
  color: #ff640a;
}

.detail-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ff640a;
}

.season-selector-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.season-btn {
  background: #141722;
  color: #94a3b8;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid #232a3d;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.season-btn:hover {
  background: #1e2235;
  color: #fff;
  border-color: #3b4256;
}

.season-btn.active {
  background: #ff640a;
  color: #fff;
  border-color: #ff640a;
  box-shadow: 0 4px 14px rgba(255, 100, 10, 0.35);
}

.watch-season-selector {
  padding: 10px 14px;
  background: #0f111a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.watch-season-dropdown {
  width: 100%;
  background: #181b2a;
  border: 1px solid #2a3147;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.watch-season-dropdown:focus,
.watch-season-dropdown:hover {
  border-color: #ff640a;
}

.episodes-filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.episodes-filter-controls .control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.episodes-filter-controls label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.styled-select, .styled-input {
  background: #141722;
  border: 1px solid #232a3d;
  color: #fff;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

.styled-select:focus, .styled-input:focus {
  border-color: #ff640a;
}

/* EPISODE CARDS GRID (Matching Screenshot 2) */
.episodes-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.ep-grid-card {
  background: #141722;
  border: 1px solid #1f2434;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.ep-grid-card:hover {
  transform: translateY(-4px);
  border-color: #ff640a;
}

.ep-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0b0d13;
}

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

.ep-grid-card:hover .ep-card-thumb img {
  transform: scale(1.06);
}

.ep-card-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.ep-card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ep-card-play-overlay i {
  font-size: 24px;
  color: #ff640a;
}

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

.ep-card-title {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* DOWNLOADS SECTION */
.downloads-section {
  background: #141722;
  border: 1px solid #1f2434;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 36px;
}

.downloads-title {
  font-size: 17px;
  font-weight: 700;
  color: #ff640a;
  margin-bottom: 14px;
}

.download-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.res-badge {
  background: #ff640a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 4px;
  min-width: 68px;
  text-align: center;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #202636;
  border: 1px solid #2d354a;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dl-btn:hover {
  background: #2b3348;
}

/* RECOMMENDED FOR YOU (Screenshots 2 & 5) */
.details-rec-section, .watch-rec-section {
  margin-top: 32px;
}

.details-rec-title, .watch-rec-heading {
  font-size: 18px;
  font-weight: 700;
  color: #ff640a;
  margin-bottom: 16px;
}

.details-rec-grid, .watch-rec-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

@media (max-width: 1400px) {
  .details-rec-grid, .watch-rec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .details-rec-grid, .watch-rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rec-card-desidub {
  position: relative;
  background: #0f111a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.rec-card-desidub:hover {
  transform: translateY(-3px);
  border-color: #ff640a;
}

.rec-card-thumb {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #0b0d13;
}

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

.badge-completed-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.rec-card-meta {
  padding: 10px 12px;
}

.rec-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.rec-card-synopsis {
  font-size: 11px;
  color: #94a3b8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

/* ==========================================================================
   VIEW 3: WATCH / VIDEO PLAYER VIEW (Screenshots 3, 4, 5)
   ========================================================================== */

.watch-top-nav {
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d0f14;
  border-bottom: 1px solid #1c2130;
}

.watch-title-badge {
  font-size: 14px;
  font-weight: 700;
  color: #ff9452;
}

.watch-theater-layout {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 20px;
  padding: 20px 24px;
  max-width: 1700px;
  margin: 0 auto;
}

/* =======================================================
   MOVIE MODE: 2-COLUMN CINEMATIC THEATER (Matching media_1789237730228.png)
   ======================================================= */
.watch-theater-layout.movie-mode {
  grid-template-columns: 1fr 340px;
  gap: 28px;
  max-width: 1650px;
  padding: 16px 36px 48px;
  margin: 0 auto;
}

.watch-theater-layout.movie-mode .watch-episodes-sidebar {
  display: none !important;
}

.watch-theater-layout.movie-mode .most-popular-block {
  display: none !important;
}

.watch-theater-layout.movie-mode .next-ep-countdown-banner {
  display: none !important;
}

#watchPlayerView.movie-mode .watch-top-nav {
  display: none !important;
}

/* Movie Server Box */
.watch-theater-layout.movie-mode .watch-server-box {
  display: flex;
  align-items: center;
  background: #11141e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 14px;
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.watch-theater-layout.movie-mode .server-notice-block {
  background: #0284c7;
  border-radius: 6px;
  padding: 8px 18px;
  min-width: 175px;
  max-width: 260px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.watch-theater-layout.movie-mode .notice-title {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2px;
}

.watch-theater-layout.movie-mode .notice-ep {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-theater-layout.movie-mode .notice-sub {
  display: none;
}

.watch-theater-layout.movie-mode .server-buttons-block {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  padding: 0;
}

.watch-theater-layout.movie-mode .server-row {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Movie Right Sidebar */
.watch-theater-layout.movie-mode .watch-info-sidebar {
  display: flex;
  flex-direction: column;
}

.watch-theater-layout.movie-mode .watch-mini-anime-card {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 0;
}

.watch-theater-layout.movie-mode .watch-mini-poster {
  width: 175px;
  height: 250px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  margin: 0 0 16px 0;
  display: block;
}

.watch-theater-layout.movie-mode .watch-mini-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
}

.watch-theater-layout.movie-mode .watch-mini-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.movie-badge-r {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}

.movie-badge-audio {
  background: #6ee7b7;
  color: #064e3b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.movie-badge-type {
  background: #fde047;
  color: #713f12;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.movie-badge-dur {
  background: #7dd3fc;
  color: #0c4a6e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.watch-theater-layout.movie-mode .watch-mini-synopsis {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 10px 0 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.watch-theater-layout.movie-mode .watch-rating-widget {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 20px;
}

.watch-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.share-label-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.share-label-heading {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.share-label-sub {
  color: #94a3b8;
  font-size: 12px;
}

.share-purple-btn {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.share-purple-btn:hover {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.6);
}

@media (max-width: 1100px) {
  .watch-theater-layout.movie-mode {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }
}

/* MOVIE DETAILS LAUNCH CARD */
.movie-launch-card {
  display: flex;
  gap: 24px;
  background: #10131e;
  border: 1px solid #1f2538;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 24px;
  align-items: center;
}

.movie-launch-card:hover {
  border-color: #ff640a;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 100, 10, 0.2);
}

.movie-launch-thumb {
  position: relative;
  width: 240px;
  min-width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.movie-launch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-launch-card:hover .movie-launch-thumb img {
  transform: scale(1.05);
}

.movie-launch-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  transition: all 0.2s ease;
}

.movie-launch-card:hover .movie-launch-play {
  background: rgba(255, 100, 10, 0.6);
}

.movie-launch-dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.movie-launch-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.movie-launch-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.movie-launch-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.movie-launch-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-play-btn {
  align-self: flex-start;
  margin-top: 6px;
  background: #ff640a;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.movie-play-btn:hover {
  background: #ff7d33;
  box-shadow: 0 4px 14px rgba(255, 100, 10, 0.4);
}

@media (max-width: 650px) {
  .movie-launch-card {
    flex-direction: column;
    align-items: stretch;
  }
  .movie-launch-thumb {
    width: 100%;
    min-width: 100%;
  }
}

/* 1. LEFT EPISODES SIDEBAR */
.watch-episodes-sidebar {
  background: #141722;
  border: 1px solid #1f2434;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: fit-content;
  max-height: 640px;
}

.watch-ep-header {
  padding: 12px 14px;
  border-bottom: 1px solid #1f2434;
  background: #11141c;
}

.ep-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

.ep-search-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d0f14;
  border: 1px solid #232a3d;
  border-radius: 4px;
  padding: 5px 10px;
}

.ep-search-mini i {
  color: #64748b;
  font-size: 12px;
}

.ep-search-mini input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  width: 100%;
  outline: none;
}

.watch-ep-list-scroll {
  overflow-y: auto;
  flex: 1;
}

.watch-ep-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.watch-ep-row:hover {
  background: #1a1f2e;
  color: #fff;
}

.watch-ep-row.active {
  background: #ff640a;
  color: #fff;
  font-weight: 700;
}

.watch-ep-row .ep-row-num {
  font-weight: 700;
  margin-right: 10px;
  color: #94a3b8;
}

.watch-ep-row.active .ep-row-num {
  color: #fff;
}

.watch-ep-row .ep-row-title {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.watch-ep-row .ep-row-arrow {
  margin-left: 8px;
  font-size: 12px;
}

/* 2. CENTER PLAYER & CONTROLS */
.watch-center-main {
  display: flex;
  flex-direction: column;
}

.watch-player-box {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1f2434;
}

.player-server-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  background: rgba(14, 17, 23, 0.88);
  backdrop-filter: blur(8px);
  color: #ff9452;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 100, 10, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.watch-subplayer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 16px;
}

.subplayer-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.subplayer-btn:hover {
  color: #fff;
}

.subplayer-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subplayer-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #141722;
  border: 1px solid #232a3d;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subplayer-icon-btn:hover {
  background: #1f2434;
  color: #ff640a;
  border-color: #ff640a;
}

/* SERVER SELECTION BOX (Matching Screenshot 3 & 4) */
.watch-server-box {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #141722;
  border: 1px solid #1f2434;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.server-notice-block {
  background: linear-gradient(135deg, #ff640a 0%, #e05300 100%);
  padding: 16px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notice-title {
  font-size: 12px;
  opacity: 0.85;
}

.notice-ep {
  font-size: 16px;
  font-weight: 800;
  margin: 3px 0;
}

.notice-sub {
  font-size: 11px;
  opacity: 0.9;
  line-height: 1.3;
}

.server-buttons-block {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.server-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  min-width: 55px;
}

.server-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.server-pill-btn {
  background: #1e2433;
  border: 1px solid #2a3348;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.server-pill-btn:hover {
  background: #262e42;
  color: #fff;
}

.server-pill-btn.active {
  background: #ff640a;
  color: #fff;
  font-weight: 700;
  border-color: #ff640a;
}

.audio-lang-pill {
  background: #141824;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.audio-lang-pill:hover {
  background: rgba(255, 100, 10, 0.2);
  border-color: #ff640a;
  color: #fff;
  transform: translateY(-1px);
}

.audio-lang-pill.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-color: #ff640a;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 100, 10, 0.45);
}

/* NEXT EPISODE COUNTDOWN BANNER (Screenshot 4) */
.next-ep-countdown-banner {
  background: rgba(255, 100, 10, 0.12);
  border: 1px solid #ff640a;
  color: #ff9452;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

/* COMMENTS SECTION (Screenshots 4 & 5) */
.watch-comments-section {
  background: #141722;
  border: 1px solid #1f2434;
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 32px;
}

.comments-heading {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.comment-input-box {
  width: 100%;
  min-height: 85px;
  background: #0d0f14;
  border: 1px solid #232a3d;
  border-radius: 6px;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
  outline: none;
}

.comment-input-box:focus {
  border-color: #ff640a;
}

.comment-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 12px;
}

.markdown-hint {
  font-size: 12px;
  color: #64748b;
}

.turnstile-submit-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.turnstile-badge {
  font-size: 12px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0d0f14;
  border: 1px solid #232a3d;
  padding: 5px 10px;
  border-radius: 4px;
}

.comment-submit-btn {
  background: #ff640a;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.comment-submit-btn:hover {
  background: #ff7a29;
  color: #fff;
}

.comments-count-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 20px 0 8px;
  display: block;
}

.comments-empty-notice {
  font-size: 13px;
  color: #64748b;
}

/* 3. RIGHT MINI SIDEBAR (Screenshots 3 & 4) */
.watch-info-sidebar {
  display: flex;
  flex-direction: column;
}

.watch-mini-anime-card {
  background: #141722;
  border: 1px solid #1f2434;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.watch-mini-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.watch-mini-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.watch-mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.mini-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  background: #1e2433;
  color: #94a3b8;
}

.mini-badge.dub {
  background: #f59e0b;
  color: #000;
  font-weight: 800;
}

.watch-mini-synopsis {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.watch-rating-widget {
  background: #0d0f14;
  border: 1px solid #1f2434;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}

.rating-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}

.rating-stars {
  color: #fbbf24;
  font-weight: 700;
}

.vote-now-text {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.reaction-emojis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reaction-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  filter: grayscale(0.5);
  opacity: 0.75;
}

.reaction-btn:hover {
  transform: scale(1.15);
  filter: grayscale(0);
  opacity: 1;
}

.reaction-btn.selected {
  background: #475569;
  border: none;
  filter: grayscale(0);
  opacity: 1;
  border-radius: 6px;
  padding: 6px 14px;
}

.watch-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.share-label-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.share-label-heading {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.share-label-sub {
  color: #94a3b8;
  font-size: 12px;
}

.share-purple-btn {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.share-purple-btn:hover {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.6);
}

.watch-share-btn {
  width: 100%;
  background: #6366f1;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.watch-share-btn:hover {
  background: #4f46e5;
}

/* MOST POPULAR BLOCK (Screenshots 4 & 5) */
.most-popular-block {
  background: #141722;
  border: 1px solid #1f2434;
  border-radius: 8px;
  padding: 16px;
}

.most-popular-title {
  font-size: 15px;
  font-weight: 700;
  color: #ff640a;
  margin-bottom: 14px;
}

.most-popular-list {
  display: flex;
  flex-direction: column;
}

.pop-anime-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}

.pop-anime-row:hover {
  background: #1a1f2e;
}

.pop-thumb {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.pop-info {
  flex: 1;
}

.pop-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pop-meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1200px) {
  .watch-theater-layout {
    grid-template-columns: 240px 1fr;
  }
  .watch-info-sidebar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .details-hero-section {
    padding: 24px 20px;
  }
  .details-hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .details-body-container {
    grid-template-columns: 1fr;
  }
  .watch-theater-layout {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .watch-server-box {
    grid-template-columns: 1fr;
  }
  .server-notice-block {
    text-align: center;
  }
  .watch-info-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Page Views Container */
.page-view {
  display: none;
  width: 100%;
  animation: fadeInView 0.25s ease forwards;
}

.page-view.active {
  display: block;
}

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

/* FILTER MODAL */
.filter-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.filter-modal-overlay.open {
  display: flex;
}

.filter-modal-card {
  background: #141722;
  border: 1px solid #1f2434;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: fadeInView 0.2s ease forwards;
}

.filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #1f2434;
}

.filter-modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.filter-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
}

.filter-close-btn:hover {
  color: #fff;
}


.filter-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  background: #1e2433;
  border: 1px solid #2a3348;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  background: #283044;
  color: #fff;
}

.filter-chip.active {
  background: #ff640a;
  color: #fff;
  border-color: #ff640a;
  font-weight: 700;
}

.filter-modal-footer {
  padding: 14px 20px;
  background: #11141c;
  border-top: 1px solid #1f2434;
}

/* DRAWER OPEN STATE */
.nav-drawer.open {
  left: 0;
}

.nav-drawer-overlay.open {
  display: block;
}

/* GENRE PILLS 'MORE' TOGGLE BUTTON (Screenshots & User Request) */
.genre-more-toggle-btn {
  background: rgba(255, 100, 10, 0.12);
  border: 1px solid rgba(255, 100, 10, 0.35);
  color: #ff640a;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.genre-more-toggle-btn:hover {
  background: rgba(255, 100, 10, 0.25);
  color: #fff;
  border-color: #ff640a;
}

.overview-text {
  white-space: pre-line;
}

/* LIVE SEEKBAR HOVER PREVIEW TOOLTIP */
.as-seek-preview-tooltip {
  position: absolute;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.9));
}

.as-seek-preview-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.as-seek-preview-frame {
  position: relative;
  width: 160px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  background: #0d0f14;
  border: 2px solid #ff640a;
  box-shadow: 0 4px 14px rgba(255, 100, 10, 0.4);
}

.as-seek-preview-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.as-seek-preview-spinner {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 20, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
}

.as-seek-preview-spinner.show {
  display: flex;
}

.as-seek-preview-spinner::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ff640a;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.as-seek-preview-timebox {
  margin-top: 4px;
  background: rgba(13, 15, 20, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.5px;
}

.as-seek-preview-caret {
  position: absolute;
  bottom: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ff640a;
}
/* =======================================================
   ADVANCED SEARCH & HOMEPAGE OVERHAUL (DESIDUBANIME DESIGN)
   ======================================================= */

/* --- HOMEPAGE: SPOTLIGHT MINI THUMBNAILS CAROUSEL --- */
.spotlight-carousel-wrap {
  position: relative;
  background: #090a0f;
  padding: 16px 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}
.spotlight-carousel-track {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px;
  width: 100%;
}
.spotlight-carousel-track::-webkit-scrollbar {
  display: none;
}
.spotlight-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 17, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.spotlight-carousel-arrow:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-50%) scale(1.1);
}
.spotlight-carousel-arrow.prev {
  left: 8px;
}
.spotlight-carousel-arrow.next {
  right: 8px;
}
.spotlight-mini-item {
  position: relative;
  flex: 0 0 130px;
  width: 130px;
  height: 185px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121420;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.spotlight-mini-item:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--accent-orange);
  box-shadow: 0 8px 22px rgba(255, 100, 10, 0.35);
}
.spotlight-mini-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.spotlight-mini-item:hover .spotlight-mini-img {
  transform: scale(1.06);
}
.spotlight-mini-rank {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.spotlight-mini-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
  padding: 24px 8px 8px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =======================================================
   SHARE ANIME LOVE PANORAMIC BANNER (TARGET DESIGN)
   ======================================================= */
.share-anime-love-banner {
  position: relative;
  margin: 28px 44px 24px 44px;
  min-height: 175px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Cleanly clips extended background blur */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #080a10;
}

/* Background image expanded beyond container so blur NEVER bleeds bright edges */
.share-banner-bg {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background-image: url('share-banner.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(4px) brightness(0.62);
  transform: scale(1.05);
  z-index: 1;
  pointer-events: none;
}

/* Smooth deep dark tint overlay across 100% of the surface */
.share-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.65) 0%, rgba(8, 10, 16, 0.72) 100%);
  z-index: 2;
  pointer-events: none;
}

.share-banner-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  gap: 8px;
}

.share-banner-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.share-banner-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  margin: 0 0 10px 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.share-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, #2b7fff 0%, #8b5cf6 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(43, 127, 255, 0.45);
}

.share-banner-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.6);
  background: linear-gradient(90deg, #3b82f6 0%, #a855f7 100%);
}

.share-banner-btn i {
  font-size: 14px;
}

@media (max-width: 768px) {
  .share-anime-love-banner {
    margin: 20px 16px;
    min-height: 155px;
  }
  .share-banner-title {
    font-size: 18px;
  }
  .share-banner-desc {
    font-size: 13px;
  }
}

/* --- 3-COLUMN TRENDING SECTION (Top Airing, Most Popular, Completed Series) --- */
.home-triple-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 44px;
  margin-bottom: 36px;
}
@media (max-width: 1024px) {
  .home-triple-columns {
    grid-template-columns: 1fr;
  }
}
.trending-column-card {
  background: #0d0f18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px 14px 20px;
  display: flex;
  flex-direction: column;
}
.trending-col-header {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ff640a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}
.trending-col-header.orange {
  color: var(--accent-orange);
}
.trending-col-header.green {
  color: #34d399;
}
.trending-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.trending-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.trending-item-row:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(3px);
}
.trending-item-thumb {
  width: 48px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.trending-item-info {
  flex: 1;
  min-width: 0;
}
.trending-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.trending-item-meta {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.trending-item-meta i {
  font-size: 10px;
  color: #ff640a;
}
.col-view-more-btn {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.col-view-more-btn:hover {
  color: #ff640a;
  transform: translateX(2px);
}

/* --- 2-COLUMN MAIN HOMEPAGE LAYOUT --- */
.home-layout-grid,
.home-layout-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  padding: 0 44px 44px 44px;
  align-items: start;
}
.home-main-col {
  min-width: 0;
  width: 100%;
}
.home-sidebar-col {
  width: 340px;
  max-width: 100%;
}
@media (max-width: 1200px) {
  .home-layout-grid,
  .home-layout-row {
    grid-template-columns: 1fr;
    padding: 0 20px 30px 20px;
  }
  .home-sidebar-col {
    width: 100%;
  }
}

/* SECTION HEADER WITH VIEW MORE */
.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.home-section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-section-view-more {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}
.home-section-view-more:hover {
  color: #ff640a;
}

/* LATEST EPISODES 16:9 GRID */
.home-episodes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 1400px) {
  .home-episodes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .home-episodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.home-ep-card {
  background: #0f111a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.home-ep-card:hover {
  transform: translateY(-3px);
  border-color: #ff640a;
}
.home-ep-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #141622;
  overflow: hidden;
}
.home-ep-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.home-ep-card:hover .home-ep-thumb-img {
  transform: scale(1.05);
}
.badge-tag-airing {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #10b981;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.badge-tag-completed {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.badge-tag-upcoming {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #06b6d4;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.home-ep-info {
  padding: 10px 10px 8px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.home-ep-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.home-ep-card-desc {
  font-size: 11px;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  margin-bottom: 8px;
}
.home-ep-card-meta {
  margin-top: auto;
  font-size: 10px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LATEST MOVIES POSTER GRID */
.home-movies-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 1400px) {
  .home-movies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .home-movies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* UPCOMING GRID */
.home-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 1400px) {
  .home-upcoming-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .home-upcoming-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- SIDEBAR WIDGETS: COLORFUL GENRES --- */
.home-genres-widget {
  background: #0d0f18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.genres-widget-header {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.genres-colorful-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}
.genres-colorful-grid::-webkit-scrollbar {
  width: 4px;
}
.genres-colorful-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 100, 10, 0.35);
  border-radius: 4px;
}
.genre-colorful-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  background: rgba(255, 100, 10, 0.08);
  border: 1px solid rgba(255, 100, 10, 0.28);
  color: #ffffff !important;
  transition: all 0.2s ease;
  display: block;
  text-align: center;
}
.genre-colorful-pill:hover {
  transform: translateY(-2px) scale(1.02);
  background: #ff640a;
  border-color: #ff640a;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 100, 10, 0.4);
}

/* --- POPULAR POST TOP 10 WIDGET --- */
.home-popular-post-widget {
  background: #0d0f18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
}
.popular-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.popular-post-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.pop-period-tabs {
  display: flex;
  background: #141724;
  border-radius: 6px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pop-period-tab {
  background: none;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pop-period-tab.active {
  background: #ff640a;
  color: #000;
}
.popular-post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pop-post-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
  cursor: pointer;
}
.pop-post-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.pop-rank-num {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}
.pop-rank-num.rank-1 {
  color: #ff640a;
  text-shadow: 0 0 10px rgba(255, 100, 10, 0.45);
}
.pop-rank-num.rank-2 {
  color: #f97316;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}
.pop-rank-num.rank-3 {
  color: #eab308;
  text-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
}
.pop-rank-num.rank-other {
  color: #475569;
}
.pop-post-thumb {
  width: 44px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pop-post-info {
  flex: 1;
  min-width: 0;
}
.pop-post-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.pop-post-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pop-badge-ep {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}
.pop-badge-status {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}
.pop-badge-views {
  margin-left: auto;
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pop-badge-views i {
  color: #ff640a;
  font-size: 10px;
}

/* --- FOOTER SECTIONS --- */
.site-footer {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #090a10;
  padding: 36px 44px 28px 44px;
}
.footer-telegram-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-tg-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-tg-logo {
  height: 32px;
  object-fit: contain;
}
.footer-tg-btn {
  background: #0088cc;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}
.footer-tg-btn:hover {
  opacity: 0.9;
}
.footer-az-box {
  margin-bottom: 24px;
}
.footer-az-title {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.footer-az-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.az-link-btn {
  background: #141724;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.az-link-btn:hover {
  background: #ff640a;
  color: #000;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  margin-right: 16px;
}
.footer-bottom-links a:hover {
  color: #ff640a;
}

/* =======================================================
   VIEW 4: ADVANCED SEARCH PAGE (Matching Screenshot 1 & 2)
   ======================================================= */
.adv-search-page-view {
  min-height: 100vh;
  background: #090a10;
  padding: 32px 44px 60px 44px;
}
.adv-header-box {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px auto;
}
.adv-page-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.adv-page-title i {
  color: #ff640a;
}
.adv-page-subtitle {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.5;
}

/* BIG SEARCH INPUT */
.adv-search-input-card {
  max-width: 1000px;
  margin: 0 auto 32px auto;
  background: #0f111c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.adv-search-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 100, 10, 0.15); border: 1px solid rgba(255, 100, 10, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff640a;
  font-size: 18px;
  flex-shrink: 0;
}
.adv-big-search-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-body);
  outline: none;
}
.adv-big-search-input::placeholder {
  color: #64748b;
}
.adv-search-submit-btn {
  background: #ff640a;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.adv-search-submit-btn:hover {
  background: #ff7824;
  transform: translateY(-1px);
}

/* 2-COLUMN SEARCH LAYOUT */
.adv-layout-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1024px) {
  .adv-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* LEFT SIDEBAR FILTER PANEL */
.adv-filters-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adv-accordion-box {
  background: #0f111c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}
.adv-accordion-header {
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease;
  user-select: none;
}
.adv-accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}
.adv-acc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.adv-acc-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.adv-acc-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.adv-acc-icon.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.adv-acc-icon.purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.adv-acc-icon.yellow { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.adv-acc-icon.red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.adv-acc-icon.indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.adv-acc-icon.cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }

.adv-acc-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.adv-count-badge {
  font-size: 11px;
  font-weight: 700;
  background: #191c2b;
  color: #94a3b8;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.adv-count-badge.has-selected {
  background: rgba(255, 100, 10, 0.2);
  color: var(--accent-orange);
  border-color: rgba(255, 100, 10, 0.5);
}
.adv-acc-arrow {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.adv-accordion-box.open .adv-acc-arrow {
  transform: rotate(180deg);
}
.adv-accordion-body {
  display: none;
  padding: 0 16px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.adv-accordion-box.open .adv-accordion-body {
  display: block;
}

/* SCROLLABLE LIST WITH CUSTOM SCROLLBAR */
.adv-scrollable-list {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.adv-scrollable-list::-webkit-scrollbar {
  width: 4px;
}
.adv-scrollable-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* 2-COLUMN GRID FOR GENRE/SEASON CHECKBOXES */
.adv-checkbox-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.adv-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}
.adv-checkbox-label:hover {
  background: rgba(255, 255, 255, 0.05);
}
.adv-checkbox-input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent-orange);
  cursor: pointer;
  border-radius: 3px;
}
.adv-checkbox-name {
  font-size: 12px;
  color: #cbd5e1;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adv-checkbox-count {
  font-size: 10px;
  color: #64748b;
  margin-left: auto;
}

/* SORT & FILTER BOX AT BOTTOM */
.adv-sort-card {
  background: #0f111c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.adv-sort-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.adv-sort-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.adv-sort-select {
  width: 100%;
  padding: 8px 12px;
  background: #181b2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  outline: none;
}
.adv-sort-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.adv-btn-apply {
  flex: 1;
  background: var(--accent-orange);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 12px rgba(255, 100, 10, 0.35);
}
.adv-btn-apply:hover {
  background: #ff7824;
}
.adv-btn-reset {
  flex: 1;
  background: #181b2a;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.adv-btn-reset:hover {
  background: #23273c;
  color: #fff;
}

/* RIGHT RESULTS MAIN */
.adv-results-main {
  min-width: 0;
}
.adv-active-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.adv-active-tag {
  background: rgba(255, 100, 10, 0.15);
  border: 1px solid rgba(255, 100, 10, 0.4);
  color: var(--accent-orange);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.adv-active-tag:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}
.adv-clear-all-btn {
  background: none;
  border: none;
  color: #f87171;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
}

.adv-results-count-bar {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: #94a3b8;
  padding: 4px 0;
}
.adv-results-count-bar strong {
  color: #fff;
  font-weight: 700;
}

/* RESULTS GRID MATCHING IMAGE 1 & 2 */
.adv-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
@media (max-width: 1400px) {
  .adv-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .adv-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .adv-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.adv-anime-card {
  background: #0f111c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.adv-anime-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: 0 8px 24px rgba(255, 100, 10, 0.25);
}
.adv-card-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  background: #141724;
  overflow: hidden;
}
.adv-card-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.adv-anime-card:hover .adv-card-poster-img {
  transform: scale(1.05);
}
.adv-card-body {
  padding: 10px 10px 8px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.adv-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.adv-card-snippet {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.adv-card-meta-line {
  margin-top: auto;
  font-size: 10px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.adv-card-meta-line i {
  color: #eab308;
}

/* =======================================================
   DYNAMIC LIVE SEARCH DROPDOWN (MATCHING SCREENSHOT 1)
   ======================================================= */
.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 380px;
  max-width: 95vw;
  background: #181a20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.search-drop-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.search-drop-list::-webkit-scrollbar {
  width: 4px;
}
.search-drop-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.search-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-drop-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-drop-poster {
  width: 46px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.search-drop-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 6px;
}

.search-drop-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-drop-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-badge-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.search-badge-dub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #be123c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.search-drop-footer-btn {
  width: 100%;
  background: #ff640a;
  color: #ffffff;
  border: none;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.search-drop-footer-btn:hover {
  background: #ff7824;
}

.search-drop-empty {
  padding: 24px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE OPTIMIZATION
   ========================================================================== */

/* Prevent any horizontal overflow */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
}

@media (max-width: 768px) {
  /* 1. NAVBAR MOBILE OPTIMIZATION */
  .navbar {
    padding: 10px 14px;
    gap: 8px;
  }
  
  .nav-left {
    gap: 10px;
  }

  .nav-brand {
    gap: 8px;
  }

  .brand-logo-img {
    height: 32px;
    width: 32px;
  }

  .brand-title {
    font-size: 18px;
    letter-spacing: 0;
  }

  .brand-title-img {
    height: 26px;
    max-width: 120px;
  }

  /* Compact nav-right so nothing overflows */
  .nav-right {
    gap: 6px;
  }

  .nav-telegram-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .lang-toggle-group {
    border-radius: 4px;
  }

  .lang-btn {
    padding: 3px 6px;
    font-size: 11px;
  }

  .nav-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .nav-login-btn {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 4px;
  }

  /* 2. HERO SPOTLIGHT MOBILE */
  .cr-spotlight {
    height: 440px !important;
  }

  .cr-slide-content {
    margin-left: 16px !important;
    margin-right: 16px !important;
    max-width: calc(100vw - 32px) !important;
    gap: 8px;
    padding-bottom: 24px;
  }

  .cr-title {
    font-size: 24px !important;
    line-height: 1.15 !important;
    word-break: break-word;
  }

  .cr-genre-tags {
    font-size: 12px !important;
  }

  .cr-desc {
    font-size: 12px !important;
    -webkit-line-clamp: 2 !important;
    line-height: 1.35 !important;
  }

  .cr-action-group {
    gap: 8px !important;
  }

  .cr-btn-watch {
    padding: 8px 16px !important;
    font-size: 13px !important;
    height: 38px !important;
  }

  .cr-btn-bookmark {
    width: 38px !important;
    height: 38px !important;
  }

  .cr-nav-arrow {
    width: 32px !important;
    height: 48px !important;
    font-size: 16px !important;
  }

  .cr-indicators {
    bottom: 12px !important;
    gap: 6px !important;
  }

  .cr-indicator-bar {
    width: 20px !important;
    height: 3px !important;
  }
  .cr-indicator-bar.active {
    width: 36px !important;
  }

  /* 3. SPOTLIGHT MINI CAROUSEL TRACK MOBILE */
  .spotlight-carousel-wrap {
    padding: 12px 14px !important;
  }

  .spotlight-carousel-track {
    gap: 10px !important;
  }

  .spotlight-mini-item {
    flex: 0 0 100px !important;
    width: 100px !important;
    height: 145px !important;
    border-radius: 8px !important;
  }

  .spotlight-mini-rank {
    font-size: 10px !important;
    padding: 2px 5px !important;
  }

  .spotlight-mini-title {
    font-size: 10px !important;
    padding: 16px 6px 6px 6px !important;
  }

  /* 4. MAIN LAYOUT AND SECTION GRIDS */
  .main-container {
    padding: 20px 14px 40px !important;
  }

  .home-triple-columns {
    padding: 0 14px !important;
    gap: 16px !important;
  }

  .home-layout-grid,
  .home-layout-row {
    padding: 0 14px 30px 14px !important;
    gap: 20px !important;
  }

  .share-anime-love-banner {
    margin: 16px 14px !important;
    padding: 24px 14px !important;
    min-height: 140px !important;
  }

  .home-episodes-grid,
  .anime-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .home-ep-card,
  .anime-card {
    border-radius: 6px !important;
  }

  .home-ep-title {
    font-size: 12px !important;
    padding: 6px 8px 8px 8px !important;
  }

  /* 5. ANIME DETAILS PAGE ON MOBILE */
  .details-hero-section {
    padding: 24px 14px !important;
    min-height: auto !important;
  }

  .details-hero-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
  }

  .details-poster-wrap {
    width: 160px !important;
    margin: 0 auto;
  }

  .details-anime-title {
    font-size: 22px !important;
  }

  .details-badges-row {
    justify-content: center !important;
  }

  .details-actions-row {
    justify-content: center !important;
  }

  .details-main-layout {
    grid-template-columns: 1fr !important;
    padding: 20px 14px !important;
    gap: 24px !important;
  }

  .theater-container {
    grid-template-columns: 1fr !important;
    padding: 10px 10px 30px !important;
  }

  /* 6. ADVANCED SEARCH ON MOBILE */
  .adv-search-container {
    padding: 16px 12px !important;
  }

  .adv-filters-box {
    padding: 16px 12px !important;
  }

  .adv-anime-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 16px;
  }

  .nav-login-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .cr-title {
    font-size: 20px !important;
  }

  .spotlight-mini-item {
    flex: 0 0 92px !important;
    width: 92px !important;
    height: 135px !important;
  }
}


/* ============================================================
   HAVEN MODE THEME (secret-code section)
   Same layout/UI - sirf color theme red & white.
   body.haven-mode lagte hi poori site red theme me badal jati hai.
   ============================================================ */
body.haven-mode {
  --accent-orange: #e50914;
  --accent-pink: #ff1744;
  --accent-purple: #e50914;
  --accent-cyan: #ffffff;
}
body.haven-mode .brand-title span {
  color: #e50914 !important;
}
.haven-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 20px;
  padding: 0 7px;
  margin-left: 8px;
  border-radius: 5px;
  background: #e50914;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
body.haven-mode .haven-badge {
  display: inline-flex;
}


body.haven-mode .cr-btn-watch,
body.haven-mode .search-drop-footer-btn {
  background: #e50914 !important;
}

/* Haven branding swap: normal mode me AniPlayz, haven mode me Ani Hentai */
.brand-logo-haven { display: none; }
.brand-title-haven { display: none; height: 34px; width: auto; object-fit: contain; }
body.haven-mode .brand-logo-normal { display: none; }
body.haven-mode .brand-title-normal { display: none; }
body.haven-mode .brand-logo-haven { display: block; }
body.haven-mode .brand-title-haven { display: block; }
body.haven-mode .search-filter-btn { display: none !important; }

/* Haven Top Nav Uncensored Quick-Access Button */
.nav-haven-uncensored-btn {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.25), rgba(255, 23, 68, 0.15));
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 12px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.nav-haven-uncensored-btn:hover {
  background: #e50914;
  border-color: #e50914;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.5);
  transform: translateY(-1px);
}
.nav-haven-uncensored-btn i {
  color: #ff4d4f;
  font-size: 13px;
}
.nav-haven-uncensored-btn:hover i {
  color: #fff;
}
body.haven-mode .nav-haven-uncensored-btn {
  display: inline-flex;
}
body.haven-mode .haven-drawer-item {
  display: flex !important;
}

/* ============================================================
   HAVEN CATEGORY & GENRES SECTION (Screenshot 1 Exact replica)
   ============================================================ */
.haven-category-section {
  width: 100%;
  max-width: 1440px;
  margin: 16px auto 24px auto;
  padding: 0 20px;
}

.haven-category-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 36px;
  border-radius: 16px;
  background: radial-gradient(circle at 10% 20%, rgba(229, 9, 20, 0.18) 0%, rgba(20, 10, 15, 0.95) 100%), #0e0e12;
  border: 1px solid rgba(229, 9, 20, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.haven-category-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.haven-cat-hero-text {
  flex: 1;
  z-index: 1;
}

.haven-cat-breadcrumb {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 10px;
  font-weight: 500;
}
.haven-breadcrumb-root {
  cursor: pointer;
  color: #cbd5e1;
  transition: color 0.2s;
}
.haven-breadcrumb-root:hover {
  color: #e50914;
}
.haven-breadcrumb-current {
  color: #e50914;
  font-weight: 600;
}

.haven-cat-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.haven-cat-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.haven-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ff4d4f;
  font-size: 12px;
  font-weight: 700;
}

.haven-cat-desc {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  max-width: 650px;
}

.haven-cat-hero-thumb {
  width: 260px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.haven-cat-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.haven-category-hero:hover .haven-cat-hero-thumb img {
  transform: scale(1.05);
}

/* Horizontal Genre Filter Pills Bar */
.haven-genres-bar-wrapper {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 12px 0;
}
.haven-genres-bar-wrapper::-webkit-scrollbar {
  display: none;
}

.haven-genres-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.haven-genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}

.haven-genre-pill:hover {
  background: #25252e;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.haven-genre-pill.active {
  background: #e50914 !important;
  color: #fff !important;
  border-color: #e50914 !important;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

.haven-genre-pill.uncensored-pill {
  border-color: rgba(229, 9, 20, 0.4);
  background: rgba(229, 9, 20, 0.12);
  color: #fff;
}
.haven-genre-pill.uncensored-pill i {
  color: #ff4d4f;
}
.haven-genre-pill.uncensored-pill.active i {
  color: #fff;
}

/* Haven Anime Cards Overrides */
body.haven-mode .card-badge.uncensored-tag {
  background: #10b981 !important;
  color: #fff !important;
  font-weight: 800 !important;
}
body.haven-mode .card-badge.haven-tag {
  background: #e50914 !important;
  color: #fff !important;
  font-weight: 800 !important;
}

@media (max-width: 768px) {
  .haven-category-hero {
    flex-direction: column-reverse;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }
  .haven-cat-hero-thumb {
    width: 100%;
    height: 160px;
  }
  .haven-cat-title {
    font-size: 24px;
  }
  .haven-cat-desc {
    font-size: 13px;
  }
}
