/* VARIABLES HORREUR VRAIE */
:root {
  --abyss-black: #000000;
  --deep-void: #0a0a0a;
  --ash-gray: #1a1a1a;
  --bone: #e8e8e8;
  --decay-green: #1a2e1a;
  --corpse-blue: #0d1a26;
  --mold-gray: #2a2a2a;
  --ghost-white: #f5f5f5;
  --accent: #c9ffb3;
}

/* RESET & BASE */
* {margin:0;padding:0;box-sizing:border-box;}

body {
  font-family: "Cinzel", serif;
  background: var(--abyss-black);
  color: var(--bone);
  overflow-x: hidden;
  position: relative;
}

/* EFFET BROUILLARD */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(13, 26, 38, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(26, 46, 26, 0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  animation: fogMove 20s ease-in-out infinite;
}

@keyframes fogMove {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* VIGNETTE SOMBRE */
html {
  box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.9);
}

/* HEADER SINISTRE */
header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(232, 232, 232, 0.05);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.9);
}

header .left {
  display:flex;
  align-items:center;
  gap:20px;
}

header h1 {
  font-family: "Creepster", cursive;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--ghost-white);
  cursor: pointer;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  animation: titleBreath 4s ease-in-out infinite;
  position: relative;
  letter-spacing: 3px;
}

@keyframes titleBreath {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.main-nav { display:flex; gap:8px; align-items:center; }

.nav-btn {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(232, 232, 232, 0.08);
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--bone);
  cursor:pointer;
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  transition: all .25s;
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(42,42,42,1), rgba(26,26,26,1));
  color: var(--ghost-white);
  box-shadow: 0 6px 25px rgba(0,0,0,1);
  border-color: rgba(232,232,232,0.3);
}

header input {
  padding: 12px 20px;
  border: 1px solid rgba(232, 232, 232, 0.1);
  border-radius: 4px;
  background: rgba(26, 26, 26, 0.6);
  color: var(--bone);
  font-family: "Cinzel", serif;
  transition: all 0.4s;
  width: 250px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

header input:focus {
  width: 320px;
  border-color: rgba(232, 232, 232, 0.3);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
  outline: none;
  background: rgba(26, 26, 26, 0.9);
}

header input::placeholder {
  color: rgba(232, 232, 232, 0.3);
}

/* MAIN CONTENT */
main {
  padding: 40px;
  position: relative;
  z-index: 2;
}

.hidden { display:none; }

section {
  margin-bottom: 60px;
}

section h2 {
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 600;
  border-left: 2px solid rgba(232, 232, 232, 0.2);
  padding-left: 15px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  position: relative;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* GENRES SECTION */
.genres-section {
  margin-bottom: 50px;
  padding: 30px;
  background: linear-gradient(135deg,
    rgba(13, 26, 38, 0.3),
    rgba(26, 46, 26, 0.2));
  border-radius: 8px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(232, 232, 232, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
              inset 0 0 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.genres-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(26, 46, 26, 0.1), transparent 70%);
  pointer-events: none;
}

.genres-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.genres-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-btn {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(232, 232, 232, 0.1);
  padding: 10px 20px;
  border-radius: 4px;
  color: var(--bone);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Cinzel", serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.genre-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(232, 232, 232, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.genre-btn:hover::before {
  transform: translateX(100%);
}

.genre-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);
  border-color: rgba(232, 232, 232, 0.3);
  background: rgba(42, 42, 42, 0.9);
}

.genre-btn.active {
  background: linear-gradient(135deg, rgba(42, 42, 42, 1), rgba(26, 26, 26, 1));
  color: var(--ghost-white);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 1),
              inset 0 0 20px rgba(232, 232, 232, 0.05);
  border-color: rgba(232, 232, 232, 0.3);
}

/* CAROUSEL WRAPPER */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  padding: 20px 0;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 260px);
  grid-auto-columns: 180px;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-track {
  background: rgba(26, 26, 26, 0.3);
  border-radius: 3px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(232, 232, 232, 0.2);
  border-radius: 3px;
}

.carousel-track::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 232, 232, 0.3);
}

/* FLÈCHES DE NAVIGATION */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 80px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(232, 232, 232, 0.1);
  font-size: 2rem;
  color: var(--bone);
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.9);
  font-family: Arial, sans-serif;
  backdrop-filter: blur(10px);
}

.arrow:hover {
  background: rgba(26, 26, 26, 0.95);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 1);
  border-color: rgba(232, 232, 232, 0.3);
}

.arrow.left {
  left: 15px;
}

