@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #0b0c10;
  --bg-surface: #13151f;
  --bg-card: rgba(26, 29, 43, 0.75);
  --bg-glass: rgba(20, 22, 34, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(140, 122, 230, 0.4);
  
  --primary: #8c7ae6;
  --primary-glow: rgba(140, 122, 230, 0.35);
  --accent: #00cec9;
  --accent-glow: rgba(0, 206, 201, 0.3);
  --pink: #ff6b6b;
  --gold: #feca57;
  --green: #2ecc71;
  
  --text-main: #ffffff;
  --text-muted: #a4b0be;
  --text-dim: #576574;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  transition: var(--transition-fast);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  letter-spacing: -0.04em;
}

.brand span.highlight {
  color: var(--primary);
  text-shadow: 0 0 16px var(--primary-glow);
}

.brand .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1.2rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--primary);
}

/* Search Box */
.search-container {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  gap: 0.6rem;
  transition: var(--transition-fast);
}

.search-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.search-input-wrapper input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.9rem;
  width: 100%;
}

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

.shortcut-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: monospace;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Search Dropdown Modal */
.search-dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  padding: 0.5rem;
}

.search-dropdown.active {
  display: block;
  animation: fadeInDown 0.2s ease;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
}

.search-item:hover {
  background: rgba(140, 122, 230, 0.15);
}

.search-item img {
  width: 45px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.search-item-info h5 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.search-item-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* User Profile Pill */
.user-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-watchlist-nav {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.88rem;
}

.btn-watchlist-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.badge-count {
  background: var(--pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

/* Hero Spotlight Carousel */
.hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 550px;
  max-height: 720px;
  overflow: hidden;
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) contrast(1.1);
  transform: scale(1.03);
  transition: transform 6s ease;
}

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

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0b0c10 15%, rgba(11, 12, 16, 0.8) 50%, rgba(11, 12, 16, 0.2) 100%),
              linear-gradient(0deg, #0b0c10 5%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
  padding-left: 5%;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 206, 201, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.meta-pill.hd {
  background: var(--pink);
  color: #fff;
}

.meta-pill.sub {
  background: rgba(140, 122, 230, 0.25);
  color: #c8d6e5;
  border: 1px solid rgba(140, 122, 230, 0.5);
}

.meta-pill.dub {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.meta-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-synopsis {
  font-size: 1rem;
  color: #dcdde1;
  margin-bottom: 2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 25px var(--primary-glow);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(140, 122, 230, 0.6);
  background: #9c8cf0;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

/* Carousel Indicators & Arrows */
.carousel-controls {
  position: absolute;
  bottom: 2.5rem;
  right: 5%;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.carousel-indicators {
  display: flex;
  gap: 0.5rem;
}

.dot-indicator {
  width: 28px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.dot-indicator.active {
  width: 45px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.carousel-arrows {
  display: flex;
  gap: 0.6rem;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

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

/* Main Layout Grid */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  padding: 3rem 5%;
  max-width: 1700px;
  margin: 0 auto;
  width: 100%;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}

.section-title {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title::before {
  content: '';
  width: 5px;
  height: 24px;
  background: var(--accent);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--accent);
}

.filter-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Anime Grid Cards */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

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

.anime-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(140, 122, 230, 0.2);
}

.card-poster {
  position: relative;
  width: 100%;
  padding-top: 140%; /* 2:3 Aspect ratio */
  overflow: hidden;
  background: #1e2132;
}

.card-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(11, 12, 16, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.8rem;
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.badge-quality {
  background: var(--pink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.btn-bookmark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11, 12, 16, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.btn-bookmark:hover,
.btn-bookmark.bookmarked {
  background: var(--gold);
  color: #0b0c10;
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.card-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ep-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.ep-badge.sub {
  background: rgba(140, 122, 230, 0.85);
  color: #fff;
}

.ep-badge.dub {
  background: rgba(46, 204, 113, 0.85);
  color: #000;
}

.card-play-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
  box-shadow: 0 0 25px var(--primary);
}

.anime-card:hover .card-play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-subtext .dot-sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* Schedule / Calendar Section */
.schedule-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 3rem;
}

.schedule-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.day-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.5rem;
  text-align: center;
  transition: var(--transition-fast);
}

.day-tab:hover,
.day-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 5px 15px var(--primary-glow);
  color: #fff;
}

.day-name {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
}

.day-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.day-tab.active .day-date {
  color: rgba(255, 255, 255, 0.85);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  transition: var(--transition-fast);
}

.schedule-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glow);
}

.schedule-time {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 70px;
}

.schedule-anime-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.schedule-anime-info img {
  width: 40px;
  height: 55px;
  border-radius: 4px;
  object-fit: cover;
}

.schedule-anime-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff;
}

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

.countdown-badge {
  background: rgba(254, 202, 87, 0.15);
  color: var(--gold);
  border: 1px solid rgba(254, 202, 87, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

/* Sidebar Top 10 Leaderboard */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.leaderboard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.rank-item:hover {
  background: rgba(140, 122, 230, 0.1);
  border-color: var(--border-glow);
}

.rank-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-dim);
  min-width: 35px;
  text-align: center;
}

.rank-number.top-1 {
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold);
}

.rank-number.top-2 {
  color: #d1ccc0;
  text-shadow: 0 0 8px #d1ccc0;
}

.rank-number.top-3 {
  color: #e17055;
}

.rank-poster {
  width: 48px;
  height: 65px;
  border-radius: 6px;
  object-fit: cover;
}

.rank-details h5 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-stats {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Genre Explorer Section */
.genre-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.genre-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: #c8d6e5;
  transition: var(--transition-fast);
}

.genre-tag:hover {
  background: var(--accent);
  color: #0b0c10;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

/* Watch Page Layout */
.watch-container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 2rem 5%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
}

.theater-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.player-wrapper {
  position: relative;
  z-index: 60;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-subtle);
}

