/* DramaMax Web — premium cinematic design system */
:root {
  --bg: #050508;
  --bg-elevated: #0a0a0f;
  --card: #0e0e14;
  --card-elevated: #16161f;
  --foreground: #f8f8fa;
  --muted-fg: #9ca3af;
  --primary: #FF2D6A;
  --primary-glow: rgba(255, 45, 106, 0.42);
  --primary-muted: rgba(255, 45, 106, 0.2);
  --gold: #C9A227;
  --gold-muted: rgba(201, 162, 39, 0.2);
  --border: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --tab-bar: rgba(5, 5, 8, 0.92);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --tab-bar-h: 68px;
  --immersive-tab-offset: calc(var(--tab-bar-h) + var(--safe-bottom));
  --top-bar-h: 58px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --gradient-brand: linear-gradient(135deg, #FF2D6A 0%, #FF5C8A 50%, #C9A227 120%);
  --gradient-vip: linear-gradient(135deg, #C9A227, #E8C547);
  --top-bar-bg: rgba(5, 5, 8, 0.78);
  --tab-bar-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
  --overlay-scrim: rgba(0, 0, 0, 0.78);
  --btn-gold-fg: #0a0a0f;
  --glass-blur: blur(22px) saturate(1.35);
}

/* Mode terang */
html[data-theme="light"] {
  --bg: #f8f9fc;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-elevated: #f3f4f6;
  --foreground: #111827;
  --muted-fg: #6b7280;
  --border: #e5e7eb;
  --glass-border: rgba(255, 30, 111, 0.15);
  --tab-bar: rgba(255, 255, 255, 0.96);
  --top-bar-bg: rgba(255, 255, 255, 0.88);
  --tab-bar-shadow: 0 -4px 24px rgba(17, 24, 39, 0.08);
  --overlay-scrim: rgba(17, 24, 39, 0.45);
  --primary-muted: rgba(255, 30, 111, 0.12);
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 45, 106, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(201, 162, 39, 0.06), transparent 45%),
    var(--bg);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ——— Top bar ——— */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--top-bar-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}
.top-bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 30, 111, 0.35), transparent);
  pointer-events: none;
}
.top-bar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px var(--space-lg);
  min-height: var(--top-bar-h);
  max-width: 960px;
  margin: 0 auto;
}
.top-bar--subpage .search-pill { display: none; }
.top-bar--subpage .brand-mark__name { display: none; }

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}
.brand-mark__glyph {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.04em;
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.brand-mark__name {
  display: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-fg) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 420px) {
  .brand-mark__name { display: block; }
}

.search-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 12px 18px;
  color: var(--muted-fg);
  font-size: 14px;
  min-width: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.22s ease;
}
html[data-theme="light"] .search-pill {
  background: var(--card);
  border-color: var(--border);
}
.search-pill:hover,
.search-pill:focus-visible {
  border-color: rgba(255, 45, 106, 0.4);
  background: rgba(255, 45, 106, 0.08);
  box-shadow: 0 0 24px rgba(255, 45, 106, 0.15);
  outline: none;
}
.search-pill__icon {
  flex-shrink: 0;
  opacity: 0.55;
}
.search-pill__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.top-bar__action {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
html[data-theme="light"] .top-bar__action {
  background: var(--card-elevated);
  border-color: var(--border);
}
.top-bar__action:active { transform: scale(0.94); }
.top-bar__rewards {
  color: var(--gold);
  background: var(--gold-muted);
  border-color: rgba(255, 184, 0, 0.22);
}
.top-bar__rewards-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--primary-muted);
}
.top-bar__login {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s, box-shadow 0.2s;
}
.top-bar__login:hover { box-shadow: 0 6px 22px var(--primary-glow); }
.top-bar__login:active { transform: scale(0.97); }
.top-bar__back {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.vip-ribbon {
  background: var(--gradient-vip);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--card);
}

/* Main layout */
.page-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-lg) calc(var(--tab-bar-h) + var(--safe-bottom) + 22px);
  min-height: calc(100vh - var(--top-bar-h));
}
.page-main--immersive {
  max-width: none;
  padding: 0;
  min-height: 100vh;
}

/* ——— Bottom tab bar ——— */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 10px calc(10px + var(--safe-bottom));
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}
.tab-bar__dock {
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  max-width: 520px;
  margin: 0 auto;
  height: var(--tab-bar-h);
  background: var(--tab-bar);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: var(--tab-bar-shadow);
  padding: 4px 6px;
}
.tab-bar__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  color: var(--muted-fg);
  padding: 6px 4px 8px;
  border-radius: 16px;
  transition: color 0.22s ease, background 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.tab-bar__item:active { transform: scale(0.96); }
.tab-bar__indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width 0.25s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.2s;
  opacity: 0;
}
.tab-bar__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 28px;
  border-radius: 10px;
  transition: background 0.22s, transform 0.22s;
}
.tab-bar__icon svg {
  display: block;
  opacity: 0.65;
  transition: opacity 0.2s, transform 0.2s;
}
.tab-bar__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}
.tab-bar__item.is-active {
  color: var(--primary);
}
.tab-bar__item.is-active .tab-bar__indicator {
  width: 22px;
  opacity: 1;
}
.tab-bar__item.is-active .tab-bar__icon {
  background: var(--primary-muted);
  box-shadow: 0 0 20px var(--primary-glow);
}
.tab-bar__item.is-active .tab-bar__icon svg {
  opacity: 1;
  transform: translateY(-1px);
}
.tab-bar__item--vip.is-active {
  color: var(--gold);
}
.tab-bar__item--vip.is-active .tab-bar__indicator {
  background: var(--gradient-vip);
}
.tab-bar__item--vip.is-active .tab-bar__icon {
  background: var(--gold-muted);
}
.tab-bar__icon--vip svg { opacity: 0.85; }
.tab-bar__item--vip.is-active .tab-bar__icon--vip svg { opacity: 1; }

@media (min-width: 768px) {
  .tab-bar__dock {
    max-width: 560px;
    border-radius: 24px;
    padding: 6px 10px;
  }
  .tab-bar__label { font-size: 11px; }
}