.arrow.right {
  right: 15px;
}

/* CARTES */
.card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s ease;
  width: 180px;
  height: 260px;
  border: 1px solid rgba(232, 232, 232, 0.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.95) 100%);
  opacity: 0.8;
  transition: opacity 0.5s;
  z-index: 1;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s;
  z-index: 2;
}

.card:hover::after {
  background: rgba(0, 0, 0, 0.3);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) contrast(1.1) brightness(0.7);
  transition: all 0.5s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 232, 232, 0.2);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 1);
  z-index: 5;
}

.card:hover img {
  filter: grayscale(0.3) contrast(1.3) brightness(0.9);
  transform: scale(1.05);
}

.card .title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.98),
    transparent);
  color: var(--ghost-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
  z-index: 3;
  font-family: "Cinzel", serif;
  letter-spacing: 0.5px;
}

/* GRID POUR RECOMMANDÉS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
}

/* PAGE DÉTAILS */
.details {
  display: none;
  min-height: 100vh;
  position: relative;
  background: var(--abyss-black);
  color: var(--bone);
}

.details.active {
  display: block;
}

.details-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(50px) brightness(0.2) grayscale(0.8);
  z-index: 0;
}

.details-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.95),
    rgba(0, 0, 0, 0.85));
}

.details-content {
  position: relative;
  z-index: 1;
  padding: 50px;
  max-width: 1400px;
  margin: auto;
}

.details-header {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.details-header img {
  width: 280px;
  border-radius: 4px;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 1);
  border: 1px solid rgba(232, 232, 232, 0.1);
  filter: grayscale(0.4) contrast(1.2);
}

.details-info {
  flex: 1;
}

.details-info h2 {
  font-family: "Cinzel", serif;
  font-size: 2.8rem;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 1);
  letter-spacing: 2px;
}

.details-info p {
  margin-bottom: 15px;
  color: rgba(232, 232, 232, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
}

.tags span {
  display: inline-block;
  margin: 5px;
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 3px;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(232, 232, 232, 0.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
}

/* PLAYER */
    .player {
      margin-top: 30px;
    }

    .player iframe {
      width: 100%;
      aspect-ratio: 16/9;
      border: none;
      border-radius: 4px;
      box-shadow: 0 15px 70px rgba(0, 0, 0, 1);
      border: 1px solid rgba(232, 232, 232, 0.05);
    }

    .player-controls {
      margin-top: 20px;
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
    }

    .player-controls button {
      background: rgba(26, 26, 26, 0.9);
      border: 1px solid rgba(232, 232, 232, 0.2);
      padding: 12px 24px;
      border-radius: 4px;
      color: var(--bone);
      font-weight: 600;
      cursor: pointer;
      font-family: "Cinzel", serif;
      font-size: 0.95rem;
      transition: all 0.3s;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    }

    .player-controls button:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 1);
      background: rgba(42, 42, 42, 0.95);
      border-color: rgba(232, 232, 232, 0.3);
    }

/* ÉPISODES */
.episodes {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.episodes button {
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid rgba(232, 232, 232, 0.1);
  padding: 10px 18px;
  border-radius: 4px;
  color: var(--bone);
  cursor: pointer;
  font-family: "Cinzel", serif;
  transition: all 0.3s;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
}

.episodes button:hover {
  background: rgba(42, 42, 42, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.9);
  border-color: rgba(232, 232, 232, 0.2);
}

.episodes button.active {
  background: rgba(42, 42, 42, 1);
  border-color: rgba(232, 232, 232, 0.3);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 1);
}

