/* Home */
.home-view{display:flex;flex-direction:column;gap:28px}

/* ===== Banner ===== */
.home-hero2{
  position:relative;
  border-radius:30px;
  border:1px solid rgba(31,41,55,.72);
  overflow:hidden;
  background:linear-gradient(180deg,#0f1528,#0b1020);
  box-shadow:0 24px 68px rgba(0,0,0,.42);
  min-height:620px;
}

.home-hero2-track{position:relative;min-height:620px}

.home-hero2-slide{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease;
}

.home-hero2-slide::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--hero-bg);
  background-size:cover;
  background-position:center center;
  filter:blur(28px) saturate(1.08);
  opacity:.28;
  transform:scale(1.03);
}

.home-hero2-slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(3,7,18,.56) 0%, rgba(3,7,18,.34) 16%, rgba(3,7,18,.12) 34%, rgba(3,7,18,.02) 58%, rgba(3,7,18,.10) 100%),
    linear-gradient(180deg, rgba(3,7,18,.16) 0%, rgba(3,7,18,0) 18%, rgba(3,7,18,.10) 100%);
}

.home-hero2-slide.is-active{
  opacity:1;
  pointer-events:auto;
}

.home-hero2-media{
  position:absolute;
  inset:0;
  z-index:1;
}

.home-hero2-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  opacity:.96;
}

.home-hero2-ph{width:100%;height:100%;background:#020617}

.home-hero2-overlay{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-rows:auto auto auto 1fr auto;
  align-content:start;
  gap:16px;
  height:100%;
  min-height:620px;
  padding:54px 48px 34px 72px;
  max-width:560px;
}

.home-hero2-meta{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:2px}

.home-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:40px;
  padding:0 16px;
  border-radius:999px;
  background:rgba(8,15,31,.52);
  border:1px solid rgba(255,255,255,.12);
  color:#f8fafc;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  backdrop-filter:blur(6px);
}

.home-tag:last-child{
  color:#f7d27a;
  border-color:rgba(226,179,67,.34);
  background:rgba(78,58,10,.22);
}

.home-tag strong{color:inherit}

.home-hero2-title{
  font-size:62px;
  font-weight:900;
  line-height:.96;
  letter-spacing:-.03em;
  text-wrap:balance;
  text-shadow:0 3px 18px rgba(0,0,0,.20);
  max-width:520px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.home-hero2-desc{
  color:rgba(255,255,255,.88);
  font-size:18px;
  line-height:1.55;
  max-width:420px;
  text-shadow:0 2px 10px rgba(0,0,0,.18);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:4.65em;
}

.home-hero2-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-self:start;
  margin-top:auto;
}

.home-hero2-actions .btn{
  height:54px;
  min-width:154px;
  border-radius:18px;
  padding:0 24px;
  font-size:22px;
  font-weight:800;
}

.home-hero2-actions .btn-ghost{
  background:rgba(8,15,31,.30);
  border:1px solid rgba(255,255,255,.10);
}

.home-hero2-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border:none;
  background:transparent;
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:54px;
  line-height:1;
  z-index:5;
  text-shadow:0 4px 16px rgba(0,0,0,.42);
  padding:0;
  opacity:.92;
}
.home-hero2-arrow:hover{opacity:1;transform:translateY(-50%) scale(1.04)}
.home-hero2-arrow.left{left:18px}
.home-hero2-arrow.right{right:18px}

.home-hero2-dots{
  position:absolute;
  left:0;
  right:0;
  bottom:16px;
  display:flex;
  gap:10px;
  justify-content:center;
  z-index:6;
}

.home-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:none;
  background:rgba(255,255,255,.26);
  cursor:pointer;
}

.home-dot.is-active{background:#ff4d5f}

/* ===== Sections ===== */
.home-section{display:flex;flex-direction:column;gap:12px}
.home-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px}
.home-section-left{display:flex;flex-direction:column}
.home-section-title{margin:0;font-size:16px;font-weight:900;letter-spacing:.15px}
.home-section-sub{color:var(--muted);font-size:12px;margin-top:4px}

/* ===== Horizontal rows ===== */
.home-row{
  display:flex;
  gap:16px;
  overflow:auto;
  padding-bottom:8px;
  scroll-snap-type:x mandatory;
}

.home-row-cards .movie-card{min-width:210px;scroll-snap-align:start}
.home-view .home-row-cards .movie-actions{display:none}
.home-view .home-row-cards .movie-body{padding:12px}
.home-view .home-row-cards .movie-title{font-size:13px;line-height:16px}

.home-row::-webkit-scrollbar{height:8px}
.home-row::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:999px}
.home-row::-webkit-scrollbar-track{background:rgba(255,255,255,.04);border-radius:999px}

/* ===== Popular collections ===== */
.home-reasons{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.home-reason{
  border-radius:18px;
  border:1px solid rgba(31,41,55,.75);
  background:linear-gradient(180deg,#0f1528,#0b1020);
  padding:16px;
  cursor:pointer;
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:168px;
  position:relative;
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color:var(--text);
}

.home-reason::before{
  content:"";
  position:absolute;
  inset:-40px -70px auto auto;
  width:240px;
  height:240px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(239,68,68,.16), transparent 60%);
  opacity:.95;
}

.home-reason:hover{
  transform:translateY(-2px);
  border-color:rgba(239,68,68,.28);
  box-shadow:0 14px 34px rgba(0,0,0,.28);
}

.home-reason-title{position:relative;font-size:16px;font-weight:900;letter-spacing:.15px}
.home-reason-desc{position:relative;color:var(--muted);font-size:12px;line-height:1.5;max-width:340px}
.home-reason-ico{
  position:absolute;
  right:14px;
  bottom:14px;
  width:48px;
  height:48px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(2,6,23,.45);
  border:1px solid rgba(255,255,255,.10);
  font-size:22px;
}

@media(max-width:1200px){
  .home-hero2,
  .home-hero2-track,
  .home-hero2-overlay{min-height:560px}
  .home-hero2-overlay{padding:44px 40px 30px 64px;max-width:520px}
  .home-hero2-title{font-size:54px}
  .home-reasons{grid-template-columns:repeat(2, minmax(0, 1fr))}
}

@media(max-width:900px){
  .home-hero2,
  .home-hero2-track,
  .home-hero2-overlay{min-height:460px}
  .home-hero2-overlay{padding:28px 24px 26px 48px;max-width:100%;gap:12px}
  .home-hero2-title{font-size:40px;max-width:420px}
  .home-hero2-desc{font-size:15px;max-width:360px}
  .home-tag{height:34px;padding:0 12px;font-size:12px}
  .home-hero2-actions .btn{height:48px;min-width:138px;font-size:18px}
  .home-hero2-arrow{font-size:44px;width:36px;height:36px}
}

@media(max-width:560px){
  .home-hero2,
  .home-hero2-track,
  .home-hero2-overlay{min-height:380px}
  .home-hero2-overlay{padding:20px 18px 22px 34px}
  .home-hero2-title{font-size:28px;max-width:300px;-webkit-line-clamp:3}
  .home-hero2-desc{font-size:13px;max-width:260px;-webkit-line-clamp:2;min-height:auto}
  .home-hero2-actions{gap:10px}
  .home-hero2-actions .btn{height:42px;min-width:122px;font-size:15px;border-radius:14px}
  .home-hero2-arrow{font-size:34px;width:28px;height:28px;left:8px;right:auto}
  .home-hero2-arrow.right{right:8px;left:auto}
  .home-reasons{grid-template-columns:1fr}
}