/* Beranda sub-tabs */
.beranda-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 var(--space-lg);
  margin: 0 calc(-1 * var(--space-lg)) 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
html[data-theme="light"] .beranda-tabs {
  border-bottom-color: var(--border);
}
.beranda-tabs::-webkit-scrollbar { display: none; }
.beranda-tab {
  flex-shrink: 0;
  position: relative;
  padding: 14px 16px 16px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--muted-fg);
  transition: color 0.2s;
  text-decoration: none;
}
.beranda-tab:hover { color: var(--foreground); }
.beranda-tab.is-active {
  color: var(--foreground);
  font-weight: 700;
}
.beranda-tab.is-active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--gradient-brand);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Beranda tab hero */
.beranda-tab-hero-wrap { padding-top: 8px; }
.beranda-tab-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}
.beranda-tab-hero--compact { margin-bottom: 6px; padding: 11px 14px; }
.beranda-tab-hero__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--hero-accent, var(--primary)) 30%, transparent);
  background: color-mix(in srgb, var(--hero-accent, var(--primary)) 16%, #1a1a22);
  color: var(--hero-accent, var(--primary));
  flex-shrink: 0;
}
.beranda-tab-hero__body { flex: 1; min-width: 0; }
.beranda-tab-hero__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--foreground);
}
.beranda-tab-hero__sub {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted-fg);
}
.beranda-tab-hero__count {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: color-mix(in srgb, var(--hero-accent, var(--primary)) 18%, transparent);
  color: var(--hero-accent, var(--primary));
  border: 1px solid color-mix(in srgb, var(--hero-accent, var(--primary)) 35%, transparent);
}

/* Category genre filters */
.beranda-category-filters { padding: 4px 0 8px; }
.beranda-category-filters__label {
  margin: 0;
  padding: 0 var(--space-lg) 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.beranda-category-filters__row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px var(--space-lg) 6px;
  scrollbar-width: none;
}
.beranda-category-filters__row::-webkit-scrollbar { display: none; }
.beranda-genre-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.beranda-genre-chip.is-active {
  background: rgba(255,30,111,0.14);
  border-color: rgba(255,30,111,0.42);
  color: #fff;
  font-weight: 600;
}

/* Ranking tab */
.ranking-header { padding: 8px 0 4px; }
.ranking-header__intro { padding: 0 var(--space-lg) 8px; }
.ranking-header__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.ranking-header__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted-fg);
}
.ranking-section-label {
  margin: 12px var(--space-lg) 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.ranking-podium {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 var(--space-lg);
}
.ranking-podium__slot {
  flex: 1;
  min-width: 0;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.ranking-podium__slot--1 { flex: 1.08; }
.ranking-podium__slot--2 { flex: 0.92; margin-top: 18px; }
.ranking-podium__slot--3 { flex: 0.88; margin-top: 28px; }
.ranking-medal {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.ranking-medal--gold { background: linear-gradient(180deg, #FFE566, #FFB800); border-color: #FFD700; }
.ranking-medal--silver { background: linear-gradient(180deg, #B8B8B8, #6E6E6E); border-color: #C8C8C8; }
.ranking-medal--bronze { background: linear-gradient(180deg, #E8A86B, #B87333); border-color: #CD7F32; }
.ranking-podium__cover-wrap {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.15);
}
.ranking-podium__slot--1 .ranking-podium__cover-wrap { aspect-ratio: 2/2.85; }
.ranking-podium__cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ranking-podium__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}
.ranking-podium__title {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ranking-podium__genre {
  margin: 2px 0 0;
  font-size: 10px;
  color: rgba(255,255,255,0.45);
}
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 var(--space-lg) 8px;
}
.ranking-list__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: inherit;
}
.ranking-list__rank {
  width: 28px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}
.ranking-list__cover {
  width: 44px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--card);
}
.ranking-list__meta { flex: 1; min-width: 0; }
.ranking-list__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-list__plays {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted-fg);
}

#feed-container .drama-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 0 8px;
}

/* Drama grid — KT DramaMaxDramaCard */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.drama-card {
  display: block;
  transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.drama-card:hover .drama-card__cover-wrap,
.drama-card:focus-visible .drama-card__cover-wrap {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 45, 106, 0.25);
}
.drama-card__cover-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 2/3;
  background: #111111;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.22s ease;
}
.drama-card__cover-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.drama-card:hover .drama-card__cover-wrap::after {
  transform: translateX(120%);
}
.drama-card__cover { width: 100%; height: 100%; object-fit: cover; }
.drama-card__badge {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 5px;
  max-width: calc(100% - 12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
  line-height: 1.2;
}
.drama-card__badge--instant {
  top: 6px;
  left: 6px;
  right: auto;
  background: rgba(34, 197, 94, 0.92);
  color: #fff;
}
.drama-card__badge--tag {
  top: 6px;
  right: 6px;
  left: auto;
  background: var(--badge-color, var(--primary));
  color: #fff;
}
.drama-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  color: rgba(255,255,255,0.95);
  font-size: 10px;
  font-weight: 600;
  z-index: 1;
}
.drama-card__overlay svg { flex-shrink: 0; opacity: 0.95; }
.drama-card__title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
#feed-container .drama-card__synopsis,
#feed-container .drama-card__genre-pills { display: none; }
.hero-carousel {
  margin: 8px calc(-1 * var(--space-lg)) 4px;
  padding-bottom: 4px;
}
.hero-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-inline: 16px;
}
.hero-carousel__viewport::-webkit-scrollbar { display: none; }
.hero-carousel__track {
  display: flex;
  gap: 12px;
  padding: 0 16px 2px;
  align-items: stretch;
}
.hero-slide {
  flex: 0 0 min(calc(100vw - 32px), 928px);
  width: min(calc(100vw - 32px), 928px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.hero-slide__card {
  display: block;
  position: relative;
  width: 100%;
  height: min(520px, calc(min(calc(100vw - 32px), 928px) * 1.28));
  border-radius: 16px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 92, 138, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  color: inherit;
}
.hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.hero-slide__img.is-dimmed {
  opacity: 0;
}
.hero-slide__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
  pointer-events: none;
}
.hero-slide__video.is-playing {
  opacity: 1;
}
.hero-slide__gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.15) 35%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.94) 100%
  );
  pointer-events: none;
}
.hero-slide__rank {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.hero-slide__dub {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(122, 43, 163, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.hero-slide__body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 4;
}
.hero-slide__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.hero-slide__tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.hero-slide__title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-slide__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
}
.hero-slide__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hero-slide__meta-sep {
  opacity: 0.5;
}
.hero-slide__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(255, 30, 111, 0.42);
}
.hero-slide__card:active .hero-slide__cta {
  transform: scale(0.985);
  opacity: 0.92;
}
.hero-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  margin-bottom: 6px;
  padding: 0 16px;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.hero-dot.is-active {
  width: 22px;
  background: linear-gradient(90deg, #FF1E6F, #FF5C8A);
  box-shadow: 0 0 8px rgba(255, 30, 111, 0.35);
}

/* Section heading */
.section-heading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 var(--space-md);
  font-size: 16px;
  font-weight: 600;
}
.section-heading::before {
  content: '';
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--gradient-brand);
}

