/* RESET */
* { margin:0; padding:0; box-sizing:border-box; -webkit-font-smoothing:antialiased; }

/* PALETA base (mantengo tu fondo y acentos morados/azules) */
:root {
  --bg-1: #0a0f29;
  --bg-2: #050714;
  --card-bg: #0c112b;
  --muted: #9aa0ab;
  --accent-green: #00d48a; /* verde para overlay */
  --accent: #5a7dff;
  --vip-gold: linear-gradient(135deg,#f5d98f,#b7922f);
}

/* BODY */
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: radial-gradient(circle at 20% 20%, var(--bg-1) 0%, var(--bg-2) 100%);
  color: #fff;
  padding: 64px 12px 24px;
}

/* TOP BANNER */
.top-banner {
  width:100%; background:linear-gradient(90deg, #1e2a78, #532f93, #1e2a78);
  color:white; text-align:center; padding:12px 0; font-size:18px; font-weight:700;
  position:fixed; top:0; left:0; z-index:9999; box-shadow:0 6px 18px rgba(0,0,0,.5);
}

/* HEADER */
.header-row { display:flex; align-items:center; justify-content:center; gap:20px; position:relative; max-width:1200px; margin:0 auto; }
header { text-align:center; margin-bottom:12px; }
header h1 {
  font-size:1.9rem; font-weight:800;
  color: #fff; letter-spacing:0.4px;
}

/* SOCIAL */
.social-header { position:absolute; right:0; display:flex; gap:12px; top:8px; }
.social-header a { color:#cbd5e0; font-size:20px; text-decoration:none; }
.social-header a:hover { color:var(--accent-green); transform:translateY(-2px); }

/* BUSCADOR */
#searchInput {
  width:100%; max-width:520px; padding:10px 14px; margin:12px auto 22px; display:block;
  border-radius:999px; border:1px solid rgba(255,255,255,0.03); outline:none; background:#071622;
  color:#e8f0ef; font-size:0.95rem; box-shadow:0 6px 20px rgba(0,0,0,0.6);
}
#searchInput::placeholder{ color:#5e6a6a; }
#searchInput:focus { box-shadow:0 0 20px rgba(0,212,138,0.08); border-color: rgba(0,212,138,0.12); }

/* FILTER BUTTONS */
#filterButtons { display:inline-flex; gap:8px; }
#filterButtons button {
  background:transparent; color:#cbd5e0; border:1px solid rgba(255,255,255,0.03);
  padding:8px 12px; border-radius:999px; cursor:pointer; font-weight:700;
}
#filterButtons button.active {
  background: rgba(0,212,138,0.08);
  color: var(--accent-green);
  border-color: rgba(0,212,138,0.18);
}

/* CATÁLOGO GRID */
main#catalogo {
  max-width:1300px; margin:88px auto 60px;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap:18px;
  align-items:start;
  padding: 0 6px;
}

/* tarjeta base (compatibilidad) */
.card { background:transparent; border-radius:12px; overflow:visible; width:100%; }

/* movie-card: contenedor con efecto */
.movie-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
  border-radius:10px;
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  position:relative;
}
.movie-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.75), 0 0 26px rgba(0,212,138,0.06); }

/* poster wrapper ratio */
.poster-wrap {
  position:relative;
  width:100%;
  padding-top:150%; /* 2:3 roughly */
  overflow:hidden;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.12));
}
.poster-wrap img.poster {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;
  transition: transform .35s ease, filter .35s ease;
  filter:brightness(.98);
}
.movie-card:hover .poster { transform: scale(1.06); filter:brightness(1.02); }

/* play overlay (center, green) */
.play-overlay {
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%) scale(.9);
  width:64px; height:64px; border-radius:50%;
  background: linear-gradient(180deg, var(--accent-green), #4ef0a0);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 30px rgba(0,212,138,0.14);
  opacity:0; transition: all .22s ease;
  z-index:4;
}
.play-overlay i { color:#01221a; font-size:20px; }
.movie-card:hover .play-overlay { opacity:1; transform:translate(-50%,-50%) scale(1); }

/* green glow on hover around poster */
.movie-card:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0,212,138,0.06);
  pointer-events: none;
}

/* subtle dark band at bottom of poster for readability */
.poster-bottom-fade {
  position:absolute; left:0; right:0; bottom:0; height:44%;
  background: linear-gradient(transparent, rgba(0,0,0,0.45));
  pointer-events:none;
}

/* info under poster */
.card-info {
  padding:10px 12px 14px;
  display:flex; flex-direction:column; gap:6px;
}
.title-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.movie-title {
  font-size:0.95rem; font-weight:700; line-height:1.1; color:#e8f0ef;
  overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  min-height:2.2em;
}
.rating { background: rgba(255,255,255,0.03); color:var(--accent-green); padding:4px 8px; border-radius:8px; font-weight:800; font-size:0.85rem; }

