/* DramaCina Pro Features */
:root {
    --pink: #e91e8c;
    --pink-light: #ff4da6;
    --pink-glow: rgba(233, 30, 140, 0.25);
    --vip-gradient: linear-gradient(135deg, #e91e8c 0%, #9c27b0 50%, #673ab7 100%);
}

/* Hero Carousel — premium full-bleed */
.home-hero-slot {
    margin: 0 0 8px;
}
.home-hero-slot--loading {
    min-height: clamp(240px, 52vw, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-carousel {
    position: relative;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    height: clamp(280px, 52vw, 440px);
    max-height: none;
    touch-action: pan-y;
}
.hero-carousel--premium {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.65s ease;
    background-size: cover;
    background-position: center top;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 42%, transparent 68%),
        linear-gradient(to top, rgba(10,10,15,.95) 0%, rgba(10,10,15,.35) 38%, transparent 72%);
}
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 20px 36px;
    max-width: min(100%, 520px);
}
.hero-slide__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--pink, #e91e8c), #9c27b0);
    box-shadow: 0 4px 14px var(--pink-glow, rgba(233,30,140,.35));
}
.hero-slide__title {
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.hero-slide__actions .btn { min-width: 148px; }
.hero-dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.hero-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width .25s, background .25s;
}
.hero-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s, transform 0.2s;
}
.hero-nav:hover { background: rgba(0, 0, 0, 0.65); }
.hero-nav--prev { left: 10px; }
.hero-nav--next { right: 10px; }

/* Continue Watching */
.continue-section { padding: 0 0 8px; }
.continue-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 16px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.continue-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
    cursor: pointer;
}
.continue-card__thumb {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--surface);
}
.continue-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.continue-card__progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,.2);
}
.continue-card__progress span {
    display: block;
    height: 100%;
    background: var(--pink);
}
.continue-card__ep {
    position: absolute;
    bottom: 8px; left: 8px;
    font-size: 11px;
    background: rgba(0,0,0,.7);
    padding: 2px 6px;
    border-radius: 4px;
}
.continue-card__title {
    font-size: 12px;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Profile Pro — Premium Luxury */
.profile-pro {
    --lux-bg: #0c0b09;
    --lux-surface: #161410;
    --lux-surface-2: #1e1b16;
    --lux-border: rgba(201, 169, 98, 0.2);
    --lux-gold: #c9a962;
    --lux-gold-light: #e8d5a3;
    --lux-gold-deep: #9a8352;
    --lux-gold-glow: rgba(201, 169, 98, 0.12);
    --lux-text-soft: rgba(232, 213, 163, 0.72);
    padding-bottom: 32px;
}

.profile-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    margin-bottom: 4px;
    background: var(--lux-bg);
}
.profile-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: .35;
    filter: saturate(.85) sepia(.15);
}
.profile-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12,11,9,.15) 0%, rgba(12,11,9,.82) 60%, var(--bg) 100%),
        radial-gradient(ellipse 90% 70% at 50% -5%, rgba(201,169,98,.14), transparent 65%);
}
.profile-hero__content {
    position: relative;
    z-index: 1;
    padding: 8px 20px 28px;
}
.profile-hero__top {
    display: flex;
    justify-content: flex-end;
    min-height: 32px;
    margin-bottom: 8px;
}
.profile-hero__settings {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid var(--lux-border);
    background: rgba(22, 20, 16, .65);
    backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.profile-hero__settings:active { background: rgba(30, 27, 22, .9); transform: scale(.96); }
.profile-hero__settings-icon { width: 20px; height: 20px; object-fit: contain; opacity: .85; filter: sepia(.3); }
.profile-hero__user {
    display: flex;
    align-items: center;
    gap: 16px;
}
.profile-hero__avatar-wrap {
    position: relative;
    flex-shrink: 0;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(201,169,98,.55), rgba(154,131,82,.25));
}
.profile-hero__avatar-wrap--vip {
    background: linear-gradient(145deg, #e8d5a3, #c9a962, #9a8352);
    box-shadow: 0 0 28px rgba(201,169,98,.28);
}
.profile-hero__avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, #221f1a, #141210);
    border: 2px solid rgba(12,11,9,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--lux-gold-light);
    letter-spacing: -.02em;
}
.profile-hero__vip-mark {
    position: absolute;
    right: -2px; bottom: -2px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #141210;
    border: 2px solid var(--lux-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.profile-hero__vip-mark-img { width: 18px; height: 18px; object-fit: contain; }
.profile-hero__meta { flex: 1; min-width: 0; }
.profile-hero__name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: #f5f0e8;
}
.profile-hero__uid {
    font-size: 12px;
    color: rgba(232,213,163,.45);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}
.profile-hero__badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(22, 20, 16, .8);
    border: 1px solid var(--lux-border);
    color: var(--lux-text-soft);
}
.profile-hero__badge--vip {
    background: linear-gradient(135deg, rgba(201,169,98,.18), rgba(201,169,98,.06));
    border-color: rgba(201,169,98,.35);
    color: var(--lux-gold-light);
}

.profile-body { padding: 0 16px; }