/* Drama card genre pills (search / detail) */
.drama-card__genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.drama-card__genre-pill {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  background: rgba(255,255,255,0.08);
  color: var(--muted-fg);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drama-card__synopsis {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.35;
  color: var(--muted-fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.drama-card__genres, .drama-card__plays {
  margin: 2px 0 0;
  font-size: 10px;
  color: var(--muted-fg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  border: none;
}
.btn--brand { background: var(--gradient-brand); color: #fff; }
.btn--outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--foreground);
}
.btn--gold { background: var(--gradient-vip); color: #000; }

/* Ads */
.ad-slot {
  width: 100%;
  margin: var(--space-md) 0;
  display: flex;
  justify-content: center;
}
.ad-slot--native-card {
  padding: 0 var(--space-lg);
}
.ad-placeholder {
  width: 100%;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-placeholder__label {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.ad-slot__stack { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.ad-slot__stack-item { width: 100%; overflow: hidden; }
.ad-slot--stacked { padding: 8px 0; }

/* Loading */
.loading-spinner {
  display: flex;
  justify-content: center;
  padding: var(--space-xl);
}
.loading-spinner::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Search page */
.search-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  position: sticky;
  top: 0;
  background: rgba(0,0,0,0.9);
  z-index: 50;
}
.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
}
.search-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 15px;
  outline: none;
}
.filter-chips {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: var(--space-sm) var(--space-lg);
  scrollbar-width: none;
}
.chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted-fg);
}
.chip.is-active {
  background: var(--primary-muted);
  border-color: var(--primary);
  color: var(--primary);
}

/* Search page — parity Kotlin SearchScreen */
.page-search {
  background: var(--background);
}
.search-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.search-header {
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.search-header__back {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.search-input-wrap {
  border-color: rgba(255,30,111,0.35);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}
.search-input-wrap__icon {
  color: var(--primary);
  flex-shrink: 0;
}
.search-input-wrap__clear {
  border: none;
  background: none;
  color: var(--muted-fg);
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}
.search-hint {
  margin: 0;
  padding: 0 var(--space-lg) 6px;
  font-size: 12px;
  color: var(--muted-fg);
}
.search-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--tab-bar-h) + var(--safe-bottom) + 24px);
}
.search-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px var(--space-lg) 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.search-hero__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,30,111,0.2);
  background: rgba(255,30,111,0.1);
  color: var(--primary);
  flex-shrink: 0;
}
.search-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
}
.search-hero__sub {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted-fg);
}
.search-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px var(--space-lg) 0;
}
.search-section-head__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.search-section-head__action {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.search-filter-label {
  margin: 0;
  padding: 8px var(--space-lg) 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.search-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px var(--space-lg) 8px;
  scrollbar-width: none;
}
.search-chip-row::-webkit-scrollbar { display: none; }
.search-chip-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 var(--space-lg) 8px;
}
.search-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.search-chip svg { flex-shrink: 0; }
.search-chip.is-active {
  background: rgba(255,30,111,0.14);
  border-color: rgba(255,30,111,0.42);
  color: #fff;
  font-weight: 600;
}
.search-chip--muted {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}
.search-active-filters {
  margin: 4px var(--space-lg) 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.search-active-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.search-active-filters__head button {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.search-active-filters__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.search-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,30,111,0.12);
  border: 1px solid rgba(255,30,111,0.3);
  color: #fff;
  font-size: 12px;
}
.search-active-pill button {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.search-browse-heading {
  padding: 12px var(--space-lg) 4px;
}
.search-browse-heading h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.search-browse-heading p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted-fg);
}
.search-rail-wrap {
  padding: 8px 0 16px;
  overflow: hidden;
}
.search-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 var(--space-lg) 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.search-rail::-webkit-scrollbar { display: none; }
.search-rail-card {
  flex: 0 0 132px;
  width: 132px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}
