:root {
    --bg: #09090b;
    --surface: #1515159e;
    --surface-2: #202020;
    --ink: #f8fafc;
    --muted: #a1a1aa;
    --line: #2a2a2f;
    --primary: #e50914;
    --primary-2: #b20710;
    --accent: #7f0d1b;
    --gold: #f5b642;
    --green: #16a34a;
    --danger: #dc2626;
    --dark: #050505;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #050505 url("https://static.vecteezy.com/system/resources/thumbnails/007/120/314/small_2x/galaxy-background-with-falling-star-space-galaxy-illustration-free-vector.jpg") center / cover fixed;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(229, 9, 20, 0.18), transparent 30rem),
        linear-gradient(180deg, rgb(5 5 5 / 81%), rgba(9, 9, 11, 0.42)),
        url(https://static.vecteezy.com/system/resources/thumbnails/007/120/314/small_2x/galaxy-background-with-falling-star-space-galaxy-illustration-free-vector.jpg) center / cover fixed;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

img {
    display: block;
    max-width: 100%;
}

.sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right));
    background: rgba(5, 5, 5, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

.brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.brand-logo {
    width: clamp(184px, 25vw, 318px);
    height: 58px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.brand.on-light .brand-logo {
    filter: none;
}

.brand-mark,
.avatar-link,
.profile-avatar {
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(229, 9, 20, 0.28);
}

.brand strong,
.brand small {
    display: block;
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.top-actions,
.button-row,
.meta-row,
.chip-row,
.inline-actions,
.toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-actions {
    flex: 0 0 auto;
}

.account-summary {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    list-style: none;
    cursor: pointer;
}

.account-summary::-webkit-details-marker,
.notification-menu summary::-webkit-details-marker {
    display: none;
}

.welcome-copy {
    max-width: min(220px, 22vw);
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pill-link,
.avatar-link,
.icon-button,
.btn {
    border: 0;
    border-radius: 12px;
    min-height: 42px;
    padding: 10px 14px;
    font-weight: 850;
}

.pill-link {
    color: #3a2a00;
    background: linear-gradient(135deg, #ffe08a, var(--gold));
}

.pill-link.ghost,
.icon-button,
.btn.soft {
    color: var(--ink);
    background: rgba(15, 23, 42, 0.08);
}

.hero-drama .btn.soft,
.detail-hero .btn.soft,
.premium-hero .btn.soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
}

.avatar-link,
.icon-button {
    width: 42px;
    height: 42px;
    padding: 0;
}

.avatar-link {
    flex: 0 0 42px;
    min-width: 42px;
    min-height: 42px;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
}

.icon-button {
    display: grid;
    place-items: center;
}

.topbar .icon-button {
    border: 1px solid rgba(255, 255, 255, 0.78);
}

.account-menu {
    position: relative;
}

.notification-menu {
    position: relative;
}

.account-menu summary {
    list-style: none;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.avatar-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.account-menu-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    min-width: 190px;
    padding: 8px;
    background: rgba(15, 15, 17, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.notification-menu-panel {
    position: fixed;
    z-index: 30;
    top: max(68px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    display: grid;
    width: min(360px, calc(100vw - 28px));
    max-height: min(520px, calc(100dvh - 84px));
    overflow: auto;
    padding: 10px;
    background: rgba(15, 15, 17, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.notification-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 4px 10px;
}

.notification-menu-head strong {
    color: #ffffff;
}

.notification-menu-head span,
.empty-mini {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.notification-button {
    position: relative;
}

.notification-button .notification-unseen-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    color: #ffffff;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
}

.bell-icon {
    position: relative;
    width: 17px;
    height: 18px;
    border: 2px solid #ffffff;
    border-bottom: 0;
    border-radius: 10px 10px 5px 5px;
}

.bell-icon::before,
.bell-icon::after {
    position: absolute;
    content: "";
}

.bell-icon::before {
    left: 50%;
    top: -5px;
    width: 6px;
    height: 6px;
    border-top: 2px solid #ffffff;
    border-radius: 999px;
    transform: translateX(-50%);
}

.bell-icon::after {
    left: 50%;
    bottom: -5px;
    width: 7px;
    height: 4px;
    background: #ffffff;
    border-radius: 0 0 999px 999px;
    transform: translateX(-50%);
}

.account-menu-panel form {
    margin: 0;
}

.account-menu-panel a,
.account-menu-panel button {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    padding: 9px 10px;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 10px;
    text-align: left;
    font-weight: 850;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ui-icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
}

.icon-button .ui-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.coin-amount {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
    color: inherit;
    background: transparent;
    border: 0;
    font-weight: 950;
    line-height: 1;
}

.coin-amount span {
    padding: 0;
    background: transparent;
    border: 0;
}

.coin-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(245, 182, 66, 0.24));
}

.coin-amount.compact {
    gap: 5px;
    font-size: inherit;
}

.coin-amount.compact .coin-icon {
    width: 20px;
    height: 20px;
}

.coin-amount.light .coin-value {
    color: #ffffff;
}

.wallet-card .btn.primary .coin-amount.light .coin-value {
    color: #047857;
}

.coin-icon.tiny {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    vertical-align: -4px;
}

.main-content {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
    padding: 14px 0 96px;
}

.flash-stack {
    position: fixed;
    z-index: 50;
    top: 70px;
    right: 14px;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
}

.flash {
    padding: 12px 14px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-weight: 750;
}

.flash.error {
    border-left-color: var(--danger);
}

.flash.warning {
    border-left-color: var(--gold);
}

.hero-drama,
.detail-hero,
.premium-hero,
.admin-hero,
.profile-hero,
.wallet-card {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px;
    background: #0b1220;
    box-shadow: var(--shadow);
}

.hero-drama::before,
.detail-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(11, 18, 32, 0.95) 0%, rgba(11, 18, 32, 0.78) 42%, rgba(11, 18, 32, 0.18) 100%),
        var(--hero-image) center / cover;
}

.hero-slider {
    position: relative;
    display: grid;
    min-height: 330px;
}

.hero-slider .hero-drama {
    grid-area: 1 / 1;
    min-height: 430px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.995);
    transition: opacity 360ms ease, transform 360ms ease;
    visibility: hidden;
}

.hero-slider .hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    visibility: visible;
}

.hero-slider-controls {
    position: absolute;
    z-index: 3;
    right: 22px;
    bottom: 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(14px);
}

.hero-slider-controls button {
    width: 9px;
    height: 9px;
    padding: 0;
    background: rgba(255, 255, 255, 0.46);
    border: 0;
    border-radius: 999px;
}

.hero-slider-controls button.active {
    width: 26px;
    background: #ffffff;
}

.hero-copy,
.detail-copy,
.detail-poster {
    position: relative;
    z-index: 1;
}

.hero-copy,
.detail-copy {
    width: min(560px, 100%);
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    color: #fee2e2;
    background: rgba(229, 9, 20, 0.22);
    border: 1px solid rgba(229, 9, 20, 0.42);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero-copy h1,
.detail-copy h1,
.premium-hero h1 {
    margin: 10px 0 10px;
    font-size: clamp(34px, 8vw, 64px);
    line-height: 1;
}

.hero-copy p,
.detail-copy p,
.premium-hero p,
.admin-hero p,
.profile-hero p,
.wallet-card p,
.muted {
    color: var(--muted);
}

.hero-copy p,
.detail-copy p,
.premium-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
}

.meta-row {
    flex-wrap: wrap;
    margin: 14px 0;
}

.meta-row > span {
    padding: 7px 10px;
    color: inherit;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.meta-row > .age-rating-badge {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
}

.age-rating-free {
    background: #1f9d55;
}

.age-rating-10 {
    background: #2563eb;
}

.age-rating-12 {
    color: #171717 !important;
    background: #facc15;
}

.age-rating-14 {
    background: #f97316;
}

.age-rating-16 {
    background: #e50914;
}

.age-rating-18 {
    background: #050505;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid transparent;
    text-align: center;
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 26px rgba(229, 9, 20, 0.26);
}

.btn.like-button {
    color: #fee2e2;
    background: rgba(229, 9, 20, 0.12);
    border-color: rgba(229, 9, 20, 0.26);
}

.btn.like-button.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 24px rgba(229, 9, 20, 0.24);
}

.icon-action {
    min-width: 42px;
    min-height: 42px;
    padding-inline: 12px;
}

.icon-action .ui-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.like-button:not(.active) .ui-icon {
    filter: brightness(0) invert(1);
    opacity: 0.86;
}

.watch-like-button {
    color: #ffffff;
}

.watch-heart-symbol {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    font-size: 26px;
    line-height: 1;
    transition: color 0.18s ease, transform 0.18s ease, text-shadow 0.18s ease;
}

.watch-heart-symbol::before {
    content: "\2661";
}

.watch-like-button.active .watch-heart-symbol {
    color: #ff3d71;
    text-shadow: 0 0 10px rgba(255, 61, 113, 0.55);
    transform: scale(1.08);
}

.watch-like-button.active .watch-heart-symbol::before {
    content: "\2665";
    color: #ff3d71;
}

.episode-card a.btn.icon-action {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.22);
}

.favorite-button {
    width: 46px;
    min-width: 46px;
    padding: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
}

.favorite-star-symbol {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    font-size: 27px;
    line-height: 1;
    transition: color 0.18s ease, transform 0.18s ease, text-shadow 0.18s ease;
}

.favorite-star-symbol::before {
    content: "\2606";
}

.favorite-button.active {
    color: #ffd84d;
    background: rgba(255, 216, 77, 0.1);
    border-color: rgba(255, 216, 77, 0.42);
}

.favorite-button.active .favorite-star-symbol {
    color: #ffd84d;
    text-shadow: 0 0 7px rgba(255, 216, 77, 0.44);
    transform: scale(1.06);
}

.favorite-button.active .favorite-star-symbol::before {
    content: "\2605";
    color: #ffd84d;
}

.btn.compact {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}

.btn.full {
    width: 100%;
}

.toolbar-panel,
.content-section,
.form-card,
.admin-tabs,
.stats-grid article,
.empty-state,
.profile-hero,
.wallet-card,
.plan-card,
.user-admin-card {
    background: rgba(21, 21, 21, 0.4);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.toolbar-panel,
.content-section,
.admin-tabs {
    margin-top: 14px;
    padding: 16px;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.field-group {
    display: grid;
    gap: 7px;
}

.field-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.label-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(229, 9, 20, 0.68);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.14);
}

.chip-row {
    flex-wrap: wrap;
    margin-top: 12px;
}

.chip {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 7px 11px;
    color: #fee2e2;
    background: rgba(229, 9, 20, 0.14);
    border: 1px solid rgba(229, 9, 20, 0.24);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
}

.chip.active {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.section-title h2 {
    margin: 0;
    font-size: 20px;
}

.section-title span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.poster-row {
    display: grid;
    grid-auto-columns: minmax(165px, 210px);
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.poster-card,
.drama-card,
.continue-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
    scroll-snap-align: start;
}

.poster-card {
    min-height: 230px;
}

.poster-card img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
}

.poster-card::after,
.drama-card .thumb::after {
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
}

.poster-card > strong {
    position: absolute;
    left: 10px;
    bottom: 16px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.24);
    font-size: 96px;
    line-height: 0.7;
}

.poster-card div {
    position: absolute;
    z-index: 2;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    gap: 2px;
    padding: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.poster-card small,
.mini-meta,
.episode-card small {
    color: var(--muted);
    font-size: 12px;
}

.poster-card div small {
    color: rgba(255, 255, 255, 0.76);
}

.badge {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    color: #ffffff;
    background: var(--accent);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 900;
}

.vip-crown {
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 8px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #ffd54a;
    font-size: 25px;
    line-height: 1;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.78),
        0 0 10px rgba(255, 197, 45, 0.52);
    transform: rotate(-8deg);
}

.vip-crown::before {
    content: "\265B";
}

.movie-detail-poster .vip-crown {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    font-size: 32px;
}

.drama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.discover-category-rotator {
    position: relative;
    display: grid;
    min-height: 100%;
    overflow: hidden;
    padding: 14px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(82, 36, 42, 0.94), rgba(44, 25, 29, 0.98)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 12rem);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
}

.discover-category-panel {
    grid-area: 1 / 1;
    display: grid;
    gap: 12px;
    align-content: start;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 260ms ease, transform 260ms ease;
    visibility: hidden;
}

.discover-category-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
}

.discover-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #ffffff;
}

.discover-category-head strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 21px;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.discover-category-head span {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 34px;
    line-height: 1;
}

.discover-category-list {
    display: grid;
    gap: 10px;
}

.discover-category-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 64px;
    padding: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.discover-category-item img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
}

.discover-category-item span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.drama-card {
    background: var(--surface);
    border: 1px solid var(--line);
}