.profile-login-btn {
    width: 100%;
    margin: 12px 0 16px;
    padding: 14px 20px;
    border: 1px solid rgba(201,169,98,.42);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(201,169,98,.16) 0%, rgba(201,169,98,.06) 100%);
    color: var(--lux-gold-light);
    box-shadow: 0 4px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
    transition: var(--transition);
}
.profile-login-btn:active { transform: scale(.98); background: rgba(201,169,98,.12); }

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}
.profile-stat {
    position: relative;
    padding: 16px 14px;
    border-radius: 16px;
    border: 1px solid var(--lux-border);
    background: linear-gradient(165deg, var(--lux-surface-2) 0%, var(--lux-surface) 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,.28), inset 0 1px 0 rgba(201,169,98,.08);
}
.profile-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,98,.4), transparent);
}
.profile-stat:active { transform: scale(.98); border-color: rgba(201,169,98,.32); }
.profile-stat--vip { border-color: rgba(201,169,98,.22); }
.profile-stat__icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--lux-gold-glow);
    border: 1px solid rgba(201,169,98,.14);
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-stat__icon--gold { background: var(--lux-gold-glow); }
.profile-stat__icon-img { width: 22px; height: 22px; object-fit: contain; }
.profile-stat__value {
    font-size: 20px;
    font-weight: 700;
    color: var(--lux-gold-light);
    line-height: 1.1;
}
.profile-stat--vip .profile-stat__value { font-size: 16px; color: #f0ebe3; }
.profile-stat__label { font-size: 11px; color: rgba(232,213,163,.45); font-weight: 500; }

.profile-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.profile-quick__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 6px;
    border-radius: 14px;
    border: 1px solid rgba(201,169,98,.1);
    background: linear-gradient(180deg, var(--lux-surface-2), var(--lux-surface));
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(201,169,98,.06);
}
.profile-quick__item:active { background: #221f1a; transform: scale(.96); }
.profile-pro .profile-quick__icon .menu-row__icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--lux-gold-glow) !important;
    border: 1px solid rgba(201,169,98,.14);
}
.profile-quick__label { font-size: 11px; font-weight: 500; color: rgba(232,213,163,.5); }

.profile-vip-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px 16px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(201,169,98,.28);
    background: linear-gradient(125deg, #1c1810 0%, #141210 50%, #0c0b09 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(201,169,98,.1);
    transition: var(--transition);
}
.profile-vip-card:active { transform: scale(.99); }
.profile-vip-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
    opacity: .22;
    filter: sepia(.35) saturate(.9);
    mix-blend-mode: soft-light;
}
.profile-vip-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(232,213,163,.07) 50%, transparent 65%);
    pointer-events: none;
}
.profile-vip-card--active {
    background: linear-gradient(125deg, #221c12 0%, #161410 50%, #0c0b09 100%);
    border-color: rgba(201,169,98,.38);
    box-shadow: 0 8px 36px rgba(201,169,98,.1), inset 0 1px 0 rgba(201,169,98,.15);
}
.profile-vip-card__icon {
    position: relative;
    z-index: 1;
    width: 48px; height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-vip-card__icon .vip-anim--md { width: 48px; height: 48px; }
.profile-vip-card__text {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}
.profile-vip-card__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--lux-gold);
    margin-bottom: 4px;
}
.profile-vip-card__text h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #f5f0e8;
}
.profile-vip-card__text p {
    font-size: 12px;
    color: rgba(232,213,163,.55);
    margin-top: 4px;
    line-height: 1.35;
}
.profile-vip-card__cta {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 10px 16px;
    border: none;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #e8d5a3, #c9a962);
    color: #1a1408;
    box-shadow: 0 4px 16px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.profile-vip-card__arrow {
    position: relative;
    z-index: 1;
    font-size: 22px;
    color: var(--lux-gold);
    opacity: .75;
    margin-right: 4px;
}

.profile-pro .menu-section__label {
    color: var(--lux-gold-deep);
    letter-spacing: .1em;
    font-size: 11px;
}
.profile-pro .menu-grid--lux {
    background: linear-gradient(165deg, var(--lux-surface-2) 0%, var(--lux-surface) 100%);
    border: 1px solid rgba(201,169,98,.12);
    box-shadow: 0 6px 28px rgba(0,0,0,.32), inset 0 1px 0 rgba(201,169,98,.06);
}
.profile-pro .menu-row {
    border-bottom-color: rgba(201,169,98,.07);
}
.profile-pro .menu-row:active { background: rgba(201,169,98,.04); }
.profile-pro .menu-row__title { color: #f0ebe3; }
.profile-pro .menu-row__sub { color: rgba(232,213,163,.38); }
.profile-pro .menu-row__chev { color: rgba(201,169,98,.35); }
.profile-pro .menu-row__icon,
.profile-pro .menu-row__icon--purple,
.profile-pro .menu-row__icon--yellow,
.profile-pro .menu-row__icon--teal,
.profile-pro .menu-row__icon--blue,
.profile-pro .menu-row__icon--gold {
    background: var(--lux-gold-glow) !important;
    border: 1px solid rgba(201,169,98,.12);
}
.profile-pro .menu-row--danger .menu-row__title { color: #e8a0a0; }
.profile-pro .menu-row--danger .menu-row__sub { color: rgba(232,160,160,.45); }

.profile-card {
    margin: 16px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 14px;
}
.profile-card__avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--vip-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}
.profile-card__name { font-size: 17px; font-weight: 600; }
.profile-card__uid { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.profile-card__coins {
    margin-left: auto;
    text-align: right;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.profile-card__coins strong { color: var(--gold); font-size: 16px; }
.profile-coin__img { width: 20px; height: 20px; object-fit: contain; }
.wallet-balance { position: relative; }
.wallet-coin__img {
    width: 40px; height: 40px; object-fit: contain;
    display: block; margin: 0 auto 8px;
}
.checkin-day__img { width: 24px; height: 24px; object-fit: contain; }
.vip-hero__icon { margin-bottom: 8px; display: flex; justify-content: center; }
.vip-hero__icon .vip-anim--lg { width: 64px; height: 64px; }
.vip-hero__icon-img { width: 64px; height: 64px; object-fit: contain; }
.vip-benefit__img { width: 20px; height: 20px; object-fit: contain; margin-right: 8px; vertical-align: middle; }
.foryou-action__img { width: 28px; height: 28px; object-fit: contain; }

.vip-banner {
    margin: 0 16px 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--vip-gradient);
    display: flex;
    align-items: center;
    gap: 12px;
}
.vip-banner__icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.vip-banner__icon .vip-anim--md { width: 40px; height: 40px; }
.vip-banner__icon img { width: 100%; height: 100%; object-fit: contain; }
.vip-banner__text { flex: 1; }
.vip-banner__text h3 { font-size: 15px; font-weight: 700; }
.vip-banner__text p { font-size: 12px; opacity: .9; margin-top: 2px; }
.vip-banner__btn {
    background: #fff;
    color: var(--pink);
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.menu-section { margin: 0 16px 20px; }
.profile-body .menu-section { margin-left: 0; margin-right: 0; }
.menu-section__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .06em;
    margin-bottom: 10px;
    padding-left: 6px;
}
.menu-grid {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.menu-grid--lux {
    background: linear-gradient(160deg, rgba(26,26,36,.98), rgba(20,20,28,.98));
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.menu-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: background .2s;
}
.menu-row--rich { padding: 15px 16px; align-items: center; }
.menu-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.menu-row__title { font-size: 14px; font-weight: 600; line-height: 1.25; }
.menu-row__sub { font-size: 11px; color: var(--text-dim); line-height: 1.3; }
.menu-row--danger .menu-row__title { color: #f87171; }
.menu-row--danger .menu-row__sub { color: rgba(248,113,113,.6); }
.menu-row:last-child { border-bottom: none; }
.menu-row:active { background: rgba(255,255,255,.04); }
.menu-row__icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,.06);
}
.menu-row__icon-img { width: 22px; height: 22px; object-fit: contain; }
.menu-row__icon--purple { background: rgba(156,39,176,.18); }
.menu-row__icon--yellow { background: rgba(255,193,7,.18); }
.menu-row__icon--teal { background: rgba(0,188,212,.18); }
.menu-row__icon--blue { background: rgba(33,150,243,.18); }
.menu-row__icon--gold { background: rgba(212,175,55,.18); }
.menu-row__chev {
    margin-left: auto;
    color: var(--text-dim);
    font-size: 18px;
    font-weight: 300;
    opacity: .6;
}

/* Paywall Sheet */
.paywall-sheet {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.paywall-sheet.hidden { display: none; }
.paywall-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7);
}
.paywall-sheet__panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px 20px calc(24px + var(--safe-bottom));
    animation: slideUp .3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.paywall-sheet__lock { text-align: center; margin-bottom: 8px; }
.paywall-sheet__lock img { width: 56px; height: 56px; object-fit: contain; }
.paywall-sheet h3 { text-align: center; font-size: 18px; margin-bottom: 4px; }
.paywall-sheet p { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.paywall-actions { display: flex; flex-direction: column; gap: 10px; }
.paywall-actions .btn { width: 100%; justify-content: center; }

/* Episode lock badge */
.episode-btn--locked {
    position: relative;
    opacity: .75;
}
.episode-btn--locked::after {
    content: '🔒';
    position: absolute;
    top: 2px; right: 2px;
    font-size: 10px;
}

/* ─── Untuk Anda — vertical preview feed ─── */
.foryou-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - var(--nav-h));
    color: var(--text-muted);
    padding: 24px;
    text-align: center;
}
.foryou-empty h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--text);
}
.foryou-empty p { font-size: 13px; margin-bottom: 8px; }
.foryou-page {
    position: relative;
    height: 100%;
}
.foryou-stream-status {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
    transition: opacity .25s ease;
}
.foryou-stream-status__lottie {
    flex-shrink: 0;
    margin: 0;
}
.foryou-stream-status.hidden {
    opacity: 0;
    pointer-events: none;
}
.foryou-stream-status__text {
    font-size: 11px;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
}
.foryou-stream-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    animation: foryouDotPulse 1s ease-in-out infinite;
}
.foryou-stream-dot:nth-child(2) { animation-delay: .15s; }
.foryou-stream-dot:nth-child(3) { animation-delay: .3s; }
.foryou-stream-dot.is-done {
    background: var(--success);
    animation: none;
}
.foryou-stream-dot.is-error {
    background: rgba(255,255,255,.15);
    animation: none;
}
@keyframes foryouDotPulse {
    0%, 100% { opacity: .35; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1); }
}
.foryou-feed {
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    scrollbar-width: none;
    background: #000;
    scroll-padding-top: 0;
}
.foryou-feed::-webkit-scrollbar { display: none; }