.search-rail-card__cover-wrap {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}
.search-rail-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-rail-card__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  left: auto;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  background: var(--badge-color, var(--primary));
  color: #fff;
  z-index: 2;
}
.search-rail-card__cover-wrap .drama-card__badge--instant {
  top: 6px;
  left: 6px;
  right: auto;
}
.search-rail-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: rgba(255,255,255,0.9);
  font-size: 10px;
  font-weight: 600;
}
.search-rail-card__overlay svg { opacity: 0.9; }
.search-rail-card__title {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-rail-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.search-rail-card__tag {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9px;
  background: rgba(255,255,255,0.08);
  color: var(--muted-fg);
}
.search-results-panel {
  padding-top: 4px;
}
.search-results-head {
  padding: 12px var(--space-lg) 4px;
}
.search-results-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.search-results-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted-fg);
}
.search-results-grid {
  padding: 0 var(--space-sm);
}
.search-results-grid .drama-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 4px;
}
.search-empty-inline {
  padding: 24px var(--space-lg);
  text-align: center;
  color: var(--muted-fg);
  font-size: 14px;
}
.search-loading {
  margin: 16px auto;
}
.search-feed-footer {
  display: flex;
  justify-content: center;
  padding: 16px;
}
.search-load-more {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,30,111,0.45);
  background: rgba(255,30,111,0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Watch page */
.watch-page {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 300;
  display: flex;
  flex-direction: column;
}
.watch-player-wrap {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.watch-player-wrap video {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  object-fit: contain;
  background: #000;
}
.watch-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}
.watch-chrome h1 {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watch-episodes {
  background: var(--bg-elevated);
  border-top: 1px solid var(--glass-border);
  max-height: 40vh;
  overflow-y: auto;
  padding: var(--space-md);
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}
.episode-btn {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  display: grid;
  place-items: center;
}
.episode-btn.is-active {
  background: var(--gradient-brand);
  border-color: transparent;
}
.episode-btn.is-locked {
  opacity: 0.65;
  position: relative;
}
.episode-btn.is-locked::after {
  content: '🔒';
  font-size: 9px;
  position: absolute;
  top: 4px;
  right: 4px;
}

/* Profile / cards */
.glass-card {
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.menu-item:last-child { border-bottom: none; }
.menu-item span { flex: 1; font-size: 15px; }
.menu-item svg { color: var(--muted-fg); }

/* VIP page */
.vip-hero {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: radial-gradient(ellipse at top, rgba(255,184,0,0.15), transparent 60%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}
.vip-hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  background: var(--gradient-vip);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vip-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.vip-package {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}
.vip-package.is-featured {
  border-color: var(--gold);
  background: var(--gold-muted);
}
.vip-package h3 { margin: 0 0 4px; font-size: 13px; color: var(--gold); }
.vip-package .price { font-size: 18px; font-weight: 700; margin: 8px 0; }

/* Daftarku tabs */
.sub-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}
.sub-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-fg);
  border-bottom: 2px solid transparent;
}
.sub-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  color: var(--muted-fg);
}
.empty-state h3 { color: var(--foreground); margin: 0 0 8px; }

/* Admin */
.admin-body {
  background: var(--bg-elevated);
  min-height: 100vh;
  padding: var(--space-xl);
}
.admin-wrap { max-width: 900px; margin: 0 auto; }
.admin-nav {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.admin-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 14px;
}
.admin-nav a.is-active {
  background: var(--primary-muted);
  border-color: var(--primary);
  color: var(--primary);
}
.form-group { margin-bottom: var(--space-lg); }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-fg);
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--foreground);
  font-size: 14px;
}
.form-group textarea { min-height: 100px; font-family: monospace; font-size: 12px; }
.form-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}
.form-row input[type="checkbox"] { width: auto; }
.slot-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.slot-card h3 { margin: 0 0 var(--space-md); font-size: 15px; }
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  font-size: 14px;
}
.alert--success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.4); }
.alert--error { background: rgba(244,63,94,0.15); border: 1px solid rgba(244,63,94,0.4); }

/* Interstitial overlay */
.interstitial-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}
.interstitial-overlay.is-visible { display: flex; }
.interstitial-overlay .ad-slot { max-width: 400px; }
.interstitial-close {
  margin-top: var(--space-lg);
  color: var(--muted-fg);
  font-size: 14px;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}
.interstitial-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted-fg);
  text-align: center;
  max-width: 320px;
}

/* Watch page — full bleed */
.watch-body .page-main {
  max-width: none;
  padding: 0;
  margin: 0;
  min-height: 100dvh;
}
.watch-body .app-content { min-height: 100dvh; }

/* Professional watch player — parity KT PlayerChrome */
.watch-pro {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  overflow: hidden;
}
.watch-pro__stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.watch-pro__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.watch-pro__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.65);
  z-index: 1;
}
.watch-pro__gradient {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 2;
}
.watch-pro__gradient--top {
  top: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
}
.watch-pro__gradient--bottom {
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.38) 55%, transparent 100%);
}
.watch-pro__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(8px, env(safe-area-inset-top)) 8px 8px;
  transition: opacity 0.25s;
}
.watch-pro__ep-pill {
  padding: 5px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #FF1E6F, #FF5C8A);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(255, 30, 111, 0.35);
}
.watch-pro__icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.watch-pro__sidebar {
  position: absolute;
  right: 8px;
  bottom: calc(120px + env(safe-area-inset-bottom));
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: opacity 0.25s;
}
.watch-side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  min-width: 52px;
}
.watch-side-btn__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}
.watch-side-btn.is-active .watch-side-btn__icon {
  background: rgba(255, 30, 111, 0.22);
  border-color: rgba(255, 92, 138, 0.45);
  color: #ffb3cf;
}
.watch-side-btn__label {
  font-size: 10px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  max-width: 64px;
  text-align: center;
  line-height: 1.2;
}
.watch-pro__center-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
  pointer-events: none;
}
.watch-pro__center-play:not([hidden]) { pointer-events: auto; }
.watch-pro__big-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 30, 111, 0.88), rgba(255, 92, 138, 0.55));
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255, 30, 111, 0.45);
  display: grid;
  place-items: center;
}
.watch-pro__drama-info {
  position: absolute;
  left: 0;
  right: 72px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 6;
  padding: 0 16px 8px;
  transition: opacity 0.25s;
}
.watch-pro__badges {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
}
.watch-pro__drama-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}
.watch-pro__intro {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.watch-pro__intro.is-expanded {
  -webkit-line-clamp: unset;
  display: block;
}
.watch-pro__meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.watch-pro__meta-stats {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.watch-pro__more-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.watch-pro__progress-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 7;
}
.watch-pro__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.15s linear;
}
.watch-pro__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8;
  padding: 8px 14px max(12px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}
