/* ==========================================================================
   KEIANIME CYBER-ANIME OLED DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  --bg-dark: #08090D;
  --bg-surface: #10121A;
  --bg-elevated: #181B26;
  --bg-card: #141722;
  --bg-glass: rgba(16, 18, 26, 0.75);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 51, 102, 0.4);

  --primary: #FF3366;
  --primary-light: #FF6688;
  --primary-dark: #CC1144;
  --secondary: #00E5FF;
  --secondary-glow: rgba(0, 229, 255, 0.3);
  --accent: #7928CA;
  --gold: #FFB800;

  --text-primary: #FFFFFF;
  --text-secondary: #B0B7C6;
  --text-muted: #6B7280;

  --gradient-primary: linear-gradient(135deg, #FF3366 0%, #FF6688 100%);
  --gradient-cyber: linear-gradient(135deg, #FF3366 0%, #00E5FF 100%);
  --gradient-card: linear-gradient(180deg, rgba(24, 27, 38, 0.6) 0%, rgba(16, 18, 26, 0.95) 100%);
  --gradient-scrim: linear-gradient(180deg, transparent 0%, rgba(8, 9, 13, 0.8) 60%, #08090D 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 24px rgba(255, 51, 102, 0.35);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
}

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

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Ambient Glows */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.15;
}
.bg-glow-1 {
  top: -150px;
  right: -150px;
  background: var(--primary);
}
.bg-glow-2 {
  bottom: 10%;
  left: -200px;
  background: var(--secondary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 51, 102, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.05em;
  line-height: 1;
}

.brand-name .highlight {
  color: var(--primary);
}

.brand-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--secondary);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.nav-item i {
  font-size: 16px;
}

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

.nav-item.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 51, 102, 0.35);
}

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

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.2s ease;
}

.search-trigger-btn:hover {
  border-color: var(--primary);
  color: #fff;
}

.search-trigger-btn i {
  font-size: 16px;
  color: var(--primary);
}

.shortcut-key {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.apk-download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-cyber);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apk-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  color: #fff;
  padding: 6px;
}

/* ==========================================================================
   MAIN CONTENT & VIEWS
   ========================================================================== */

.main-content {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 200px);
}

.view-section {
  display: none;
  animation: fadeInView 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* ==========================================================================
   HERO SPOTLIGHT CAROUSEL
   ========================================================================== */

.hero-spotlight-wrapper {
  position: relative;
  margin-bottom: 40px;
}

.hero-card {
  position: relative;
  height: 460px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.65) saturate(1.2);
  transition: transform 6s ease-out, background-image 0.5s ease-in-out;
}

.hero-card:hover .hero-backdrop {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #08090D 0%, rgba(8, 9, 13, 0.85) 45%, rgba(8, 9, 13, 0.2) 100%),
              linear-gradient(0deg, #08090D 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 680px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 51, 102, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(255, 51, 102, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  align-self: flex-start;
}

.hero-title {
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .meta-item i {
  color: var(--gold);
}

.hero-synopsis {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(255, 51, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 51, 102, 0.55);
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 24px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 48px;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

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

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 51, 102, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid rgba(255, 51, 102, 0.25);
}

.section-icon-badge.completed {
  background: rgba(0, 229, 255, 0.15);
  color: var(--secondary);
  border-color: rgba(0, 229, 255, 0.25);
}

.section-title {
  font-size: 22px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-text-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  transition: gap 0.2s ease;
}

.btn-text-link:hover {
  gap: 10px;
}

/* ==========================================================================
   ANIME GRID & CARDS
   ========================================================================== */

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

.anime-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.anime-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 51, 102, 0.2);
  border-color: var(--border-active);
}

.card-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4.2;
  overflow: hidden;
  background: var(--bg-elevated);
}

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

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

.card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 9, 13, 0.95) 100%);
  pointer-events: none;
}

.card-badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(8, 9, 13, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.card-score-top {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 184, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(8, 9, 13, 0.45);
  backdrop-filter: blur(4px);
  transition: opacity 0.25s ease;
}

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

.card-play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-glow);
  transform: scale(0.8);
  transition: transform 0.25s ease;
}

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

