@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  color: #f8f4f0;
  background: #090707;
  font-family: 'DM Sans', 'Avenir Next', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #f8f4f0;
  --muted: #b8afb0;
  --coral: #f25f61;
  --coral-deep: #d84856;
  --surface: #161113;
  --line: rgba(255, 255, 255, .12);
}

* { box-sizing: border-box; }

html { background: #090707; scroll-behavior: smooth; }

body { margin: 0; min-width: 320px; overflow-x: hidden; background: #090707; }

button, input { font: inherit; }

button { border: 0; color: inherit; cursor: pointer; }

button:focus-visible, input:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.app-shell { min-height: 100vh; overflow: hidden; background: linear-gradient(180deg, #0a0708 0%, #090707 48%, #0f090b 100%); }

.page-gutter { width: min(1640px, calc(100% - 96px)); margin-inline: auto; }


.hero { position: relative; min-height: min(720px, 74vh); height: 720px; isolation: isolate; background: #1b1216; }

.hero-image-wrap { position: absolute; z-index: -3; inset: 0; animation: hero-in .65s ease both; }

.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: var(--desktop-focus, center); display: block; }

.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(8, 5, 7, .94) 0%, rgba(8, 5, 7, .68) 22%, rgba(8, 5, 7, .17) 57%, rgba(8, 5, 7, .26) 100%), linear-gradient(0deg, #090707 0%, transparent 25%, rgba(9, 7, 7, .3) 100%); }

.hero-content { position: relative; min-height: 100%; display: flex; align-items: flex-end; padding-bottom: 128px; }

.hero-copy { width: min(690px, 55vw); }

.hero-kicker, .shelf-eyebrow, .modal-kicker { margin: 0 0 14px; color: rgba(255, 255, 255, .64); text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .18em; }

.live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(242, 95, 97, .15); vertical-align: 1px; }

h1, h2 { font-family: 'Playfair Display', Georgia, serif; }

.hero-title { display: -webkit-box; max-width: 700px; margin: 0; overflow: hidden; color: #fffaf7; font-weight: 700; line-height: .99; letter-spacing: -.045em; text-overflow: ellipsis; text-wrap: balance; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.hero-title.is-short { font-size: clamp(40px, 4.1vw, 68px); }

.hero-title.is-medium { font-size: clamp(38px, 3.55vw, 58px); }

.hero-title.is-long { font-size: clamp(34px, 2.95vw, 48px); }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.hero-tags span { padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; background: rgba(14, 10, 12, .34); color: rgba(255, 255, 255, .88); font-size: 11px; font-weight: 600; }

.hero-description { max-width: 465px; margin: 15px 0 24px; color: rgba(255, 255, 255, .77); font-size: 14px; line-height: 1.55; }

.hero-actions { display: flex; align-items: center; gap: 12px; }

.primary-cta { display: inline-flex; align-items: center; gap: 11px; min-height: 48px; padding: 7px 23px 7px 10px; border-radius: 999px; background: #fffaf8; color: #171014; font-weight: 700; font-size: 14px; box-shadow: 0 12px 28px rgba(0, 0, 0, .24); transition: transform .2s ease, box-shadow .2s ease; }

.primary-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, .38); }

.surprise-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(8, 5, 7, .16); color: rgba(255, 255, 255, .9); cursor: pointer; font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }

.surprise-link:hover { border-color: rgba(255, 255, 255, .78); background: rgba(8, 5, 7, .4); color: #fff; transform: translateY(-2px) scale(1.015); }
.surprise-link:active { border-color: #fff; background: rgba(242, 95, 97, .3); color: #fff; transform: translateY(0) scale(.985); }
.surprise-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-color: rgba(255, 255, 255, .78); background: rgba(8, 5, 7, .4); color: #fff; transform: translateY(-1px); }

.hero-controls { position: absolute; right: 0; bottom: 42px; left: 0; display: flex; align-items: center; justify-content: flex-end; gap: 16px; pointer-events: none; }

.hero-controls > * { pointer-events: auto; }

.hero-thumbs { display: flex; align-items: flex-end; gap: 10px; min-width: 0; padding: 14px 20px 18px; overflow-x: auto; scrollbar-width: none; }

.hero-thumbs::-webkit-scrollbar, .shelf-track::-webkit-scrollbar { display: none; }

.hero-thumb { position: relative; z-index: 1; flex: 0 0 66px; width: 66px; height: 86px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: #22171a; opacity: .62; transform: translateY(0); transition: opacity .25s ease, border-color .25s ease, transform .25s ease; }

.hero-thumb:hover { opacity: .9; transform: translateY(-4px); }

.hero-thumb.is-selected { z-index: 2; border-color: #fff; opacity: 1; transform: translateY(-9px); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }

.hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-arrow { position: relative; z-index: 3; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .26); background: rgba(10, 7, 8, .42); color: #fff; transition: background .2s ease, border-color .2s ease; }

.hero-arrow:hover { border-color: rgba(255, 255, 255, .65); background: rgba(242, 95, 97, .72); }

.utility-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 2px; }

.google-play-link { display: inline-flex; align-items: center; min-height: 56px; border-radius: 10px; text-decoration: none; transition: opacity .2s ease, transform .2s ease; }

.google-play-link { padding: 6px 10px; border: 0; background: transparent; }

.google-play-link img { display: block; width: 124px; height: auto; }

.google-play-link:hover, .google-play-link:focus-visible { opacity: .84; transform: translateY(-1px); }

.surprise-link strong { font-size: 13px; line-height: 1.2; }

@media (max-width: 1180px) {
  .header-google-link { display: none; }
  .login-action { display: inline-flex; }
  .hero-surprise-link { display: none; }
}

@media (min-width: 1181px) {
  .utility-row { display: none; }
}

.shelves { padding-top: 44px; }

.shelf { padding: 28px 0 0; }

.shelf + .shelf { padding-top: 48px; }

.shelf-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }

.shelf-eyebrow { margin-bottom: 6px; color: rgba(242, 148, 135, .8); font-size: 9px; letter-spacing: .14em; }

h2 { margin: 0; color: #fff7f4; font-size: clamp(24px, 2.2vw, 34px); font-weight: 600; letter-spacing: -.035em; }

.view-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0 8px 14px; background: transparent; color: rgba(255, 255, 255, .64); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .2s ease, gap .2s ease; }

.view-all:hover { gap: 11px; color: #fff; }

.shelf-track { display: flex; gap: 20px; padding: 1px 1px 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }

.drama-card { flex: 0 0 calc((100% - 100px) / 6); min-width: 174px; padding: 0; text-align: left; background: transparent; scroll-snap-align: start; }

.cover-frame { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 11px; background: #24171b; box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }

.cover-frame img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }

.cover-glow { position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(0deg, rgba(10, 6, 8, .6), transparent); pointer-events: none; }

.drama-card:hover .cover-frame img { transform: scale(1.045); }

.card-title { display: -webkit-box; min-height: 38px; margin-top: 11px; overflow: hidden; color: #fff7f4; font-size: 13px; font-weight: 600; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.card-meta, .card-count { display: block; overflow: hidden; color: rgba(255, 255, 255, .53); font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }

.card-meta { margin-top: 3px; }

.card-count { margin-top: 3px; color: rgba(242, 148, 135, .78); }


.overlay { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(6, 4, 5, .78); backdrop-filter: blur(12px); animation: fade-in .22s ease both; }

.search-panel, .login-panel { position: relative; width: min(540px, 100%); padding: 48px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: #1a1115; box-shadow: 0 24px 70px rgba(0, 0, 0, .46); }

.login-panel { width: min(430px, 100%); text-align: center; }

.close-button { position: absolute; top: 17px; right: 17px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .72); }

.close-button:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.search-panel h2, .login-panel h2 { max-width: 400px; margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.02; }

.search-field { display: flex; align-items: center; gap: 12px; height: 52px; margin-top: 26px; padding: 0 17px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .58); }

.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 14px; }

.search-field input::placeholder { color: rgba(255, 255, 255, .45); }

.search-note, .login-copy { margin: 17px 0 0; color: rgba(255, 255, 255, .53); font-size: 12px; line-height: 1.5; }

.modal-logo { display: inline-flex; width: 56px; height: 56px; margin: 0 auto 17px; }

.modal-logo img { width: 100%; height: 100%; }

.login-panel .modal-kicker { margin-bottom: 10px; }

.login-copy { max-width: 280px; margin-inline: auto; font-size: 13px; }

.modal-cta { width: 100%; min-height: 48px; margin-top: 25px; border-radius: 8px; background: var(--coral); color: #fff; font-size: 14px; font-weight: 700; transition: background .2s ease, transform .2s ease; }

.modal-cta:hover { background: var(--coral-deep); transform: translateY(-1px); }

.login-legal { margin: 16px 0 0; color: rgba(255, 255, 255, .34); font-size: 10px; }

@keyframes hero-in { from { opacity: .25; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .surprise-link { transition: border-color .18s ease, background .18s ease, color .18s ease !important; }
  .surprise-link:hover, .surprise-link:active, .surprise-link:focus-visible { transform: none; }
}

@media (max-width: 800px) {
  .page-gutter { width: calc(100% - 40px); }
  .hero-actions { justify-content: center; }
  .hero { min-height: 680px; height: 690px; max-height: 760px; }
  .hero-image { object-position: var(--mobile-focus, center); }
  .hero-shade { background: linear-gradient(0deg, rgba(8, 5, 7, .96) 0%, rgba(8, 5, 7, .82) 23%, rgba(8, 5, 7, .17) 71%, rgba(8, 5, 7, .25) 100%); }
  .hero-content { align-items: flex-end; padding-bottom: 112px; }
  .hero-copy { width: 100%; text-align: center; }
  .hero-kicker { margin-bottom: 11px; font-size: 9px; }
  .hero-title { max-width: 360px; margin-inline: auto; line-height: 1.02; }
  .hero-title.is-short { font-size: clamp(34px, 10vw, 46px); }
  .hero-title.is-medium { font-size: clamp(31px, 8.5vw, 38px); }
  .hero-title.is-long { font-size: clamp(25px, 7.2vw, 29px); }
  .hero-tags { justify-content: center; margin-top: 16px; }
  .hero-description { max-width: 360px; margin: 12px auto 18px; font-size: 13px; line-height: 1.45; }
  .primary-cta { min-height: 46px; padding-right: 18px; font-size: 13px; }
  .hero-controls { right: 20px; bottom: 19px; left: 20px; justify-content: center; gap: 2px; }
  .hero-thumbs { gap: 2px; flex: 0 0 auto; overflow: visible; }
  .hero-thumb { position: relative; flex: 0 0 24px; width: 24px; height: 44px; border: 0; border-radius: 0; background: transparent; opacity: 1; transform: none; }
  .hero-thumb::after { content: ''; position: absolute; top: 20px; left: 5px; width: 14px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .32); }
  .hero-thumb img { display: none; }
  .hero-thumb:hover, .hero-thumb.is-selected { border: 0; box-shadow: none; opacity: 1; transform: none; }
  .hero-thumb:hover::after { background: rgba(255, 255, 255, .66); }
  .hero-thumb.is-selected::after { left: 3px; width: 18px; background: #fff; }
  .hero-arrow { display: none; }
  .utility-row { gap: 12px; padding-top: 16px; padding-bottom: 0; }
  .utility-row > .google-play-link, .utility-row > .surprise-link { flex: 1 1 0; min-width: 0; }
  .google-play-link { justify-content: center; padding: 5px 8px; }
  .google-play-link img { width: min(124px, 100%); }
  .utility-row > .surprise-link { white-space: nowrap; }
  .shelves { padding-top: 22px; }
  .shelf { padding-top: 22px; }
  .shelf + .shelf { padding-top: 38px; }
  .shelf-heading { margin-bottom: 14px; align-items: center; }
  .shelf-eyebrow { max-width: 200px; font-size: 8px; }
  h2 { font-size: 27px; }
  .view-all { padding-left: 8px; font-size: 11px; }
  .shelf-track { gap: 12px; margin-right: -20px; padding-bottom: 9px; }
  .drama-card { flex-basis: 142px; min-width: 142px; }
  .cover-frame { border-radius: 9px; }
  .card-title { min-height: 36px; margin-top: 9px; font-size: 12px; }
  .card-meta, .card-count { font-size: 9px; }
  .search-panel, .login-panel { padding: 42px 27px 30px; }
}

@media (max-width: 360px) {
  .page-gutter { width: calc(100% - 32px); }
  .hero-controls { right: 16px; left: 16px; }
  .hero-thumb { flex-basis: 40px; width: 40px; height: 56px; }
  .hero-arrow { flex-basis: 36px; width: 36px; height: 36px; }
  .utility-row { gap: 8px; }
  .google-play-link { padding-inline: 5px; }
  .google-play-link img { width: 100px; }
  .utility-row > .surprise-link { white-space: nowrap; }
  .shelf-track { margin-right: -16px; }
}

@keyframes drawer-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