.foryou-slide {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    background: #050508;
    box-sizing: border-box;
}
.foryou-slide--leaving {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity .2s ease, transform .2s ease;
}

.foryou-slide__media {
    position: absolute;
    inset: 0;
    background: #000;
}
.foryou-slide__poster,
.foryou-slide__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.foryou-slide__poster {
    z-index: 1;
    transition: opacity .35s ease;
}
.foryou-slide__poster.is-hidden { opacity: 0; pointer-events: none; }
.foryou-slide__video {
    z-index: 2;
    background: transparent;
    opacity: 0;
    transition: opacity .35s ease;
}
.foryou-slide.is-playing .foryou-slide__video { opacity: 1; }
.foryou-slide.is-poster-only .foryou-slide__video { opacity: 0; }
.foryou-slide.is-poster-only .foryou-slide__poster { opacity: 1; }

.foryou-slide__shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.15) 0%, transparent 28%),
        linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.45) 38%, transparent 68%);
}

.foryou-slide__tap {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: none;
    background: transparent;
    cursor: pointer;
}

.foryou-slide__loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.foryou-slide.is-loading .foryou-slide__loader { display: flex; }
.foryou-slide__lottie {
    width: 48px;
    height: 48px;
}

.detail-ep-loading {
    padding: 8px 0 24px;
}
.detail-ep-loading .loading {
    padding: 24px 16px;
}
.detail-desc--muted {
    color: var(--text-muted);
    font-size: 13px;
}

.foryou-slide__info {
    position: absolute;
    left: 16px;
    right: 88px;
    bottom: calc(var(--foryou-nav-offset, calc(var(--nav-h) + var(--safe-bottom))) + 12px);
    z-index: 11;
    pointer-events: none;
}
.foryou-slide__info button,
.foryou-slide__info .foryou-slide__desc {
    pointer-events: auto;
}

