/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0f0f15;
  color: #fff;
  transition: background 0.3s, color 0.3s;
}

/* Light Mode */
body.light-mode {
  background: #fefefe;
  color: #222;
}

/* === HEADER === */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(to right, #d63384, #6f42c1);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
}

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

.pill {
  background: rgba(255,255,255,0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 25px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.pill:hover {
  background: rgba(255,255,255,0.35);
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s;
}

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

/* Light Mode Header */
body.light-mode .site-header {
  background: linear-gradient(to right, #ffb6d9, #cfa4ff);
  color: #222;
}

body.light-mode .pill {
  background: rgba(0,0,0,0.1);
  color: #222;
}

body.light-mode .pill:hover {
  background: rgba(0,0,0,0.2);
}

body.light-mode .icon-btn {
  color: #222;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, rgba(0,0,0,0.6), rgba(0,0,0,0));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 40%;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.cta {
  background: #d63384;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s;
}

.cta:hover {
  background: #b02a6f;
}

/* Light Mode Hero */
body.light-mode .overlay {
  background: linear-gradient(to left, rgba(255,255,255,0.6), rgba(255,255,255,0));
}

body.light-mode .hero-content {
  color: #222;
}

body.light-mode .cta {
  background: #ff4da6;
  color: #fff;
}

body.light-mode .cta:hover {
  background: #e63e90;
}

/* === CONTENT GRID === */
.content {
  padding: 2rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #d63384;
}

body.light-mode .section-title {
  color: #b02a6f;
}

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

.card {
  position: relative;
  background: #1a1a22;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.3s;
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card-info {
  padding: 1rem;
}

.card-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.card-info p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.play-btn {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.4rem 0.8rem;
  background: #d63384;
  color: #fff;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s;
}

.play-btn:hover {
  background: #b02a6f;
}

/* Card Hover */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* Light Mode Card */
body.light-mode .card {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

body.light-mode .play-btn {
  background: #ff4da6;
}

body.light-mode .play-btn:hover {
  background: #e63e90;
}

/* === FOOTER === */
.site-footer {
  text-align: center;
  padding: 1rem;
  background: #1a1a22;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #bbb;
}

body.light-mode .site-footer {
  background: #f5f5f5;
  color: #444;
}

/* === PLAYER PAGE STYLES === */

/* Container */
.player-page {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Anime Title */
.player-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #d63384;
  text-align: center;
}

body.light-mode .player-title {
  color: #b02a6f;
}

/* Episode Selector */
.episode-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.episode-btn {
  background: #1a1a22;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.episode-btn:hover {
  background: #d63384;
  transform: translateY(-2px);
}

.episode-btn.active {
  background: #d63384;
  color: #fff;
}

/* Light Mode Episode Buttons */
body.light-mode .episode-btn {
  background: #f1f1f1;
  color: #222;
}

body.light-mode .episode-btn:hover {
  background: #ff4da6;
  color: #fff;
}

body.light-mode .episode-btn.active {
  background: #ff4da6;
  color: #fff;
}

/* Video Player */
.player-container {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  background: #000;
}

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

/* Light Mode Player */
body.light-mode .player-container {
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  background: #111;
}
/* === HEADER STYLING === */
.header-banner {
  width: 100%;
  background: linear-gradient(135deg, #d63384, #4a148c);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.header-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.back-btn {
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.back-btn:hover {
  opacity: 0.8;
}

/* === PLAYER PAGE === */
.player-page {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Player */
.player-container {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
}

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

/* === EPISODE CARD === */
.episode-card {
  background: #1a1a22;
  padding: 1.5rem;
  border-radius: 14px;
  width: 100%;
  max-width: 1100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

body.light-mode .episode-card {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.episode-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #d63384;
}

body.light-mode .episode-heading {
  color: #b02a6f;
}

/* Episode Buttons */
.episode-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.episode-btn {
  background: linear-gradient(135deg, #d63384, #4a148c);
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, opacity 0.3s;
}

.episode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(214,51,132,0.5);
  opacity: 0.95;
}

.episode-btn.active {
  background: linear-gradient(135deg, #ff4da6, #6a1b9a);
  box-shadow: 0 4px 14px rgba(255,77,166,0.6);
}

/* Light Mode Buttons */
body.light-mode .episode-btn {
  background: linear-gradient(135deg, #ff7ab8, #c77dff);
  color: #fff;
}

body.light-mode .episode-btn.active {
  background: linear-gradient(135deg, #ff4da6, #a44afc);
}
/* === Season Selector Styling === */
.season-selector {
  margin: 20px 0;
  text-align: center;
}

.season-selector label {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-color, #d63384);
  margin-right: 10px;
}

.season-selector select {
  background: linear-gradient(135deg, #1a1a22, #1a1a22);
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