.drama-card .thumb {
    position: relative;
    display: block;
    height: auto;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.drama-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drama-card-body {
    padding: 13px;
}

.drama-card h3 {
    margin: 4px 0;
    font-size: 17px;
}

.drama-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-modal {
    width: min(1080px, calc(100vw - 28px));
    max-height: calc(100vh - 32px);
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
}

.category-modal::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.category-modal-panel {
    display: grid;
    gap: 16px;
    min-height: min(760px, calc(100vh - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 18px;
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.category-modal-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.category-modal-header h2,
.category-modal-header p {
    margin: 6px 0 0;
}

.category-modal-header p {
    color: var(--muted);
}

.category-modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.continue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.continue-card {
    min-height: 122px;
    padding: 12px 12px 14px 116px;
    color: #ffffff;
}

.continue-card img {
    position: absolute;
    inset: 0 auto 0 0;
    width: 102px;
    height: 100%;
    object-fit: cover;
}

.continue-card span,
.continue-card small {
    display: block;
}

.continue-card small {
    color: rgba(255, 255, 255, 0.78);
}

.continue-card i {
    position: absolute;
    left: 116px;
    right: 12px;
    bottom: 10px;
    height: 4px;
    max-width: calc(100% - 128px);
    background: var(--accent);
    border-radius: 999px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 22px;
    align-items: end;
}

.detail-poster img {
    width: 230px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.episode-list,
.mission-list,
.notification-list,
.payment-table,
.admin-list,
.admin-user-list {
    display: grid;
    gap: 10px;
}

.episode-card,
.mission-list article,
.notification-list article,
.payment-table article,
.admin-list article {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.episode-card {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.episode-card form {
    margin: 0;
}

.episode-card.locked {
    opacity: 0.78;
}

.episode-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fee2e2;
    background: rgba(229, 9, 20, 0.2);
    border-radius: 12px;
    font-weight: 900;
}

.episode-main h3,
.episode-main p {
    margin: 0;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr minmax(170px, 240px);
    gap: 14px;
    align-items: stretch;
}

.metric-panel {
    display: grid;
    place-items: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.14), rgba(127, 13, 27, 0.2));
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: center;
}

.metric-panel span {
    color: var(--primary);
    font-size: 34px;
    font-weight: 950;
}

.auth-page {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 430px);
    gap: 18px;
    align-items: center;
    min-height: calc(100vh - 190px);
}

.auth-copy {
    padding: 24px;
}

.auth-copy h1,
.profile-hero h1,
.wallet-card h1,
.admin-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(32px, 7vw, 56px);
    line-height: 1;
}

.demo-credentials {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed var(--line);
    border-radius: 14px;
}

.demo-credentials span {
    color: var(--muted);
    font-size: 13px;
}

.form-card {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.profile-hero,
.wallet-card,
.admin-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: auto;
}

.profile-alert {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 14px 16px;
    color: #fee2e2;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.28), rgba(127, 13, 27, 0.34));
    border: 1px solid rgba(248, 113, 113, 0.32);
    border-radius: 16px;
}

.profile-alert span {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 750;
}

.profile-form {
    display: grid;
    gap: 12px;
}

.profile-data-expander {
    padding: 0;
}

.profile-data-expander summary {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    list-style: none;
    cursor: pointer;
}

.profile-data-expander summary::-webkit-details-marker {
    display: none;
}

.profile-data-expander summary::after {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    background: transparent url("../icons/down-arrow.png") center / 18px 18px no-repeat;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: transform 160ms ease, opacity 160ms ease;
}

.profile-data-expander[open] summary::after {
    transform: rotate(180deg);
}

.profile-data-expander summary h2,
.profile-data-expander summary span {
    margin: 0;
}

.profile-data-expander summary span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.profile-data-expander .profile-form {
    margin: 0 16px 16px;
}

.profile-hero .meta-row > span:first-child {
    padding: 0;
    background: transparent;
    border-color: transparent;
}

.profile-logout-form {
    justify-self: end;
}

.profile-logout-button {
    min-width: 92px;
}

.profile-notification-expander {
    padding: 0;
}

.profile-notification-expander summary {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    list-style: none;
    cursor: pointer;
}

.profile-notification-expander summary::-webkit-details-marker {
    display: none;
}

.profile-notification-expander summary h2,
.profile-notification-expander summary span {
    margin: 0;
}

.profile-notification-expander summary span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.profile-notification-expander summary > strong {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
}

.profile-notification-expander .notification-list,
.profile-notification-expander .empty-state {
    margin: 0 16px 16px;
}

.notification-list article.unread {
    border-color: rgba(229, 9, 20, 0.44);
    box-shadow: inset 4px 0 0 var(--primary);
}

.notification-list.compact {
    gap: 8px;
}

.notification-list.compact article {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.notification-list.compact p {
    margin: 2px 0;
    color: rgba(255, 255, 255, 0.76);
}

.profile-avatar {
    width: 100px;
    height: 120px;
    border-radius: 22px;
    font-size: 28px;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallet-card {
    grid-template-columns: 1fr auto;
    color: #ffffff;
    background: linear-gradient(135deg, #047857, #16a34a);
    border-color: rgba(187, 247, 208, 0.38);
    box-shadow: 0 18px 46px rgba(22, 163, 74, 0.26);
}

.wallet-card .eyebrow {
    color: #dcfce7;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.wallet-card p {
    color: rgba(255, 255, 255, 0.82);
}

.wallet-card .btn.primary {
    color: #047857;
    background: #ffffff;
    box-shadow: none;
}

.checkin-button {
    flex-wrap: wrap;
}

.checkin-reward-amount .coin-value {
    color: #064e3b;
}

.checkin-reward-amount .coin-icon {
    filter: none;
}

.checkin-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.checkin-grid div {
    display: grid;
    place-items: center;
    min-height: 64px;
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.22);
    border-radius: 14px;
}

.checkin-grid .done {
    color: #ffffff;
    background: linear-gradient(135deg, #047857, #16a34a);
    border-color: rgba(187, 247, 208, 0.44);
}

.mission-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.mission-list p,
.mission-card p {
    margin: 2px 0 0;
    color: var(--muted);
}

.mission-list span,
.mission-card span {
    color: var(--primary);
    font-weight: 900;
}

.mission-reward {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.admin-reward-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.admin-reward-list {
    display: grid;
    gap: 10px;
}

.admin-reward-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, 180px) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
}

.admin-reward-list strong,
.admin-reward-list small {
    display: block;
}

.admin-reward-list small {
    color: #667085;
}

.admin-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
}

@media (max-width: 760px) {
    .admin-reward-list article {
        grid-template-columns: 1fr;
    }
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.plan-card {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.plan-card h2,
.plan-card h3,
.plan-card p {
    margin: 0;
}

.plan-card strong,
.plan-card h2 {
    color: var(--primary);
}

.plan-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.premium-hero {
    min-height: auto;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(229, 9, 20, 0.92), rgba(91, 10, 24, 0.9)),
        url("https://images.unsplash.com/photo-1518674660708-0e2c0473e68e?auto=format&fit=crop&w=1400&q=85") center / cover;
}

.page-premium .premium-hero {
    overflow: visible;
    padding: 18px 0 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.admin-hero {
    color: var(--ink);
    background: rgba(21, 21, 21, 0.92);
    grid-template-columns: 1fr auto;
}

.admin-hero p {
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.stats-grid article {
    display: grid;
    gap: 3px;
    padding: 14px;
}

.stats-grid strong {
    color: var(--primary);
    font-size: 26px;
}

.stats-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.admin-tabs a {
    flex: 0 0 auto;
    padding: 9px 12px;
    color: var(--muted);
    background: var(--surface-2);
    border-radius: 12px;
    font-weight: 850;
}

.admin-tabs a.active {
    color: #ffffff;
    background: var(--primary);
}

.admin-summary-grid,
.admin-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 14px;
    align-items: start;
}

.admin-summary-grid {
    grid-template-columns: repeat(3, 1fr);
}

.admin-summary-grid article {
    padding: 14px;
    background: var(--surface-2);
    border-radius: 14px;
}

.admin-summary-grid p {
    color: var(--muted);
}

.admin-summary-grid a {
    color: var(--primary);
    font-weight: 900;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.toggle-row {
    flex-wrap: wrap;
}

.toggle-row label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 10px;
    background: var(--surface-2);
    border-radius: 10px;
}

.toggle-row input {
    width: auto;
    min-height: auto;
}

.admin-list article {
    grid-template-columns: 74px 1fr;
    align-items: center;
    min-height: 100px;
}

.admin-list img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
}

.admin-list span,
.payment-table small,
.notification-list small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.inline-actions {
    flex-wrap: wrap;
    margin-top: 8px;
}

.inline-actions a,
.inline-actions button {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 9px;
    color: #991b1b;
    background: #fee2e2;
    border: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 850;
}

.inline-actions button {
    color: #ffffff;
    background: #991b1b;
}

.selector-form {
    display: grid;
    grid-template-columns: minmax(260px, 420px);
}

.episode-admin-list article {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 82px;
}

.admin-user-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.admin-grid > .pagination {
    grid-column: 2;
}

.user-admin-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
}

.payment-table {
    margin-top: 14px;
}

.payment-table article {
    grid-template-columns: minmax(0, 1fr) auto minmax(160px, auto);
    align-items: center;
}

.notification-list article {
    grid-template-columns: 1fr;
    align-items: start;
}

.notification-list p {
    margin: 2px 0 0;
    color: var(--muted);
}

.paginated-list {
    min-width: 0;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 14px;
}

.pagination span {
    margin-right: auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.pagination a,
.pagination strong,
.pagination em {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.pagination strong {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
}

.pagination em {
    color: var(--muted);
    opacity: 0.58;
}

.page-admin {
    overflow: hidden;
    background: #f7f7f8;
}

.page-admin .flash-stack {
    top: 18px;
}

.page-admin .main-content {
    width: 100%;
    height: 100vh;
    padding: 0;
}

.page-admin .bottom-nav {
    display: none;
}

.admin-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    background: #f7f7f8;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.admin-sidebar {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 22px;
    min-height: 0;
    padding: 22px 16px;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(229, 9, 20, 0.32), transparent 18rem),
        linear-gradient(180deg, #09090b, #151111);
}

.admin-sidebar-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
}

.admin-sidebar-brand {
    display: grid;
    gap: 8px;
    padding: 4px 6px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-brand img {
    width: 178px;
    max-width: 100%;
    filter: brightness(0) invert(1);
}

.admin-sidebar-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    margin-top: -10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    cursor: pointer;
}

.admin-sidebar-toggle img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.admin-sidebar-brand span,
.admin-sidebar-card span,
.admin-sidebar-card small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    font-weight: 850;
}

.admin-side-nav {
    display: grid;
    align-content: start;
    gap: 7px;
}

.admin-side-nav a {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 11px;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.76);
    border-radius: 13px;
    font-weight: 850;
}

.admin-nav-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.72;
    filter: brightness(0) invert(1);
}

.admin-side-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 28px rgba(229, 9, 20, 0.24);
}

.admin-side-nav a.active .admin-nav-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.admin-sidebar-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.admin-sidebar-card strong {
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
}