.foryou-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;
    letter-spacing: 0.04em;
    background: var(--pill-color, var(--pink));
}
.foryou-pill--dub { background: #3B82F6; }
.foryou-pill--instant { background: rgba(34, 197, 94, 0.92); }

.foryou-slide__genres {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--pink);
    text-transform: uppercase;
}

.foryou-slide__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.foryou-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.foryou-badge--dub {
    background: rgba(33, 150, 243, .85);
    color: #fff;
}
.foryou-tag {
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(233, 30, 140, .22);
    color: #ff6eb4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.foryou-slide__title {
    margin: 0;
    font-size: clamp(18px, 4.8vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.75);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.foryou-slide__desc {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255,255,255,.88);
    text-shadow: 0 1px 4px rgba(0,0,0,.65);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.foryou-slide__desc.is-expanded {
    -webkit-line-clamp: unset;
    display: block;
}
.foryou-slide__meta {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pink);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.foryou-slide__meta-sep { opacity: 0.8; }
.foryou-slide__meta .foryou-slide__more {
    margin-top: 0;
    padding: 0;
    vertical-align: baseline;
}
.foryou-slide__stat-icon {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 0 4px var(--pink-glow));
}
.foryou-slide__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,.72);
}
.foryou-slide__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.foryou-slide__stat-icon {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 0 4px var(--pink-glow));
}
.foryou-slide__more {
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    color: #FF4E8D;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.foryou-slide__hint {
    margin: 4px 0 0;
    font-size: 11px;
    color: rgba(255,255,255,.45);
}

.foryou-slide__sidebar {
    position: absolute;
    right: 10px;
    bottom: calc(var(--foryou-nav-offset, calc(var(--nav-h) + var(--safe-bottom))) + 20px);
    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,.45);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
}
.foryou-side-btn__glyph {
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
}
.foryou-side-btn__glyph--info {
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
}
.foryou-side-btn__glyph--dismiss { font-size: 26px; }
.foryou-side-btn__img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.foryou-side-btn.is-active .foryou-side-btn__icon {
    background: var(--pink);
    border-color: rgba(233, 30, 140, .6);
    box-shadow: 0 0 12px var(--pink-glow);
}
.foryou-side-btn__label {
    font-size: 10px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(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(--pink); }

/* legacy rail aliases */
.foryou-slide__rail {
    position: absolute;
    right: 10px;
    bottom: calc(88px + var(--safe-bottom));
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.foryou-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    min-width: 52px;
}
.foryou-rail__icon,
.foryou-rail__img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    transition: transform var(--transition), background var(--transition);
}
.foryou-rail__img {
    width: 22px;
    height: 22px;
    padding: 11px;
    object-fit: contain;
}
.foryou-rail:hover .foryou-rail__icon,
.foryou-rail:hover .foryou-rail__img {
    transform: scale(1.06);
    background: rgba(255,255,255,.2);
}
.foryou-rail__icon--info {
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
}
.foryou-rail__icon--dismiss { font-size: 26px; }
.foryou-rail__label {
    font-size: 10px;
    color: rgba(255,255,255,.88);
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    max-width: 56px;
    text-align: center;
    line-height: 1.2;
}

/* For You — info bottom sheet (parity DramaMax drama-sheet) */
.foryou-sheet-overlay {
    align-items: flex-end;
    z-index: 280;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
body.foryou-sheet-open { overflow: hidden; }

.foryou-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: #121212;
    border-top: 1px solid rgba(255, 78, 141, 0.22);
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.65);
    animation: foryouSheetUp 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes foryouSheetUp {
    from { transform: translateY(100%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

.foryou-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;
    z-index: 0;
}
.foryou-sheet__handle {
    align-self: center;
    width: 40px;
    height: 4px;
    margin: 10px 0 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
    z-index: 1;
}

.foryou-sheet__scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 18px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}
.foryou-sheet__scroll::-webkit-scrollbar { width: 4px; }
.foryou-sheet__scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);
    border-radius: 4px;
}

.foryou-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-top: 4px;
}
.foryou-sheet__heading {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}
.foryou-sheet__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.foryou-sheet__close:hover { background: rgba(255, 255, 255, 0.14); }

.foryou-sheet__stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.foryou-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;
}
.foryou-sheet__stat-card strong {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}
.foryou-sheet__stat-card span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}
.foryou-sheet__stat-card--accent strong { color: #ff5c8a; }

.foryou-sheet__hero {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.foryou-sheet__poster-wrap {
    flex-shrink: 0;
    padding: 2px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 78, 141, 0.55), rgba(255, 30, 111, 0.2));
    box-shadow: 0 8px 24px rgba(255, 30, 111, 0.18);
}
.foryou-sheet__poster {
    width: 88px;
    height: 118px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    background: #1a1220;
}
.foryou-sheet__hero-meta {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.foryou-sheet__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.foryou-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);
}
.foryou-sheet__plays-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ff5c8a;
    font-weight: 600;
}
.foryou-sheet__ep-count { font-weight: 500; }
.foryou-sheet__stat-icon {
    width: 12px;
    height: 12px;
    filter: drop-shadow(0 0 4px var(--pink-glow));
}

.foryou-sheet__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.foryou-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, rgba(255,255,255,.08));
    border: 1px solid var(--chip-border, rgba(255,255,255,.12));
    color: var(--chip-text, rgba(255,255,255,.88));
}
.foryou-sheet__chip--muted {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
}
.foryou-sheet__chip--dub {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.45);
    color: #93c5fd;
}

.foryou-sheet__synopsis { margin-bottom: 18px; }
.foryou-sheet__eps-section { margin-bottom: 8px; }
.foryou-sheet__section-label {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
}
.foryou-sheet__synopsis-wrap {
    position: relative;
    padding-left: 12px;
}
.foryou-sheet__synopsis-accent {
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--pink), #c2185b);
}
.foryou-sheet__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}
.foryou-sheet__desc.is-loading { color: rgba(255, 255, 255, 0.42); }
.foryou-sheet__desc-loading { margin-top: 8px; }
.foryou-sheet__desc-loading .loading { padding: 12px 0; }