/* meta row (year • genres) */
.movie-meta { color:#9aa0ab; font-size:0.83rem; display:flex; gap:8px; align-items:center; }

/* season-row compact: small squares */
.season-row {
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

/* individual season square */
.season-row .season {
  position:relative;
  width:44px;
  height:44px;
  background: rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.03);
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:14px;
  color:#cbd5e0;
  cursor:pointer;
  transition: all .15s ease;
  overflow:visible;
}

/* number inside season (on top) */
.season-row .season .season-number {
  z-index:2;
  pointer-events:none;
}

/* vip look: gold soft background + glow */
.season-row .season.season-vip {
  background: linear-gradient(180deg, rgba(245,217,143,0.08), rgba(183,146,47,0.04));
  border:1px solid rgba(183,146,47,0.12);
  color:#f7e5b3;
  box-shadow: 0 6px 20px rgba(183,146,47,0.04) inset;
}

/* badge "VIP" small inside the square (top-right overlay) */
.season-row .season .badge {
  position:absolute;
  top:4px;
  right:4px;
  background: rgba(215,175,50,0.95);
  color: #081006;
  font-size:10px;
  padding:2px 5px;
  border-radius:4px;
  font-weight:800;
  z-index:3;
  box-shadow: 0 4px 10px rgba(183,146,47,0.12);
}

/* hover effect for individual season */
.season-row .season:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.45); }

/* empty / loading */
.empty { color:#9aa0ab; text-align:center; padding:40px 0; width:100%; }

/* compatibility buttons (not primary in grid) */
.btn { display:inline-block; text-decoration:none; padding:8px 12px; border-radius:8px; background:var(--accent); color:#fff; font-weight:700; }
.btn.eps { padding:6px 10px; background:rgba(255,255,255,0.04); color:#fff; border-radius:8px; }

/* Responsive tweaks */
@media(max-width:720px){
  main#catalogo { gap:12px; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); margin-top:80px; }
  .poster-wrap { padding-top:150%; }
  .season-row .season { width:38px; height:38px; font-size:13px; }
}
@media(max-width:420px){
  main#catalogo { gap:10px; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); margin-top:80px; }
  .movie-card:hover { transform:none; box-shadow: 0 6px 18px rgba(0,0,0,0.6); }
}

/* =============================
   NUEVAS SECCIONES HOME
   ============================= */

.home-section {
  max-width:1300px;
  margin:60px auto;
  padding:0 12px;
}

.home-section h2 {
  font-size:1.4rem;
  margin-bottom:14px;
  font-weight:900;
  color:#fff;
}

#bienvenida {
  text-align:center;
  margin-top:40px;
}

#bienvenida p {
  color:#ccd2df;
  font-size:1rem;
  margin:10px 0 20px;
}

#bienvenida button {
  padding:12px 24px;
  border-radius:999px;
  background:#00d48a;
  border:none;
  font-weight:800;
  font-size:1rem;
  cursor:pointer;
  color:#01221a;
  box-shadow:0 4px 16px rgba(0,212,138,0.25);
}

.home-row {
  display:flex;
  overflow-x:auto;
  gap:14px;
  padding-bottom:10px;
}

/* mini cards */
.mini-card {
  min-width:120px;
  background:#0c112b;
  border-radius:10px;
  overflow:hidden;
  flex-shrink:0;
  box-shadow:0 6px 14px rgba(0,0,0,0.5);
}
.mini-card img {
  width:100%;
  height:170px;
  object-fit:cover;
}
.mini-info {
  padding:8px 10px;
}
.mini-title {
  display:block;
  font-size:0.9rem;
  font-weight:700;
  color:#fff;
}
.mini-meta {
  font-size:0.8rem;
  color:#9aa0ab;
}

/* TOP 10 */
.top10-table {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.top10-item {
  display:flex;
  align-items:center;
  gap:10px;
  background:#0c112b;
  padding:10px 12px;
  border-radius:10px;
  box-shadow:0 6px 14px rgba(0,0,0,0.5);
}

.top10-item .pos {
  font-weight:900;
  font-size:1.2rem;
  color:#00d48a;
  width:26px;
  text-align:center;
}

.top10-item img {
  width:46px;
  height:64px;
  border-radius:6px;
  object-fit:cover;
}

.top10-item .name {
  flex:1;
  font-size:0.95rem;
  font-weight:700;
}

.top10-item .rate {
  font-weight:900;
  color:#00d48a;
}