@media (min-width: 901px) {
    .admin-shell.sidebar-collapsed {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .admin-shell.sidebar-collapsed .admin-sidebar {
        padding-inline: 14px;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar-top {
        grid-template-columns: 1fr;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar-toggle {
        justify-self: center;
        margin-top: 0;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar-brand {
        justify-self: center;
        justify-items: start;
        width: 44px;
        height: 44px;
        overflow: hidden;
        padding-inline: 0;
        border-radius: 12px;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar-brand img {
        width: 178px;
        max-width: none;
        height: 44px;
        object-fit: contain;
        object-position: left center;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar-brand span,
    .admin-shell.sidebar-collapsed .admin-side-nav span,
    .admin-shell.sidebar-collapsed .admin-sidebar-card {
        display: none;
    }

    .admin-shell.sidebar-collapsed .admin-side-nav a {
        grid-template-columns: 1fr;
        justify-items: center;
        padding-inline: 0;
    }

    .admin-shell.sidebar-collapsed .admin-nav-icon {
        width: 22px;
        height: 22px;
    }
}

.admin-workspace {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 22px;
    color: #171717;
    background:
        radial-gradient(circle at top right, rgba(229, 9, 20, 0.08), transparent 24rem),
        #f7f7f8;
}

.admin-workspace-header {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-workspace-header span {
    color: #71717a;
    font-size: 13px;
    font-weight: 850;
}

.admin-workspace-header h1 {
    margin: 2px 0 0;
    color: #171717;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
}

.admin-workspace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-modal {
    width: min(760px, calc(100vw - 28px));
    max-height: calc(100vh - 32px);
    padding: 0;
    color: #101828;
    background: transparent;
    border: 0;
}

.admin-modal::backdrop {
    background: rgba(9, 9, 11, 0.62);
    backdrop-filter: blur(4px);
}

.admin-modal-panel {
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
}

.admin-modal-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.admin-modal-header span {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.admin-modal-header h2 {
    margin: 2px 0 0;
    color: #101828;
}

.admin-modal-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
}

.admin-success-modal {
    width: min(420px, calc(100vw - 28px));
}

.admin-success-panel {
    justify-items: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
}

.admin-success-panel h2 {
    margin: 0;
    color: #101828;
}

.admin-success-panel p {
    margin: 0;
    color: #667085;
    font-weight: 750;
}

.admin-success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #ffffff;
    background: #16a34a;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.28);
    font-size: 32px;
    font-weight: 950;
    line-height: 1;
}

.page-admin .admin-modal .form-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.admin-list-section .admin-list {
    grid-template-columns: 1fr;
}

.page-admin .content-section,
.page-admin .form-card,
.page-admin .admin-tabs,
.page-admin .stats-grid article,
.page-admin .admin-panel,
.page-admin .plan-card,
.page-admin .user-admin-card,
.page-admin .empty-state {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.94);
    border-color: #dbe4f0;
}

.page-admin .content-section p,
.page-admin .form-card p,
.page-admin .admin-panel p,
.page-admin .plan-card p,
.page-admin .admin-list span,
.page-admin .payment-table small,
.page-admin .notification-list small,
.page-admin .notification-list p,
.page-admin label,
.page-admin .field-label,
.page-admin .section-title span,
.page-admin .pagination span {
    color: #526173;
}

.page-admin h1,
.page-admin h2,
.page-admin h3,
.page-admin strong,
.page-admin .section-title h2,
.page-admin .admin-list strong,
.page-admin .notification-list strong,
.page-admin .payment-table strong {
    color: #0f172a;
}

.page-admin .admin-sidebar strong,
.page-admin .admin-sidebar h2,
.page-admin .admin-sidebar h3 {
    color: #ffffff;
}

.page-admin input,
.page-admin textarea,
.page-admin select {
    color: #0f172a;
    background: #f3f6fb;
    border-color: #d9e2ee;
}

.page-admin input::placeholder,
.page-admin textarea::placeholder {
    color: #6b7688;
}

.page-admin .admin-tabs a,
.page-admin .quick-action-grid a,
.page-admin .inline-actions a,
.page-admin .pagination a,
.page-admin .pagination em {
    color: #991b1b;
    background: #fee2e2;
}

.page-admin .pagination em {
    color: #667085;
    background: #f1f5f9;
}

.page-admin .inline-actions button {
    color: #b42318;
    background: #fee4e2;
}

.page-admin .admin-form button[type="submit"],
.page-admin .user-admin-card button[type="submit"] {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 24px rgba(229, 9, 20, 0.2);
}

.page-admin .admin-form button[type="submit"]:hover,
.page-admin .user-admin-card button[type="submit"]:hover {
    transform: translateY(-1px);
}

.page-admin .metric-card {
    background: #ffffff;
}

.page-admin .metric-card span,
.page-admin .metric-card small {
    color: #667085;
}

.page-admin .metric-card strong {
    color: #101828;
}

.page-admin .metric-card > i {
    background: #111827;
}

.page-admin .admin-list article,
.page-admin .episode-admin-list article,
.page-admin .notification-list article,
.page-admin .payment-table article {
    color: #101828;
    background: #ffffff;
    border-color: #dbe4f0;
}

.page-admin .admin-list span,
.page-admin .episode-admin-list span,
.page-admin .payment-table span,
.page-admin .payment-table small,
.page-admin .notification-list small,
.page-admin .notification-list p {
    color: #667085;
}

.page-admin .payment-table strong,
.page-admin .notification-list strong,
.page-admin .admin-list strong,
.page-admin .episode-admin-list strong {
    color: #101828;
}

.page-admin .admin-like-count {
    display: inline-flex;
    width: fit-content;
    margin-top: 3px;
    padding: 4px 8px;
    color: #991b1b;
    background: #fee2e2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.page-admin .toggle-row label,
.page-admin .admin-mini-grid span,
.page-admin .admin-timeline a,
.page-admin .admin-bar-list div::after {
    background: #f3f6fb;
}

.page-admin .admin-radial {
    background:
        radial-gradient(circle, #ffffff 57%, transparent 58%),
        conic-gradient(var(--accent) var(--value), rgba(127, 13, 27, 0.18) 0);
}

.admin-stack {
    display: grid;
    gap: 14px;
}

.notification-admin-grid {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.admin-command-center .eyebrow,
.admin-command-copy p,
.admin-command-card span,
.admin-command-card small {
    color: rgba(255, 255, 255, 0.88);
}

.admin-command-center .btn.soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
}

.page-admin .admin-command-center h1,
.page-admin .admin-command-center strong,
.page-admin .admin-featured-drama h3,
.page-admin .admin-featured-drama strong {
    color: #ffffff;
}

.page-admin .admin-featured-drama p {
    color: rgba(255, 255, 255, 0.82);
}

.admin-command-center {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 410px);
    gap: 20px;
    align-items: stretch;
    overflow: hidden;
    margin-top: 6px;
    padding: 26px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.96), rgba(229, 9, 20, 0.86) 52%, rgba(91, 10, 24, 0.9)),
        url("https://images.unsplash.com/photo-1518674660708-0e2c0473e68e?auto=format&fit=crop&w=1400&q=85") center / cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(229, 9, 20, 0.24);
}

.admin-command-center::after {
    position: absolute;
    inset: auto -80px -120px auto;
    width: 320px;
    height: 320px;
    content: "";
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    filter: blur(18px);
}

.admin-command-copy,
.admin-command-card {
    position: relative;
    z-index: 1;
}

.admin-command-copy h1 {
    max-width: 720px;
    margin: 14px 0 10px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 0.95;
}

.admin-command-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}

.admin-command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.admin-command-card {
    display: grid;
    align-content: space-between;
    min-height: 250px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(16px);
}

.admin-command-card span,
.admin-command-card small {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 800;
}

.admin-command-card strong {
    display: block;
    margin: 8px 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
}

.sparkline {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 90px;
    margin-top: 18px;
}

.sparkline i {
    flex: 1;
    min-height: 18px;
    background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.22));
    border-radius: 999px 999px 6px 6px;
}

.admin-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 142px;
    padding: 18px;
}

.metric-card::before {
    position: absolute;
    inset: -42px -42px auto auto;
    width: 120px;
    height: 120px;
    content: "";
    background: currentColor;
    border-radius: 999px;
    opacity: 0.12;
}

.metric-card.blue {
    color: #e50914;
}

.metric-card.pink {
    color: #b20710;
}

.metric-card.wine {
    color: #7f0d1b;
}

.metric-card.amber {
    color: #d97706;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin: 8px 0 2px;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.metric-card small {
    color: var(--muted);
    padding-bottom: 1em;
    padding-left: 0.2em;
    /* font-weight: 750; */
}

.metric-card > i {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    display: block;
    height: 7px;
    max-width: calc(100% - 36px);
    background: currentColor;
    border-radius: 999px;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.9fr);
    gap: 14px;
    margin-top: 14px;
}

.admin-panel {
    padding: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.09);
}

.admin-feature-panel {
    grid-row: span 2;
}

.admin-featured-drama {
    position: relative;
    display: grid;
    align-items: end;
    overflow: hidden;
    min-height: 390px;
    padding: 18px;
    color: #ffffff;
    background:
        linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.22)),
        var(--feature-image) center / cover;
    border-radius: 16px;
}

.admin-featured-drama div {
    max-width: 520px;
}