.watch-pro__controls[hidden] { display: none !important; }
.watch-pro__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.watch-pro__progress input[type=range] { flex: 1; accent-color: var(--gold); }
.watch-pro__time { font-size: 11px; color: rgba(255,255,255,.85); min-width: 36px; }
.watch-pro__toolbar { display: flex; align-items: center; gap: 8px; }
.watch-pro__spacer { flex: 1; }
.watch-pro__pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.watch-pro.is-ui-hidden .watch-pro__top,
.watch-pro.is-ui-hidden .watch-pro__sidebar,
.watch-pro.is-ui-hidden .watch-pro__drama-info,
.watch-pro.is-ui-hidden .watch-pro__gradient {
  opacity: 0;
  pointer-events: none;
}
.watch-pro__stage.is-controls-visible .watch-pro__top,
.watch-pro__stage.is-controls-visible .watch-pro__sidebar,
.watch-pro__stage.is-controls-visible .watch-pro__drama-info {
  opacity: 1;
}
.watch-pro__top,
.watch-pro__sidebar,
.watch-pro__drama-info { opacity: 1; }

/* Watch sheets — episode list & menu */
.watch-sheet {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.watch-sheet.is-open { pointer-events: auto; }
.watch-sheet[hidden] { display: none !important; }
.watch-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  transition: opacity 0.28s;
}
.watch-sheet.is-open .watch-sheet__backdrop { opacity: 1; }
.watch-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 75vh;
  background: #111111;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(255, 92, 138, 0.22);
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
}
.watch-sheet.is-open .watch-sheet__panel { transform: translateY(0); }
.watch-sheet__handle {
  width: 44px;
  height: 5px;
  margin: 4px auto 12px;
  border-radius: 999px;
  background: rgba(255, 92, 138, 0.55);
}
.watch-sheet__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
}
.watch-sheet__episodes { margin-top: 8px; }

/* Player settings menu — KT PlayerMenuDialog */
.watch-player-menu {
  position: fixed;
  inset: 0;
  z-index: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}
.watch-player-menu.is-open { pointer-events: auto; }
.watch-player-menu[hidden] { display: none !important; }
.watch-player-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.watch-player-menu.is-open .watch-player-menu__backdrop { opacity: 1; }
.watch-player-menu__dialog {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 20px;
  border-radius: 16px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease;
}
.watch-player-menu.is-open .watch-player-menu__dialog {
  transform: scale(1);
  opacity: 1;
}
.watch-player-menu__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: none;
}
.watch-player-menu__row {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.watch-player-menu__row:hover,
.watch-player-menu__row:active {
  background: rgba(255, 255, 255, 0.06);
}

/* Option picker — KT PlayerOptionBottomSheet */
.watch-option-sheet {
  position: fixed;
  inset: 0;
  z-index: 660;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.watch-option-sheet.is-open { pointer-events: auto; }
.watch-option-sheet[hidden] { display: none !important; }
.watch-option-sheet__panel {
  max-height: 55vh;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.watch-option-sheet__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}
.watch-option-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.watch-option-list li { margin: 0; }
.watch-option-list button {
  display: block;
  width: 100%;
  padding: 12px 8px;
  margin: 0;
  background: none;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}
.watch-option-list button.is-active {
  color: var(--gold);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}

.watch-pro__ad-note {
  font-size: 11px;
  color: var(--muted-fg);
  margin: 0 0 12px;
}

@media (min-width: 900px) {
  .watch-pro__video { object-fit: contain; max-width: 100%; max-height: 100dvh; }
  .watch-pro__sidebar { bottom: 140px; }
  .watch-pro__drama-info { right: 96px; max-width: 520px; }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0,0,0,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none !important; }
.modal-card { max-width: 400px; width: 100%; }
.vip-packages--scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.vip-packages--scroll .vip-package {
  min-width: 140px;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.vip-package__badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,184,0,.2);
  color: var(--gold);
  margin-bottom: 6px;
}
.vip-package__perday {
  font-size: 10px;
  color: var(--muted-fg);
  margin-top: 4px;
}

/* Responsive */
@media (min-width: 768px) {
  .drama-grid { gap: var(--space-md); }
  .drama-card__title { font-size: 13px; }
  .hero-carousel { margin: 8px 0 12px; }
  .hero-slide { flex: 0 0 calc(100vw - 32px); width: calc(100vw - 32px); }
  .hero-slide__card { height: min(480px, calc((100vw - 32px) * 1.22)); }
}

@media (max-width: 380px) {
  .vip-packages { grid-template-columns: 1fr; }
}

/* Top bar avatar */
.top-bar__avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
    var(--gradient-brand) border-box;
  display: grid;
  place-items: center;
}
.top-bar__avatar-img { width: 100%; height: 100%; object-fit: cover; }
.top-bar__avatar-fallback { font-weight: 700; font-size: 14px; color: var(--primary); }