.card-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.card-type {
  color: var(--secondary);
  font-weight: 600;
}

/* Skeleton Loading Cards */
.skeleton-card {
  height: 320px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border: 1px solid var(--border-glass);
}

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

/* ==========================================================================
   PAGE HEADERS & CATALOG / SCHEDULE
   ========================================================================== */

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title i {
  color: var(--primary);
}

.page-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.catalog-filters {
  display: flex;
  gap: 10px;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--primary);
  color: #fff;
}

.filter-chip.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 51, 102, 0.35);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-load-more {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-load-more:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* Schedule Day Tabs */
.schedule-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.schedule-tab {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.schedule-tab:hover {
  border-color: var(--primary);
  color: #fff;
}

.schedule-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 51, 102, 0.35);
}

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

.schedule-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.schedule-card:hover {
  transform: translateX(4px);
  border-color: var(--primary);
  background: var(--bg-elevated);
}

.schedule-poster {
  width: 56px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.schedule-info {
  flex-grow: 1;
}

.schedule-anime-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.schedule-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--secondary);
  font-weight: 600;
}

/* ==========================================================================
   MODALS: ANIME DETAIL & PLAYER & SEARCH
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal-backdrop.show {
  display: flex;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 10;
  border: 1px solid var(--border-glass);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

/* Detail Modal */
.detail-dialog {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: modalZoom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

@keyframes modalZoom {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.detail-banner-wrap {
  position: relative;
  min-height: 280px;
  padding: 32px;
  overflow: hidden;
}

.detail-backdrop-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.35);
  transform: scale(1.1);
}

.detail-backdrop-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.4) 0%, var(--bg-surface) 100%);
}

.detail-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 28px;
}

.detail-poster-wrap {
  position: relative;
  width: 160px;
  aspect-ratio: 3/4.4;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-glass);
  flex-shrink: 0;
}

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

.detail-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.detail-main-info {
  flex-grow: 1;
}

.detail-title {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.detail-jp-title {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 400;
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pill.score {
  background: rgba(255, 184, 0, 0.15);
  color: var(--gold);
  border-color: rgba(255, 184, 0, 0.3);
}

.detail-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genre-tag {
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 229, 255, 0.1);
  color: var(--secondary);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.detail-body {
  padding: 0 32px 32px 32px;
}

.detail-subheading {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.detail-subheading i {
  color: var(--primary);
}

.detail-synopsis-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

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

.episodes-filter input {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: #fff;
  font-size: 12px;
  outline: none;
}

.episodes-filter input:focus {
  border-color: var(--primary);
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}

.ep-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
  transition: all 0.2s ease;
}

.ep-button:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 51, 102, 0.35);
}

.ep-button i {
  font-size: 16px;
  color: var(--primary-light);
}

.ep-button:hover i {
  color: #fff;
}

/* ==========================================================================
   CUSTOM EXOPLAYER THEATER PLAYER
   ========================================================================== */

.player-dialog {
  position: relative;
  width: 100%;
  max-width: 1080px;
  background: #000;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  animation: modalZoom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

.player-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-glass);
}

.player-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: 0.1em;
}

.player-ep-title {
  font-size: 15px;
  color: #fff;
  margin-top: 2px;
}

.player-anime-title {
  font-size: 12px;
  color: var(--text-muted);
}

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

.nav-ep-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-ep-btn:hover:not(:disabled) {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #000;
}

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

.player-close-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-close-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Standard Responsive Video Player */
.clean-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.responsive-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
  outline: none;
}

.responsive-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
  display: none;
}

/* Loading & Error States */
.video-loading {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.video-loading.show {
  display: flex;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.video-error-state {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 13, 0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  z-index: 12;
}

.video-error-state.show {
  display: flex;
}

.video-error-state i {
  font-size: 40px;
  color: var(--primary);
}

.btn-retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-top: 6px;
  cursor: pointer;
  border: none;
}

/* Player Lower Bar (Pilihan Resolusi & Direct Downloads) */
.player-lower-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
}

