/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; height: 100%; }
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0e0b0b;
  color: #fff;
  width: 100%;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { border: none; outline: none; cursor: pointer; font-family: inherit; background: transparent; color: #fff; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(14,11,11,0.98) 0%, rgba(14,11,11,0.85) 70%, transparent 100%);
  transition: background 0.3s ease;
}
.site-header.scrolled { background: rgba(14,11,11,0.98); backdrop-filter: blur(10px); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 30px;
  max-width: 1920px; margin: 0 auto;
}
.header-left { display: flex; align-items: center; gap: 32px; }
.logo-link { display: flex; align-items: center; }
.logo-svg { width: 130px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 14px; font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.75); transition: color 0.2s; border-radius: 4px; white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; font-weight: 700; }
.header-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); }
.mobile-menu-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }

/* ===== Hero Carousel ===== */
.hero-carousel {
  position: relative; width: 100%; height: 85vh; min-height: 480px; max-height: 800px; overflow: hidden;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center top;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, #0e0b0b 8%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.25) 100%);
}
.hero-content {
  position: absolute; bottom: 90px; left: 0; right: 0; z-index: 2;
  text-align: center; padding: 0 20px;
}
.hero-title {
  font-size: 36px; font-weight: 700; margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.hero-desc {
  font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 22px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.hero-play-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px; background: #d12222; border-radius: 6px;
  font-size: 16px; font-weight: 600; color: #fff; transition: background 0.2s;
  box-shadow: 0 4px 12px rgba(209,34,34,0.4);
}
.hero-play-btn:hover { background: #b61a09; }
.hero-dl-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-dl-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 44px; border-radius: 10px; font-size: 19px; font-weight: 800;
  text-decoration: none; transition: transform 0.15s, opacity 0.15s;
  box-shadow: 0 6px 20px rgba(7,193,96,0.4);
}
.hero-dl-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.dl-android { background: #07c160; color: #fff; }
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.3s; }
.hero-dot.active { background: #d12222; transform: scale(1.2); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(0,0,0,0.45); transition: background 0.2s; opacity: 0;
}
.hero-carousel:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(0,0,0,0.8); }
.hero-arrow-left { left: 20px; }
.hero-arrow-right { right: 20px; }

/* ===== Hero Live Slide ===== */
.hero-live-slide { background-image: none !important; }
.hero-live-slide .hero-content {
  position: absolute; bottom: auto; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; width: 90%; max-width: none;
}
.hero-live-slide .hero-title { font-size: 64px; font-weight: 900; letter-spacing: 2px; margin: 0; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: rgba(0,0,0,0.6); border-radius: 6px;
  font-size: 14px; font-weight: 600;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff2d2d;
  box-shadow: 0 0 6px #ff2d2d; animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== Content Rows (原站 plus-carousel 逻辑) ===== */
.content-main { position: relative; z-index: 1; margin-top: -50px; padding-bottom: 40px; }
.content-row { margin-bottom: 28px; }
.row-header {
  padding: 0 30px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.row-title { font-size: 22px; font-weight: 700; color: #fff; }
.row-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.55); transition: color 0.2s;
}
.row-more:hover { color: #fff; }
.row-scroll { position: relative; }
.scroll-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(0,0,0,0.55); transition: background 0.2s; opacity: 0;
}
.row-scroll:hover .scroll-arrow { opacity: 1; }
.scroll-arrow:hover { background: rgba(0,0,0,0.85); }
.scroll-left { left: 10px; }
.scroll-right { right: 10px; }

/* 卡片容器：左右 padding 30px（和 row-header 对齐），横向滚动 */
.cards-container {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-behavior: smooth;
  padding: 4px 30px 16px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cards-container::-webkit-scrollbar { display: none; }

/* ===== Card (竖版海报 7:10) ===== */
.card {
  flex: 0 0 13%;           /* 桌面：一排 7 张 */
  min-width: 150px;
  cursor: pointer; transition: transform 0.25s ease;
  border-radius: 6px; overflow: hidden;
}
.card:hover { transform: scale(1.05); z-index: 2; }
.card-img-wrap {
  position: relative; width: 100%; aspect-ratio: 7/10; overflow: hidden;
  border-radius: 6px; background: #1a1a1a;
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.08); }
.card-footer { padding: 6px 2px 0; }
.card-title {
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.85);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.3;
}

/* ===== Card Wide (横版大图 16:9) ===== */
.card-wide {
  flex: 0 0 30%;           /* 桌面：一排 3 张 */
  min-width: 260px;
}
.card-wide .card-img-wrap { aspect-ratio: 16/9; }