/* Login */
.login-page {
  display: flex;
  justify-content: center;
  padding: var(--space-xl) 0;
  min-height: 60vh;
  align-items: center;
}
.login-card {
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.login-card h1 { margin: 0 0 8px; font-size: 22px; }
.login-card__sub { color: var(--muted-fg); font-size: 14px; margin: 0 0 24px; }
.login-card__legal { font-size: 12px; color: var(--muted-fg); margin: 20px 0 0; }
.login-card__legal a { color: var(--primary); }
.btn--google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: #333;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Profile hub — parity KT ProfileHubContent */
.profile-hub {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-bottom: calc(var(--tab-bar-h) + var(--safe-bottom) + 12px);
}
.profile-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--card-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
}
.profile-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 30, 111, 0.12), transparent 55%);
  pointer-events: none;
}
.profile-card--header { padding: var(--space-lg); }
.profile-header__row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}
.profile-header__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--glass-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #1a1a22;
  color: var(--muted-fg);
}
.profile-header__avatar--guest { background: #1a1a22; }
.profile-header__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-header__avatar span {
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient-brand);
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
}
.profile-header__body { flex: 1; min-width: 0; }
.profile-header__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.profile-header__email {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-uid-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: #1a1a22;
  font-size: 12px;
}
.profile-uid-pill__label { color: var(--muted-fg); font-size: 11px; }
.profile-uid-pill__value { font-weight: 600; letter-spacing: 0.02em; }
.profile-uid-pill__icon { color: var(--muted-fg); flex-shrink: 0; }
.profile-uid-copied {
  margin: 4px 0 0;
  font-size: 10px;
  color: var(--primary);
}
.profile-header__actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.profile-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1a1a22;
  display: grid;
  place-items: center;
  color: #fff;
}
.profile-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.profile-stat { text-align: center; }
.profile-stat__val {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}
.profile-stat__lbl { font-size: 11px; color: var(--muted-fg); }
.profile-login-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-lg);
  padding: 14px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 24px var(--primary-glow);
}
.profile-member-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #c2185b 0%, #ff4e8d 55%, #ff8ab0 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 30, 111, 0.25);
}
.profile-member-banner__icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.profile-member-banner__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-member-banner__text strong { font-size: 15px; font-weight: 700; }
.profile-member-banner__text small { font-size: 12px; opacity: 0.92; line-height: 1.35; }
.profile-member-banner__cta {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.profile-section__title {
  margin: 0 0 var(--space-sm);
  padding: 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.profile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--card-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
}
.profile-menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px var(--space-lg);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s;
}
.profile-menu__item:last-child { border-bottom: none; }
.profile-menu__item:active { background: rgba(255, 255, 255, 0.04); }
.profile-menu__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.profile-menu__icon--wallet { background: var(--primary-muted); color: var(--primary); }
.profile-menu__icon--gift { background: var(--gold-muted); color: var(--gold); }
.profile-menu__icon--diamond { background: rgba(34, 211, 238, 0.15); color: #22d3ee; }
.profile-menu__icon--referral { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.profile-menu__icon--vip { background: var(--gold-muted); color: var(--gold); }
.profile-menu__icon--history { background: rgba(168, 85, 247, 0.18); color: #d8b4fe; }
.profile-menu__icon--download { background: rgba(34, 211, 238, 0.15); color: #22d3ee; }
.profile-menu__icon--lang { background: var(--primary-muted); color: var(--primary); }
.profile-menu__icon--device { background: rgba(34, 211, 238, 0.15); color: #22d3ee; }
.profile-menu__icon--support { background: var(--primary-muted); color: var(--primary); }
.profile-menu__icon--settings { background: #1a1a22; color: #fff; }
.profile-menu__chev {
  margin-left: auto;
  color: var(--muted-fg);
  flex-shrink: 0;
  opacity: 0.7;
}
.profile-menu__trail {
  margin-left: auto;
  margin-right: 4px;
  font-size: 13px;
  color: var(--muted-fg);
}
.profile-menu__item:has(.profile-menu__trail) .profile-menu__chev { margin-left: 0; }
.legal-content h1 { margin-top: 0; }
.legal-content p { color: var(--muted-fg); line-height: 1.6; }

/* Drama detail bottom sheet — KT PlayerDramaDetailSheet */
.drama-sheet {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.drama-sheet.is-open { pointer-events: auto; }
.drama-sheet[hidden] { display: none !important; }
.drama-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.drama-sheet.is-open .drama-sheet__backdrop { opacity: 1; }
.drama-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  background: #121212;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(255, 92, 138, 0.22);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drama-sheet.is-open .drama-sheet__panel { transform: translateY(0); }
.drama-sheet__glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(255, 30, 111, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.drama-sheet__handle {
  align-self: center;
  width: 40px;
  height: 4px;
  margin: 10px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}
.drama-sheet__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 18px calc(20px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}
.drama-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.drama-sheet__heading {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.drama-sheet__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.drama-sheet__stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.drama-sheet__stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.drama-sheet__stat-card strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.drama-sheet__stat-card span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}
.drama-sheet__hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.drama-sheet__poster-wrap {
  flex-shrink: 0;
  padding: 2px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 92, 138, 0.55), rgba(255, 30, 111, 0.2));
  box-shadow: 0 8px 24px rgba(255, 30, 111, 0.18);
}
.drama-sheet__poster {
  width: 88px;
  height: 118px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #1a1220;
}
.drama-sheet__hero-meta { flex: 1; min-width: 0; padding-top: 2px; }
.drama-sheet__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.drama-sheet__hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.drama-sheet__plays-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ff5c8a;
  font-weight: 600;
}
.drama-sheet__ep-count { font-weight: 500; }
.drama-sheet__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.drama-sheet__chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-text);
}
.drama-sheet__actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 18px;
}
.drama-sheet__play {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 22px var(--primary-glow);
}
.drama-sheet__bookmark {
  flex: 0 0 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 50px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.drama-sheet__bookmark.is-saved {
  background: rgba(255, 30, 111, 0.18);
  border-color: rgba(255, 92, 138, 0.4);
  color: #ffb3cf;
}
.drama-sheet__synopsis-section { margin-bottom: 18px; }
.drama-sheet__section-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff5c8a;
}
.drama-sheet__synopsis-wrap {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.drama-sheet__synopsis-accent {
  flex-shrink: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff1e6f, rgba(255, 92, 138, 0.35));
}
.drama-sheet__intro {
  margin: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}
.drama-sheet__intro.is-loading { color: rgba(255, 255, 255, 0.42); }
.drama-sheet__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.drama-sheet__tab {
  flex: 1;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 600;
}
.drama-sheet__tab.is-active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.drama-sheet__tab-panel { margin-bottom: 8px; }
.drama-sheet__episodes.episode-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.drama-sheet__episodes .episode-btn {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.drama-sheet__empty {
  margin: 8px 0 4px;
  padding: 20px 12px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}
body.drama-sheet-open { overflow: hidden; }

.page-main--swapping {
  opacity: 0.92;
  transition: opacity 0.15s ease;
}
.feed-error,
.page-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 40vh;
  padding: 32px 24px;
  text-align: center;
  color: var(--muted-fg);
}
.feed-error p,
.page-error p { margin: 0; font-size: 15px; line-height: 1.5; }
.feed-error__retry,
.page-error__retry { min-width: 140px; }
.app-content { min-height: 40vh; }

/* Infinite scroll sentinel */
.scroll-sentinel { height: 1px; margin: 24px 0; }
.scroll-sentinel.is-loading { height: 48px; }

/* Vertical feed (Untuk Anda) — parity KT ForYouSlide */
.page-untuk-anda {
  background: #000;
  overflow: hidden;
}
.page-untuk-anda .tab-bar {
  padding: 0 8px calc(6px + var(--safe-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 72%);
  pointer-events: none;
}
.page-untuk-anda .tab-bar__dock {
  max-width: 100%;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 8, 0.62);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: none;
  height: var(--tab-bar-h);
  padding: 2px 4px 0;
}
.page-untuk-anda .tab-bar__item.is-active .tab-bar__icon {
  background: var(--primary-muted);
  box-shadow: 0 0 18px var(--primary-glow);
}
.page-untuk-anda .vertical-slide__sidebar {
  bottom: calc(var(--immersive-tab-offset) + 20px);
}
.page-untuk-anda .vertical-slide__info {
  padding-bottom: calc(var(--immersive-tab-offset) + 12px);
}
.vertical-slide.is-buffering .vertical-slide__stream-error {
  display: none !important;
}
.vertical-slide.is-playing .vertical-slide__buffer {
  display: none !important;
}
.vertical-slide__stream-error[hidden] {
  display: none !important;
}
.vertical-slide__buffer[hidden] {
  display: none !important;
}
.page-untuk-anda .page-main,
.page-untuk-anda .page-main--immersive {
  max-width: none;
  padding: 0;
  margin: 0;
  min-height: 100dvh;
  height: 100dvh;
}
.page-untuk-anda .app-content {
  min-height: 0;
  height: 100%;
}
.vertical-feed-shell {
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
}
.vertical-feed {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #000;
}
.vertical-feed::-webkit-scrollbar { display: none; }
.vertical-feed__loading {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted-fg);
}
.vertical-feed__error {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: var(--muted-fg);
}
.vertical-feed__error p { margin: 0; font-size: 15px; }
.vertical-feed__retry { min-width: 140px; }
.vertical-slide {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.vertical-slide__poster,
.vertical-slide__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.vertical-slide__poster {
  z-index: 1;
  transition: opacity 0.35s ease;
}
.vertical-slide__video {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.vertical-slide.is-playing .vertical-slide__video,
.vertical-slide__video.is-visible {
  opacity: 1;
}
.vertical-slide.is-playing .vertical-slide__poster {
  opacity: 0;
}
.vertical-slide__shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.05) 35%,
    rgba(0,0,0,0.45) 82%,
    rgba(0,0,0,0.92) 100%
  );
}
.vertical-slide__tap {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: none;
  background: transparent;
  cursor: pointer;
}
.vertical-slide__buffer {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
}
.vertical-slide__stream-error {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  pointer-events: none;
}
.vertical-slide__stream-error p {
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.vertical-slide__open-player {
  pointer-events: auto;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 12px;
}
.vertical-slide__sidebar {
  position: absolute;
  right: 10px;
  bottom: calc(var(--tab-bar-h) + var(--safe-bottom, 0px) + 34px);
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.foryou-side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  min-width: 52px;
}
.foryou-side-btn__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
.foryou-side-btn.is-active .foryou-side-btn__icon {
  background: var(--primary);
  border-color: rgba(255,30,111,0.6);
  box-shadow: 0 0 12px rgba(255,30,111,0.45);
}
.foryou-side-btn__label {
  font-size: 10px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  max-width: 64px;
  text-align: center;
  line-height: 1.2;
}
.foryou-side-btn.is-active .foryou-side-btn__label {
  color: var(--primary);
}
.vertical-slide__info {
  position: absolute;
  left: 16px;
  right: 88px;
  bottom: calc(var(--tab-bar-h) + var(--safe-bottom, 0px) + 26px);
  z-index: 11;
  pointer-events: none;
}
.vertical-slide__info button,
.vertical-slide__info .vertical-slide__desc {
  pointer-events: auto;
}
.vertical-slide__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.foryou-pill {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--pill-color, var(--primary));
  letter-spacing: 0.04em;
}
.foryou-pill--dub {
  background: #3B82F6;
}
.foryou-pill--instant {
  background: rgba(34, 197, 94, 0.92);
  color: #fff;
}
.vertical-slide__genres {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}
.vertical-slide__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vertical-slide__desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 4px rgba(0,0,0,0.65);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vertical-slide__desc.is-expanded {
  -webkit-line-clamp: unset;
  display: block;
}
.vertical-slide__meta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.vertical-slide__meta-sep {
  opacity: 0.8;
}
.vertical-slide__more {
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  color: #FF5C8A;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.vertical-slide__hint {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}
.scroll-sentinel--vertical {
  height: 2px;
  scroll-snap-align: end;
}

/* Drama detail */
.drama-detail__hero { display: flex; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.drama-detail__cover {
  width: 120px; border-radius: var(--radius-md); aspect-ratio: 3/4; object-fit: cover; flex-shrink: 0;
}
.drama-detail__hero-meta h1 { margin: 0 0 8px; font-size: 22px; }
.drama-detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.drama-detail__stats { font-size: 13px; color: var(--muted-fg); display: flex; gap: 12px; margin: 0 0 12px; }
.drama-detail__cta { display: flex; gap: 8px; }
.drama-detail__synopsis p { color: var(--muted-fg); line-height: 1.6; margin: 0; }
.drama-detail__note { font-size: 12px; color: var(--muted-fg); text-align: center; margin-top: 16px; }

/* Downloads */
.download-list { list-style: none; margin: 0; padding: 0; }
.download-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-bottom: 1px solid var(--glass-border);
}
.download-item__thumb { width: 48px; height: 64px; object-fit: cover; border-radius: 6px; }
.download-item__meta { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.btn--sm { padding: 6px 12px; font-size: 12px; }

/* FAQ */
.faq-item { margin-bottom: 12px; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { color: var(--muted-fg); font-size: 14px; margin: 8px 0 0; }

/* Pay modal */
.pay-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pay-modal[hidden] { display: none !important; }
.pay-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.pay-modal__card { position: relative; max-width: 420px; width: 100%; max-height: 90vh; overflow: auto; }

@media (max-width: 480px) {
  .drama-detail__hero { flex-direction: column; align-items: center; text-align: center; }
  .drama-detail__cta { width: 100%; }
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--card);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.theme-options { display: flex; flex-direction: column; gap: 10px; }
.theme-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card-elevated);
  cursor: pointer;
}
.theme-option:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-muted);
}
.theme-option input { accent-color: var(--primary); }
.theme-option__preview {
  width: 40px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.theme-option__preview--dark { background: linear-gradient(135deg, #000 50%, #FF1E6F 50%); }
.theme-option__preview--light { background: linear-gradient(135deg, #f8f9fc 50%, #FF1E6F 50%); }
.theme-option__preview--system { background: linear-gradient(90deg, #000 33%, #f8f9fc 33%, #f8f9fc 66%, #FF1E6F 66%); }

html[data-theme="light"] .glass-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .search-pill {
  background: var(--card-elevated);
}
html[data-theme="light"] .btn--google {
  border: 1px solid var(--border);
}

/* Beranda foryou widgets — missions + mood chips */
.beranda-foryou-widgets {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.missions-pill-mount { padding: 0 0 4px; }
.missions-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 var(--space-lg);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.missions-pill__icon { font-size: 14px; line-height: 1; }
.missions-pill__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.mood-genre-chips-mount { margin-bottom: 4px; }
.mood-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px var(--space-lg) 8px;
  scrollbar-width: none;
}
.mood-chips::-webkit-scrollbar { display: none; }
.mood-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #1a1a22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}
.mood-chip.is-active {
  background: rgba(255, 30, 111, 0.14);
  border-color: rgba(255, 30, 111, 0.42);
  color: #fff;
  font-weight: 600;
}

/* Horizontal feed rails — CategoryRow parity */
.beranda-rails-mount,
.beranda-recommended-mount { margin-bottom: 4px; }
.feed-rail { margin: 0 0 14px; }
.feed-rail--dense { margin-bottom: 8px; }
.feed-rail__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 700;
}
.feed-rail__accent {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.feed-rail__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.feed-rail__scroll::-webkit-scrollbar { display: none; }
.feed-rail-card {
  flex: 0 0 104px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}
.feed-rail--dense .feed-rail-card { flex-basis: 96px; }
.feed-rail-card__cover-wrap {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}
.feed-rail-card__rank {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(255, 30, 111, 0.45);
}
.feed-rail-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feed-rail-card__cover-wrap .drama-card__badge--instant {
  top: auto;
  bottom: 6px;
  left: 6px;
  right: auto;
  font-size: 8px;
  padding: 2px 5px;
}
.feed-rail-card__title {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* PopularRecommendations parity */
.popular-rec { margin: 0 0 16px; padding: 0 8px; }
.popular-rec__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.popular-rec__panel {
  display: flex;
  gap: 8px;
  min-height: 200px;
  margin-bottom: 8px;
}
.popular-rec__featured {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: var(--rec-panel);
  text-decoration: none;
  color: #fff;
}
.popular-rec__tag {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--rec-tag);
  font-size: 10px;
  font-weight: 700;
}
.popular-rec__featured strong {
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-rec__genre {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}
.popular-rec__side {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.popular-rec__mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.popular-rec__mini img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--card);
}
.popular-rec__mini span {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lanjutkan menonton — row beranda + sticky bar (mirror ContinueWatchingRow + StickyResumeBar) */
.continue-section { margin: 0 0 12px; }
.continue-section__title {
  margin: 0 0 10px;
  padding: 0 var(--space-lg);
  font-size: 16px;
  font-weight: 700;
}
.continue-section .section-heading { display: none; }
.continue-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.continue-row::-webkit-scrollbar { display: none; }
.continue-card {
  flex: 0 0 108px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}
.continue-card__cover {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
}
.continue-card__ep {
  position: absolute;
  left: 6px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.continue-card__progress--track {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.2);
}
.continue-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.continue-card__progress,
.continue-card__progress--bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 0 2px 0 0;
}
.continue-card__meta {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.continue-card__meta strong {
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.continue-card__meta span { font-size: 11px; color: var(--muted-fg); }

.sticky-resume-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--tab-bar-h) + var(--safe-bottom) + 18px);
  z-index: 90;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
}
.sticky-resume-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-resume {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  background: rgba(18, 18, 22, .92);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
html[data-theme="light"] .sticky-resume { background: rgba(255,255,255,.95); }
.sticky-resume img {
  width: 40px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.sticky-resume__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sticky-resume__label { font-size: 10px; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.sticky-resume__text strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-resume__text small { font-size: 11px; color: var(--muted-fg); }
.sticky-resume__play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.daftarku-card .drama-card__cover-wrap { position: relative; }
.daftarku-card .continue-card__progress--bar { width: 0; max-width: 100%; }

/* Skeleton — tampil instan saat SPA / feed loading */
.skeleton-card { border-radius: var(--radius-md); overflow: hidden; }
.skeleton-card__cover {
  aspect-ratio: 3/4;
  background: linear-gradient(90deg, var(--card) 25%, var(--card-elevated) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-card__line {
  height: 10px;
  margin: 8px 6px 0;
  border-radius: 4px;
  background: var(--card-elevated);
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-card__line--short { width: 60%; }
.skeleton-pill {
  display: inline-block;
  width: 72px;
  height: 28px;
  margin: 0 8px 12px 0;
  border-radius: 999px;
  background: var(--card-elevated);
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.page-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  gap: 12px;
  color: var(--muted-fg);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Premium motion — stagger grid, hero titles */
.hero-slide__title,
.beranda-tab-hero__title {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}
#feed-container .drama-grid .drama-card {
  animation: dm-fade-up 0.38s ease both;
}
#feed-container .drama-grid .drama-card:nth-child(3n+1) { animation-delay: 0.02s; }
#feed-container .drama-grid .drama-card:nth-child(3n+2) { animation-delay: 0.06s; }
#feed-container .drama-grid .drama-card:nth-child(3n) { animation-delay: 0.1s; }
@keyframes dm-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-chip {
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.search-chip:active {
  transform: scale(0.96);
}
