/* DramaPlus — dark catalog theme (original design) */
:root {
  --bg: #0b0b0f;
  --bg2: #14141c;
  --card: #1b1b26;
  --text: #f4f4f6;
  --muted: #a3a3b3;
  --accent: #ff4d5e;
  --accent2: #ff7a45;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,11,15,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #23232f; }
.header-in { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.main-nav { display: flex; gap: 16px; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.main-nav a.active, .main-nav a:hover { color: var(--text); }
.header-search { flex: 1; max-width: 360px; margin-left: auto; }
.header-search input { width: 100%; background: var(--bg2); border: 1px solid #2a2a38; border-radius: 999px; color: var(--text); padding: 8px 14px; font-size: 14px; outline: none; }
.header-search input:focus { border-color: var(--accent); }
.lang-switch { display: flex; gap: 2px; font-size: 13px; font-weight: 700; }
.lang-switch a { color: var(--muted); padding: 4px 6px; border-radius: 6px; }
.lang-switch a.on { color: var(--text); background: var(--bg2); }
.btn { display: inline-block; border: 0; cursor: pointer; font-weight: 700; border-radius: 999px; padding: 10px 20px; font-size: 15px; }
.btn-dl { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; white-space: nowrap; }
.btn-disabled { opacity: .45; cursor: not-allowed; }
.btn-play { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }
.btn-ghost { background: var(--bg2); color: var(--text); border: 1px solid #2a2a38; }

/* hero */
.hero { position: relative; height: min(72vh, 560px); min-height: 380px; overflow: hidden; background: #000; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero-slide.on { opacity: 1; pointer-events: auto; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.05) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.hero-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 64px; max-width: 720px; margin: 0 auto 0 max(16px, calc((100% - 1240px)/2 + 16px)); }
.hero-kicker { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.hero-title { font-size: clamp(30px, 5.4vw, 56px); margin: 0 0 12px; line-height: 1.05; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.hero-tag { color: #e6e6ee; font-size: clamp(14px, 1.6vw, 18px); line-height: 1.5; margin: 0 0 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.45); color: #fff; font-size: 26px; cursor: pointer; }
.hero-nav.prev { left: 14px; } .hero-nav.next { right: 14px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots .dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.hero-dots .dot.on { background: var(--accent); }

.site-tagline { color: var(--muted); font-size: 17px; margin: 22px 0 4px; }

/* rows */
.row-block { margin: 30px 0; }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.row-title { font-size: 22px; margin: 0; }
.row-btns { display: flex; gap: 6px; }
.row-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #2a2a38; background: var(--bg2); color: var(--text); font-size: 20px; cursor: pointer; }
.row-nav:hover { border-color: var(--accent); }
.row-track { display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: thin; }
.row-track .card { flex: 0 0 168px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.card { display: block; }
.card-poster { display: block; aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-poster img { transform: scale(1.05); }
.card-title { display: block; margin-top: 8px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.card-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.empty { color: var(--muted); }

/* detail */
.detail { position: relative; padding: 48px 0 30px; overflow: hidden; }
.detail-back { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(28px) brightness(.35); transform: scale(1.15); }
.detail-in { position: relative; display: flex; gap: 26px; align-items: flex-start; }
.detail-poster { flex: 0 0 210px; }
.detail-poster img { width: 100%; border-radius: var(--radius); aspect-ratio: 2/3; object-fit: cover; }
.detail-info h1 { font-size: clamp(26px, 4vw, 42px); margin: 6px 0 12px; }
.detail-syn { color: #e2e2ec; line-height: 1.65; max-width: 640px; }
.ep-title { margin-top: 28px; margin-bottom: 14px; }
.ep-list { display: flex; flex-direction: column; gap: 8px; }
.ep-item { display: flex; align-items: center; gap: 14px; background: var(--bg2); border: 1px solid #23232f; border-radius: 10px; padding: 12px 16px; }
.ep-item:hover { border-color: var(--accent); }
.ep-no { font-weight: 800; color: var(--accent); font-size: 18px; min-width: 30px; }
.ep-name { flex: 1; font-weight: 600; }
.ep-dur { color: var(--muted); font-size: 13px; }
.ep-play { color: var(--accent); }
.back-link { margin: 22px 0; }
.back-link a { color: var(--muted); font-weight: 600; }
.back-link a:hover { color: var(--text); }

/* watch */
.watch-wrap { max-width: 560px; }
.watch-title { margin: 6px 0 4px; font-size: 26px; }
.watch-sub { color: var(--muted); margin: 0 0 16px; }
.player-box { background: #000; border-radius: 16px; overflow: hidden; }
.player { width: 100%; aspect-ratio: 9/16; max-height: 78vh; display: block; background: #000; }
.watch-nav { display: flex; justify-content: space-between; margin: 16px 0 6px; }
.lock-box { background: var(--bg2); border: 1px solid #2a2a38; border-radius: 16px; text-align: center; padding: 44px 22px 30px; }
.lock-icon { font-size: 52px; line-height: 1; }
.lock-title { font-size: 24px; margin: 16px 0 8px; }
.lock-text { color: var(--muted); line-height: 1.55; max-width: 420px; margin: 0 auto 22px; }
.lock-btn { font-size: 16.5px; padding: 12px 26px; }
.lock-box .back-link { margin-bottom: 0; }
.app-banner { background: linear-gradient(135deg, #2b1055, #7597de); border-radius: 16px; text-align: center; padding: 28px 22px 26px; margin: 26px 0 8px; }
.app-banner-title { font-size: 22px; font-weight: 800; color: #fff; }
.app-banner-text { color: #e8e8f2; line-height: 1.55; margin: 8px auto 18px; max-width: 420px; }
.ep-lock { color: var(--accent2); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.ep-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chip { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--bg2); border: 1px solid #2a2a38; font-weight: 700; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* footer */
.site-footer { border-top: 1px solid #23232f; margin-top: 48px; padding: 34px 0 40px; text-align: center; }
.foot-brand { font-size: 20px; font-weight: 800; }
.foot-tag { color: var(--muted); margin: 8px 0 4px; }
.foot-disclaimer { color: var(--muted); font-size: 13px; max-width: 640px; margin: 6px auto 18px; line-height: 1.5; }
.foot-copy { color: #6d6d7f; font-size: 12.5px; margin-top: 18px; }

.notfound { text-align: center; padding: 70px 0; }
.notfound h1 { font-size: 64px; margin: 0 0 8px; }

@media (max-width: 720px) {
  .header-in { gap: 10px; flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .header-search { order: 5; flex-basis: 100%; max-width: none; }
  .main-nav a { font-size: 14px; }
  .btn-dl { padding: 8px 14px; font-size: 13.5px; }
  .detail-in { flex-direction: column; }
  .detail-poster { flex-basis: 170px; width: 170px; }
  .row-track .card { flex-basis: 138px; }
}