.quality-selector-group, .mirror-downloads {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bar-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}

.quality-buttons, .mirror-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-grow: 1;
}

.q-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.q-btn:hover {
  background: rgba(255, 51, 102, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.q-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(255, 51, 102, 0.4);
}

.direct-download-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-full);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.direct-download-badge i {
  font-size: 15px;
  color: var(--secondary);
}

.direct-download-badge .dl-q-label {
  color: #fff;
}

.direct-download-badge .dl-size-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.direct-download-badge:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #000;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
}

.direct-download-badge:hover i,
.direct-download-badge:hover .dl-q-label,
.direct-download-badge:hover .dl-size-tag {
  color: #000;
}

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */

.search-dialog {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  animation: modalZoom 0.25s ease;
  margin: auto;
}

.search-input-header {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-glass);
  gap: 12px;
  background: var(--bg-card);
}

.search-icon-lead {
  font-size: 22px;
  color: var(--primary);
}

.search-input-header input {
  flex-grow: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  outline: none;
}

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

.search-clear-btn {
  font-size: 20px;
  color: var(--text-muted);
}

.search-results-body {
  max-height: 420px;
  overflow-y: auto;
  padding: 16px;
}

.search-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  color: var(--text-muted);
  font-size: 14px;
  gap: 12px;
}

.search-prompt i {
  font-size: 40px;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.search-item-poster {
  width: 48px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.search-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.search-item-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  animation: toastSlideIn 0.3s ease;
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */

.app-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  padding: 48px 24px 24px 24px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
}

.footer-links h4, .footer-app h4 {
  font-size: 15px;
  margin-bottom: 16px;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-app p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.btn-footer-apk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
}

.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-card {
    height: 420px;
  }
  .hero-title {
    font-size: 28px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 16px;
    border-radius: 0;
    border-top: 1px solid var(--border-glass);
  }
  .nav-links.show-mobile {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .search-btn-text, .shortcut-key {
    display: none;
  }
  .hero-content {
    padding: 24px;
  }
  .hero-card {
    height: 380px;
  }
  .hero-title {
    font-size: 24px;
  }
  .detail-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .detail-pills, .detail-genres {
    justify-content: center;
  }
  .anime-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ==========================================================================
   FEATURE BAR (HOMEPAGE)
   ========================================================================== */
.feature-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.feature-item i {
  font-size: 28px;
  color: var(--primary);
  background: rgba(255, 51, 102, 0.12);
  padding: 10px;
  border-radius: var(--radius-md);
}

.feature-item strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.feature-item span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   GENRE FILTER BAR (CATALOG)
   ========================================================================== */
.genre-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 20px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.genre-filter-bar::-webkit-scrollbar {
  display: none;
}

.genre-pill {
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.genre-pill:hover {
  background: var(--bg-elevated);
  color: #fff;
}

.genre-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 51, 102, 0.4);
}

/* ==========================================================================
   PLAYER TOP ACTIONS & NAVIGATION
   ========================================================================== */
.player-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-ep-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-ep-btn:hover:not(:disabled) {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #000;
}

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

/* ==========================================================================
   SERVER & QUALITY SELECTOR IN LOWER BAR
   ========================================================================== */
.server-selector-group, .quality-selector-group, .mirror-downloads {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.bar-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 130px;
}

.server-buttons, .quality-buttons, .mirror-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-grow: 1;
}

.server-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.server-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--secondary);
  color: #fff;
}

.server-btn.active {
  background: var(--secondary);
  color: #000;
  border-color: var(--secondary);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.q-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.q-btn:hover {
  background: rgba(255, 51, 102, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.q-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255, 51, 102, 0.4);
}

.mirror-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mirror-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(121, 40, 202, 0.4);
}

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

.toast-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-active);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  font-weight: 500;
  animation: slideInUp 0.3s ease;
  pointer-events: auto;
}

.toast-item i {
  color: var(--primary);
  font-size: 16px;
}

.toast-item.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

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