/* ===== Club Canela 行（横版卡片） ===== */
.row-club .card-img-wrap { border-radius: 6px; }

/* ===== Micro-Series 亮粉色行 ===== */
.row-micro {
  background: #e91e8c;
  padding: 24px 0 30px;
  margin-left: 0; margin-right: 0;
}
.row-micro .row-title {
  color: #fff; font-size: 32px; font-weight: 900;
  padding: 0 30px; margin-bottom: 16px;
}
.row-micro .card {
  flex: 0 0 18%; min-width: 160px;
}
.row-micro .card-img-wrap {
  border: 3px solid #fff; border-radius: 8px;
}

/* ===== Todos los Géneros 分类入口 ===== */
.row-generos .card-img-wrap {
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.15);
}
.row-generos .genero-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 4px; text-align: center;
  font-size: 18px; font-weight: 900; color: #fff;
  text-transform: uppercase; letter-spacing: 1px;
}
.genero-picante .genero-badge { background: linear-gradient(0deg, #ff1493 0%, transparent 100%); }
.genero-accion .genero-badge { background: linear-gradient(0deg, #ff3300 0%, transparent 100%); }
.genero-clasicos .genero-badge { background: linear-gradient(0deg, #8b4513 0%, transparent 100%); }
.genero-realities .genero-badge { background: linear-gradient(0deg, #9932cc 0%, transparent 100%); }
.genero-terror .genero-badge { background: linear-gradient(0deg, #4b0082 0%, transparent 100%); }
.genero-romance .genero-badge { background: linear-gradient(0deg, #ff69b4 0%, transparent 100%); }
.genero-familia .genero-badge { background: linear-gradient(0deg, #00bcd4 0%, transparent 100%); }
.genero-comedia .genero-badge { background: linear-gradient(0deg, #ff9800 0%, transparent 100%); }

/* ===== Holiday Hits 金色背景行 ===== */
.row-holiday {
  background: linear-gradient(180deg, #c9a96e 0%, #b8945a 100%);
  padding: 30px 0;
}
.row-holiday .row-title { color: #fff; font-size: 32px; font-weight: 900; }
.row-holiday .row-sponsor {
  font-size: 16px; color: rgba(255,255,255,0.8); font-weight: 400; margin-left: 12px;
}
.row-holiday .card-title { color: #fff; }

/* ===== Footer ===== */
.site-footer {
  background: #0a0808; border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 30px 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.footer-brand { flex: 0 0 auto; }
.footer-logo { width: 140px; height: auto; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.5); }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-link { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-link:hover { color: #d12222; }
.footer-social {
  display: flex; gap: 16px; margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.social-link {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); transition: all 0.2s;
}
.social-link:hover { background: #d12222; color: #fff; }
.footer-bottom { text-align: center; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ===== Responsive (按原站断点) ===== */
@media (max-width: 1200px) {
  .card { flex: 0 0 22%; min-width: 130px; }
  .card-wide { flex: 0 0 33%; min-width: 220px; }
}
@media (max-width: 900px) {
  .header-inner { padding: 10px 16px; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .logo-svg { width: 100px; }
  .hero-carousel { height: 50vh; min-height: 320px; }
  .hero-content { left: 16px; bottom: 70px; }
  .hero-title { font-size: 28px; }
  .hero-live-slide .hero-title { font-size: 42px; }
  .row-header { padding: 0 16px; }
  .row-title { font-size: 18px; }
  .cards-container { padding: 4px 16px 12px; gap: 10px; }
  /* 竖版卡：一行约 3.5 张 */
  .card { flex: 0 0 28%; min-width: 120px; }
  /* 横版卡：一行约 2.5 张 */
  .card-wide { flex: 0 0 40%; min-width: 200px; }
  .card-title { font-size: 12px; }
  .site-footer { padding: 32px 16px 16px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .hero-carousel { height: 42vh; min-height: 260px; }
  .hero-content { left: 16px; bottom: 56px; }
  .hero-title { font-size: 22px; }
  .hero-live-slide .hero-title { font-size: 32px; }
  .hero-play-btn { padding: 10px 20px; font-size: 14px; }
  /* 竖版卡：一行约 3 张 */
  .card { flex: 0 0 32%; min-width: 100px; }
  /* 横版卡：一行约 2 张 */
  .card-wide { flex: 0 0 55%; min-width: 170px; }
  .cards-container { gap: 8px; }
}