/* BOUTON RETOUR */
.back-btn {
  margin-top: 40px;
  display: inline-block;
  background: rgba(26, 26, 26, 0.9);
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(232, 232, 232, 0.2);
  font-family: "Cinzel", serif;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

.back-btn:hover {
  background: rgba(42, 42, 42, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 1);
  border-color: rgba(232, 232, 232, 0.3);
}

/* BOUTON ACTION */
.action-btn {
  color: white;              /* texte blanc */
  text-decoration: none;     /* retire le soulignement */
  margin-top: 40px;
  display: inline-block;
  background: rgba(26, 26, 26, 0.9);
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(232, 232, 232, 0.2);
  font-family: "Cinzel", serif;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

.action-btn:hover, .action-btn:focus {
  background: rgba(42, 42, 42, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 1);
  border-color: rgba(232, 232, 232, 0.3);
  color: white;              /* reste blanc au survol */
  text-decoration: none;     /* pas de soulignement au hover */
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px;
  font-size: 0.85rem;
  color: rgba(232, 232, 232, 0.4);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
  font-family: "Cinzel", serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
  letter-spacing: 2px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  main { padding: 30px; }
  section h2 { font-size: 1.6rem; }
  .details-header { flex-direction: column; align-items: center; text-align: center; }
  .details-header img { width: 240px; }
  .carousel-track { grid-template-rows: repeat(1, 1fr); height: calc(2*260px + 20px); }
  .card { width: 160px; height: 230px; }
  .arrow { width: 45px; height: 70px; font-size: 1.8rem; }
}

@media (max-width: 700px) {
  header { flex-direction: column; gap: 15px; padding: 20px; }
  header h1 { font-size: 2rem; }
  header input { width: 100%; max-width: 320px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
  .details-header img { width: 100%; max-width: 300px; }
  .details-info h2 { font-size: 2rem; }
  .carousel-track { grid-template-rows: repeat(1, 1fr); height: 260px; }
  .card { width: 140px; height: 200px; }
  .arrow { width: 40px; height: 60px; font-size: 1.5rem; }
  .genres-container { justify-content: center; }
  .genre-btn { font-size: 0.75rem; padding: 8px 16px; }
}

@media (max-width: 480px) {
  header h1 { font-size: 1.7rem; }
  section h2 { font-size: 1.4rem; }
  .details-info h2 { font-size: 1.7rem; }
  .card { width: 120px; height: 170px; }
  .arrow { width: 35px; height: 50px; font-size: 1.3rem; }
}

/* MAIN MENU (INTRO ABYSS) */
.main-menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 99999;
}

.menu-content {
  text-align: center;
  max-width: 700px;
  padding: 40px;
  animation: riseUp 2.5s ease;
}

.menu-logo {
  width: 120px;
  filter: drop-shadow(0 0 30px rgba(255,255,255,0.1));
  margin-bottom: 20px;
}

.main-menu h1 {
  font-family: "Creepster", cursive;
  font-size: 3rem;
  color: var(--ghost-white);
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(255,255,255,0.2);
}

.main-menu p {
  font-family: "Cinzel", serif;
  color: rgba(232,232,232,0.8);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.enter-btn {
  background: rgba(26,26,26,0.9);
  color: var(--bone);
  border: 1px solid rgba(232,232,232,0.2);
  padding: 15px 40px;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.4s;
  box-shadow: 0 5px 30px rgba(0,0,0,0.9);
}

.enter-btn:hover {
  transform: translateY(-3px);
  background: rgba(42,42,42,0.95);
  box-shadow: 0 10px 50px rgba(0,0,0,1);
  border-color: rgba(232,232,232,0.4);
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes riseUp {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}

/* RESPONSIVE */
@media (max-width: 1400px) {
  .details-content { padding: 40px; }
  .carousel-track { grid-auto-columns: 170px; }
  .card { width: 170px; height: 245px; }
}

@media (max-width: 1200px) {
  header { padding: 20px 30px; }
  header h1 { font-size: 2.2rem; }
  main { padding: 35px; }
  section h2 { font-size: 1.7rem; }
  .details-header { gap: 30px; }
  .details-header img { width: 250px; }
  .details-info h2 { font-size: 2.5rem; }
  .carousel-track { grid-auto-columns: 165px; }
  .card { width: 165px; height: 240px; }
}

@media (max-width: 1024px) {
  header { padding: 20px 25px; }
  header h1 { font-size: 2rem; }
  main { padding: 30px; }
  section h2 { font-size: 1.6rem; }
  .details-header { flex-direction: column; align-items: center; text-align: center; }
  .details-header img { width: 240px; }
  .details-content { padding: 35px; }
  .carousel-track { grid-template-rows: repeat(1, 1fr); height: calc(2*260px + 20px); grid-auto-columns: 160px; }
  .card { width: 160px; height: 230px; }
  .arrow { width: 45px; height: 70px; font-size: 1.8rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
}

@media (max-width: 768px) {
  header { flex-direction: column; gap: 15px; padding: 20px; }
  header h1 { font-size: 1.9rem; }
  header input { width: 100%; max-width: 100%; }
  header .left { flex-direction: column; gap: 15px; width: 100%; }
  .main-nav { flex-wrap: wrap; justify-content: center; }
  main { padding: 25px; }
  section { margin-bottom: 50px; }
  section h2 { font-size: 1.5rem; }
  .genres-section { padding: 25px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 20px; }
  .details-content { padding: 30px; }
  .details-header img { width: 100%; max-width: 280px; }
  .details-info h2 { font-size: 2.2rem; }
  .details-info p { font-size: 1rem; }
  .carousel-track { grid-template-rows: repeat(1, 1fr); height: 260px; grid-auto-columns: 155px; }
  .card { width: 155px; height: 220px; }
  .card .title { font-size: 0.9rem; padding: 12px; }
  .arrow { width: 42px; height: 65px; font-size: 1.6rem; }
  .genres-container { justify-content: center; }
  .genre-btn { font-size: 0.8rem; padding: 9px 18px; }
  .main-menu h1 { font-size: 2.6rem; }
  .main-menu p { font-size: 1.05rem; }
}

@media (max-width: 640px) {
  header h1 { font-size: 1.8rem; }
  main { padding: 20px; }
  section h2 { font-size: 1.4rem; }
  .genres-section { padding: 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
  .details-content { padding: 25px; }
  .details-header img { max-width: 260px; }
  .details-info h2 { font-size: 2rem; }
  .carousel-track { grid-auto-columns: 145px; }
  .card { width: 145px; height: 210px; }
  .card .title { font-size: 0.85rem; padding: 10px; }
  .arrow { width: 40px; height: 60px; font-size: 1.5rem; left: 10px; }
  .arrow.right { right: 10px; }
  .genre-btn { font-size: 0.75rem; padding: 8px 16px; }
  .player-controls button { font-size: 0.9rem; padding: 10px 20px; }
  .episodes button { font-size: 0.9rem; padding: 9px 16px; }
  footer { font-size: 0.8rem; padding: 25px; }
  .main-menu h1 { font-size: 2.3rem; }
  .main-menu p { font-size: 1rem; }
  .menu-content { padding: 30px; }
}

@media (max-width: 480px) {
  header h1 { font-size: 1.6rem; letter-spacing: 2px; }
  header input { font-size: 0.9rem; }
  main { padding: 15px; }
  section { margin-bottom: 40px; }
  section h2 { font-size: 1.3rem; }
  .genres-section { padding: 18px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; }
  .details-content { padding: 20px; }
  .details-header { gap: 25px; }
  .details-header img { max-width: 240px; }
  .details-info h2 { font-size: 1.8rem; }
  .details-info p { font-size: 0.95rem; }
  .tags span { font-size: 0.75rem; padding: 7px 14px; }
  .carousel-track { grid-auto-columns: 130px; }
  .card { width: 130px; height: 190px; }
  .card .title { font-size: 0.8rem; padding: 10px; }
  .arrow { width: 38px; height: 55px; font-size: 1.4rem; left: 8px; }
  .arrow.right { right: 8px; }
  .genre-btn { font-size: 0.7rem; padding: 7px 14px; }
  .nav-btn { font-size: 0.8rem; padding: 7px 10px; }
  .player-controls { gap: 12px; }
  .player-controls button { font-size: 0.85rem; padding: 10px 18px; }
  .episodes button { font-size: 0.85rem; padding: 8px 14px; }
  .back-btn, .action-btn { font-size: 0.9rem; padding: 10px 20px; }
  footer { font-size: 0.75rem; padding: 20px 15px; }
  .main-menu h1 { font-size: 2rem; }
  .main-menu p { font-size: 0.95rem; }
  .menu-logo { width: 100px; }
  .enter-btn { font-size: 0.95rem; padding: 13px 35px; }
  .menu-content { padding: 25px; }
}

@media (max-width: 360px) {
  header h1 { font-size: 1.4rem; letter-spacing: 1px; }
  main { padding: 12px; }
  section h2 { font-size: 1.2rem; }
  .genres-section { padding: 15px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 12px; }
  .details-content { padding: 18px; }
  .details-header img { max-width: 220px; }
  .details-info h2 { font-size: 1.6rem; }
  .details-info p { font-size: 0.9rem; }
  .carousel-track { grid-auto-columns: 115px; }
  .card { width: 115px; height: 170px; }
  .card .title { font-size: 0.75rem; padding: 8px; }
  .arrow { width: 35px; height: 50px; font-size: 1.3rem; left: 5px; }
  .arrow.right { right: 5px; }
  .genre-btn { font-size: 0.65rem; padding: 6px 12px; }
  .nav-btn { font-size: 0.75rem; padding: 6px 9px; }
  .main-menu h1 { font-size: 1.8rem; }
  .main-menu p { font-size: 0.9rem; }
  .menu-logo { width: 90px; }
  .enter-btn { font-size: 0.9rem; padding: 12px 30px; }
}