.foryou-sheet__eps-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 4px;
}
.foryou-sheet__eps-grid .episode-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.foryou-sheet__eps-grid .episode-btn:hover,
.foryou-sheet__eps-grid .episode-btn:active {
    border-color: rgba(255, 78, 141, 0.65);
    color: #ff5c8a;
    background: rgba(233, 30, 140, 0.14);
}
.foryou-sheet__eps-empty {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
}
.foryou-sheet__eps-empty .loading { padding: 12px 0; }
.foryou-sheet__eps-empty-text {
    margin: 0;
    padding: 16px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
}

.foryou-sheet__footer {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, #121212 75%, rgba(18, 18, 18, 0));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.foryou-sheet__play {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff1e6f 0%, #e91e8c 45%, #c2185b 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(255, 30, 111, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.foryou-sheet__play:hover { transform: translateY(-1px); }
.foryou-sheet__play-icon {
    width: 16px;
    height: 16px;
    filter: brightness(1.1);
}
.foryou-sheet__save {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 72px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.foryou-sheet__save:hover { background: rgba(255, 255, 255, 0.12); }
.foryou-sheet__save.is-saved {
    border-color: rgba(255, 78, 141, 0.5);
    background: rgba(233, 30, 140, 0.15);
    color: #ff8ec0;
}
.foryou-sheet__save-glyph {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

/* legacy aliases */
.foryou-sheet__head,
.foryou-sheet__meta,
.foryou-sheet__tags,
.foryou-sheet__actions,
.btn-foryou-play,
.btn-foryou-save { display: none; }

.main-content.foryou-mode {
    padding: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    box-sizing: border-box;
    --foryou-nav-offset: calc(var(--nav-h) + var(--safe-bottom));
}
.main-content.foryou-mode .tab-views {
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.main-content.foryou-mode .tab-shell {
    overflow: hidden !important;
    height: 100%;
}
.main-content.foryou-mode #tabShell-foryou {
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.main-content.foryou-mode .foryou-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.main-content.foryou-mode .foryou-feed {
    flex: 1;
    min-height: 0;
    height: 100%;
}
.main-content.foryou-mode .foryou-slide {
    height: var(--foryou-slide-h, 100%);
    min-height: var(--foryou-slide-h, 100%);
}

@media (min-width: 768px) {
    .main-content.foryou-mode {
        max-width: 480px;
        margin: 0 auto;
        border-left: 1px solid rgba(255,255,255,.06);
        border-right: 1px solid rgba(255,255,255,.06);
        box-shadow: 0 0 80px rgba(0,0,0,.5);
    }
    .foryou-slide__info { right: 88px; }
}

/* My List tabs (legacy) */
.tab-bar {
    display: flex;
    gap: 0;
    margin: 16px 16px 0;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 4px;
}
.tab-bar__btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
}
.tab-bar__btn.active {
    background: var(--gold-glow);
    color: var(--gold);
}

/* ─── Daftarku (My List) ─── */
.home-hero-skeleton {
    height: 200px;
    margin: 12px 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
    background-size: 200% 100%;
    animation: mylistShimmer 1.2s ease-in-out infinite;
}
.home-section-skeleton__block { margin-bottom: 8px; }

/* ─── Home feed tabs (gateway) ─── */
.home-feed-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 16px 12px;
    margin-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.home-feed-tabs::-webkit-scrollbar { display: none; }
.home-feed-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.home-feed-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.home-feed-tab.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(212, 175, 55, 0.12));
    border-color: rgba(212, 175, 55, 0.45);
    color: var(--gold, #e8c547);
}
.home-feed-sections {
    display: block;
    padding: 0 0 16px;
}
.home-feed-section {
    margin-bottom: 4px;
}
.home-feed-section--more {
    margin-top: 8px;
    padding-bottom: 24px;
}
.home-feed-section--more .home-feed-grid {
    padding: 0 12px 8px;
}
.home-feed-section .section-header {
    padding: 12px 16px 8px;
}
.home-feed-grid {
    padding: 0 16px 24px;
}
.home-feed-loader {
    display: flex;
    justify-content: center;
    padding: 8px 0 20px;
}
.sk-line {
    display: block;
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
    background-size: 200% 100%;
    animation: mylistShimmer 1.2s ease-in-out infinite;
}
.sk-line--title { width: 140px; margin: 0 16px 10px; }
.sk-poster {
    flex: 0 0 108px;
    height: 148px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
    background-size: 200% 100%;
    animation: mylistShimmer 1.2s ease-in-out infinite;
}

.mylist-page {
    min-height: calc(100dvh - var(--header-h) - var(--nav-h));
    padding: 0 0 calc(var(--nav-h) + 16px + var(--safe-bottom));
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(233, 30, 140, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(212, 175, 55, 0.08), transparent 50%),
        var(--bg);
}
.mylist-header {
    padding: 20px 20px 8px;
    max-width: 820px;
    margin: 0 auto;
}
.mylist-header__title {
    font-size: clamp(26px, 5vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.82) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mylist-header__sub {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}
.mylist-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 820px;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
}
.mylist-tabs::-webkit-scrollbar { display: none; }
.mylist-tabs__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 999px;
    background: rgba(26, 26, 36, .85);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    backdrop-filter: blur(12px);
}
.mylist-tabs__btn:hover {
    color: var(--text);
    border-color: rgba(255,255,255,.12);
    background: var(--surface-hover);
}
.mylist-tabs__btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--pink) 0%, #c2185b 55%, #9c27b0 100%);
    box-shadow: 0 4px 20px var(--pink-glow);
    font-weight: 600;
}
.mylist-tabs__count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(0,0,0,.22);
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.mylist-tabs__btn:not(.active) .mylist-tabs__count {
    background: rgba(255,255,255,.08);
    color: var(--text-dim);
}
.mylist-panel {
    padding: 12px 16px 0;
    max-width: 820px;
    margin: 0 auto;
}
.mylist-skeleton {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mylist-skeleton__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    background: rgba(26,26,36,.6);
    border: 1px solid rgba(255,255,255,.04);
}
.mylist-skeleton__poster {
    width: 68px;
    height: 92px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
    background-size: 200% 100%;
    animation: mylistShimmer 1.2s ease-in-out infinite;
}
.mylist-skeleton__lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mylist-skeleton__lines span {
    display: block;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
    background-size: 200% 100%;
    animation: mylistShimmer 1.2s ease-in-out infinite;
}
.mylist-skeleton__lines span:first-child { width: 72%; height: 14px; }
.mylist-skeleton__lines span:last-child { width: 28%; animation-delay: .15s; }
@keyframes mylistShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.mylist-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mylist-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(26,26,36,.95) 0%, rgba(18,18,26,.98) 100%);
    border: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    animation: mylistRowIn .35s ease both;
}
.mylist-row:hover {
    border-color: rgba(212, 175, 55, .18);
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
    transform: translateY(-1px);
}
.mylist-row--leaving {
    opacity: 0;
    transform: translateX(12px);
    transition: opacity .2s ease, transform .2s ease;
}
.mylist-row__main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 12px 12px 14px;
    border: none;
    background: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    min-width: 0;
}
.mylist-row__poster {
    position: relative;
    flex: 0 0 68px;
    width: 68px;
    height: 92px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.mylist-row__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mylist-row__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0,0,0,.45);
}
.mylist-row__progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--pink), var(--gold));
    border-radius: 0 2px 2px 0;
}
.mylist-row__body {
    flex: 1;
    min-width: 0;
    padding: 2px 0;
}
.mylist-row__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.mylist-row__ep {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-light);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}
.mylist-row__meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.mylist-row__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mylist-row__tag {
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .01em;
}
.mylist-row__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px 8px 0;
    flex-shrink: 0;
}
.mylist-row__save:not(.mylist-row__icon) {
    min-width: 72px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 98, .35);
    background: rgba(201, 169, 98, .1);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.mylist-row__save:not(.mylist-row__icon):hover {
    background: rgba(201, 169, 98, .18);
    border-color: rgba(201, 169, 98, .5);
}
.mylist-row__save:not(.mylist-row__icon).is-saved {
    background: rgba(201, 169, 98, .2);
    border-color: rgba(201, 169, 98, .45);
    color: #f5e6c8;
}
.mylist-row__icon {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.mylist-row__icon:hover {
    background: rgba(255,255,255,.06);
    color: var(--text);
}
.mylist-row__icon.is-saved {
    color: var(--gold);
}
.mylist-row__icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: .75;
}
.mylist-row__icon.is-saved .mylist-row__icon-img {
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--gold-glow));
}
.mylist-row__save.is-saved .mylist-row__icon-img {
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--gold-glow));
}
.mylist-row__remove {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-weight: 300;
    font-size: 22px;
    color: var(--text-dim);
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}
.mylist-row__remove:hover { color: var(--text-muted); background: rgba(255,255,255,.04); }
.mylist-empty {
    text-align: center;
    padding: 56px 24px 32px;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(255,255,255,.08);
    background: rgba(26,26,36,.5);
}
.mylist-empty h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--text);
}
.mylist-empty p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.5;
}
.mylist-empty__btn {
    margin-top: 20px;
    min-width: 160px;
}
@keyframes mylistRowIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 768px) {
    .mylist-header { padding-top: 28px; }
    .mylist-row__poster {
        flex: 0 0 76px;
        width: 76px;
        height: 102px;
    }
    .mylist-row__title { font-size: 16px; }
    .mylist-row__actions {
        flex-direction: row;
        align-items: center;
        padding-right: 14px;
    }
}

