/* ============================================
   ATG Play — Browse / Hero / Title detail
   ============================================ */

/* ── Hero ── */
.hero {
  position: relative; height: 82vh; min-height: 540px; max-height: 820px;
  display: flex; align-items: flex-end; color: #fff; margin-bottom: 10px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center top; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,11,15,.92) 0%, rgba(11,11,15,.55) 38%, transparent 70%),
    linear-gradient(0deg, var(--bg) 2%, transparent 45%);
}
.hero-inner { position: relative; z-index: 1; padding: 0 48px 84px; max-width: 720px; }
.hero h1 { font-size: clamp(34px, 5vw, 62px); font-weight: 900; line-height: 1.05; margin-bottom: 18px; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.hero-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; font-size: 14px; color: #d6d6dd; }
.hero-meta .badge { color: #fff; }
.hero p { font-size: 16.5px; color: #e2e2e8; margin-bottom: 26px; max-width: 580px; text-shadow: 0 1px 8px rgba(0,0,0,.7); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { padding: 13px 30px; font-size: 16px; }

/* row scroll arrows */
.row { position: relative; }
.row-arrow {
  position: absolute; top: 0; bottom: 18px; width: 48px; z-index: 6;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(11,11,15,.55); color: #fff; border: none; opacity: 0; transition: opacity .2s;
}
.row:hover .row-arrow { opacity: 1; }
.row-arrow.left { left: 0; } .row-arrow.right { right: 0; }
.row-arrow svg { width: 28px; height: 28px; }
.row-arrow:hover { background: rgba(11,11,15,.8); }

/* skeleton shimmer */
.skel { background: linear-gradient(90deg, #16161c 25%, #20202a 50%, #16161c 75%); background-size: 400% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ── Title detail page ── */
.detail-hero { position: relative; min-height: 70vh; display: flex; align-items: flex-end; color: #fff; }
.detail-hero .hero-bg::after {
  background:
    linear-gradient(90deg, rgba(11,11,15,.95) 0%, rgba(11,11,15,.4) 55%, transparent 90%),
    linear-gradient(0deg, var(--bg) 1%, transparent 50%);
}
.detail-inner { position: relative; z-index: 1; padding: 0 48px 60px; max-width: 760px; }
.detail-inner h1 { font-size: clamp(30px, 4vw, 52px); font-weight: 900; margin-bottom: 16px; }
.detail-genres { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.chip { font-size: 12.5px; padding: 4px 12px; border-radius: 100px; background: var(--surface2); color: var(--text2); }

.episodes { padding: 36px 48px 0; }
.episodes h2 { font-size: 22px; margin-bottom: 18px; }
.ep {
  display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 10px;
  border: 1px solid var(--border); margin-bottom: 10px; cursor: pointer; transition: var(--transition);
}
.ep:hover { background: var(--surface); }
.ep-num { font-size: 22px; font-weight: 800; color: var(--text3); width: 36px; text-align: center; flex-shrink: 0; }
.ep-thumb { width: 150px; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--surface2); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-info { flex: 1; min-width: 0; }
.ep-info h4 { font-size: 16px; margin-bottom: 4px; }
.ep-info p { font-size: 13.5px; color: var(--text3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-dur { font-size: 13px; color: var(--text3); flex-shrink: 0; }

@media (max-width: 768px) {
  .hero-inner, .detail-inner { padding-left: 18px; padding-right: 18px; }
  .episodes { padding-left: 18px; padding-right: 18px; }
  .ep-thumb { width: 96px; }
}
