:root {
  color-scheme: dark;
  --rf-red-mid: #E80005;
  --rf-red: #FE141A;
  --rf-deep-red: #7E0002;
  --rf-white: #FFFFFF;
  --rf-dark: #10131A;
  --rf-dark-surface: #1B202B;
  --rf-light: #F5F7FA;
  --rf-text: #FFFFFF;
  --rf-text-muted: #A5ABB5;
  --rf-border: #292E38;
  --rf-content-width: 1320px;
  --bs-primary: var(--rf-red);
  --bs-primary-rgb: 254, 20, 26;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; font-size: 15px; }
body { min-height: 100vh; margin: 0; color: var(--rf-text); background: var(--rf-dark); font-family: Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rf-white); }
button, input { font: inherit; }

.stream-header { position: absolute; z-index: 20; inset: 0 0 auto; color: var(--rf-white); background: linear-gradient(180deg, rgba(16,19,26,.96), rgba(16,19,26,.74) 72%, transparent); }
.stream-header-inner { width: min(var(--rf-content-width), calc(100% - 64px)); min-height: 100px; display: flex; align-items: center; gap: 38px; margin: 0 auto; }
.stream-brand, a.stream-brand, a.stream-brand:visited { min-width: max-content; display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF !important; font-size: 1.25rem; font-weight: 750; letter-spacing: -.5px; text-decoration: none !important; }
.stream-brand:hover, a.stream-brand:hover { color: #FFFFFF !important; }
.stream-brand img { display: block; width: 42px; height: 42px; object-fit: contain; }
.stream-nav { display: flex; align-items: center; gap: 31px; margin: 0 auto 0 0; }
.stream-nav a { min-height: 100px; position: relative; display: inline-flex; align-items: center; color: #D9DCE1; font-size: .9rem; font-weight: 550; white-space: nowrap; text-decoration: none !important; transition: color .18s ease; cursor: pointer; }
.stream-nav a:hover, .stream-nav a.is-current { color: var(--rf-white) !important; }
.stream-nav a::after { height: 3px; position: absolute; right: 0; bottom: 20px; left: 0; border-radius: 3px; background: transparent; content: ""; transition: background .2s ease, opacity .2s ease; opacity: 0; }
.stream-nav a.is-current::after { background: var(--rf-red); opacity: 1; }
.stream-header-actions { display: flex; align-items: center; gap: 18px; }
.header-join, a.header-join, a.header-join:visited { padding: 9px 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 8px; color: #FFFFFF !important; font-size: .82rem; font-weight: 600; white-space: nowrap; text-decoration: none !important; transition: background .18s ease,border-color .18s ease,transform .15s ease; }
.header-join:hover, a.header-join:hover { border-color: var(--rf-red) !important; color: #FFFFFF !important; background: rgba(254,20,26,.18) !important; }
.header-join-primary, a.header-join-primary, a.header-join-primary:visited { background: #FE141A !important; border-color: #FE141A !important; color: #FFFFFF !important; font-weight: 700; box-shadow: 0 4px 14px rgba(254,20,26,.32); }
.header-join-primary:hover, a.header-join-primary:hover { background: #E80005 !important; border-color: #E80005 !important; color: #FFFFFF !important; box-shadow: 0 6px 20px rgba(254,20,26,.45); }
.profile-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: var(--rf-white); background: var(--rf-dark-surface); font-size: .85rem; font-weight: 700; }
.stream-main { min-height: 60vh; }

.featured-hero { min-height: 650px; position: relative; display: flex; align-items: flex-end; overflow: hidden; padding: 150px max(32px, calc((100% - var(--rf-content-width)) / 2)) 76px; isolation: isolate; background: var(--rf-dark); }
.hero-art { position: absolute; z-index: -2; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 76% 39%, rgba(232,0,5,.24), transparent 32%), radial-gradient(ellipse at 67% 80%, rgba(8,169,232,.11), transparent 34%), linear-gradient(110deg, #10131A 12%, #16141B 48%, #211116 100%); }
.hero-photo { width: 70%; height: 100%; position: absolute; top: 0; right: 0; object-fit: cover; object-position: center 35%; opacity: .68; }
.hero-art::before { position: absolute; inset: 0; background: linear-gradient(90deg, #10131A 0%, rgba(16,19,26,.91) 31%, rgba(16,19,26,.3) 66%, rgba(16,19,26,.08) 100%), linear-gradient(0deg, #10131A 0%, rgba(16,19,26,.14) 38%, rgba(16,19,26,.1) 100%); content: ""; }
.hero-art::after { width: 48vw; height: 48vw; position: absolute; top: -24vw; right: 4%; border: 1px solid rgba(254,20,26,.19); border-radius: 50%; box-shadow: 0 0 0 44px rgba(254,20,26,.035), 0 0 0 108px rgba(255,255,255,.018); content: ""; }
.hero-orbit { position: absolute; display: block; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.hero-orbit-one { width: 440px; height: 440px; top: 53px; right: 13%; border-color: rgba(254,20,26,.27); }
.hero-orbit-two { width: 345px; height: 345px; top: 100px; right: calc(13% + 47px); border-color: rgba(8,169,232,.22); }
.hero-silhouette { width: min(31vw, 390px); height: 78%; position: absolute; right: 18%; bottom: -14%; border: 1px solid rgba(255,255,255,.13); border-radius: 48% 48% 3% 3%; transform: rotate(8deg); background: linear-gradient(155deg, rgba(155,18,28,.6), rgba(27,32,43,.8) 48%, rgba(16,19,26,.22)); box-shadow: inset 18px 0 50px rgba(254,20,26,.08), 0 0 90px rgba(232,0,5,.09); }
.hero-silhouette::before { width: 42%; height: 36%; position: absolute; top: -20%; left: 27%; border: 1px solid rgba(255,255,255,.12); border-radius: 50% 50% 45% 45%; background: linear-gradient(145deg, #37323A, #141720 72%); content: ""; }
.hero-silhouette::after { width: 120%; height: 1px; position: absolute; top: 24%; left: -10%; transform: rotate(-10deg); background: rgba(254,20,26,.38); box-shadow: 0 0 22px rgba(254,20,26,.6); content: ""; }
.hero-copy { width: min(590px, 58vw); position: relative; z-index: 2; }
.hero-eyebrow, .section-eyebrow, .originals-kicker { display: inline-flex; align-items: center; gap: 9px; color: #FF7479; font-size: .68rem; font-weight: 750; letter-spacing: 1.55px; }
.hero-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rf-red); box-shadow: 0 0 13px rgba(254,20,26,.8); }
.hero-copy h1 { margin: 17px 0 12px; color: var(--rf-white); font-size: clamp(2.7rem, 5.5vw, 4.6rem); font-weight: 760; letter-spacing: -2.6px; line-height: .99; }
.hero-copy p { max-width: 500px; margin: 0; color: #D1D3D8; font-size: 1rem; line-height: 1.7; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.hero-tags span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.19); border-radius: 999px; color: #E6E7EA; background: rgba(255,255,255,.055); font-size: .68rem; }
.hero-actions { display: flex; align-items: center; gap: 23px; margin-top: 25px; }
.stream-button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 18px; border: 1px solid var(--rf-red); border-radius: 8px; color: var(--rf-white); background: var(--rf-red); box-shadow: 0 7px 22px rgba(254,20,26,.2); font-size: .83rem; font-weight: 700; transition: background .18s ease,transform .18s ease; }
.stream-button:hover { transform: translateY(-1px); border-color: var(--rf-deep-red); color: var(--rf-white); background: var(--rf-deep-red); }
.button-play { font-size: .68rem; }
.stream-text-link { color: #E2E4E8; font-size: .82rem; font-weight: 600; }
.stream-text-link span { margin-left: 5px; color: var(--rf-red); }
.hero-footnote { position: absolute; right: max(32px, calc((100% - var(--rf-content-width)) / 2)); bottom: 37px; display: flex; align-items: center; gap: 10px; color: #A6ABB4; font-size: .7rem; }
.hero-progress { width: 48px; height: 2px; overflow: hidden; background: rgba(255,255,255,.23); }
.hero-progress span { width: 68%; height: 100%; display: block; background: var(--rf-red); }

.stream-content { width: min(var(--rf-content-width), calc(100% - 64px)); margin: 0 auto; padding: 0 0 58px; }
.category-strip { display: flex; align-items: center; gap: 10px; overflow-x: auto; padding: 3px 0 24px; scrollbar-width: none; }
.category-strip::-webkit-scrollbar, .poster-row::-webkit-scrollbar, .ranked-row::-webkit-scrollbar { display: none; }
.category-strip a { flex: 0 0 auto; padding: 9px 14px; border: 1px solid #363B45; border-radius: 999px; color: #D2D5DA; background: #1A1E27; font-size: .75rem; transition: border-color .18s ease,background .18s ease,color .18s ease; }
.category-strip a:hover { border-color: rgba(254,20,26,.65); color: var(--rf-white); background: rgba(254,20,26,.13); }
.shelf-section { margin-top: 18px; scroll-margin-top: 22px; position: relative; z-index: 1; }
.shelf-section:has(.drama-card:hover), .shelf-section:has(.drama-card:focus-within) { z-index: 40; }
.shelf-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-eyebrow { display: block; margin-bottom: 5px; color: #F15A61; font-size: .62rem; letter-spacing: 1.35px; }
.shelf-heading h2 { margin: 0; color: var(--rf-white); font-size: clamp(1.25rem, 2.3vw, 1.65rem); font-weight: 720; letter-spacing: -.55px; }
.view-all { flex: 0 0 auto; color: #B3B8C1; font-size: .75rem; font-weight: 600; }
.view-all span { margin-left: 5px; color: var(--rf-red); }
.view-all:hover { color: var(--rf-white); }
.poster-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden !important;
    touch-action: pan-x;
    padding: 18px 8px 150px 8px;
    margin: -12px -8px -140px -8px;
    scrollbar-width: none;
    align-items: flex-start;
}
.drama-card {
    width: 180px;
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    color: var(--rf-white);
    position: relative;
    z-index: 1;
}
.drama-card:hover, .drama-card:focus-within {
    z-index: 100;
}
.drama-card-box {
    position: relative;
    border-radius: 14px;
    padding: 8px;
    margin: -8px;
    transform-origin: center top;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.2s ease,
                box-shadow 0.22s ease,
                border-color 0.2s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}
.drama-card:hover .drama-card-box,
.drama-card:focus-within .drama-card-box {
    background: #141722;
    border-color: rgba(254, 20, 26, 0.45);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 26px rgba(254, 20, 26, 0.22);
    transform: scale(1.05) translateY(-10px);
    margin: -8px -8px -120px -8px;
}
.drama-card-body {
    display: flex;
    flex-direction: column;
    padding: 8px 4px 4px;
    position: relative;
}
.drama-card-body .drama-title {
    overflow: hidden;
    margin-top: 4px;
    color: #F3F4F6;
    font-size: 0.92rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.35;
    display: block;
}
.drama-card:hover .drama-card-body .drama-title {
    color: #FFFFFF;
}
.drama-card-body .drama-meta {
    overflow: hidden;
    margin-top: 3px;
    color: #9198A4;
    font-size: 0.72rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.drama-hover-drawer {
    height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.drama-card:hover .drama-hover-drawer,
.drama-card:focus-within .drama-hover-drawer {
    height: 102px;
    opacity: 1;
    margin-top: 10px;
    pointer-events: auto;
}
.drama-hover-desc {
    margin: 0 0 10px;
    color: #B4B9C8;
    font-size: 0.72rem;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.drama-hover-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 2px 8px 4px;
}
.drama-action-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}
.drama-action-circle:hover {
    transform: translateY(-1px) scale(1.05);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
}
.drama-action-circle:active {
    transform: scale(0.95);
}
.drama-btn-play {
    background: #FFFFFF !important;
    border-color: #FFFFFF !important;
    color: #0E1015 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.drama-btn-play svg {
    transform: translateX(1px);
}
.drama-btn-play:hover {
    background: #FE141A !important;
    border-color: #FE141A !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(254, 20, 26, 0.6);
}
.drama-btn-watchlist.is-saved {
    background: rgba(245, 166, 35, 0.2) !important;
    border-color: #F5A623 !important;
    color: #F5A623 !important;
}
.drama-btn-watchlist.is-saved svg {
    fill: #F5A623;
}
.poster-art { aspect-ratio: 2 / 3; position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 15px 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; isolation: isolate; box-shadow: 0 11px 25px rgba(0,0,0,.24); transition: transform .2s ease,border-color .2s ease; }
.mini-poster:hover { transform: translateY(-2px); border-color: rgba(254,20,26,.7); }
.drama-card .poster-art { border: none !important; }
.drama-card:hover .poster-art { border: none !important; border-color: transparent !important; transform: none !important; box-shadow: none !important; }
.poster-art::before { position: absolute; z-index: -2; inset: 0; background: var(--poster-bg); content: ""; }
.poster-art::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(8,10,14,.05) 12%, rgba(8,10,14,.18) 43%, rgba(8,10,14,.92) 100%); content: ""; }
.poster-photo { width: 100%; height: 100%; position: absolute; z-index: -1; inset: 0; object-fit: cover; }
.poster-badge { position: absolute; top: 11px; left: 10px; padding: 5px 7px; border-radius: 4px; color: var(--rf-white); background: var(--rf-red); font-size: .53rem; font-weight: 800; letter-spacing: .7px; }
.poster-kicker { margin-bottom: 8px; color: rgba(255,255,255,.77); font-size: .48rem; font-weight: 750; letter-spacing: 1.05px; }
.poster-title { color: var(--rf-white); font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 800; letter-spacing: -.65px; line-height: .98; text-shadow: 0 2px 7px rgba(0,0,0,.4); }
.poster-bottom { margin-top: 9px; color: rgba(255,255,255,.75); font-size: .48rem; font-weight: 650; letter-spacing: .75px; }
.poster-one { --poster-bg: radial-gradient(ellipse at 70% 28%, rgba(254,20,26,.75), transparent 35%), linear-gradient(145deg, #5B101B, #1B202B 66%); }
.poster-two { --poster-bg: radial-gradient(ellipse at 37% 28%, rgba(8,169,232,.6), transparent 34%), linear-gradient(150deg, #153348, #1B202B 68%); }
.poster-three { --poster-bg: radial-gradient(ellipse at 68% 24%, rgba(238,165,130,.65), transparent 32%), linear-gradient(145deg, #614137, #241E25 70%); }
.poster-four { --poster-bg: radial-gradient(ellipse at 49% 25%, rgba(212,172,97,.6), transparent 32%), linear-gradient(155deg, #534020, #20202A 70%); }
.poster-five { --poster-bg: radial-gradient(ellipse at 65% 32%, rgba(129,76,153,.64), transparent 31%), linear-gradient(150deg, #382447, #171C29 68%); }
.poster-six { --poster-bg: radial-gradient(ellipse at 30% 26%, rgba(226,80,88,.63), transparent 32%), linear-gradient(140deg, #64272D, #20202A 70%); }
.drama-title { overflow: hidden; margin-top: 11px; color: #F3F4F6; font-size: .8rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.drama-meta { overflow: hidden; margin-top: 4px; color: #9198A4; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }

.top-shelf { padding-top: 6px; }
.ranked-row { display: flex; gap: 18px; overflow-x: auto; padding: 3px 2px 12px; scrollbar-width: none; }
.ranked-card { min-width: 235px; display: grid; grid-template-columns: 38px 69px minmax(0,1fr); align-items: center; gap: 9px; color: var(--rf-white); }
.rank-number { color: transparent; font-size: 2.45rem; font-style: italic; font-weight: 850; letter-spacing: -2px; line-height: 1; -webkit-text-stroke: 1px #737985; }
.rank-art { aspect-ratio: 2 / 3; position: relative; display: flex; align-items: flex-end; overflow: hidden; padding: 7px; border: 1px solid #41454E; border-radius: 5px; isolation: isolate; }
.rank-art::before { position: absolute; z-index: -2; inset: 0; background: var(--poster-bg); content: ""; }
.rank-art::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(8,10,14,.92), transparent 76%); content: ""; }
.rank-art img { width: 100%; height: 100%; position: absolute; z-index: -1; inset: 0; object-fit: cover; }
.rank-art-title { color: #FFF; font-size: .49rem; font-weight: 750; line-height: 1.1; }
.rank-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rank-copy strong { overflow: hidden; color: #F3F4F6; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.rank-copy small { color: #9299A5; font-size: .64rem; }

.poster-tone-1 { --poster-bg: radial-gradient(ellipse at 70% 28%, rgba(237,7,20,.7), transparent 35%), linear-gradient(145deg, #5B101B, #1B202B 66%); }
.poster-tone-2 { --poster-bg: radial-gradient(ellipse at 37% 28%, rgba(8,169,232,.58), transparent 34%), linear-gradient(150deg, #153348, #1B202B 68%); }
.poster-tone-3 { --poster-bg: radial-gradient(ellipse at 68% 24%, rgba(238,165,130,.6), transparent 32%), linear-gradient(145deg, #614137, #241E25 70%); }
.poster-tone-4 { --poster-bg: radial-gradient(ellipse at 49% 25%, rgba(212,172,97,.56), transparent 32%), linear-gradient(155deg, #534020, #20202A 70%); }
.poster-tone-5 { --poster-bg: radial-gradient(ellipse at 65% 32%, rgba(129,76,153,.6), transparent 31%), linear-gradient(150deg, #382447, #171C29 68%); }
.poster-tone-6 { --poster-bg: radial-gradient(ellipse at 30% 26%, rgba(226,80,88,.6), transparent 32%), linear-gradient(140deg, #64272D, #20202A 70%); }
.category-strip small { margin-left: 5px; color: #8F96A2; font-size: .64rem; }
.empty-catalog-note { margin: 0; padding: 17px 19px; border: 1px solid var(--rf-border); border-radius: 9px; color: #A5ABB5; background: #171B24; font-size: .83rem; }
.preview-note { margin: 38px 0 0; color: #747B87; font-size: .7rem; }
.coming-soon-shelf .poster-badge { background: #80632B; }

.drama-details-page { width: min(var(--rf-content-width), calc(100% - 64px)); margin: 0 auto; padding: 130px 0 70px; }
.back-to-catalog { display: inline-block; margin-bottom: 22px; }
.drama-details-hero { display: grid; grid-template-columns: minmax(190px, 310px) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 82px); padding: 30px; border: 1px solid var(--rf-border); border-radius: 14px; background: linear-gradient(120deg, #171B24, #10131A 72%); }
.drama-details-art { width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 2 / 3; }
.drama-details-copy h1 { margin: 8px 0 14px; color: #FFF; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 760; letter-spacing: -1.4px; }
.drama-details-copy > p { max-width: 650px; color: #C0C5CE; line-height: 1.7; }
.details-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.details-stats span, .coming-date { padding: 7px 10px; border: 1px solid #343A46; border-radius: 7px; color: #D6D9DF; background: #1B202B; font-size: .74rem; }
.episode-section { margin-top: 42px; }
.episode-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--rf-border); border-radius: 10px; background: #171B24; }
.episode-list li { min-height: 78px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto auto; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid #292E38; }
.episode-list li:last-child { border-bottom: 0; }
.episode-number { color: var(--rf-red); font-size: 1.15rem; font-weight: 750; }
.episode-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.episode-copy strong { overflow: hidden; color: #FFF; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.episode-copy small { overflow: hidden; color: #969DA8; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.episode-access, .episode-length { color: #AEB4BE; font-size: .72rem; white-space: nowrap; }

@media (max-width: 700px) {
  .drama-details-page { width: calc(100% - 32px); padding-top: 98px; }
  .drama-details-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 17px; }
  .drama-details-art { width: min(62vw, 240px); }
  .episode-list li { grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; padding: 11px; }
  .episode-length { display: none; }
  .hero-photo { width: 100%; opacity: .44; }
}

.originals-panel { min-height: 270px; position: relative; display: flex; align-items: center; overflow: hidden; padding: 34px clamp(22px, 5vw, 58px); border: 1px solid #302830; border-radius: 13px; background: radial-gradient(ellipse at 76% 50%, rgba(232,0,5,.28), transparent 33%), linear-gradient(105deg, #1B202B 0%, #20151C 62%, #351116 100%); }
.originals-copy { max-width: 450px; position: relative; z-index: 2; }
.originals-kicker { color: #FF7479; font-size: .62rem; }
.originals-copy h3 { margin: 11px 0 8px; color: var(--rf-white); font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 760; letter-spacing: -1px; line-height: 1.04; }
.originals-copy p { max-width: 380px; margin: 0 0 17px; color: #B4B8C0; font-size: .82rem; line-height: 1.6; }
.stream-button-small { min-height: 40px; padding: 0 13px; font-size: .73rem; }
.originals-emblem { width: 310px; height: 310px; position: absolute; top: -22px; right: 12%; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 75px rgba(255,255,255,.018); }
.originals-emblem::before, .originals-emblem::after { position: absolute; top: 50%; left: 50%; border-radius: 50%; content: ""; transform: translate(-50%,-50%); }
.originals-emblem::before { width: 190px; height: 190px; border: 1px solid rgba(254,20,26,.55); background: radial-gradient(circle at 35% 25%, rgba(254,20,26,.34), transparent 68%); }
.originals-emblem::after { width: 98px; height: 98px; border: 1px solid rgba(255,255,255,.18); background: rgba(16,19,26,.64); box-shadow: 0 0 38px rgba(254,20,26,.14); }
.originals-emblem span { width: 0; height: 0; position: absolute; z-index: 1; top: 50%; left: 50%; border-top: 17px solid transparent; border-bottom: 17px solid transparent; border-left: 25px solid var(--rf-white); transform: translate(-38%,-50%); }

.mini-poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.mini-poster { aspect-ratio: 2 / 2.8; position: relative; display: flex; align-items: flex-end; overflow: hidden; padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; color: var(--rf-white); isolation: isolate; transition: transform .2s ease,border-color .2s ease; }
.mini-poster::before { position: absolute; z-index: -2; inset: 0; background: var(--poster-bg); content: ""; }
.mini-poster::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(8,10,14,.84)); content: ""; }
.mini-poster span { color: var(--rf-white); font-size: clamp(.75rem, 1.35vw, 1rem); font-weight: 800; letter-spacing: -.35px; line-height: 1.02; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.membership-banner { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 42px; padding: 28px 30px; border: 1px solid #343039; border-radius: 12px; background: #191D25; scroll-margin-top: 30px; }
.membership-banner h2 { margin: 0; color: var(--rf-white); font-size: 1.3rem; font-weight: 700; }
.membership-banner p { margin: 6px 0 0; color: #9DA4AF; font-size: .77rem; }
.preview-note { margin: 22px 0 0; color: #737B87; font-size: .66rem; text-align: center; }

.stream-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 27px max(32px, calc((100% - var(--rf-content-width)) / 2)); border-top: 1px solid #252A33; background: #0C0F15; }
.footer-brand-row { display: flex; align-items: center; gap: 20px; }
.footer-brand-row .stream-brand img { width: 32px; height: 32px; }
.footer-brand-row .stream-brand { font-size: 1rem; }
.footer-brand-row p { margin: 0; color: #858D98; font-size: .72rem; }
.footer-links { display: flex; gap: 19px; color: #9CA3AD; font-size: .72rem; }
.footer-links a:hover { color: var(--rf-red); }
.footer-copyright { width: 100%; color: #636B77; font-size: .66rem; }

.stream-footer + * { color: var(--rf-text); }
.stream-main > h1, .stream-main h1 { color: var(--rf-white); }
.stream-main p { color: #B5BBC4; }

@media (max-width: 1000px) {
  .stream-header-inner, .stream-content { width: calc(100% - 44px); }
  .stream-header-inner { gap: 22px; }
  .stream-nav { gap: 20px; }
  .stream-nav a { font-size: .82rem; }
  .header-join { display: none; }
  .featured-hero { min-height: 610px; padding-right: 28px; padding-left: 28px; }
  .hero-silhouette { right: 9%; width: 37vw; }
  .hero-orbit-one { right: 3%; }
  .hero-orbit-two { right: calc(3% + 47px); }
  .hero-footnote { right: 28px; }
  .mini-poster-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .mini-poster:nth-child(n+5) { display: none; }
}

@media (max-width: 680px) {
  .stream-header { background: rgba(16,19,26,.97); }
  .stream-header-inner { min-height: 106px; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 8px 0 0; }
  .stream-brand { gap: 8px; font-size: 1.08rem; }
  .stream-brand img { width: 35px; height: 35px; }
  .profile-mark { width: 33px; height: 33px; }
  .stream-nav { width: calc(100vw - 30px); grid-column: 1 / -1; gap: 24px; overflow-x: auto; margin: 0; scrollbar-width: none; }
  .stream-nav::-webkit-scrollbar { display: none; }
  .stream-nav a { min-height: 43px; font-size: .78rem; }
  .stream-nav a.is-current::after { bottom: 2px; height: 2px; }
  .stream-header-actions { justify-self: end; }
  .featured-hero { min-height: 660px; align-items: flex-end; padding: 180px 22px 82px; }
  .hero-art { background: radial-gradient(ellipse at 69% 30%, rgba(232,0,5,.28), transparent 35%), radial-gradient(ellipse at 32% 50%, rgba(8,169,232,.12), transparent 32%), linear-gradient(150deg, #10131A, #221217 70%, #10131A); }
  .hero-art::before { background: linear-gradient(0deg, #10131A 2%, rgba(16,19,26,.75) 45%, rgba(16,19,26,.12) 100%); }
  .hero-art::after { width: 105vw; height: 105vw; top: 34px; right: -29vw; box-shadow: 0 0 0 26px rgba(254,20,26,.035), 0 0 0 64px rgba(255,255,255,.018); }
  .hero-orbit-one { width: 300px; height: 300px; top: 142px; right: -65px; }
  .hero-orbit-two { width: 235px; height: 235px; top: 174px; right: -32px; }
  .hero-silhouette { width: 245px; height: 330px; top: 118px; right: 6%; bottom: auto; opacity: .76; }
  .hero-copy { width: 100%; }
  .hero-copy h1 { margin-top: 13px; font-size: clamp(2.35rem, 11vw, 3.55rem); letter-spacing: -1.6px; }
  .hero-copy p { max-width: 440px; font-size: .88rem; }
  .hero-tags { margin-top: 13px; }
  .hero-actions { gap: 15px; margin-top: 19px; }
  .stream-button { min-height: 44px; padding: 0 13px; font-size: .75rem; }
  .stream-text-link { font-size: .74rem; }
  .hero-footnote { right: 22px; bottom: 26px; }
  .stream-content { width: calc(100% - 36px); padding-bottom: 40px; }
  .category-strip { margin: 0 -18px; padding: 15px 18px 20px; }
  .shelf-section { margin-top: 14px; }
  .shelf-heading { align-items: flex-end; margin-bottom: 12px; }
  .shelf-heading h2 { font-size: 1.16rem; }
  .section-eyebrow { font-size: .56rem; }
  .view-all { font-size: .68rem; }
  .poster-row { gap: 12px; margin: 0 -18px 0 0; padding: 2px 0 8px 0; }
  .drama-hover-drawer { display: none !important; }
  .drama-card:hover .drama-card-box, .drama-card:focus-within .drama-card-box { margin: -8px; transform: none; box-shadow: none; background: transparent; border-color: transparent; }
  .drama-card { width: 144px; flex-basis: 144px; }
  .poster-art { padding: 11px 10px; border-radius: 7px; }
  .poster-title { font-size: 1.16rem; }
  .poster-badge { top: 8px; left: 8px; }
  .drama-title { margin-top: 8px; font-size: .73rem; }
  .drama-meta { font-size: .62rem; }
  .ranked-row { gap: 13px; margin-right: -18px; }
  .ranked-card { min-width: 206px; grid-template-columns: 32px 59px minmax(0,1fr); gap: 7px; }
  .rank-number { font-size: 2rem; }
  .originals-panel { min-height: 255px; padding: 25px 20px; }
  .originals-copy { max-width: 295px; }
  .originals-copy h3 { font-size: 1.9rem; }
  .originals-copy p { max-width: 250px; font-size: .75rem; }
  .originals-emblem { width: 230px; height: 230px; top: 17px; right: -111px; opacity: .65; }
  .originals-emblem::before { width: 145px; height: 145px; }
  .originals-emblem::after { width: 74px; height: 74px; }
  .originals-emblem span { border-top-width: 13px; border-bottom-width: 13px; border-left-width: 19px; }
  .mini-poster-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
  .mini-poster:nth-child(n+4) { display: flex; }
  .mini-poster:nth-child(n+5) { display: none; }
  .mini-poster { padding: 9px; border-radius: 6px; }
  .mini-poster span { font-size: .72rem; }
  .membership-banner { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 31px; padding: 21px 18px; }
  .membership-banner h2 { font-size: 1.1rem; }
  .membership-banner p { font-size: .72rem; }
  .stream-footer { align-items: flex-start; flex-direction: column; gap: 14px; padding: 22px 18px; }
  .footer-brand-row { align-items: flex-start; flex-direction: column; gap: 7px; }
}

/* ReelFace footer: brand, information, support, and app discovery. */
.stream-footer {
  display: grid;
  grid-template-columns: minmax(300px, 1.65fr) minmax(150px, .8fr) minmax(205px, 1fr) minmax(170px, .78fr);
  align-items: start;
  gap: 38px;
  padding: 58px max(32px, calc((100% - var(--rf-content-width)) / 2)) 48px;
  border-top: 1px solid #242730;
  background: #0B0B0C;
}
.footer-brand-column { display: flex; align-items: flex-start; flex-direction: column; }
.footer-brand-column .stream-brand,
.footer-brand-column a.stream-brand,
.footer-brand-column a.stream-brand:visited { gap: 12px; font-size: 1.7rem; color: #FFFFFF !important; text-decoration: none !important; }
.footer-brand-column .stream-brand:hover,
.footer-brand-column a.stream-brand:hover { color: #FFFFFF !important; }
.footer-brand-column .stream-brand span { color: #FFFFFF !important; }
.footer-brand-column .stream-brand img { width: 48px; height: 48px; }
.footer-brand-column > p { margin: 17px 0 0; color: #9297A1; font-size: .84rem; }
.footer-copyright { margin-top: 5px; color: #737985; font-size: .78rem; }
.footer-social { display: flex; gap: 12px; margin-top: 31px; }
.footer-social span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #303238; border-radius: 50%; color: #B3B6BD; font-size: 1.05rem; font-weight: 650; }
.footer-column { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; }
.footer-column h2 { margin: 3px 0 4px; color: var(--rf-white); font-size: 1rem; font-weight: 650; text-transform: uppercase; }
.footer-column > a, .footer-unavailable { color: #9297A1; font-size: .86rem; line-height: 1.4; }
.footer-column > a:hover { color: var(--rf-red); }
.footer-unavailable small { display: block; margin-top: 2px; color: #69707B; font-size: .65rem; }
.footer-download { scroll-margin-top: 24px; }
.download-placeholder { width: 154px; height: 154px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid #393B40; border-radius: 8px; color: #DFE1E4; background: #17181B; text-align: center; }
.download-phone { color: var(--rf-red); font-size: 2.2rem; line-height: 1; }
.download-placeholder strong { font-size: .78rem; }
.download-placeholder small { color: #9A9EA5; font-size: .68rem; }
.footer-download > p { max-width: 190px; margin: -5px 0 0; color: #737985; font-size: .69rem; line-height: 1.45; }
.footer-float-actions { position: fixed; z-index: 25; right: 16px; bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
.footer-float-actions a { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #FFF; background: #34363A; font-size: 1.5rem; box-shadow: 0 5px 18px rgba(0,0,0,.3); transition: transform .18s ease,background .18s ease; }
.footer-float-actions a:hover { transform: translateY(-2px); color: #FFF; background: var(--rf-red); }
.footer-float-actions .footer-float-top { border-color: var(--rf-red); background: var(--rf-red); }

/* Local content management for the development Portal. */
.header-manage { padding: 10px 13px; border: 1px solid rgba(254,20,26,.55); border-radius: 8px; color: #FFF; background: rgba(126,0,2,.28); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.header-manage:hover { color: #FFF; background: var(--rf-deep-red); }
.catalog-page { width: min(var(--rf-content-width), calc(100% - 64px)); min-height: 65vh; margin: 0 auto; padding: 135px 0 64px; }
.catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.catalog-heading h1 { margin: 10px 0 7px; color: #FFF; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 760; letter-spacing: -1.3px; }
.catalog-heading p { max-width: 760px; margin: 0; color: #A5ABB5; line-height: 1.6; }
.catalog-heading-actions { display: flex; align-items: center; gap: 10px; }
.catalog-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border: 1px solid #3A3E47; border-radius: 8px; color: #FFF; background: #1B202B; font-size: .83rem; font-weight: 700; cursor: pointer; }
.catalog-button:hover { border-color: #FE141A; color: #FFF; background: #262B36; }
.catalog-button-primary { border-color: #E80005; background: #E80005; }
.catalog-button-primary:hover { border-color: #FE141A; background: #FE141A; }
.catalog-dev-note, .catalog-alert { display: flex; flex-direction: column; gap: 4px; margin: 0 0 20px; padding: 13px 16px; border: 1px solid rgba(254,20,26,.3); border-radius: 9px; color: #D7D9DE; background: rgba(126,0,2,.12); font-size: .82rem; }
.catalog-dev-note strong { color: #FFF; }
.catalog-alert { border-color: rgba(20,184,116,.3); background: rgba(20,184,116,.08); }
.catalog-alert-error { border-color: rgba(254,20,26,.5); background: rgba(126,0,2,.24); }
.catalog-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; white-space: nowrap; }
.catalog-upload-preview { display: block; width: min(100%, 220px); max-height: 150px; object-fit: contain; object-position: left center; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: #10131A; }
.catalog-search { display: flex; align-items: center; gap: 10px; margin: 24px 0 15px; }
.catalog-search label { color: #D2D5DA; font-size: .82rem; font-weight: 650; }
.catalog-search input { width: min(360px, 55vw); min-height: 42px; padding: 0 13px; border: 1px solid #353A45; border-radius: 8px; color: #FFF; background: #1B202B; }
.catalog-table-wrap { overflow: auto; border: 1px solid #2C313C; border-radius: 12px; background: #141821; }
.catalog-table { width: 100%; border-collapse: collapse; text-align: left; }
.catalog-table th, .catalog-table td { padding: 14px 16px; border-bottom: 1px solid #282D37; vertical-align: middle; }
.catalog-table th { color: #A5ABB5; background: #1A1F29; font-size: .68rem; font-weight: 750; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }
.catalog-table td { color: #D7D9DE; font-size: .82rem; }
.catalog-table tr:last-child td { border-bottom: 0; }
.catalog-title-link { color: #FFF; font-weight: 700; }
.catalog-title-link:hover, .catalog-text-link:hover, .catalog-url-link:hover { color: #FE141A; }
.catalog-text-link, .catalog-url-link { color: #FF7479; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.catalog-url-link { display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.catalog-preview-button { padding: 0; border: 0; color: #FF7479; background: transparent; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.catalog-preview-button:hover { color: #FE141A; text-decoration: underline; }
.catalog-video-dialog { width: min(900px, calc(100vw - 32px)); max-width: none; padding: 16px; border: 1px solid #292D36; border-radius: 12px; color: #FFF; background: #10131A; box-shadow: 0 24px 80px #000B; color-scheme: dark; }
.catalog-video-dialog::backdrop { background: rgb(0 0 0 / 82%); backdrop-filter: blur(5px); }
.catalog-video-dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.catalog-preview-close { padding: 7px 12px; border: 1px solid #3A3E47; border-radius: 7px; color: #FFF; background: #1B202B; cursor: pointer; }
.catalog-video-frame-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #000; }
.catalog-video-frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.catalog-video-frame-wrap iframe.is-loading { visibility: hidden; }
.catalog-video-loading { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #FFF; background: #10131A; font-size: .95rem; }
.catalog-video-loading[hidden] { display: none; }
.catalog-video-spinner { width: 38px; height: 38px; border: 3px solid #ffffff35; border-top-color: #E80005; border-right-color: #FE141A; border-radius: 50%; animation: catalog-video-spin .8s linear infinite; }
@keyframes catalog-video-spin { to { transform: rotate(360deg); } }
.catalog-sample-tag { display: inline-flex; margin-left: 8px; color: #A5ABB5; font-size: .68rem; }
.catalog-status { display: inline-flex; padding: 4px 8px; border: 1px solid #363B46; border-radius: 20px; color: #C4C8CE; background: #202530; font-size: .68rem; font-weight: 700; }
.status-published { border-color: rgba(20,184,116,.35); color: #7FE0B4; background: rgba(20,184,116,.1); }
.status-draft, .status-pendingreview { border-color: rgba(250,190,60,.3); color: #F3CE7B; background: rgba(250,190,60,.08); }
.status-archived { color: #A5ABB5; }
.catalog-empty { padding: 42px 16px !important; color: #A5ABB5 !important; text-align: center; }
.catalog-back-link { display: inline-block; margin-bottom: 22px; }
.catalog-detail-heading { align-items: flex-start; }
.catalog-detail-heading p { max-width: 850px; }
.catalog-meta-row, .catalog-chip-row { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 16px; color: #A5ABB5; font-size: .78rem; }
.catalog-chip-row { gap: 7px; }
.catalog-chip-row span { padding: 5px 9px; border: 1px solid #343945; border-radius: 16px; color: #D9DCE1; background: #1B202B; }
.catalog-section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 34px 0 14px; }
.catalog-section-heading h2 { margin: 7px 0 0; color: #FFF; font-size: 1.45rem; }
.catalog-footnote { margin: 14px 0 0; color: #8D949F; font-size: .78rem; line-height: 1.6; }
.catalog-form-page { max-width: 980px; }
.catalog-form { padding: 24px; border: 1px solid #2C313C; border-radius: 12px; background: #141821; }
.catalog-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 16px; }
.catalog-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: #D9DCE1; font-size: .82rem; font-weight: 650; }
.catalog-field-wide { grid-column: 1 / -1; }
.catalog-field input, .catalog-field select, .catalog-field textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #353A45; border-radius: 8px; outline: 0; color: #FFF; background: #1B202B; font: inherit; font-weight: 400; }
.catalog-field textarea { min-height: 100px; resize: vertical; }
.catalog-field input:focus, .catalog-field select:focus, .catalog-field textarea:focus { border-color: #FE141A; box-shadow: 0 0 0 3px rgba(254,20,26,.12); }
.catalog-field input::placeholder { color: #737985; }
.catalog-field small, .catalog-field-help { color: #8D949F; font-size: .72rem; font-weight: 400; line-height: 1.5; }
.catalog-field [data-valmsg-for], .catalog-choice-set [data-valmsg-for] { color: #FF9296; font-size: .73rem; font-weight: 400; }
.catalog-validation-summary { margin-bottom: 15px; color: #FF9296; font-size: .82rem; }
.catalog-validation-summary:empty { display: none; }
.catalog-choice-set { margin: 22px 0 0; padding: 17px; border: 1px solid #303541; border-radius: 9px; }
.catalog-choice-set legend { float: none; width: auto; margin: 0; padding: 0 7px; color: #FFF; font-size: .88rem; font-weight: 700; }
.catalog-choice-set .catalog-field-help { margin: 0 0 12px; }
.catalog-checkbox-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.catalog-checkbox { display: inline-flex; align-items: center; gap: 8px; color: #D9DCE1; font-size: .8rem; cursor: pointer; }
.catalog-checkbox input { width: 17px; height: 17px; accent-color: #E80005; }
  .catalog-checkbox input:disabled + span { opacity: .55; }
  .catalog-selection-count { margin: 12px 0 0; color: #B8BEC8; font-size: .76rem; }
.catalog-toggle-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; }
.catalog-form-actions { display: flex; gap: 10px; margin-top: 25px; padding-top: 18px; border-top: 1px solid #2B303A; }
.catalog-muted { color: #8D949F; font-size: .78rem; }
@media (max-width: 900px) {
  .catalog-page { width: calc(100% - 40px); }
  .catalog-heading { align-items: flex-start; flex-direction: column; }
  .catalog-heading-actions { flex-wrap: wrap; }
  .header-manage { padding: 8px 9px; font-size: .69rem; }
}
@media (max-width: 600px) {
  .catalog-page { width: calc(100% - 30px); padding-top: 124px; }
  .catalog-form { padding: 16px; }
  .catalog-form-grid { grid-template-columns: 1fr; gap: 15px; }
  .catalog-field-wide { grid-column: auto; }
  .catalog-search { align-items: flex-start; flex-wrap: wrap; }
  .catalog-search label { width: 100%; }
  .catalog-search input { width: 100%; }
  .catalog-table th, .catalog-table td { padding: 12px 11px; }
  .catalog-detail-heading { gap: 18px; }
}

@media (max-width: 900px) {
  .stream-footer { grid-template-columns: minmax(240px, 1.4fr) 1fr 1fr; gap: 32px 26px; }
  .footer-download { grid-column: 2 / 4; }
}
@media (max-width: 600px) {
  .stream-footer { grid-template-columns: 1fr 1fr; gap: 34px 18px; padding: 38px 20px 34px; }
  .footer-brand-column { grid-column: 1 / -1; }
  .footer-brand-column .stream-brand { font-size: 1.45rem; }
  .footer-brand-column > p { margin-top: 12px; }
  .footer-social { margin-top: 21px; }
  .footer-social span { width: 39px; height: 39px; }
  .footer-column { gap: 13px; }
  .footer-column h2 { font-size: .9rem; }
  .footer-column > a, .footer-unavailable { font-size: .76rem; }
  .footer-download { grid-column: 1 / -1; }
  .download-placeholder { width: 142px; height: 142px; }
  .footer-float-actions { right: 10px; bottom: 12px; gap: 9px; }
  .footer-float-actions a { width: 42px; height: 42px; font-size: 1.25rem; }
}

/* Database-backed drama details and episode playback */
.drama-details-hero { grid-template-columns: minmax(190px, 280px) minmax(0, 1fr); }
.drama-details-art .poster-photo { z-index: -1; }
.drama-details-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.story-share { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #D9DCE2; }
.story-share > strong { margin-right: 4px; color: #FFF; font-size: .82rem; }
.story-share-button { width: 39px; height: 39px; display: inline-grid; place-items: center; border: 1px solid #3A3E47; border-radius: 50%; color: #FFF; background: #1B202B; font: inherit; font-size: 1.1rem; font-weight: 750; cursor: pointer; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.story-share-button:hover { transform: translateY(-2px); border-color: var(--rf-red-bright); background: #29212A; }
.story-share-wa { color: #25D366; background: rgba(37, 211, 102, 0.12); border-color: rgba(37, 211, 102, 0.35); }
.story-share-wa:hover { border-color: #25D366; background: #153A24; color: #FFF; }
.story-share-x { color: #FFF; background: #050505; }
.story-share-copy { color: #D5D8DE; }
.share-feedback { min-width: 74px; color: #FF8589; font-size: .7rem; }
.episode-list li { display: block; min-height: 0; padding: 0; }
.episode-row-link { min-height: 76px; display: grid; grid-template-columns: 50px minmax(0,1fr) auto auto 26px; align-items: center; gap: 15px; padding: 12px 18px; color: inherit; text-decoration: none; transition: background .16s ease; }
a.episode-row-link:hover { background: #202530; }
.episode-row-link.is-locked .episode-number, .episode-access:not(.is-free) { color: #F16A70; }
.episode-access.is-free { color: #A8E8C4; }
.episode-row-link.is-unavailable { color: #8E95A0; }
.episode-row-play { color: #F34D55; text-align: right; }
.episode-length { text-align: right; }

.watch-page { width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding: 116px 0 64px; }
.watch-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 18px; color: #8D95A2; font-size: .77rem; }
.watch-breadcrumbs a { color: #C1C6CE; text-decoration: none; }
.watch-breadcrumbs a:hover { color: #FF686E; }
.watch-breadcrumbs [aria-current="page"] { color: #FFF; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 330px); align-items: stretch; gap: 16px; }
.watch-primary { min-width: 0; }
.watch-video-shell { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid #292D36; border-radius: 12px; background: #050608; box-shadow: 0 14px 42px #0008; }
.watch-video-frame-wrap { position: absolute; inset: 0; background: #050608; }
.watch-video-frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; background: #10131A; color-scheme: dark; }
.watch-locked-panel { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px; color: #C6CBD4; text-align: center; background: radial-gradient(ellipse at 50% 35%, #31151B 0, #12151D 52%, #08090C 100%); }
.watch-lock-icon { color: #FE141A; font-size: 2rem; }
.watch-locked-panel h2 { margin: 0; color: #FFF; font-size: 1.25rem; }
.watch-locked-panel p { max-width: 440px; margin: 0 0 6px; color: #AEB4BE; font-size: .88rem; line-height: 1.6; }
.watch-unavailable-panel { background: radial-gradient(ellipse at 50% 35%, #24212A 0, #12151D 55%, #08090C 100%); }
.watch-episode-panel { min-width: 0; max-height: calc((min(1440px, 100vw) - 64px - 346px) * 9 / 16); min-height: 300px; overflow-y: auto; padding: 16px; border: 1px solid #292D36; border-radius: 12px; background: #171B24; }
.watch-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.watch-panel-heading h2 { margin: 0; color: #FFF; font-size: 1.05rem; }
.watch-panel-heading > span { color: #979EAA; font-size: .73rem; }
.watch-episode-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.watch-episode-tile { min-height: 44px; position: relative; display: grid; place-items: center; border: 1px solid #333945; border-radius: 7px; color: #E5E8ED; background: #222733; font-size: .81rem; font-weight: 700; text-decoration: none; transition: border-color .16s ease, background .16s ease; }
a.watch-episode-tile:hover { border-color: #FE141A; background: #30232A; }
.watch-episode-tile.is-current { border-color: #FE141A; color: #FFF; background: linear-gradient(135deg, #E80005, #FE141A); box-shadow: 0 5px 15px #E8000538; }
.watch-episode-tile.is-locked small, .watch-episode-tile.is-unavailable small { position: absolute; top: 3px; right: 4px; color: #FE7278; font-size: .62rem; }
.watch-episode-tile.is-unavailable { color: #747C88; background: #191D25; }
.watch-episode-tile.is-current:has(.watch-playing-wave) { display: flex; justify-content: center; gap: 6px; }
.watch-playing-wave { display: flex; align-items: center; height: 16px; gap: 2px; }
.watch-playing-wave i { width: 2px; height: 12px; background: currentColor; border-radius: 2px; transform: scaleY(.35); }
.is-playing .watch-playing-wave i { animation: watch-wave .8s ease-in-out infinite alternate; }
.is-playing .watch-playing-wave i:nth-child(2) { animation-delay: -.4s; }
.is-playing .watch-playing-wave i:nth-child(3) { animation-delay: -.2s; }
.is-playing .watch-playing-wave i:nth-child(4) { animation-delay: -.6s; }
@keyframes watch-wave { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .is-playing .watch-playing-wave i { animation: none; transform: scaleY(.75); } }
.watch-episode-copy { padding: 22px 4px 0; }
.watch-episode-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.watch-episode-heading h1 { margin: 5px 0 0; color: #FFF; font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 740; letter-spacing: -.5px; }
.watch-episode-copy > p { margin: 16px 0; color: #B4BAC4; font-size: .9rem; line-height: 1.7; }
.watch-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-tags span { padding: 6px 10px; border: 1px solid #303641; border-radius: 999px; color: #C8CDD5; background: #1B202B; font-size: .7rem; }

@media (max-width: 900px) {
  .watch-layout { grid-template-columns: minmax(0, 1fr); }
  .watch-episode-panel { max-height: none; min-height: 0; }
  .watch-episode-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .drama-details-actions { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 23px; }
  .episode-row-link { grid-template-columns: 35px minmax(0,1fr) auto 22px; gap: 9px; padding: 12px 10px; }
  .episode-row-link .episode-length { display: none; }
  .episode-access { font-size: .65rem; }
  .watch-page { width: calc(100% - 28px); padding-top: 98px; }
  .watch-video-shell { aspect-ratio: 9 / 12; max-height: 72svh; }
  .watch-episode-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .watch-panel-heading { margin-bottom: 12px; }
  .watch-episode-heading { align-items: flex-start; flex-direction: column; }
}

/* Catalogue browsing: populated categories, clean posters and full-width shelves. */
body:has(.discovery-home) .stream-header { position: sticky; background: rgba(16,19,26,.98); border-bottom: 1px solid var(--rf-border); }
.discovery-home { padding-top: 18px; }
.discovery-home .discovery-categories { padding: 0 0 18px; margin: 0; scroll-margin-top: 112px; }
.discovery-categories .is-selected { color: #fff; background: rgba(254,20,26,.14); border-color: var(--rf-red); }
.discovery-shelf { margin-top: 14px; padding: 6px 0 12px; scroll-margin-top: 112px; position: relative; z-index: 1; }
.discovery-shelf:has(.drama-card:hover), .discovery-shelf:has(.drama-card:focus-within) { z-index: 40; }
.discovery-shelf + .discovery-shelf { border-top: 1px solid rgba(255,255,255,.04); }
.discovery-shelf .shelf-heading { margin-bottom: 14px; align-items: center; }
.discovery-shelf h2 { font-size: clamp(1.3rem,2vw,1.8rem); }
.shelf-controls { display: flex; gap: 8px; }
.shelf-arrow { width: 35px; height: 35px; border-radius: 50%; border: 1px solid #353b47; background: #1b202b; color: white; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; }
.shelf-arrow:disabled { opacity: .25; cursor: default; }
.shelf-arrow:hover:not(:disabled) { border-color: var(--rf-red); background: #322028; }
.discovery-row { gap: 20px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; overflow-y: hidden !important; touch-action: pan-x; }
.discovery-row .drama-card { width: calc((100% - 100px)/6); flex: 0 0 calc((100% - 100px)/6); min-width: 0; scroll-snap-align: start; }
.discovery-row .poster-art { aspect-ratio: 2/3; padding: 0; border-radius: 12px; }
.discovery-row .poster-art::after { background: none; }
.discovery-row .poster-photo { opacity: 1; z-index: 1; }
.poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.poster-fallback img { width: 38%; opacity: .45; }
.discovery-row .poster-badge { z-index: 3; top: 10px; left: 10px; }
.poster-play { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.22); opacity: 0; transition: opacity .2s; font-size: 2rem; color: white; }
.drama-card:hover .poster-play, .drama-card:focus-visible .poster-play { opacity: 1; }
.discovery-row .drama-title { font-size: .92rem; font-weight: 600; line-height: 1.45; min-height: 1.45em; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discovery-row .drama-meta { font-size: .76rem; margin-top: 5px; }
.discovery-empty { padding: 70px 0; }
.discovery-home .membership-banner { margin-top: 12px; }
@media (max-width: 1050px) {
  .discovery-row .drama-card { width: calc((100% - 60px)/4); flex-basis: calc((100% - 60px)/4); }
}
@media (max-width: 620px) {
  body:has(.discovery-home) .stream-header { position: sticky; }
  .discovery-home { padding-top: 12px; }
  .shelf-section { margin-top: 10px !important; }
  .discovery-shelf { margin-top: 8px !important; padding: 4px 0 10px !important; scroll-margin-top: 152px; }
  .discovery-row { gap: 12px !important; margin: 0 !important; padding: 2px 0 6px 0 !important; overflow-y: hidden !important; touch-action: pan-x; }
  .poster-row { padding: 2px 0 6px 0 !important; margin: 0 !important; overflow-y: hidden !important; touch-action: pan-x; }
  .discovery-row .drama-card { width: calc((100% - 24px)/3); flex-basis: calc((100% - 24px)/3); }
  .discovery-row .poster-art { border-radius: 8px; }
  .discovery-row .drama-title { font-size: .76rem; margin-top: 6px; }
  .discovery-row .drama-meta { font-size: .65rem; }
  .discovery-shelf .shelf-heading { margin-bottom: 10px; }
  .drama-hover-drawer { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .poster-play { transition: none; } }

/* Homepage spans the viewport with compact side margins. */
body:has(.discovery-home) .stream-header-inner, .stream-content.discovery-home { width: calc(100% - 48px); max-width: none; }
@media (max-width: 620px) { body:has(.discovery-home) .stream-header-inner, .stream-content.discovery-home { width: calc(100% - 32px); } }
/* Search, app download and personal library panels. */
.stream-header-actions { margin-left: auto; }
.header-tools { display: flex; align-items: center; gap: 20px; }
.header-tool { position: relative; }
.header-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 44px; padding: 5px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.header-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.header-icon:hover, .header-icon[aria-expanded=true] { color: var(--rf-red); }
.header-icon:focus-visible, .header-library-tabs button:focus-visible { outline: 2px solid var(--rf-red); outline-offset: 3px; }
.header-popover { position: absolute; right: -18px; top: calc(100% + 18px); z-index: 60; border-radius: 20px; background: #272727; box-shadow: 0 18px 55px #0007; color: #ddd; text-align: left; }
.header-popover[hidden], .library-more[hidden] { display: none; }
.header-popover::before { content: ''; position: absolute; right: 28px; top: -9px; width: 18px; height: 18px; background: #272727; transform: rotate(45deg); }
.search-popover { width: min(760px, calc(100vw - 48px)); padding: 0; }
.header-search-form { display: flex; align-items: center; padding: 7px 14px 7px 22px; border: 1px solid #666; border-radius: 36px; background: #383633; position: relative; }
.header-search-form input { width: 100%; background: none; color: #fff; border: 0; outline: 0; font-size: 1rem; padding: 9px 0; }
.header-search-form input::placeholder { color: #aaa; }
.header-search-form input:focus-visible { box-shadow: inset 0 -1px var(--rf-red); }
.header-panel-body { padding: 22px; max-height: min(650px, calc(100vh - 210px)); overflow-y: auto; }
.header-panel-body h2 { font-size: .95rem; color: #aaa; margin: 0 0 18px; }
.header-search-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.header-result { display: flex; gap: 15px; min-width: 0; align-items: flex-start; }
.header-result img { width: 78px; height: 112px; object-fit: cover; flex-shrink: 0; border-radius: 7px; background: #353535; }
.header-result-copy { min-width: 0; padding-top: 2px; }
.header-result strong { display: block; font-size: .94rem; line-height: 1.4; font-weight: 600; margin: 0 0 10px; }
.header-result p { color: #999; font-size: .85rem; margin: 0; line-height: 1.45; }
.header-result-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.header-result-tags span { background: #454545; border-radius: 20px; padding: 3px 10px; font-size: .75rem; }
.download-popover { width: 440px; padding: 22px; display: flex; gap: 22px; align-items: center; }
.download-popover h2 { font-size: 1.05rem; font-weight: 650; line-height: 1.4; margin: 0 0 36px; }
.download-popover p, .download-popover a:not(.app-qr) { font-size: .82rem; color: #aaa; margin: 5px 0 0; }
.app-platforms { color: #eee; font-size: .85rem; }
.app-qr { flex-shrink: 0; padding: 4px; background: white; border-radius: 9px; }
.app-qr img { width: 132px; height: 132px; display: block; }
.library-popover { width: 390px; padding: 24px; max-height: calc(100vh - 150px); overflow-y: auto; }
.header-library-tabs { display: flex; gap: 24px; margin-bottom: 24px; }
.header-library-tabs button { background: none; border: 0; padding: 0; color: #888; font-size: 1.35rem; font-weight: 700; }
.header-library-tabs button[aria-selected=true] { color: #fff; }
.library-popover .header-result { margin-bottom: 22px; align-items: center; }
.library-popover .header-result img { width: 86px; height: 122px; }
.library-more { width: 100%; padding: 10px; border: 0; border-radius: 24px; background: #424242; color: #ccc; }
.header-empty { grid-column: 1/-1; color: #aaa; padding: 18px 0; font-size: .9rem; }
.header-empty a { display: inline-block; color: #fff; margin-top: 12px; }
.app-download-page { min-height: 65vh; padding: 170px 24px 70px; text-align: center; }
.app-download-page > img { width: 80px; margin-bottom: 22px; }
.app-download-page h1 { font-size: clamp(1.8rem,4vw,3rem); }
.app-download-page p { color: #aaa; margin: 18px 0; }
.app-download-note { font-size: .85rem; }
.app-download-status { display: inline-block; padding: 12px 22px; border-radius: 30px; background: #272727; }
@media(max-width:1100px) { .stream-header-inner { gap: 20px; } .stream-header-actions { gap: 12px; } .header-tools { gap: 12px; } }
@media(max-width:680px) {
 .header-tools { gap: 10px; } .header-icon { width: 30px; height: 36px; } .header-icon svg { width: 25px; height: 25px; }
 .header-popover { position: fixed; top: 108px; right: 16px; width: calc(100vw - 32px); border-radius: 16px; }
 .header-popover::before { display: none; } .header-panel-body { padding: 18px; max-height: calc(100dvh - 190px); }
 .header-search-results { gap: 18px; grid-template-columns: 1fr; } .header-result img { width: 65px; height: 94px; }
 .download-popover { padding: 18px; gap: 14px; } .download-popover h2 { margin-bottom: 20px; } .app-qr img { width: 108px; height: 108px; }
 .library-popover { max-height: calc(100dvh - 130px); } .header-library-tabs button { font-size: 1.2rem; }
}

@media(min-width:681px) { .search-popover { position: fixed; top: 104px; right: 24px; } }

.footer-app-qr { display: block; width: 120px; padding: 4px; background: #fff; border-radius: 9px; margin-bottom: 12px; }
.footer-app-qr img { display: block; width: 112px; height: 112px; }

.footer-links-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links-column h4 { margin: 0 0 4px; color: #FFFFFF; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.footer-links-column a,
.footer-links-column a:visited { color: #9CA3AF; font-size: 0.88rem; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color 0.18s ease, transform 0.18s ease; }
.footer-links-column a:hover { color: #F5A623; transform: translateX(3px); }

.watch-app-qr { width: 128px; height: 128px; display: block; border-radius: 8px; margin: 18px auto 10px; }
.watch-locked-panel small { display: block; color: #aaa; }

.watch-video-shell:has(.watch-app-qr) { aspect-ratio: auto; max-height: none; }
.watch-locked-panel:has(.watch-app-qr) { min-height: 420px; }

/* Security & Anti-Download Protections */
body, img, video, iframe, .watch-video-shell, .watch-video-frame-wrap, .poster-photo {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
img, video, iframe {
    -webkit-user-drag: none;
    user-drag: none;
}

/* Mobile Smart App Banner */
.mobile-app-banner {
    display: none;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #181D28 0%, #12151D 100%);
    border-bottom: 1px solid #292E38;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 1200;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.mobile-app-banner.is-active {
    display: flex !important;
}
.mobile-app-banner-close {
    background: transparent;
    border: none;
    color: #9CA3AF;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.mobile-app-banner-close:hover {
    color: #FFFFFF;
}
.mobile-app-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: #1B202B;
    border: 1px solid #292E38;
}
.mobile-app-banner-info {
    flex: 1;
    min-width: 0;
}
.mobile-app-banner-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}
.mobile-app-banner-desc {
    font-size: 0.72rem;
    color: #9CA3AF;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-app-banner-btn {
    background: #FE141A;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 7px 14px;
    border-radius: 999px;
    letter-spacing: 0.4px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(254, 20, 26, 0.35);
    transition: transform 0.1s;
}
.mobile-app-banner-btn:active {
    transform: scale(0.96);
}

/* ========================================================
   Header Top Up Pill & Profile Popover (ReelFace Theme)
   ======================================================== */
.header-topup-pill {
    background: #FE141A;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2px;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(254, 20, 26, 0.35);
}
.header-topup-pill:hover {
    background: #E01217;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(254, 20, 26, 0.55);
}
.header-topup-pill:active {
    transform: scale(0.96);
}

.profile-popover {
    width: 310px;
    padding: 20px 22px;
    background: #181B22;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
}
.profile-popover::before {
    background: #181B22;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.profile-card {
    display: flex;
    flex-direction: column;
}
.profile-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.profile-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #252834;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}
.profile-card-details {
    flex: 1;
    min-width: 0;
}
.profile-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-card-uid {
    font-size: 0.74rem;
    color: #8E92A0;
    margin-top: 2px;
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: 0.3px;
}
.profile-card-auth {
    flex-shrink: 0;
}
.profile-auth-action {
    color: #9AA0B0;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.profile-auth-action:hover {
    color: #FE141A;
}
.profile-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 16px 0 14px;
}
.profile-card-balances {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px 0 6px;
}
.profile-balance-item {
    text-align: center;
    flex: 1;
}
.profile-balance-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.profile-balance-num .coin-glow {
    font-size: 1.1rem;
}
.profile-balance-title {
    font-size: 0.75rem;
    color: #8E92A0;
    margin-top: 3px;
    font-weight: 600;
}
.profile-balance-separator {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
}
.profile-topup-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #FE141A;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 0;
    border-radius: 999px;
    text-decoration: none !important;
    margin-top: 14px;
    box-shadow: 0 4px 14px rgba(254, 20, 26, 0.4);
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
    letter-spacing: 0.2px;
}
.profile-topup-btn:hover {
    background: #E01217;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(254, 20, 26, 0.6);
}
.profile-topup-btn:active {
    transform: scale(0.98);
}

/* Profile Popover VIP Subscription Card */
.profile-vip-block {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s;
}
.profile-vip-block.not-subscribed {
    background: linear-gradient(135deg, rgba(254, 20, 26, 0.12) 0%, rgba(245, 166, 35, 0.08) 100%);
    border: 1px solid rgba(254, 20, 26, 0.25);
}
.profile-vip-block.is-subscribed {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.16) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 166, 35, 0.4);
}
.profile-vip-info {
    flex: 1;
    min-width: 0;
}
.profile-vip-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile-vip-crown {
    font-size: 1.1rem;
    line-height: 1;
}
.profile-vip-title {
    font-size: 0.92rem;
    font-weight: 750;
    color: #F5A623;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-vip-tag {
    background: #10B981;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.profile-vip-subtext {
    font-size: 0.73rem;
    color: #9AA0B0;
    margin-top: 2px;
    line-height: 1.3;
}
.profile-vip-expiry {
    font-size: 0.74rem;
    color: #FBBF24;
    font-weight: 600;
    margin-top: 3px;
    line-height: 1.3;
}
.profile-vip-subscribe-btn {
    background: linear-gradient(135deg, #FE141A 0%, #D60E13 100%);
    color: #FFFFFF !important;
    font-size: 0.78rem;
    font-weight: 750;
    padding: 7px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(254, 20, 26, 0.35);
    transition: transform 0.15s, background 0.15s;
    display: inline-block;
}
.profile-vip-subscribe-btn:hover {
    transform: translateY(-1px);
    background: #FE2E33;
}
.profile-vip-renew-link {
    color: #F5A623 !important;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    padding: 5px 8px;
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: 6px;
    transition: all 0.15s;
    display: inline-block;
}
.profile-vip-renew-link:hover {
    background: rgba(245, 166, 35, 0.15);
}

/* ========================================================
   ReelFace Series Shelf Badges & Rank Styling
   ======================================================== */
.poster-badge-original {
    background: linear-gradient(135deg, #FE141A 0%, #B90E13 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(254, 20, 26, 0.4);
}

.poster-rank-num {
    position: absolute;
    bottom: 4px;
    left: 8px;
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -2px;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 4px 14px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    z-index: 2;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    user-select: none;
}

.poster-rank-num.is-rank-first {
    color: #FFC000 !important;
    -webkit-text-fill-color: #FFC000 !important;
    background: none !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 4px 14px rgba(0, 0, 0, 0.9), 0 0 18px rgba(255, 192, 0, 0.65) !important;
    filter: none !important;
}

.poster-play-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* ========================================================
   ReelFace Interactive Series Hover Preview Card
   ======================================================== */
.rf-hover-card {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92);
    transform-origin: center top;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s;
    will-change: transform, opacity, top, left;
}

.rf-hover-card.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.rf-hover-card-inner {
    background: #141722;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(254, 20, 26, 0.42);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.88), 0 0 28px rgba(254, 20, 26, 0.2);
    display: flex;
    flex-direction: column;
}

.rf-hover-poster-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0E1017;
    cursor: pointer;
}

.rf-hover-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.3s ease;
}

.rf-hover-card:hover .rf-hover-poster-img {
    transform: scale(1.04);
}

.rf-hover-poster-fallback {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    background: #1B202B;
}

.rf-hover-poster-fallback img {
    width: 40%;
    opacity: 0.4;
}

.rf-hover-poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 23, 34, 0.1) 0%, rgba(20, 23, 34, 0.4) 60%, #141722 100%);
    pointer-events: none;
}

.rf-hover-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    background: #FE141A;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    z-index: 2;
}

.rf-hover-rank {
    position: absolute;
    bottom: -4px;
    left: 10px;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    color: #FFFFFF;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95);
    z-index: 2;
    pointer-events: none;
    display: none;
}

.rf-hover-rank.is-rank-first {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rf-hover-views {
    position: absolute;
    bottom: 8px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 2;
}

.rf-hover-info-box {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
}

.rf-hover-title {
    margin: 0 0 6px;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rf-hover-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #9AA0B0;
}

.rf-hover-meta-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.rf-hover-pill {
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rf-hover-desc {
    margin: 0 0 12px;
    color: #B4B9C8;
    font-size: 0.74rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rf-hover-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rf-hover-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.15s ease;
}

.rf-hover-btn:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
}

.rf-hover-btn:active {
    transform: scale(0.95);
}

/* ========================================================
   Interactive Toast Notification
   ======================================================== */
.rf-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: #181C26;
    color: #FFFFFF;
    border: 1px solid rgba(254, 20, 26, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.rf-toast.is-shown {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================================
   Interactive Share Modal
   ======================================================== */
.rf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100050;
    display: grid;
    place-items: center;
    padding: 16px;
    animation: rfFadeIn 0.18s ease-out;
}

.rf-modal-backdrop[hidden] {
    display: none !important;
}

.rf-share-dialog {
    width: min(480px, 94vw);
    background: #171A23;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 22px 24px 26px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 30px rgba(254, 20, 26, 0.18);
    animation: rfModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    color: #FFFFFF;
}

@keyframes rfFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rfModalPop {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.rf-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.rf-share-heading {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

.rf-share-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #272B38;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9AA0B0;
    font-size: 1.3rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.rf-share-close:hover {
    background: #FE141A;
    border-color: #FE141A;
    color: #FFFFFF;
    transform: scale(1.08);
}

.rf-share-preview {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #212532;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rf-share-poster {
    width: 58px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    background: #10131A;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rf-share-preview-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rf-share-item-title {
    color: #FFFFFF;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rf-share-item-desc {
    margin: 0;
    color: #9AA0B0;
    font-size: 0.78rem;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rf-share-channels {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
    padding: 4px 8px 2px;
}

.rf-channel-btn {
    background: transparent;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    transition: transform 0.15s ease;
    color: #FFFFFF;
}

.rf-channel-btn:hover {
    transform: translateY(-3px);
}

.rf-channel-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #FFFFFF;
    transition: all 0.18s ease;
}

.rf-channel-wa {
    background: #25D366;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.rf-channel-fb {
    background: #1877F2;
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.4);
}

.rf-channel-x {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.rf-channel-link {
    background: #333746;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.rf-channel-btn:hover .rf-channel-icon {
    transform: scale(1.08);
}

.rf-channel-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #E2E8F0;
    letter-spacing: 0.2px;
}