.video-frame-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect ratio */
  background: #0d0f17;
}

.video-frame-container video,
.video-frame-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-bottom-bar {
  background: var(--bg-surface);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.server-selector {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.server-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.4rem;
}

.server-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.server-btn:hover,
.server-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.player-toggles {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Switch Checkbox */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* Episode Panel Right Side */
.episode-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 700px;
}

.ep-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ep-subdub-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.sd-btn {
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  color: var(--text-muted);
}

.sd-btn.active {
  background: var(--primary);
  color: #fff;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-top: 0.8rem;
}

.ep-grid-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.65rem 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
}

.ep-grid-btn:hover {
  border-color: var(--primary);
  background: rgba(140, 122, 230, 0.15);
}

.ep-grid-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Anime Details Info below player */
.watch-info-section {
  grid-column: 1 / -1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
}

.info-poster img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.info-details h1 {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.info-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.info-synopsis {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.va-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem;
}

.char-side, .va-side {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.va-side {
  text-align: right;
  flex-direction: row-reverse;
}

.char-side img, .va-side img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.char-side h5, .va-side h5 {
  font-size: 0.85rem;
  color: #fff;
}

.char-side span, .va-side span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Comments Section */
.comments-container {
  margin-top: 2rem;
}

.comment-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.comment-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: #fff;
  font-size: 0.92rem;
  resize: vertical;
  min-height: 60px;
}

.comment-input:focus {
  outline: none;
  border-color: var(--primary);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.comment-item {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem;
  border-radius: var(--radius-md);
}

.comment-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.comment-body h5 {
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 400;
}

.comment-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.comment-actions {
  display: flex;
  gap: 1rem;
}

.btn-like {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-like:hover {
  color: var(--pink);
}

/* Watchlist Page Styles */
.watchlist-container {
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 5%;
}

.watchlist-header {
  margin-bottom: 2rem;
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.watchlist-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  position: relative;
}

.watchlist-poster {
  width: 80px;
  height: 115px;
  border-radius: 6px;
  object-fit: cover;
}

.watchlist-info {
  flex: 1;
}

.watchlist-info h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.progress-container {
  margin: 0.6rem 0;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.btn-increment {
  background: rgba(140, 122, 230, 0.15);
  border: 1px solid var(--primary);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.btn-increment:hover {
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Footer */
footer {
  margin-top: auto;
  background: #08090d;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 5%;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .watch-container {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .navbar {
    padding: 0.8rem 1rem;
  }
  .nav-links {
    display: none;
  }
  .schedule-tabs {
    grid-template-columns: repeat(4, 1fr);
  }
  .episode-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

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