/* Wallet / Rewards */
.wallet-balance {
    text-align: center;
    padding: 32px 16px;
    background: var(--vip-gradient);
    margin: 16px;
    border-radius: var(--radius-lg);
}
.wallet-balance__amount { font-size: 42px; font-weight: 700; }
.wallet-balance__label { font-size: 14px; opacity: .9; margin-top: 4px; }
.checkin-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 16px;
}
.checkin-day {
    aspect-ratio: 1;
    border-radius: 10px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    gap: 2px;
}
.checkin-day.done { background: rgba(34,197,94,.2); color: var(--success); }
.checkin-day.today { border: 2px solid var(--gold); }

/* Welfare / Missions (DramaBox-style) */
.welfare-page { padding-bottom: 24px; }
.welfare-hero {
    position: relative;
    min-height: 160px;
    margin-bottom: 8px;
    overflow: hidden;
}
.welfare-hero__bg {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.welfare-hero__content {
    position: absolute;
    inset: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.welfare-hero__back { align-self: flex-start; background: rgba(0,0,0,.35); border: none; }
.welfare-hero__coins {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.welfare-hero__coin-img { width: 56px; height: 56px; object-fit: contain; }
.welfare-hero__amount { font-size: 32px; font-weight: 700; line-height: 1; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.welfare-hero__label { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 4px; }
.welfare-section {
    margin: 12px 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}
.welfare-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.welfare-section__head h3 { font-size: 16px; font-weight: 600; }
.welfare-section__sub { font-size: 12px; color: var(--text-muted); }
.welfare-checkin-btn { margin-top: 12px; }
.welfare-section .checkin-grid { padding: 0; }
.mission-list { display: flex; flex-direction: column; gap: 10px; }
.mission-empty { text-align: center; color: var(--text-muted); padding: 20px 0; font-size: 13px; }
.mission-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
}
.mission-card--claimed { opacity: .65; }
.mission-card__icon-wrap { position: relative; width: 44px; height: 44px; }
.mission-card__icon { width: 44px; height: 44px; object-fit: contain; }
.mission-card__badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.mission-card__title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.mission-card__desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.mission-card__progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    margin-top: 8px;
    overflow: hidden;
}
.mission-card__bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    transition: width .3s ease;
}
.mission-card__meta { font-size: 10px; color: var(--text-dim); margin-top: 4px; }
.mission-card__side { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 64px; }
.mission-card__reward {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
}
.mission-card__coin { width: 16px; height: 16px; object-fit: contain; }
.mission-card__btn {
    min-width: 64px;
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    color: #0a0a0f;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}
.mission-card__btn--done {
    background: rgba(255,255,255,.08);
    color: var(--text-muted);
    cursor: default;
}

/* Onboarding */
.onboarding {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}
.onboarding.hidden { display: none; }
.onboarding__slide {
    flex: 1;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    text-align: center;
}
.onboarding__slide.active { display: flex; }
.onboarding__icon { margin-bottom: 24px; }
.onboarding__icon img { width: 96px; height: 96px; object-fit: contain; }
.onboarding__title { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.onboarding__desc { color: var(--text-muted); line-height: 1.6; }
.onboarding__footer {
    padding: 20px 24px calc(20px + var(--safe-bottom));
    display: flex;
    gap: 12px;
}
.onboarding__dots { display: flex; gap: 8px; justify-content: center; flex: 1; align-items: center; }
.onboarding__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    border: none;
}
.onboarding__dot.active { background: var(--gold); }

/* Interstitial ad */
.interstitial-ad {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: rgba(0,0,0,.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.interstitial-ad.hidden { display: none; }
.interstitial-ad__content {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9/16;
    background: var(--surface);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.interstitial-ad__content img { width: 80px; height: 80px; object-fit: contain; }
.interstitial-ad__skip {
    position: absolute;
    top: calc(16px + env(safe-area-inset-top));
    right: 16px;
}

/* VIP page pro (legacy) */
.vip-packages { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.vip-package {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.vip-package.selected { border-color: var(--gold); background: rgba(212,175,55,.08); }
.vip-package__price { font-size: 20px; font-weight: 700; color: var(--gold); }
.vip-package__label { font-size: 14px; color: var(--text-muted); }

/* VIP page — DramaWave subscribe (screenshot layout) */
.dw-vip-subscribe {
    min-height: 100%;
    background: #0a0a0f;
    padding: 8px 0 calc(220px + var(--safe-bottom));
}
.main-content.vip-mode #tabShell-vip {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.dw-vip-subscribe__head { padding: 12px 16px 0; }
.dw-vip-subscribe__back { background: transparent; border: none; }
.dw-vip-plans-scroll {
    overflow-x: auto;
    padding: 8px 16px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.dw-vip-plans-scroll::-webkit-scrollbar { display: none; }
.dw-vip-plans { display: flex; gap: 10px; min-width: min-content; }
.dw-vip-plan {
    position: relative;
    flex: 0 0 132px;
    min-height: 118px;
    padding: 14px 12px 28px;
    border-radius: 14px;
    background: #14141c;
    border: 2px solid rgba(255,255,255,.08);
    cursor: pointer;
    text-align: center;
}
.dw-vip-plan.selected {
    border-color: var(--gold);
    background: rgba(212,175,55,.06);
}
.dw-vip-plan__price { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; }
.dw-vip-plan__old {
    font-size: 12px;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-top: 4px;
}
.dw-vip-plan__label { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.dw-vip-plan__check {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    color: #0a0a0f;
    font-size: 12px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 20px;
}
.dw-vip-plan.selected .dw-vip-plan__check { display: flex; }
.dw-vip-plan-note {
    padding: 10px 16px 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}
.dw-vip-perks {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    background: transparent;
}
.dw-vip-perk {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    background: transparent;
}
.dw-vip-perk:last-child { border-bottom: none; }
.dw-vip-perk__text { flex: 1; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.92); letter-spacing: -.01em; }
.dw-vip-perk__chev { color: #c89428; opacity: .75; font-size: 20px; line-height: 1; }
.dw-vip-benefit-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.dw-vip-benefit-icon__img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}
.dw-vip-benefit-icon__img--tint {
    width: 30px;
    height: 30px;
    filter:
        drop-shadow(0 1.5px 1px rgba(0,0,0,.45))
        drop-shadow(0 -0.5px 0 rgba(255,220,140,.3))
        brightness(0) saturate(100%)
        invert(80%) sepia(55%) saturate(750%) hue-rotate(5deg) brightness(105%) contrast(90%);
}
.dw-vip-benefit-icon--clip {
    position: relative;
}
.dw-vip-benefit-icon--clip .dw-vip-benefit-icon__img--tint {
    width: 30px;
    height: 30px;
}
.dw-vip-benefit-icon__play {
    position: absolute;
    left: 50%;
    top: 57%;
    transform: translate(-34%, -50%);
    width: 0;
    height: 0;
    border-top: 3.5px solid transparent;
    border-bottom: 3.5px solid transparent;
    border-left: 6.5px solid #c89428;
    filter: drop-shadow(0 0.5px 0 rgba(255,220,140,.4));
    pointer-events: none;
}
.dw-vip-benefit-icon--points {
    position: relative;
}
.dw-vip-benefit-icon__hex {
    position: absolute;
    width: 30px;
    height: 34px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 34'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffe9a0'/%3E%3Cstop offset='100%25' stop-color='%23c89428'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='none' stroke='url(%23g)' stroke-width='2.2' d='M15 2l12 7v14L15 32 3 23V9z'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
}
.dw-vip-benefit-icon__star {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    margin-top: 1px;
    filter:
        drop-shadow(0 0.5px 0 rgba(255,220,140,.35))
        brightness(0) saturate(100%)
        invert(78%) sepia(55%) saturate(750%) hue-rotate(5deg) brightness(95%) contrast(92%);
}
.dw-vip-benefit-icon--badge {
    width: auto;
    min-width: 44px;
    height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1.5px solid #d4a020;
    background: transparent;
}
.dw-vip-benefit-icon--badge-free { min-width: 48px; }
.dw-vip-benefit-icon--badge-vip {
    min-width: 42px;
    border: none;
    background: transparent;
}
.dw-vip-benefit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d4a020;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1;
}
.dw-vip-benefit-icon--badge-vip .dw-vip-benefit-badge {
    font-size: 18px;
    font-style: italic;
    font-weight: 900;
    color: #e8b838;
    letter-spacing: .04em;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.dw-vip-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 16px 16px calc(16px + var(--safe-bottom));
    background: #0a0a0f;
    border-top: 1px solid rgba(255,255,255,.06);
    text-align: center;
}
.dw-vip-footer__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
}
.dw-vip-footer__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.dw-vip-footer__score { font-size: 15px; font-weight: 700; }
.dw-vip-footer__stars { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.dw-vip-footer__count { font-size: 11px; color: var(--text-dim); letter-spacing: 0.04em; }
.dw-vip-join-btn {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: block;
    padding: 16px 24px;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1200;
    cursor: pointer;
    background: linear-gradient(90deg, #c9983a, #f5d78a, #ffe9b0, #f5d78a);
    box-shadow: 0 4px 20px rgba(212,175,55,.35);
}
.dw-vip-footer__fine {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-dim);
}
.dw-vip-redeem-link { margin-top: 10px; }

/* Settings */
.settings-page { padding: 0 0 32px; max-width: 640px; margin: 0 auto; }
.settings-hero {
    margin: 8px 16px 20px;
    padding: 20px 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(212, 175, 55, 0.22);
}
.settings-hero__eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
    font-weight: 600;
}
.settings-hero__title { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.settings-hero__sub { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.45; }
.settings-section { margin: 0 16px 20px; }
.settings-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.settings-section__head h2 { font-size: 15px; font-weight: 700; margin: 0; }
.settings-section__badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.25);
}
.settings-section__hint {
    font-size: 12px;
    color: var(--text-dim);
    margin: 0 0 12px;
    line-height: 1.4;
}
.settings-search-wrap { margin-bottom: 12px; }
.settings-search {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 12px center no-repeat;
    color: var(--text);
    font-size: 14px;
}
.settings-search:focus { outline: none; border-color: rgba(212, 175, 55, 0.5); }
.settings-lang-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding-right: 2px;
}
.settings-lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.settings-lang-option:hover { border-color: rgba(212, 175, 55, 0.35); }
.settings-lang-option.active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15);
}
.settings-lang-option.is-loading { opacity: 0.7; pointer-events: none; }
.settings-lang-option__flag {
    font-size: 22px;
    line-height: 1;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}
.settings-lang-option__text { flex: 1; min-width: 0; }
.settings-lang-option__native {
    display: block;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.settings-lang-option__name {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}
.settings-lang-option__check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    color: transparent;
}
.settings-lang-option.active .settings-lang-option__check {
    border-color: var(--gold);
    background: var(--gold);
    color: #111;
    font-weight: 700;
}
.settings-lang-empty {
    padding: 24px 12px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}
.settings-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row__text { flex: 1; min-width: 0; }
.settings-row__title { display: block; font-size: 14px; font-weight: 600; }
.settings-row__desc { display: block; font-size: 12px; color: var(--text-dim); margin-top: 3px; line-height: 1.35; }
.settings-toggle {
    appearance: none;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: var(--border);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.settings-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.settings-toggle:checked { background: var(--gold); }
.settings-toggle:checked::after { transform: translateX(20px); }
.settings-btn-reset {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: transparent;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}
.settings-btn-reset:active { opacity: 0.85; }

/* Notification badge */
.nav-badge {
    position: absolute;
    top: 2px; right: 50%;
    transform: translateX(12px);
    min-width: 16px;
    height: 16px;
    background: var(--pink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Legal pages */
.legal-page { padding: 16px 20px 40px; max-width: 720px; margin: 0 auto; }
.legal-page h1 { font-size: 22px; margin-bottom: 16px; color: var(--gold); }
.legal-page h2 { font-size: 16px; margin: 20px 0 8px; }
.legal-page p, .legal-page li { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }

/* Skeleton shimmer */
.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* DramaBox welfare task list */
.db-welfare {
    min-height: 100%;
    padding: 0 16px 24px;
    background: var(--bg);
}
.db-welfare__head {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 12px 0 8px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
}
.db-welfare__back { grid-row: 1 / span 2; }
.db-welfare__tabs {
    display: flex;
    gap: 20px;
    justify-content: center;
    grid-column: 2;
}
.db-welfare__tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
}
.db-welfare__tab.active {
    color: var(--text);
}
.db-welfare__tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--pink);
    border-radius: 1px;
}
.db-welfare__rules {
    grid-column: 3;
    grid-row: 1;
    background: rgba(255,255,255,.08);
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 14px;
    cursor: pointer;
}
.db-welfare__balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 16px;
}
.db-welfare__coin-img { width: 28px; height: 28px; object-fit: contain; }
.db-welfare__balance-val { font-size: 22px; font-weight: 700; color: var(--gold-light); }
.db-welfare__section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}
.db-task-list { display: flex; flex-direction: column; gap: 10px; }
.db-task {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 12px;
    border-radius: 12px;
    background: #1c1c24;
}
.db-task--done { opacity: .55; }
.db-task__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.db-task__icon img { width: 28px; height: 28px; object-fit: contain; }
.db-task__title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.db-task__reward { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.db-task__btn {
    min-width: 72px;
    padding: 8px 14px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff4da6, #e91e8c);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.db-task__btn--done {
    background: rgba(255,255,255,.1);
    color: var(--text-muted);
}
.db-welfare__points {
    text-align: center;
    padding: 40px 16px;
}
.db-welfare__points-img { width: 64px; height: 64px; margin-bottom: 16px; }
.db-welfare__points h2 { font-size: 18px; margin-bottom: 8px; }
.db-welfare__points p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }

.menu-row__icon--yellow { background: rgba(255,193,7,.18); }