.admin-featured-drama span {
    display: inline-flex;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.admin-featured-drama h3 {
    margin: 10px 0 6px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1;
}

.admin-featured-drama p {
    color: rgba(255, 255, 255, 0.78);
}

.admin-featured-drama strong {
    font-size: 18px;
}

.admin-bar-list {
    display: grid;
    gap: 12px;
}

.admin-bar-list div {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-bottom: 14px;
}

.admin-bar-list div::after,
.admin-bar-list i {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 7px;
    content: "";
    border-radius: 999px;
}

.admin-bar-list div::after {
    right: 0;
    background: var(--surface-2);
}

.admin-bar-list i {
    max-width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.admin-bar-list span,
.admin-bar-list strong {
    position: relative;
    z-index: 1;
    /* font-weight: 850; */
}

.section-title.with-filter {
    align-items: flex-start;
}

.admin-period-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    background: #f3f6fb;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
}

.admin-period-tabs a {
    padding: 7px 9px;
    color: #667085;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 850;
}

.admin-period-tabs a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.admin-ranking-list,
.admin-drama-accordion,
.admin-user-accordion {
    display: grid;
    gap: 10px;
}

.admin-banner-card form {
    display: grid;
    gap: 14px;
}

.admin-expander-summary {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
}

.admin-expander-summary::-webkit-details-marker {
    display: none;
}

.admin-expander-summary span {
    display: grid;
    gap: 2px;
}

.admin-expander-summary strong {
    color: #101828;
    font-size: 18px;
}

.admin-expander-summary small,
.admin-expander-summary em {
    color: #667085;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.admin-expander-summary em {
    flex: 0 0 auto;
    padding: 8px 10px;
    color: #ffffff;
    background: #111827;
    border-radius: 999px;
}

.admin-banner-card[open] .admin-expander-summary {
    margin-bottom: 14px;
}

.admin-banner-card[open] .admin-expander-summary em {
    color: #111827;
    background: #e5e7eb;
}

.admin-banner-card[open] .admin-expander-summary em::before {
    content: "Ocultar";
}

.admin-banner-card[open] .admin-expander-summary em {
    font-size: 0;
}

.admin-banner-card[open] .admin-expander-summary em::before {
    font-size: 12px;
}

.admin-banner-limit-status,
.admin-banner-help {
    margin: 4px 0 0;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.admin-banner-limit-status.is-over-limit {
    color: #b91c1c;
}

.admin-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.admin-banner-option {
    position: relative;
    display: block;
    color: #0f172a;
}

.admin-banner-option.is-disabled {
    opacity: 0.58;
}

.admin-banner-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-banner-option-body {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 78px;
    padding: 9px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-banner-option.is-disabled .admin-banner-option-body {
    cursor: not-allowed;
}

.admin-banner-option-body img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.admin-banner-option-body strong,
.admin-banner-option-body small {
    display: block;
}

.admin-banner-option-body small {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.admin-banner-option-body em {
    padding: 6px 8px;
    color: #667085;
    background: #e9eef6;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.admin-banner-option input:focus-visible + .admin-banner-option-body,
.admin-banner-option input:checked + .admin-banner-option-body {
    background: #fff1f2;
    border-color: rgba(229, 9, 20, 0.55);
    box-shadow: 0 12px 30px rgba(153, 27, 27, 0.12);
}

.admin-banner-option input:checked + .admin-banner-option-body em {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.admin-ranking-list a {
    display: grid;
    grid-template-columns: 34px 56px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 8px;
    color: #101828;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
}

.admin-ranking-list em {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #991b1b;
    background: #fee2e2;
    border-radius: 10px;
    font-style: normal;
    font-weight: 950;
}

.admin-ranking-list img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
}

.admin-ranking-list small {
    color: #667085;
}

.admin-ranking-list b {
    color: #991b1b;
}

.drama-admin-expander summary small,
.user-admin-expander summary small {
    margin-left: 0;
}

.admin-quick-panel {
    grid-column: 1 / -1;
}

.drama-admin-expander summary {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto 28px;
}

.drama-admin-expander summary img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.admin-expander summary span {
    min-width: 0;
}

.admin-expander summary strong,
.admin-expander summary small {
    display: block;
}

.admin-drama-detail {
    display: grid;
    gap: 14px;
    padding: 0 14px 14px;
}

.nested-admin-expander {
    box-shadow: none;
    border-radius: 14px;
}

.nested-admin-expander summary {
    min-height: 54px;
    padding: 12px 14px;
    background: #f8fafc;
}

.nested-admin-body {
    padding: 14px;
    border-top: 1px solid #dbe4f0;
}

.admin-expander .nested-admin-body .form-card {
    margin: 0;
}

.episode-nested-expander .admin-episode-panel {
    border: 0;
    border-top: 1px solid #dbe4f0;
    border-radius: 0;
}

.admin-drama-detail > .form-card,
.user-admin-expander > .form-card {
    margin: 0;
}

.admin-episode-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
}

.user-admin-expander summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 28px;
}

.danger-action {
    color: #991b1b;
    background: #fee2e2;
}

.admin-timeline {
    display: grid;
    gap: 10px;
}

.admin-timeline a {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 66px;
    padding: 8px;
    background: var(--surface-2);
    border-radius: 14px;
}

.admin-timeline img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 12px;
}

.admin-timeline small,
.admin-timeline em {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.admin-insight-panel {
    display: grid;
    gap: 14px;
}

.admin-radial {
    display: grid;
    place-items: center;
    width: 172px;
    height: 172px;
    margin: 6px auto;
    background:
        radial-gradient(circle, var(--surface) 57%, transparent 58%),
        conic-gradient(var(--accent) var(--value), rgba(127, 13, 27, 0.22) 0);
    border-radius: 999px;
    text-align: center;
}

.admin-radial strong {
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
}

.admin-radial span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.admin-mini-grid,
.quick-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-mini-grid span,
.quick-action-grid a {
    min-height: 58px;
    padding: 11px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.admin-mini-grid b {
    display: block;
    color: var(--ink);
    font-size: 20px;
}

.quick-action-grid a {
    display: grid;
    place-items: center;
    color: #991b1b;
    background: #fee2e2;
    text-align: center;
}

.page-admin .admin-insight-panel .admin-radial {
    background:
        radial-gradient(circle, #ffffff 57%, transparent 58%),
        conic-gradient(#9f0712 var(--value), #ead2d5 0);
}

.page-admin .admin-insight-panel .admin-radial strong {
    color: #9f0712;
}

.page-admin .admin-insight-panel .admin-radial span,
.page-admin .admin-mini-grid span {
    color: #667085;
}

.page-admin .admin-mini-grid span {
    background: #f8fafc;
    border-color: #d0d5dd;
}

.page-admin .admin-mini-grid b {
    color: #101828;
}

.admin-plan-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.admin-plan-preview-grid {
    margin-top: 14px;
}

.admin-section-divider {
    height: 1px;
    margin: 20px 0;
    background: #dbe4f0;
    border: 0;
}

.admin-expander {
    overflow: hidden;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.admin-expander summary {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #0f172a;
    list-style: none;
    cursor: pointer;
    font-weight: 900;
}

.admin-expander summary::-webkit-details-marker {
    display: none;
}

.admin-expander summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
}

.admin-expander[open] summary::after {
    content: "-";
}

.admin-expander summary small {
    margin-left: auto;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.admin-expander .form-card {
    margin: 0 14px 14px;
}

.plan-admin-card {
    align-content: start;
}

.single-toggle {
    display: block;
}

.single-toggle label {
    width: 100%;
}

.gateway-card,
.payment-history-panel {
    margin-top: 14px;
}

.gateway-info {
    display: grid;
    gap: 4px;
    padding: 12px;
    color: #101828;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
}

.gateway-info span,
.gateway-info small {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.gateway-info strong {
    overflow-wrap: anywhere;
    font-size: 13px;
}

.empty-state {
    padding: 28px;
    text-align: center;
}

.empty-state.compact {
    padding: 16px;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--muted);
}

.bottom-nav {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    gap: 6px;
    width: min(620px, calc(100% - 20px));
    transform: translateX(-50%);
    padding: 8px;
    background: rgba(15, 15, 15, 0.94);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.bottom-nav a {
    display: grid;
    flex: 1 1 0;
    place-items: center;
    gap: 2px;
    min-height: 56px;
    color: var(--muted);
    border-radius: 13px;
    font-size: 12px;
    font-weight: 850;
}

.bottom-nav .nav-icon {
    width: 21px;
    height: 21px;
    opacity: 0.72;
    filter: brightness(0) saturate(100%) invert(45%) sepia(12%) saturate(691%) hue-rotate(176deg) brightness(91%) contrast(85%);
}

.bottom-nav .coin-nav-icon,
.bottom-nav a.active .coin-nav-icon {
    opacity: 1;
    filter: none;
}

.bottom-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.bottom-nav a.active .nav-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.bottom-nav a.active .coin-nav-icon {
    filter: none;
}

.whatsapp-float {
    position: fixed;
    z-index: 42;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    letter-spacing: 0;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
    transition: transform 160ms ease, filter 160ms ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.44)) saturate(1.06);
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.36);
    outline-offset: 3px;
}

.whatsapp-float img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

@media (max-width: 720px) {
    body:not(.page-admin):not(.page-login):not(.page-register) .whatsapp-float {
        bottom: calc(max(10px, env(safe-area-inset-bottom)) + 76px);
    }
}

.watch-body {
    overflow: hidden;
    background: #000000;
}

.watch-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    color: #ffffff;
    background: #000000;
}

.watch-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.watch-top,
.watch-bottom,
.watch-side,
.watch-play-center {
    position: absolute;
    z-index: 2;
    opacity: 1;
    transition: opacity 180ms ease, transform 180ms ease;
}

.watch-top {
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: max(14px, env(safe-area-inset-top)) 14px 58px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
    pointer-events: none;
}

.watch-top a,
.watch-side a,
.watch-side button,
.watch-side form {
    pointer-events: auto;
}

.watch-top span,
.watch-bottom span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.watch-circle {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    font-size: 28px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.watch-circle .ui-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.watch-circle.next .ui-icon {
    width: 24px;
    height: 24px;
}

.flip-x {
    transform: scaleX(-1);
}

.watch-circle.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: rgba(255, 255, 255, 0.26);
}

.watch-play-center {
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    background: rgba(229, 9, 20, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -50%);
}

.watch-play-center .ui-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.watch-play-center::after {
    content: "";
    position: absolute;
    inset: 18px;
    display: none;
    border: 3px solid rgba(255, 255, 255, 0.36);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: watch-buffer-spin 760ms linear infinite;
}

.watch-screen.is-buffering .watch-play-center {
    opacity: 1 !important;
    pointer-events: none;
}

.watch-screen.is-buffering .watch-play-center .ui-icon {
    opacity: 0;
}

.watch-screen.is-buffering .watch-play-center::after {
    display: block;
}

@keyframes watch-buffer-spin {
    to {
        transform: rotate(360deg);
    }
}

.watch-side {
    top: 50%;
    right: 14px;
    display: grid;
    gap: 12px;
    transform: translateY(-50%);
}

.watch-side button {
    font-size: 18px;
}

.watch-side form {
    margin: 0;
}

.watch-bottom {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 18px max(18px, env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
    pointer-events: none;
}

.watch-progress-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: min(920px, calc(100% - 24px));
    margin: 0 auto;
    pointer-events: auto;
}

.watch-progress-row span {
    min-width: 40px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.watch-progress-row input[type="range"] {
    width: 100%;
    height: 26px;
    margin: 0;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.watch-progress-row input[type="range"]::-webkit-slider-runnable-track {
    height: 5px;
    background: linear-gradient(90deg, #ff1428 var(--watch-progress, 0%), rgba(255, 255, 255, 0.24) var(--watch-progress, 0%));
    border-radius: 999px;
}

.watch-progress-row input[type="range"]::-webkit-slider-thumb {
    width: 17px;
    height: 17px;
    margin-top: -6px;
    appearance: none;
    background: #ff1428;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(255, 20, 40, 0.58);
}

.watch-progress-row input[type="range"]::-moz-range-track {
    height: 5px;
    background: rgba(255, 255, 255, 0.24);
    border-radius: 999px;
}

.watch-progress-row input[type="range"]::-moz-range-progress {
    height: 5px;
    background: #ff1428;
    border-radius: 999px;
}

.watch-progress-row input[type="range"]::-moz-range-thumb {
    width: 17px;
    height: 17px;
    background: #ff1428;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(255, 20, 40, 0.58);
}

.watch-bonus-pill {
    position: absolute;
    z-index: 3;
    top: max(76px, calc(env(safe-area-inset-top) + 64px));
    right: 14px;
    display: grid;
    gap: 2px;
    min-width: 116px;
    padding: 10px 12px;
    color: #111827;
    background: #ffd650;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
    font-weight: 900;
    text-align: center;
}

.watch-bonus-pill span {
    font-size: 10px;
    text-transform: uppercase;
}

.watch-bonus-pill strong {
    font-size: 16px;
}

.watch-trial-overlay {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
}

.watch-trial-overlay[hidden] {
    display: none;
}

.watch-trial-card {
    width: min(440px, 100%);
    padding: 24px;
    color: #ffffff;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.watch-trial-card > span {
    color: #ffd650;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.watch-trial-card h2 {
    margin: 8px 0;
}

.watch-trial-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.76);
}

.watch-trial-card .button-row {
    justify-content: center;
}

.watch-screen.is-playing:not(.controls-visible) .watch-top,
.watch-screen.is-playing:not(.controls-visible) .watch-bottom,
.watch-screen.is-playing:not(.controls-visible) .watch-side,
.watch-screen.is-playing .watch-play-center {
    opacity: 0;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #09090b;
        --surface: #1515159e;
        --surface-2: #202020;
        --ink: #f8fafc;
        --muted: #a1a1aa;
        --line: #2a2a2f;
        color-scheme: dark;
    }

    body {
        background:
            radial-gradient(circle at top left, rgba(229, 9, 20, 0.18), transparent 30rem),
            linear-gradient(180deg, rgb(5 5 5 / 81%), rgba(9, 9, 11, 0.42)),
            url(https://static.vecteezy.com/system/resources/thumbnails/007/120/314/small_2x/galaxy-background-with-falling-star-space-galaxy-illustration-free-vector.jpg) center / cover fixed;
    }

    .topbar,
    .bottom-nav {
        background: rgba(5, 5, 5, 0.9);
    }

    .toolbar-panel,
    .content-section,
    .form-card,
    .admin-tabs,
    .stats-grid article,
    .admin-panel,
    .empty-state,
    .profile-hero,
    .plan-card,
    .user-admin-card {
        background: rgba(21, 21, 21, 0.4);
    }

    .pill-link.ghost,
    .icon-button,
    .btn.soft {
        color: var(--ink);
        background: rgba(255, 255, 255, 0.08);
    }

    .icon-button .ui-icon {
        filter: brightness(0) invert(1);
    }
}

@media (max-width: 900px) {
    .page-admin {
        overflow: auto;
    }

    .page-admin .main-content {
        height: auto;
        padding: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-grid,
    .admin-summary-grid,
    .admin-shell,
    .admin-command-center,
    .admin-overview-grid,
    .auth-page,
    .detail-hero,
    .split-section {
        grid-template-columns: 1fr;
    }

    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-shell {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .admin-workspace {
        overflow: visible;
    }

    .admin-feature-panel {
        grid-row: auto;
    }

    .admin-grid > .pagination {
        grid-column: 1;
    }

    .admin-sidebar {
        grid-template-rows: auto auto;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar {
        gap: 0;
        padding-bottom: 12px;
    }

    .admin-shell.sidebar-collapsed .admin-side-nav,
    .admin-shell.sidebar-collapsed .admin-sidebar-card {
        display: none;
    }

    .admin-shell.sidebar-collapsed .admin-sidebar-toggle {
        margin-top: 0;
    }

    .admin-side-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-sidebar-card {
        display: none;
    }

    .detail-poster img {
        width: min(190px, 48vw);
    }
}

@media (max-width: 620px) {
    .brand-logo {
        width: 174px;
        height: 48px;
    }

    .main-content {
        width: min(100% - 20px, 1180px);
        padding-top: 10px;
    }

    .hero-drama {
        min-height: 390px;
    }

    .hero-slider,
    .hero-slider .hero-drama {
        min-height: 390px;
    }

    .hero-drama::before,
    .detail-hero::before {
        background:
            linear-gradient(0deg, rgba(11, 18, 32, 0.95) 0%, rgba(11, 18, 32, 0.72) 48%, rgba(11, 18, 32, 0.18) 100%),
            var(--hero-image) center / cover;
    }

    .category-modal {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
    }

    .category-modal-panel {
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .category-modal-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .detail-copy {
        align-self: end;
    }

    .search-form,
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .drama-grid {
        grid-template-columns: 1fr;
    }

    .episode-card {
        grid-template-columns: auto 1fr;
    }

    .episode-card .btn,
    .episode-card form {
        grid-column: 1 / -1;
        width: 100%;
    }

    .episode-card form .btn {
        width: 100%;
    }

    .mission-card {
        grid-template-columns: 1fr;
    }

    .mission-reward {
        justify-content: space-between;
    }

    .profile-hero,
    .wallet-card,
    .admin-hero,
    .admin-command-center {
        grid-template-columns: 1fr;
    }

    .profile-hero {
        justify-items: center;
        text-align: center;
    }

    .profile-avatar {
        width: 130px;
        height: 150px;
    }

    .profile-hero .meta-row {
        justify-content: center;
    }

    .profile-logout-form {
        justify-self: center;
    }

    .profile-logout-button {
        min-width: 120px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-command-center {
        padding: 20px;
        border-radius: 18px;
    }

    .admin-command-copy h1 {
        font-size: 38px;
    }

    .admin-command-card {
        min-height: 210px;
    }

    .admin-sidebar,
    .admin-workspace {
        padding: 16px;
    }

    .admin-workspace-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-side-nav {
        grid-template-columns: 1fr 1fr;
    }

    .admin-kpi-grid,
    .admin-mini-grid,
    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .admin-featured-drama {
        min-height: 310px;
    }

    .admin-timeline a {
        grid-template-columns: 48px 1fr;
    }

    .admin-timeline em {
        grid-column: 2;
    }

    .admin-list article,
    .payment-table article {
        grid-template-columns: 1fr;
    }

    .episode-admin-list article {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .pagination {
        justify-content: flex-start;
    }

    .pagination span {
        flex-basis: 100%;
        margin-right: 0;
    }

    .checkin-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bottom-nav {
        width: calc(100% - 14px);
        border-radius: 16px;
    }

    .bottom-nav a {
        min-height: 50px;
        font-size: 11px;
    }
}

.admin-expander summary::after {
    content: "";
    display: block;
    place-items: initial;
    width: 28px;
    height: 28px;
    color: transparent;
    background: transparent url("../icons/down-arrow.png") center / 18px 18px no-repeat;
    border-radius: 0;
    opacity: 0.5;
    font-size: 0;
    line-height: 1;
    transition: transform 160ms ease, opacity 160ms ease;
}

.admin-expander[open] summary::after {
    content: "";
    transform: rotate(180deg);
}

.plan-admin-card > form {
    display: grid;
    gap: 12px;
}

.compact-title {
    margin: 0;
}

@media (max-width: 720px) {
    .welcome-copy {
        display: none;
    }

    .notification-menu-panel {
        right: max(14px, env(safe-area-inset-right));
    }
}

.notification-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.search-submit {
    width: 42px;
    min-width: 42px;
    padding: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: rgba(255, 255, 255, 0.1);
}

.search-icon {
    width: 22px;
    height: 22px;
}

.search-icon path {
    fill: currentColor;
}

.hero-play-button {
    min-width: 54px;
    padding-inline: 14px;
}

.cta-play-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.bottom-nav {
    width: min(680px, calc(100% - 20px));
}

.bottom-nav a {
    font-size: 11px;
}

.bottom-nav a.vip-active.active {
    color: #3a2a00;
    background: linear-gradient(135deg, #ffe08a, #f5b642 48%, #b7791f);
    box-shadow: 0 14px 28px rgba(245, 182, 66, 0.24);
}

.bottom-nav a.vip-active.active .nav-icon {
    filter: brightness(0) invert(1);
}

.bottom-nav .vip-nav-icon {
    filter: none;
}

.bottom-nav a.vip-active.active .vip-nav-icon {
    filter: brightness(0) invert(1);
}

.admin-side-nav a[href*="tab=plans"].active {
    color: #3a2a00;
    background: linear-gradient(135deg, #ffe08a, #f5b642 48%, #b7791f);
    box-shadow: 0 14px 28px rgba(245, 182, 66, 0.2);
}

.admin-side-nav a[href*="tab=plans"].active .admin-nav-icon {
    filter: none;
}

.admin-notification-accordion {
    display: grid;
    gap: 10px;
}

.notification-admin-expander summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
}

.notification-admin-expander .admin-expander-body {
    margin: 0 14px 14px;
    padding: 14px;
    color: #526173;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
}

.notification-admin-expander .admin-expander-body p {
    margin: 0;
}

.watch-embed {
    border: 0;
}

.watch-ad-overlay {
    position: absolute;
    z-index: 8;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
    transition: opacity 200ms ease, visibility 200ms ease;
}

.watch-ad-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.watch-ad-card {
    display: grid;
    gap: 14px;
    width: min(640px, 100%);
    padding: 16px;
    color: #ffffff;
    background: rgba(15, 15, 17, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.watch-ad-card > span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.watch-ad-media {
    overflow: hidden;
    min-height: 180px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.watch-ad-media img,
.watch-ad-media video {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.watch-ad-card .btn {
    justify-self: end;
}

.home-mobile-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px 32px;
    gap: 4px;
    align-items: center;
    margin-top: 2px;
}

.home-search-form {
    display: block;
}

.home-search-field {
    position: relative;
    display: block;
}

.home-search-field input {
    min-height: 48px;
    padding-right: 48px;
    color: #111827;
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
}

.home-search-field input::placeholder {
    color: rgba(17, 24, 39, 0.58);
}

.home-search-submit {
    position: absolute;
    top: 50%;
    right: 4px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #111827;
    background: transparent;
    border: 0;
    transform: translateY(-50%);
}

.home-search-submit .search-icon {
    width: 23px;
    height: 23px;
    opacity: 0.72;
    filter: none;
}

.home-icon-action {
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.home-icon-action .home-action-icon {
    display: block;
    object-fit: contain;
    filter: none;
}

.home-icon-action .home-plus-icon {
    width: 32px;
    height: 32px;
}

.home-icon-action .home-bell-icon {
    width: 32px;
    height: 32px;
}

.install-bonus-spotlight {
    isolation: isolate;
    z-index: 80;
}

.install-bonus-spotlight::before {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: -1;
    background: rgba(255, 214, 80, 0.26);
    border: 1px solid rgba(255, 214, 80, 0.72);
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(255, 214, 80, 0.46);
    animation: install-bonus-pulse 1.7s ease-out infinite;
}

.install-bonus-callout {
    position: absolute;
    z-index: 90;
    top: calc(100% + 10px);
    right: -4px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: start;
    width: max-content;
    max-width: min(240px, calc(100vw - 28px));
    padding: 10px 10px 10px 12px;
    color: #111827;
    background: rgb(255, 214, 80);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    opacity: 1;
    pointer-events: auto;
}

.install-bonus-close {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: #111827;
    background: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.install-bonus-callout::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: inherit;
    transform: rotate(45deg);
}

@keyframes install-bonus-pulse {
    70% {
        box-shadow: 0 0 0 12px rgba(255, 214, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 214, 80, 0);
    }
}

.install-tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: grid;
    place-items: center;
    padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 72% 16%, rgba(255, 20, 40, 0.25), transparent 28%),
        rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
}

.install-tutorial-card {
    position: relative;
    display: grid;
    gap: 14px;
    width: min(420px, 100%);
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(180deg, #151515 0%, #070707 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
    text-align: center;
}

.install-tutorial-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
}

.install-tutorial-badge {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 2px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff1428, #b70716);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(255, 20, 40, 0.35);
    font-size: 34px;
    font-weight: 600;
}

.install-tutorial-card h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.12;
}

.install-tutorial-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.install-tutorial-card ol {
    display: grid;
    gap: 9px;
    margin: 2px 0 4px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.install-tutorial-card li {
    position: relative;
    padding: 10px 12px 10px 42px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.install-tutorial-card li::before {
    position: absolute;
    left: 12px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #ffffff;
    background: #ff1428;
    border-radius: 999px;
    content: counter(list-item);
    font-size: 11px;
    font-weight: 800;
    transform: translateY(-50%);
}

.home-icon-action .notification-unseen-count {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 18px;
    min-height: 18px;
    padding: 2px 5px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.2;
}

.home-notification-menu summary {
    list-style: none;
}

.home-notification-menu summary::-webkit-details-marker {
    display: none;
}

.home-discovery-tabs {
    display: flex;
    gap: 30px;
    align-items: center;
    overflow-x: auto;
    margin: 14px 0 8px;
    padding-bottom: 6px;
    color: rgba(255, 255, 255, 0.56);
    scrollbar-width: none;
}

.home-discovery-tabs::-webkit-scrollbar {
    display: none;
}

.home-discovery-tabs a {
    position: relative;
    flex: 0 0 auto;
    padding-bottom: 8px;
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
}

.home-discovery-tabs a.active {
    color: #ffffff;
    font-weight: 700;
}

.home-discovery-tabs a.active::after {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 48px;
    height: 4px;
    content: "";
    background: #ffffff;
    border-radius: 999px;
    transform: translateX(-50%);
}

.page-home .chip {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.74);
}

.page-home .chip.active {
    background: var(--primary);
    border-color: var(--primary);
}

.home-category-panel {
    margin-top: 18px;
    width: 100%;
}

.home-category-board {
    display: flex;
    width: 100%;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.home-category-row {
    display: contents;
}

.home-category-board::-webkit-scrollbar,
.home-category-row::-webkit-scrollbar {
    display: none;
}

.home-category-row .chip {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 5px 12px;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border-color: transparent;
    font-size: 15px;
    font-weight: 500;
}

.home-category-row .chip.active {
    color: #ffffff;
    background: red;
}

.desktop-discover-slider {
    min-height: 310px;
    margin-top: 14px;
    border-radius: 16px;
}

.desktop-discover-slider .hero-drama {
    min-height: 310px;
    padding: 24px;
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.desktop-discover-slider .hero-drama::before {
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.86) 0%, rgba(5, 5, 5, 0.58) 48%, rgba(5, 5, 5, 0.16) 100%),
        var(--hero-image) center / cover;
}

.desktop-discover-slider .hero-copy {
    align-self: end;
}

.desktop-discover-slider .hero-copy h1 {
    max-width: 640px;
    font-size: clamp(30px, 4.4vw, 48px);
}

.desktop-discover-slider .hero-copy p {
    display: -webkit-box;
    overflow: hidden;
    max-width: 600px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 760px) {
    .home-category-board {
        display: grid;
        gap: 0;
        overflow: hidden;
    }

    .home-category-row {
        display: flex;
        gap: 0;
        align-items: center;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .desktop-discover-slider {
        display: none;
    }
}

.page-home .content-section {
    margin-top: 26px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.movie-detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 22px;
    align-items: end;
    min-height: 430px;
    overflow: hidden;
    padding: 22px;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.movie-detail-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.76) 100%, rgba(0, 0, 0, 0.18) 100%),
        var(--hero-poster) center / cover;
}

.movie-detail-poster,
.movie-detail-copy {
    position: relative;
    z-index: 1;
}

.movie-detail-poster {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.movie-detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.movie-detail-copy {
    max-width: 680px;
    color: #ffffff;
}

.movie-detail-copy h1 {
    margin: 10px 0;
    font-size: clamp(32px, 7vw, 58px);
    line-height: 1;
}

.movie-detail-copy p,
.movie-full-panel p {
    color: rgba(255, 255, 255, 0.78);
}

.movie-detail-actions form {
    margin: 0;
}

.movie-play-button {
    min-height: 46px;
    padding-inline: 18px;
}

.movie-play-button .ui-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.movie-play-button.disabled {
    opacity: 0.74;
}

.movie-full-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.movie-full-panel h2,
.movie-full-panel p {
    margin: 8px 0 0;
}

.field-hint {
    display: block;
    color: #667085;
    font-size: 12px;
    font-weight: 750;
}

.upload-status {
    display: grid;
    gap: 8px;
    padding: 12px;
    color: #101828;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
}

.upload-status[hidden] {
    display: none;
}

.upload-status > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.upload-status strong {
    color: #991b1b;
}

.upload-status span,
.upload-status p {
    margin: 0;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.upload-status progress {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    accent-color: var(--primary);
}

.bottom-nav {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    transform: none;
    gap: 2px;
    padding: 8px max(8px, env(safe-area-inset-left)) max(14px, calc(env(safe-area-inset-bottom) + 10px)) max(8px, env(safe-area-inset-right));
    background: rgba(0, 0, 0, 0.96);
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: none;
}

.bottom-nav a {
    min-height: 58px;
    padding: 4px 0 6px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    border-radius: 0;
    line-height: 1.15;
}

.bottom-nav a.active {
    color: #ffffff;
    background: transparent;
}

.bottom-nav a.active .nav-icon,
.bottom-nav .nav-icon {
    filter: brightness(0) invert(1);
}

.bottom-nav .nav-icon {
    opacity: 0.72;
}

.bottom-nav a.active .nav-icon {
    opacity: 1;
}

@media (max-width: 720px) {
    .main-content {
        width: min(100% - 18px, 1180px);
        padding-top: 10px;
        padding-bottom: 112px;
    }

    .home-discovery-tabs {
        gap: 24px;
    }

    .home-discovery-tabs a {
        font-size: 20px;
    }

    .page-home .hero-slider,
    .page-home .hero-slider .hero-drama {
        min-height: 0;
    }

    .page-home .hero-slider .hero-drama {
        aspect-ratio: 2 / 3;
        padding: 14px;
        border-radius: 12px;
    }

    .page-home .hero-drama::before {
        background:
            linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 44%, rgba(0, 0, 0, 0.08) 100%),
            var(--hero-poster) center / cover;
    }

    .page-home .hero-copy {
        align-self: end;
    }

    .page-home .hero-copy h1 {
        font-size: 28px;
    }

    .page-home .hero-copy p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 14px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .page-home .hero-copy .meta-row {
        margin: 8px 0;
    }

    .page-home .hero-slider-controls {
        right: 12px;
        bottom: 12px;
    }

    .page-home .drama-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .page-home .drama-card {
        border-radius: 10px;
    }

    .page-home .discover-category-rotator {
        padding: 12px;
        border-radius: 10px;
    }

    .page-home .discover-category-panel {
        gap: 10px;
    }

    .page-home .discover-category-head strong {
        font-size: 20px;
    }

    .page-home .discover-category-head span {
        font-size: 31px;
    }

    .page-home .discover-category-list {
        gap: 8px;
    }

    .page-home .discover-category-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px;
        min-height: 58px;
        padding: 7px;
    }

    .page-home .discover-category-item img {
        width: 48px;
        height: 48px;
    }

    .page-home .discover-category-item span {
        font-size: 13px;
    }

    .page-home .vip-crown {
        top: 7px;
        left: 7px;
        width: 28px;
        height: 28px;
        font-size: 23px;
    }

    .page-home .drama-card .thumb {
        height: auto;
        aspect-ratio: 2 / 3;
    }

    .page-home .drama-card-body {
        padding: 9px;
    }

    .page-home .drama-card h3 {
        display: -webkit-box;
        overflow: hidden;
        margin: 3px 0 0;
        font-size: 14px;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .page-home .drama-card p {
        display: none;
    }

    .page-home .mini-meta {
        font-size: 11px;
    }

    .movie-detail-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 14px;
        border-radius: 12px;
    }

    .movie-detail-hero::before {
        background:
            linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.76) 100%, rgba(0, 0, 0, 0.18) 100%),
            var(--hero-poster) center / cover;
    }

    .movie-detail-poster {
        width: min(56vw, 210px);
        margin: 0 auto;
    }

    .movie-detail-copy h1 {
        font-size: 30px;
    }

    .movie-detail-copy p {
        font-size: 14px;
    }

    .movie-detail-actions,
    .movie-full-panel {
        grid-template-columns: 1fr;
    }

    .movie-play-button {
        width: 100%;
    }

    .bottom-nav {
        width: 100%;
        border-radius: 0;
    }
}

@media (max-width: 420px) {
    .home-mobile-head {
        grid-template-columns: minmax(0, 1fr) 32px 32px;
        gap: 4px;
    }

    .home-search-field input {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .home-search-field input {
        width: 100%;
        min-width: 0;
    }

    .home-search-submit {
        width: 38px;
        height: 38px;
    }
}

/* BoraDrama home brand header */
.home-mobile-head {
    grid-template-columns: auto minmax(0, 1fr) 32px 32px;
    gap: 6px;
}

.home-brand-link {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.home-brand-logo {
    display: block;
    width: clamp(118px, 34vw, 156px);
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

.home-search-form {
    min-width: 0;
}

.home-search-field input {
    min-height: 44px;
    padding-left: 12px;
    padding-right: 42px;
}

.home-search-submit {
    width: 36px;
    height: 36px;
}

@media (max-width: 380px) {
    .home-mobile-head {
        grid-template-columns: auto minmax(0, 1fr) 30px 30px;
        gap: 4px;
    }

    .home-brand-logo {
        width: 104px;
        height: 36px;
    }

    .home-search-field input {
        min-height: 42px;
        padding-left: 10px;
        padding-right: 36px;
        font-size: 13px;
    }

    .home-search-submit {
        width: 32px;
        height: 32px;
    }
}
/* End BoraDrama home brand header */

/* BoraDrama subscription proof */
.subscription-proof-toast {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    left: 50%;
    z-index: 1200;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    width: min(440px, calc(100vw - 18px));
    padding: 8px 12px 8px 8px;
    color: #ffffff;
    background: rgba(11, 11, 13, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -18px) scale(0.98);
    transition: opacity 220ms ease, transform 220ms ease;
    backdrop-filter: blur(14px);
}

.subscription-proof-toast.show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.subscription-proof-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff1428, #b50818);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 8px 18px rgba(255, 20, 40, 0.28);
}

.subscription-proof-copy {
    min-width: 0;
    overflow: visible;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.22;
    text-overflow: clip;
    white-space: normal;
}

.page-admin .subscription-proof-toast {
    display: none;
}

@media (max-width: 480px) {
    .subscription-proof-toast {
        top: max(10px, env(safe-area-inset-top));
        width: min(370px, calc(100vw - 12px));
        padding: 7px 10px 7px 7px;
        gap: 8px;
    }

    .subscription-proof-icon {
        width: 31px;
        height: 31px;
        font-size: 9px;
    }

    .subscription-proof-copy {
        font-size: 11px;
        line-height: 1.2;
    }
}
/* End BoraDrama subscription proof */

/* BoraDrama requested home UI */
.subscription-proof-toast {
    top: auto;
    bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px));
    width: max-content;
    max-width: calc(100vw - 18px);
    transform: translate(-50%, 18px) scale(0.98);
}

.subscription-proof-toast.show {
    transform: translate(-50%, 0) scale(1);
}

.subscription-proof-copy {
    width: max-content;
    max-width: calc(100vw - 78px);
}

.hero-action-link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.hero-play-glyph {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: #e50914;
    background: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.mobile-vip-banner-callout {
    display: none;
}

.bottom-nav {
    overflow: visible;
}

.bottom-nav a.vip-active {
    position: relative;
    z-index: 3;
    overflow: visible;
    color: #ffffff;
    transform: translateY(-9px);
}

.bottom-nav a.vip-active,
.bottom-nav a.vip-active.active {
    background: transparent;
    box-shadow: none;
}

.bottom-nav a.vip-active::before {
    width: 54px;
    height: 54px;
    margin-top: -22px;
    padding: 14px;
    opacity: 1;
    background: linear-gradient(135deg, #ff1428, #b50818);
    border: 4px solid rgba(0, 0, 0, 0.96);
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(229, 9, 20, 0.36);
    filter: brightness(0) invert(1);
    box-sizing: border-box;
}

.bottom-nav a.vip-active.active {
    color: #ff4050;
}

@media (max-width: 760px) {
    .page-home .desktop-discover-slider {
        display: grid;
        min-height: 0;
        margin-top: 14px;
        overflow: visible;
        border-radius: 16px;
    }

    .page-home .desktop-discover-slider .hero-drama {
        min-height: 430px;
        aspect-ratio: 9 / 14;
        padding: 18px 16px 90px;
        border: 0;
        border-radius: 16px;
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
    }

    .page-home .desktop-discover-slider .hero-drama::before {
        background:
            linear-gradient(0deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 22%, rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.04) 100%),
            var(--hero-poster) center top / cover;
    }

    .page-home .desktop-discover-slider .hero-copy {
        align-self: end;
        width: 100%;
        max-width: 100%;
    }

    .page-home .desktop-discover-slider .eyebrow {
        min-height: 24px;
        padding: 5px 9px;
        font-size: 11px;
    }

    .page-home .desktop-discover-slider .hero-copy h1 {
        max-width: 92%;
        margin-top: 8px;
        font-size: 30px;
        line-height: 0.98;
    }

    .page-home .desktop-discover-slider .hero-copy p {
        max-width: 92%;
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .page-home .desktop-discover-slider .hero-slider-controls {
        display: none;
    }

    .mobile-vip-banner-callout {
        position: relative;
        z-index: 5;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        width: min(86%, 420px);
        margin: -58px auto 20px;
        padding: 12px 14px;
        color: #ffffff;
        background: linear-gradient(135deg, #ff1428, #cf0a1a);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 14px;
        box-shadow: 0 18px 34px rgba(229, 9, 20, 0.28);
    }

    .mobile-vip-banner-icon {
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
        border: 1px solid rgba(255, 255, 255, 0.34);
        border-radius: 999px;
        font-size: 9px;
        font-weight: 900;
    }

    .mobile-vip-banner-copy {
        display: grid;
        gap: 2px;
        min-width: 0;
    }

    .mobile-vip-banner-copy strong,
    .mobile-vip-banner-copy small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-vip-banner-copy strong {
        font-size: 11px;
        line-height: 1.15;
    }

    .mobile-vip-banner-copy small {
        color: rgba(255, 255, 255, 0.86);
        font-size: 10px;
        font-weight: 700;
    }

    .mobile-vip-banner-button {
        padding: 8px 10px;
        color: #e50914;
        background: #ffffff;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .page-home .desktop-discover-slider .hero-drama {
        min-height: 400px;
        padding-bottom: 86px;
    }

    .mobile-vip-banner-callout {
        width: min(90%, 340px);
        gap: 8px;
        padding: 10px 11px;
    }

    .mobile-vip-banner-button {
        padding-inline: 8px;
        font-size: 9px;
    }
}
/* End BoraDrama requested home UI */

/* BoraDrama bottom VIP/card polish */
@media (max-width: 760px) {
    .mobile-vip-banner-callout {
        align-items: center;
    }

    .mobile-vip-banner-copy strong,
    .mobile-vip-banner-copy small {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .mobile-vip-banner-copy strong {
        display: block;
        max-width: 100%;
    }
}
/* End BoraDrama bottom VIP/card polish */

/* BoraDrama VIP red circle fix */
.bottom-nav a.vip-active::before {
    position: absolute;
    top: -22px;
    left: 50%;
    z-index: 0;
    width: 56px;
    height: 56px;
    content: "";
    background: linear-gradient(135deg, #ff1428, #b50818);
    border: 4px solid rgba(0, 0, 0, 0.96);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(229, 9, 20, 0.36);
    transform: translateX(-50%);
}

.bottom-nav a.vip-active::before {
    position: relative;
    z-index: 1;
    width: 25px;
    height: 25px;
    margin-top: -16px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    filter: brightness(0) invert(1);
}

.bottom-nav a.vip-active {
    gap: 4px;
}
/* End BoraDrama VIP red circle fix */

/* BoraDrama round 2 tweaks */
.hero-action-link {
    gap: 8px;
}

.hero-play-img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.hero-play-glyph {
    display: none;
}

.subscription-proof-toast {
    bottom: max(124px, calc(env(safe-area-inset-bottom) + 124px));
}

.bottom-nav a.vip-active::before {
    top: -24px;
    width: 60px;
    height: 60px;
    border: 0;
}

.bottom-nav a.vip-active::before {
    margin-top: -14px;
}

.bottom-nav a.vip-active .bottom-nav-label {
    display: block;
    margin-top: 14px;
}

@media (max-width: 720px) {
    .main-content {
        padding-bottom: 174px;
    }
}

.continue-card {
    overflow: hidden;
}

.continue-play-indicator {
    position: absolute;
    top: 50%;
    left: 51px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: rgba(229, 9, 20, 0.92);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
}

.continue-play-indicator img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.profile-logout-button {
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: none;
}

.profile-logout-button:hover,
.profile-logout-button:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.plan-card.premium.best-choice {
    position: relative;
    border-color: rgba(229, 9, 20, 0.72);
    box-shadow: 0 18px 44px rgba(229, 9, 20, 0.2), var(--shadow);
}

.plan-choice-badge {
    position: absolute;
    top: -14px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff1428, #b50818);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(229, 9, 20, 0.28);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}
/* End BoraDrama round 2 tweaks */


/* BoraDrama round 3 tweaks */
.play-action-icon,
.watch-now-button .hero-play-img {
    flex: 0 0 auto;
}

.watch-now-button,
.movie-play-button {
    gap: 8px;
}

.mobile-vip-banner-callout {
    grid-template-columns: minmax(0, 1fr) auto;
}

.mobile-vip-banner-copy strong,
.mobile-vip-banner-copy small {
    white-space: normal;
}

.profile-avatar-form {
    margin: 0;
}

.profile-avatar-upload {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.profile-avatar-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.profile-avatar-camera {
    position: absolute;
    left: 9px;
    bottom: 8px;
    left: 8px;
    display: grid;
    place-items: center;
    min-height: 26px;
    padding: 5px 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease;
    transform: translateY(4px);
}

.profile-avatar-upload:hover .profile-avatar-camera,
.profile-avatar-upload:focus-within .profile-avatar-camera,
.profile-avatar-form.is-uploading .profile-avatar-camera {
    opacity: 1;
    transform: translateY(0);
}

.profile-avatar-form.is-uploading .profile-avatar-camera {
    color: transparent;
}

.profile-avatar-form.is-uploading .profile-avatar-camera::after {
    content: "Salvando...";
    position: absolute;
    color: #ffffff;
}

.continue-play-indicator {
    left: 52px;
    line-height: 0;
}

.continue-play-indicator img {
    width: 17px;
    height: 17px;
    transform: translateX(1px);
}

.watch-fullscreen-button .watch-fullscreen-icon {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.watch-body .subscription-proof-toast,
.watch-screen .subscription-proof-toast {
    display: none;
}

@media (hover: none) {
    .profile-avatar-camera {
        opacity: 1;
        transform: translateY(0);
    }
}
/* End BoraDrama round 3 tweaks */


/* BoraDrama continue player icon */
.continue-play-indicator {
    position: absolute;
    top: 50%;
    left: 51px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    line-height: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translate(-50%, -50%);
}

.continue-play-indicator img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
    transform: none;
}
/* End BoraDrama continue player icon */


/* BoraDrama cleanup and ranking numbers */
.profile-avatar-camera,
.demo-credentials,
.watch-bonus-pill {
    display: none !important;
}

.drama-card.ranking-card {
    overflow: hidden;
}

.drama-card.ranking-card .thumb {
    position: relative;
    overflow: hidden;
}

.drama-card.ranking-card .thumb img {
    position: relative;
    z-index: 1;
}

.ranking-number {
    position: absolute;
    left: 9px;
    right: auto;
    bottom: 8px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.06);
    -webkit-text-stroke: 1.7px rgba(255, 20, 40, 1);
    font-size: clamp(58px, 14vw, 92px);
    font-weight: 950;
    line-height: 0.82;
    letter-spacing: -0.08em;
    opacity: 0.82;
    pointer-events: none;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.drama-card.ranking-card .vip-crown {
    z-index: 3;
}

@media (max-width: 720px) {
    .ranking-number {
        left: 8px;
        right: auto;
        bottom: 7px;
        font-size: 64px;
    }
}
/* End BoraDrama cleanup and ranking numbers */

/* BoraDrama admin sync */
.page-admin form[action*="admin_delete_drama"] .danger-action,
.page-admin form[action*="admin_delete_drama"] button[type="submit"] {
    color: #050505 !important;
    background: #fff !important;
    border: 1px solid #050505 !important;
    box-shadow: none !important;
}

.page-admin form[action*="admin_delete_drama"] .danger-action:hover,
.page-admin form[action*="admin_delete_drama"] button[type="submit"]:hover {
    color: #000 !important;
    background: #f3f4f6 !important;
    border-color: #000 !important;
}
/* End BoraDrama admin sync */

/* BoraDrama vivid red, black shell, dense cards and nav */
:root {
    --bg: #000000;
    --surface: #101010;
    --surface-2: #171717;
    --line: #242424;
    --primary: #ff1428;
    --primary-2: #cf0a1a;
    --accent: #b50818;
    --danger: #ff1428;
}

html,
body {
    background: #000000 !important;
}

body {
    background-image: none !important;
}

.brand-mark,
.avatar-link,
.profile-avatar,
.btn.primary,
.page-home .chip.active,
.home-category-row .chip.active,
.search-submit,
.hero-action-link,
.watch-now-button,
.movie-play-button,
.plan-choice-badge,
.plan-card .btn.primary,
.mobile-vip-banner-callout,
.bottom-nav a.vip-active::before {
    background: linear-gradient(135deg, #ff1428, #cf0a1a) !important;
}

.badge,
.eyebrow,
.notification-unseen-count {
    background: #ff1428 !important;
}

.discover-category-rotator {
    background:
        linear-gradient(135deg, #ff1428 0%, #cf0a1a 54%, #980514 100%) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 16px 34px rgba(255, 20, 40, 0.22);
}

.discover-category-item {
    background: rgba(0, 0, 0, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

.page-home .drama-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.page-home .drama-card {
    border-radius: 10px;
}

.page-home .drama-card-body {
    padding: 8px 6px 9px;
}

.page-home .drama-card h3 {
    display: -webkit-box;
    min-height: 34px;
    margin: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-home .drama-card .mini-meta,
.page-home .drama-card p {
    display: none !important;
}

.page-home .discover-category-rotator {
    min-height: auto;
    padding: 10px;
}

.page-home .discover-category-head strong {
    font-size: 15px;
    line-height: 1.08;
}

.page-home .discover-category-head span {
    font-size: 24px;
}

.page-home .discover-category-list {
    gap: 6px;
}

.page-home .discover-category-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 7px;
    min-height: 44px;
    padding: 5px;
}

.page-home .discover-category-item img {
    width: 34px;
    height: 34px;
}

.page-home .discover-category-item span {
    font-size: 12px;
    line-height: 1.14;
}

.bottom-nav {
    background: #000000 !important;
    gap: 0 !important;
    padding-top: 6px !important;
}

.bottom-nav a {
    min-width: 0;
    min-height: 50px !important;
    padding: 3px 0 5px !important;
    font-size: 10px !important;
    font-weight: 800;
}

.bottom-nav .nav-icon {
    width: 18px !important;
    height: 18px !important;
}

.bottom-nav svg.nav-icon {
    color: currentColor;
    opacity: 0.72;
    filter: none !important;
}

.bottom-nav svg.nav-icon path {
    fill: currentColor;
}

.bottom-nav a.active svg.nav-icon {
    opacity: 1;
}

.bottom-nav a.vip-active {
    transform: translateY(-7px) !important;
}

.bottom-nav a.vip-active::before {
    top: -18px !important;
    width: 52px !important;
    height: 52px !important;
    box-shadow: 0 12px 26px rgba(255, 20, 40, 0.34) !important;
}

.bottom-nav a.vip-active::before {
    width: 22px !important;
    height: 22px !important;
    margin-top: -10px !important;
}

.bottom-nav a.vip-active .bottom-nav-label {
    margin-top: 11px !important;
}

.mobile-vip-banner-button {
    color: #ff1428 !important;
}

@media (max-width: 760px) {
    .page-home .drama-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .page-home .drama-card {
        border-radius: 8px;
    }

    .page-home .drama-card-body {
        padding: 6px 4px 7px;
    }

    .page-home .drama-card h3 {
        min-height: 30px;
        font-size: 11px;
        line-height: 1.16;
    }

    .page-home .discover-category-rotator {
        padding: 8px;
    }

    .page-home .discover-category-head strong {
        font-size: 13px;
    }

    .page-home .discover-category-item {
        grid-template-columns: 28px minmax(0, 1fr);
        min-height: 36px;
        padding: 4px;
    }

    .page-home .discover-category-item img {
        width: 28px;
        height: 28px;
    }

    .page-home .discover-category-item span {
        font-size: 10px;
    }

    .main-content {
        padding-bottom: 156px;
    }
}


.bottom-nav a.vip-active.active,
.home-category-row .chip.active,
.page-home .chip.active,
.star-favorite-button.active,
.favorite-button.active {
    color: #ff1428 !important;
}

.ranking-number {
    -webkit-text-stroke-color: #ff1428 !important;
}
/* End BoraDrama vivid red, black shell, dense cards and nav */

/* BoraDrama charset/search/mobile refinements */
.home-search-submit {
    color: #ffffff !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.home-search-submit .search-icon,
.home-search-submit svg {
    color: #ffffff !important;
}

.page-home .chip,
.home-category-row .chip {
    border-radius: 8px !important;
}

.page-home .chip.active,
.home-category-row .chip.active {
    color: #ffffff !important;
}

.bottom-nav a.vip-active::before {
    top: -24px !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #ff1428, #cf0a1a) !important;
    border: 0 !important;
    box-shadow: 0 14px 30px rgba(255, 20, 40, 0.36) !important;
}

.bottom-nav a.vip-active .vip-nav-icon,
.bottom-nav a.vip-active.active .vip-nav-icon {
    width: 25px !important;
    height: 25px !important;
    margin-top: -14px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: brightness(0) invert(1) !important;
}

.bottom-nav a.vip-active .bottom-nav-label {
    margin-top: 14px !important;
}

@media (max-width: 760px) {
    .page-home .discover-category-rotator {
        grid-column: span 2;
    }
}
/* End BoraDrama charset/search/mobile refinements */

/* BoraDrama restore old bottom menu with extra icons */
.bottom-nav {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    display: flex !important;
    gap: 2px !important;
    overflow: visible !important;
    padding: 8px max(8px, env(safe-area-inset-left)) max(14px, calc(env(safe-area-inset-bottom) + 10px)) max(8px, env(safe-area-inset-right)) !important;
    background: rgba(0, 0, 0, 0.96) !important;
    border-width: 1px 0 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.bottom-nav a {
    position: relative;
    display: grid !important;
    flex: 1 1 0 !important;
    place-items: center !important;
    gap: 2px !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 4px 0 6px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    box-shadow: none !important;
}

.bottom-nav a.active {
    color: #ffffff !important;
    background: transparent !important;
}

.bottom-nav .nav-icon {
    width: 21px !important;
    height: 21px !important;
    opacity: 0.72 !important;
    filter: brightness(0) invert(1) !important;
}

.bottom-nav a.active .nav-icon {
    opacity: 1 !important;
}

.bottom-nav svg.nav-icon {
    color: currentColor !important;
    filter: none !important;
}

.bottom-nav svg.nav-icon path {
    fill: currentColor !important;
}

.bottom-nav a.vip-active {
    position: relative !important;
    z-index: 3 !important;
    overflow: visible !important;
    gap: 4px !important;
    color: #ffffff !important;
    transform: translateY(-9px) !important;
}

.bottom-nav a.vip-active,
.bottom-nav a.vip-active.active {
    background: transparent !important;
    box-shadow: none !important;
}

.bottom-nav a.vip-active::before {
    position: absolute !important;
    top: -24px !important;
    left: 50% !important;
    z-index: 0 !important;
    width: 60px !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    content: "" !important;
    background: linear-gradient(135deg, #ff1428, #b50818) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 30px rgba(255, 20, 40, 0.36) !important;
    filter: none !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
}

.bottom-nav a.vip-active .vip-nav-icon,
.bottom-nav a.vip-active.active .vip-nav-icon {
    position: relative !important;
    z-index: 1 !important;
    width: 25px !important;
    height: 25px !important;
    margin-top: -14px !important;
    padding: 0 !important;
    opacity: 1 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: brightness(0) invert(1) !important;
}

.bottom-nav a.vip-active .bottom-nav-label {
    display: block !important;
    margin-top: 14px !important;
}

@media (max-width: 720px) {
    .main-content {
        padding-bottom: 174px !important;
    }
}
/* End BoraDrama restore old bottom menu with extra icons */


/* BoraDrama mobile search toggle */
.home-search-submit,
.home-search-submit .search-icon,
.home-search-submit svg {
    color: #9ca3af !important;
}

.home-search-submit .search-icon,
.home-search-submit svg {
    opacity: 0.92 !important;
    filter: none !important;
}

.home-search-submit:hover,
.home-search-submit:focus-visible {
    color: #6b7280 !important;
    background: transparent !important;
}

@media (max-width: 760px) {
    .home-mobile-head {
        grid-template-columns: auto 44px 32px 32px !important;
    }

    .home-mobile-head.is-search-open {
        grid-template-columns: auto minmax(0, 1fr) 32px 32px !important;
    }

    .home-search-form {
        justify-self: end !important;
        width: 44px !important;
        min-width: 44px !important;
        transition: width 180ms ease;
    }

    .home-search-form.is-open,
    .home-mobile-head.is-search-open .home-search-form {
        justify-self: stretch !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .home-search-field {
        width: 44px !important;
        min-width: 44px !important;
    }

    .home-search-form.is-open .home-search-field,
    .home-mobile-head.is-search-open .home-search-field {
        width: 100% !important;
        min-width: 0 !important;
    }

    .home-search-field input {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 44px 0 0 !important;
        color: transparent !important;
        caret-color: transparent !important;
        cursor: pointer !important;
    }

    .home-search-field input::placeholder {
        color: transparent !important;
    }

    .home-search-submit {
        right: 0 !important;
        width: 44px !important;
        height: 44px !important;
    }

    .home-search-form.is-open .home-search-field input,
    .home-mobile-head.is-search-open .home-search-field input {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 44px 0 12px !important;
        color: #111827 !important;
        caret-color: auto !important;
        cursor: text !important;
    }

    .home-search-form.is-open .home-search-field input::placeholder,
    .home-mobile-head.is-search-open .home-search-field input::placeholder {
        color: rgba(17, 24, 39, 0.58) !important;
    }
}
/* End BoraDrama mobile search toggle */


/* BoraDrama transparent collapsed search */
@media (max-width: 760px) {
    .home-search-form:not(.is-open) .home-search-field input,
    .home-mobile-head:not(.is-search-open) .home-search-field input {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        outline: 0 !important;
    }

    .home-search-form:not(.is-open) .home-search-submit,
    .home-mobile-head:not(.is-search-open) .home-search-submit {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }

    .home-search-form.is-open .home-search-field input,
    .home-mobile-head.is-search-open .home-search-field input {
        background: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.72) !important;
    }
}
/* End BoraDrama transparent collapsed search */


/* BoraDrama bottom menu light text */
.bottom-nav a,
.bottom-nav .bottom-nav-label {
    font-weight: 300 !important;
}
/* End BoraDrama bottom menu light text */


/* BoraDrama keep WhatsApp above bottom menu */
@media (max-width: 720px) {
    body:not(.page-admin):not(.page-login):not(.page-register) .whatsapp-float {
        bottom: calc(max(10px, env(safe-area-inset-bottom)) + 104px) !important;
    }
}
/* End BoraDrama keep WhatsApp above bottom menu */



/* BoraDrama clean home categories, header icons and VIP callout */
.page-home .discover-category-rotator {
    display: none !important;
}

.page-home .chip.active,
.home-category-row .chip.active {
    color: #ffffff !important;
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow: none !important;
}

.home-icon-action {
    color: #9ca3af !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.home-icon-action .home-action-icon {
    opacity: 0.92 !important;
    filter: brightness(0) saturate(100%) invert(68%) sepia(8%) saturate(369%) hue-rotate(179deg) brightness(91%) contrast(88%) !important;
}

.home-icon-action .home-plus-icon {
    width: 27px !important;
    height: 27px !important;
}

.home-icon-action .home-bell-icon {
    width: 25px !important;
    height: 25px !important;
}

@media (max-width: 760px) {
    .mobile-vip-banner-callout {
        grid-template-columns: 34px minmax(0, 1fr) auto !important;
        gap: 12px !important;
        align-items: center !important;
        width: calc(100% - 32px) !important;
        max-width: 430px !important;
        margin: -58px auto 20px !important;
        padding: 16px 18px !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, #ff4056 0%, #ff1428 58%, #cf0a1a 100%) !important;
        border: 0 !important;
        border-radius: 18px !important;
        box-shadow: 0 18px 34px rgba(255, 20, 40, 0.28) !important;
    }

    .mobile-vip-banner-icon {
        display: grid !important;
        place-items: center !important;
        width: 32px !important;
        height: 32px !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    .mobile-vip-banner-vip-icon {
        display: block !important;
        width: 30px !important;
        height: 30px !important;
        object-fit: contain !important;
        opacity: 1 !important;
        filter: brightness(0) invert(1) !important;
    }

    .mobile-vip-banner-copy {
        display: grid !important;
        gap: 2px !important;
        min-width: 0 !important;
    }

    .mobile-vip-banner-copy strong,
    .mobile-vip-banner-copy small,
    .mobile-vip-banner-copy em {
        overflow: visible !important;
        color: #ffffff !important;
        text-overflow: clip !important;
        white-space: normal !important;
    }

    .mobile-vip-banner-copy strong {
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1.16 !important;
    }

    .mobile-vip-banner-copy small,
    .mobile-vip-banner-copy em {
        color: rgba(255, 255, 255, 0.84) !important;
        font-size: 10.5px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 1.15 !important;
    }

    .mobile-vip-banner-button {
        min-height: 38px !important;
        padding: 10px 15px !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.18) !important;
        border: 0 !important;
        border-radius: 999px !important;
        box-shadow: none !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 380px) {
    .mobile-vip-banner-callout {
        grid-template-columns: 30px minmax(0, 1fr) auto !important;
        gap: 9px !important;
        width: calc(100% - 24px) !important;
        padding: 13px 12px !important;
    }

    .mobile-vip-banner-vip-icon {
        width: 27px !important;
        height: 27px !important;
    }

    .mobile-vip-banner-button {
        padding-inline: 10px !important;
        font-size: 9px !important;
    }
}
/* End BoraDrama clean home categories, header icons and VIP callout */

.home-trial-timer {
    position: fixed;
    z-index: 25;
    left: 50%;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 76px);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
    transform: translateX(-50%);
    backdrop-filter: blur(12px);
}

.home-trial-timer span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.home-trial-timer strong {
    color: #ff4056;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.home-trial-timer[hidden] {
    display: none;
}


/* BoraDrama admin-managed home banners */
.home-grid-banner {
    grid-column: 1 / -1;
    width: 100%;
    margin: 4px 0 8px;
}

.home-grid-banner-link {
    display: block;
    overflow: hidden;
    width: 100%;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.home-grid-banner img {
    display: block;
    width: 100%;
    aspect-ratio: 8 / 1;
    object-fit: cover;
}

.home-grid-banner-mobile {
    display: none;
}

.admin-banner-grid {
    display: grid;
    gap: 14px;
}

.admin-banner-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.admin-banner-card header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.admin-banner-card header div {
    display: grid;
    gap: 3px;
}

.admin-banner-card header small {
    color: var(--muted);
}

.inline-check {
    display: inline-flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
    white-space: nowrap;
}

.admin-banner-preview {
    display: block;
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.admin-whatsapp-card {
    margin-top: 6px;
}

@media (max-width: 760px) {
    .home-grid-banner-desktop {
        display: none;
    }

    .home-grid-banner-mobile {
        display: block;
    }

    .home-grid-banner {
        margin: 2px 0 8px;
    }

    .home-grid-banner-link {
        border-radius: 10px;
    }

    .home-grid-banner img {
        aspect-ratio: 16 / 5;
    }

    .admin-banner-card header {
        display: grid;
    }
}
/* End BoraDrama admin-managed home banners */

/* BoraDrama admin category manager */
.category-picker-field {
    display: grid;
    gap: 8px;
}

.form-label {
    font-size: 0.82rem;
    color: var(--muted);
}

.category-picker,
.category-picker-list {
    display: grid;
    gap: 8px;
}

.category-picker-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.category-picker-row select {
    min-width: 0;
}

.category-picker-remove {
    min-width: 38px;
}

.category-picker-add {
    justify-self: start;
}

.admin-category-add-field {
    display: grid;
    gap: 8px;
}

.admin-category-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: center;
}

.admin-category-add-row input {
    min-width: 0;
}

.admin-category-add-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1;
}

.admin-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.admin-category-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.admin-category-card header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.admin-category-card header div {
    display: grid;
    gap: 3px;
}

.admin-category-card header small,
.admin-category-drama-list small,
.empty-muted {
    color: var(--muted);
}

.admin-category-drama-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.admin-category-drama-list label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-category-drama-list span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.admin-category-drama-list strong,
.admin-category-drama-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .category-picker-row {
        grid-template-columns: minmax(0, 1fr) 40px;
    }

    .admin-category-add-row {
        grid-template-columns: minmax(0, 1fr) 42px;
    }

    .admin-category-add-button {
        width: 42px;
        min-width: 42px;
        height: 42px;
    }

    .admin-category-card header {
        display: grid;
    }
}
/* End BoraDrama admin category manager */


/* BoraDrama home rails by category */
.page-home .home-discovery-tabs {
    display: none !important;
}

.home-category-cloud {
    margin-top: 18px;
}

.home-category-cloud .home-category-board {
    display: grid;
    gap: 8px;
    overflow: hidden;
}

.home-category-cloud .home-category-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.home-category-cloud .home-category-row::-webkit-scrollbar {
    display: none;
}

.home-category-cloud .chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.72) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    font-size: 13px;
    font-weight: 500;
}

.home-category-cloud button.chip {
    width: auto;
    font: inherit;
    cursor: pointer;
}

.home-category-cloud .chip.active {
    color: #ffffff !important;
    background: rgba(255, 20, 40, 0.22) !important;
    border-color: rgba(255, 20, 40, 0.55) !important;
}

.home-section-stack {
    display: grid;
    gap: 30px;
    margin-top: 26px;
}

.home-section-stack > .home-grid-banner {
    margin: -4px 0 0;
}

.home-rail-section {
    display: grid;
    gap: 12px;
    scroll-margin-top: 90px;
}

.home-rail-head {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.home-rail-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(20px, 2.3vw, 28px);
    font-weight: 850;
    line-height: 1.08;
}

.home-see-all {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
    min-height: 34px;
    padding: 0;
    color: rgba(255, 255, 255, 0.66);
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.home-see-all:hover,
.home-see-all:focus-visible {
    color: #ffffff;
}

.home-see-all b {
    color: rgba(255, 255, 255, 0.48);
    font-size: 18px;
    line-height: 1;
}

.home-drama-rail {
    display: grid;
    grid-auto-columns: minmax(116px, calc((100% - 84px) / 8));
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.home-drama-rail::-webkit-scrollbar {
    display: none;
}

.home-drama-rail .home-rail-card {
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
    background: transparent;
    border: 0;
}

.home-drama-rail .home-rail-card .thumb {
    border-radius: 10px;
    background: #111111;
}

.home-drama-rail .drama-card-body {
    padding: 8px 2px 0;
}

.home-search-results-section {
    margin-top: 24px !important;
}

.home-search-results-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
}

.home-search-modal,
.home-search-modal.is-fullscreen {
    width: min(1120px, calc(100vw - 28px));
    max-height: calc(100vh - 32px);
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
}

.home-search-modal::backdrop {
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(8px);
}

.home-search-modal-panel {
    display: grid;
    gap: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 18px;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6);
}

.home-search-modal-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.home-search-modal-header h2,
.home-search-modal-header p {
    margin: 0;
}

.home-search-modal-header p {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.home-search-modal-close {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    min-width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.home-modal-search-field {
    display: grid;
    gap: 7px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 600;
}

.home-modal-search-field input {
    color: #ffffff;
    background: #151515;
    border-color: rgba(255, 255, 255, 0.12);
}

.home-modal-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.home-modal-grid .home-rail-card[hidden] {
    display: none !important;
}

.home-modal-empty {
    margin: 0;
    padding: 18px;
    color: rgba(255, 255, 255, 0.66);
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

@media (max-width: 760px) {
    .home-category-cloud {
        margin-top: 14px;
    }

    .home-category-cloud .home-category-board {
        gap: 7px;
    }

    .home-category-cloud .chip {
        min-height: 34px;
        padding: 8px 12px;
        border-radius: 11px !important;
        font-size: 12px;
    }

    .home-section-stack {
        gap: 28px;
        margin-top: 22px;
    }

    .home-rail-section {
        gap: 11px;
    }

    .home-rail-head h2 {
        font-size: 22px;
    }

    .home-see-all {
        font-size: 13px;
    }

    .home-drama-rail {
        grid-auto-columns: minmax(104px, 31vw);
        gap: 11px;
        margin-right: calc(-1 * max(16px, env(safe-area-inset-right)));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .home-drama-rail .drama-card h3 {
        min-height: 31px;
        font-size: 12px;
        line-height: 1.16;
    }

    .home-search-results-grid,
    .home-modal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px;
    }

    .home-search-modal {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }

    .home-search-modal-panel {
        max-height: calc(100vh - 16px);
        padding: 14px;
        border-radius: 16px;
    }
}

@media (min-width: 761px) {
    .home-drama-rail .drama-card h3 {
        font-size: 13px;
    }
}
/* End BoraDrama home rails by category */


/* BoraDrama home rail title size */
.home-rail-head h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
}
/* End BoraDrama home rail title size */


/* BoraDrama robust hero media */
.hero-drama-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-drama-media-backdrop {
    display: block;
}

.hero-drama-media-poster {
    display: none;
}

.hero-drama::before,
.detail-hero::before {
    z-index: 1;
}

.hero-copy,
.detail-copy {
    position: relative;
    z-index: 2;
}

@media (max-width: 760px) {
    .page-home .desktop-discover-slider .hero-drama-media-backdrop {
        display: none;
    }

    .page-home .desktop-discover-slider .hero-drama-media-poster {
        display: block;
        object-position: center top;
    }
}
/* End BoraDrama robust hero media */


/* BoraDrama category cloud scroll dots */
.home-category-scroll-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 9px;
}

.home-category-scroll-dots button {
    width: 6px;
    min-width: 6px;
    height: 6px;
    min-height: 6px;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease, opacity 180ms ease;
}

.home-category-scroll-dots button.is-active {
    width: 18px;
    background: #ffffff;
}

@media (min-width: 761px) {
    .home-category-scroll-dots {
        display: none;
    }
}
/* End BoraDrama category cloud scroll dots */


/* BoraDrama admin sidebar logo */
.admin-sidebar-brand img {
    filter: none !important;
}
/* End BoraDrama admin sidebar logo */


/* BoraDrama full screen "Ver Todos" modal */
html.home-modal-is-open,
html.home-modal-is-open body {
    overflow: hidden;
}

.home-search-modal {
    position: fixed !important;
    inset: 0 !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: #080808 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.home-search-modal[open],
.home-search-modal.is-fullscreen {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

.home-search-modal::backdrop {
    background: #080808 !important;
    backdrop-filter: none !important;
}

.home-search-modal-panel,
.home-search-modal.is-fullscreen .home-search-modal-panel {
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    background: #080808 !important;
    box-shadow: none !important;
    padding:
        max(18px, env(safe-area-inset-top))
        max(18px, env(safe-area-inset-right))
        max(28px, env(safe-area-inset-bottom))
        max(18px, env(safe-area-inset-left)) !important;
    border: 0 !important;
    border-radius: 0 !important;
}

@media (max-width: 760px) {
    .home-search-modal {
        width: 100vw !important;
        max-height: 100dvh !important;
    }

    .home-search-modal-panel {
        max-height: 100dvh !important;
        padding:
            max(14px, env(safe-area-inset-top))
            max(12px, env(safe-area-inset-right))
            max(24px, env(safe-area-inset-bottom))
            max(12px, env(safe-area-inset-left)) !important;
        border-radius: 0 !important;
    }
}
/* End BoraDrama full screen "Ver Todos" modal */


/* BoraDrama VIP monthly price layout */
.premium-choice-page {
    display: flex;
    justify-content: center;
    padding: 18px 0 54px;
}

.premium-choice-shell {
    width: min(100%, 560px);
    margin: 0 auto;
}

.premium-choice-header {
    display: grid;
    justify-items: center;
    gap: 20px;
    margin-bottom: 26px;
    text-align: center;
}

.premium-choice-header img {
    width: min(210px, 60vw);
    height: auto;
    object-fit: contain;
}

.premium-choice-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 4.8vw, 32px);
    font-weight: 750;
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.premium-choice-header h1 span {
    color: var(--accent);
}

.premium-benefit-list {
    display: grid;
    gap: 13px;
    margin-bottom: 22px;
}

.premium-benefit-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
}

.premium-benefit-item > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.premium-benefit-item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.premium-benefit-item strong,
.premium-benefit-item small {
    display: block;
}

.premium-benefit-item strong {
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.2;
}

.premium-benefit-item small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 14px;
    line-height: 1.25;
}

.premium-price-list {
    display: grid;
    gap: 12px;
}

.plan-card.premium.premium-price-card {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: auto;
    padding: 20px 24px;
    text-align: left;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
        #080808;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.plan-card.premium.premium-price-card.best-choice,
.plan-card.premium.premium-price-card.is-most-chosen {
    border-color: rgba(255, 20, 40, 0.86);
    box-shadow: 0 18px 44px rgba(255, 20, 40, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: none;
}

.plan-card.premium.premium-price-card.premium-free-trial-card {
    border-color: rgba(255, 255, 255, 0.24);
}

.plan-card.premium.premium-price-card.premium-free-trial-card form {
    margin: 0;
}

.premium-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.premium-plan-top span {
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.plan-card.premium.premium-price-card h2 {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.plan-card.premium.premium-price-card h2 strong {
    color: #fff;
    font-size: clamp(32px, 7vw, 42px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.06em;
}

.plan-card.premium.premium-price-card h2 span {
    color: rgba(255, 255, 255, 0.56);
    font-size: 18px;
    font-weight: 800;
}

.plan-card.premium.premium-price-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.43);
    font-size: 14px;
    font-weight: 700;
}

.plan-card.premium.premium-price-card .btn {
    margin-top: 10px;
    min-height: 58px;
    border-radius: 999px;
    font-size: 17px;
    box-shadow: 0 18px 42px rgba(255, 20, 40, 0.28);
}

.plan-card.premium.premium-price-card .btn small {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.plan-card.premium.premium-price-card .plan-choice-badge {
    position: absolute;
    top: -13px;
    right: 28px;
    margin: 0;
    padding: 7px 14px;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(255, 20, 40, 0.24);
    font-size: 12px;
    font-weight: 850;
}

.plan-card.premium.premium-price-card .secondary-badge {
    right: 26px;
}

.premium-choice-trust {
    display: grid;
    justify-items: center;
    gap: 5px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.premium-choice-trust strong {
    color: var(--gold);
    letter-spacing: 0.08em;
}

.premium-choice-trust span {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
}

.premium-choice-trust small {
    color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 640px) {
    .premium-choice-page {
        padding: 8px 0 34px;
    }

    .premium-choice-shell {
        width: min(100%, 340px);
    }

    .premium-choice-header img {
        width: 170px;
    }

    .premium-benefit-item {
        grid-template-columns: 42px 1fr;
        gap: 10px;
    }

    .premium-benefit-item > span {
        width: 42px;
        height: 42px;
    }

    .premium-benefit-item strong {
        font-size: 14px;
    }

    .premium-benefit-item small {
        font-size: 12px;
    }

    .plan-card.premium.premium-price-card {
        padding: 19px 20px;
        border-radius: 17px;
    }

    .premium-plan-top span {
        font-size: 14px;
    }

    .plan-card.premium.premium-price-card .btn {
        font-size: 15px;
    }
}
/* End BoraDrama VIP monthly price layout */


/* BoraDrama VIP card monthly copy */
.plan-monthly-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.plan-monthly-price strong {
    color: inherit;
}

.plan-monthly-price small {
    color: var(--muted);
    font-size: 0.56em;
    font-weight: 800;
}
/* End BoraDrama VIP card monthly copy */


/* BoraDrama premium page AmoDrama-style refresh */
.page-premium {
    --accent: #ff1428;
    --primary: #e50914;
}

.page-premium .premium-choice-page {
    padding: 20px 16px 70px;
    background: #000;
}

.page-premium .premium-choice-shell {
    width: min(100%, 560px);
}

.page-premium .premium-choice-header {
    gap: 22px;
    margin-bottom: 28px;
}

.page-premium .premium-choice-header h1 {
    font-weight: 720;
    letter-spacing: 0;
}

.page-premium .premium-benefit-item > span {
    color: #ff3a4b;
    background: #121212;
    border-color: rgba(255, 255, 255, 0.055);
}

.page-premium .plan-card.premium.premium-price-card.is-most-chosen {
    border-color: rgba(255, 20, 40, 0.95);
    box-shadow: 0 20px 50px rgba(255, 20, 40, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-premium .plan-card.premium.premium-price-card .plan-choice-badge {
    background: #ff1428;
}

.page-premium .plan-card.premium.premium-price-card .btn {
    background: linear-gradient(135deg, #ff3a4b, #e50914);
    border-color: transparent;
}

@media (max-width: 640px) {
    .page-premium .premium-choice-page {
        padding: 12px 14px 42px;
    }

    .page-premium .premium-choice-shell {
        width: min(100%, 360px);
    }
}
/* End BoraDrama premium page AmoDrama-style refresh */
