:root {
    --bg: #000000;
    --panel: rgba(9, 9, 13, 0.72);
    --panel-strong: rgba(10, 10, 16, 0.88);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(139, 92, 246, 0.45);
    --text: #f7f7fb;
    --muted: #a4a7b5;
    --accent: #8b5cf6;
    --accent-soft: rgba(139, 92, 246, 0.18);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    --starfield:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cg fill='white'%3E%3Ccircle cx='44' cy='77' r='1'/%3E%3Ccircle cx='138' cy='211' r='1.2'/%3E%3Ccircle cx='244' cy='121' r='0.8'/%3E%3Ccircle cx='321' cy='312' r='1'/%3E%3Ccircle cx='402' cy='96' r='1.1'/%3E%3Ccircle cx='488' cy='228' r='0.9'/%3E%3Ccircle cx='566' cy='148' r='1.1'/%3E%3Ccircle cx='642' cy='294' r='0.8'/%3E%3Ccircle cx='738' cy='118' r='1'/%3E%3Ccircle cx='95' cy='468' r='1.1'/%3E%3Ccircle cx='192' cy='522' r='0.8'/%3E%3Ccircle cx='280' cy='438' r='1.2'/%3E%3Ccircle cx='374' cy='566' r='0.9'/%3E%3Ccircle cx='456' cy='484' r='1.1'/%3E%3Ccircle cx='548' cy='620' r='0.8'/%3E%3Ccircle cx='652' cy='510' r='1.1'/%3E%3Ccircle cx='744' cy='614' r='1'/%3E%3Ccircle cx='58' cy='714' r='1.2'/%3E%3Ccircle cx='168' cy='688' r='0.8'/%3E%3Ccircle cx='266' cy='742' r='1.1'/%3E%3Ccircle cx='364' cy='704' r='0.9'/%3E%3Ccircle cx='472' cy='746' r='1.1'/%3E%3Ccircle cx='586' cy='692' r='0.9'/%3E%3Ccircle cx='694' cy='730' r='1.1'/%3E%3C/g%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(139, 92, 246, 0.14), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.08), transparent 24rem),
        var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

a,
button,
input,
select {
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, filter 180ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid rgba(139, 92, 246, 0.9);
    outline-offset: 3px;
}

.bg-stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--starfield);
    background-size: 56rem 56rem;
    background-repeat: repeat;
    opacity: 0.1;
}

.hero,
main,
.player-modal,
.details-modal {
    position: relative;
    z-index: 1;
}

.hero {
    min-height: min(76vh, 46rem);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #08080e;
}

.hero-backdrop,
.hero-backdrop-image,
.hero-backdrop-fallback,
.hero-backdrop-mask,
.hero-grain {
    position: absolute;
    inset: 0;
}

.hero-backdrop-image,
.hero-backdrop-fallback {
    width: 100%;
    height: 100%;
}

.hero-backdrop-image {
    object-fit: cover;
    object-position: center 25%;
    filter: brightness(0.38) saturate(1.22) blur(12px);
    transform: scale(1.08); /* prevents blur boundary clipping */
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.hero-backdrop-fallback {
    display: grid;
    place-items: center;
    font-family: "Lexend", sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.92);
    background:
        radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.45), transparent 28rem),
        linear-gradient(180deg, rgba(24, 18, 40, 0.9), rgba(0, 0, 0, 0.98));
}

.hero-backdrop-mask {
    background:
        radial-gradient(circle at 80% 35%, rgba(139, 92, 246, 0.14) 0%, transparent 60%),
        linear-gradient(90deg, #08080e 0%, rgba(8, 8, 14, 0.95) 28%, rgba(8, 8, 14, 0.6) 65%, rgba(8, 8, 14, 0.9) 100%),
        linear-gradient(0deg, #08080e 0%, rgba(8, 8, 14, 0.65) 25%, transparent 65%);
}

.hero-grain {
    opacity: 0.12;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0 0.6px, transparent 1px),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.08) 0 0.7px, transparent 1px);
    background-size: 10px 10px, 12px 12px;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.hero-content,
main {
    width: min(1380px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.hero-content {
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.4rem;
    padding: max(5.5rem, calc(env(safe-area-inset-top) + 3.8rem)) 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-glass,
.hero-stats,
.controls,
.catalog-shell,
.details-panel,
.player-panel,
.ad-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.hero-glass {
    border-radius: 1.8rem;
    padding: 2.2rem 2.6rem;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%), rgba(12, 10, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.12);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.hero-glass-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
    align-items: center;
}

.hero-glass-copy {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.feature-kicker-wrap {
    display: flex;
    align-items: center;
}

.feature-kicker-badge,
.feature-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.35);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    width: fit-content;
}

.feature-meta-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 0.1rem;
}

.feature-poster-mini-shell {
    position: relative;
    overflow: hidden;
    width: 210px;
    aspect-ratio: 2 / 3;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.feature-poster-mini-shell:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.75), 0 0 30px rgba(139, 92, 246, 0.25);
}

.feature-poster-mini,
.feature-poster-mini-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.feature-poster-mini {
    object-fit: cover;
}

.feature-poster-mini-fallback {
    display: grid;
    place-items: center;
    font-family: "Lexend", sans-serif;
    font-size: 2rem;
    background:
        radial-gradient(circle at 50% 24%, rgba(139, 92, 246, 0.45), transparent 10rem),
        linear-gradient(180deg, rgba(32, 22, 57, 0.95), rgba(8, 8, 12, 1));
}

.feature-kicker,
.section-kicker,
.search span,
.sort span,
.eyebrow,
.highlight-label,
.stat .label {
    margin: 0;
    color: #d6c9ff;
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.catalog-head h2,
.details-copy h2,
.player-head h2,
.title {
    margin: 0;
    font-family: "Lexend", sans-serif;
}

.hero h1 {
    margin: 0.3rem 0 0.2rem;
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #ffffff;
    text-wrap: balance;
    max-width: 48rem;
    word-break: break-word;
}

.feature-meta,
.feature-summary,
.meta,
.summary,
.meta-text,
.catalog-count,
.toolbar-user,
.empty-state p,
.details-summary {
    color: var(--muted);
    line-height: 1.6;
}

.lede {
    color: var(--muted);
    line-height: 1.65;
}

.feature-highlights {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1.1rem 0 0.4rem;
}

.highlight-card,
.stat {
    min-width: 8.5rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.highlight-card strong {
    display: inline;
    color: #ffffff;
    font-family: "Lexend", sans-serif;
    font-size: 0.9rem;
}

.stat strong {
    display: inline;
    margin-top: 0;
    color: #ffffff;
    font-family: "Lexend", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.highlight-card .highlight-star {
    color: #fbbf24;
    font-size: 0.88rem;
}

.highlight-card .highlight-source {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fcd34d;
    opacity: 0.9;
}

.genre-row,
.feature-actions,
.toolbar-auth,
.rating-actions,
.player-actions,
.filters,
.episode-list {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
}

.genre-pill,
.pill,
.filter-chip,
.episode-chip {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.genre-pill,
.pill {
    padding: 0.36rem 0.68rem;
    font-size: 0.76rem;
}

.source-badge {
    padding: 0.36rem 0.68rem;
    border-radius: 999px;
    font-size: 0.76rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.source-badge.is-enabled {
    border-color: rgba(139, 92, 246, 0.45);
    color: #e4dbff;
}

.source-badge.is-disabled {
    color: var(--muted);
}

.request-status-badge.is-new {
    border-color: rgba(34, 211, 238, 0.45);
    color: #a5f3fc;
}

.request-status-badge.is-approved {
    border-color: rgba(134, 239, 172, 0.45);
    color: #bbf7d0;
}

.request-status-badge.is-filled {
    border-color: rgba(139, 92, 246, 0.45);
    color: #e4dbff;
}

.request-status-badge.is-declined {
    color: var(--muted);
}

.hero-link,
.ghost-link,
.ghost-button,
.more-button,
.thumb-button,
.cast-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.hero-link {
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(139, 92, 246, 0.55);
    background: linear-gradient(135deg, #a78bfa, var(--accent));
    color: white;
    font-weight: 700;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.28);
}

.hero-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 34px rgba(139, 92, 246, 0.38);
}

.ghost-link,
.ghost-button,
.more-button,
.thumb-button,
.cast-button,
.sort select,
.search input,
.episode-chip {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.42);
    color: var(--text);
}

.ghost-link:hover,
.ghost-button:hover,
.more-button:hover,
.thumb-button:hover,
.cast-button:hover,
.episode-chip:hover,
.filter-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(139, 92, 246, 0.38);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border-radius: 1.1rem;
    background: rgba(14, 12, 24, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: fit-content;
}

.hero-stats .stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: auto;
}

.hero-stats .stat .label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9d94b8;
}

main {
    padding: 0 0 4rem;
}

.controls {
    position: sticky;
    top: 1rem;
    z-index: 5;
    display: grid;
    gap: 0.9rem;
    margin-top: -2.8rem;
    padding: 1rem;
    border-radius: 1.35rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(28px);
}

.toolbar-main,
.toolbar-sub,
.catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
}

.search {
    flex: 1 1 24rem;
    display: grid;
    gap: 0.4rem;
}

.sort {
    display: grid;
    gap: 0.4rem;
}

.search input,
.sort select {
    width: 100%;
    border-radius: 999px;
    font: inherit;
}

.search input::placeholder {
    color: #85889a;
}

.search input:focus,
.sort select:focus {
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 0 24px rgba(139, 92, 246, 0.18);
}

.filters {
    gap: 0.55rem;
}

.filter-chip {
    padding: 0.78rem 1rem;
    font: inherit;
    cursor: pointer;
}

.filter-chip.is-active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.26), rgba(139, 92, 246, 0.16));
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.18);
}

.ad-banner-slot,
.catalog-shell {
    margin-top: 1.25rem;
}

.catalog-shell {
    padding: 1.35rem;
    border-radius: 1.5rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.15rem;
}

.ribbon-row {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.1rem;
    content-visibility: auto;
    contain-intrinsic-size: 26rem;
}

.ribbon-label {
    margin: 0;
    font-family: "Lexend", sans-serif;
    font-size: 1rem;
    color: #f7f7fb;
}

.ribbon-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(10.75rem, 12rem);
    gap: 1rem;
    min-height: 25rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.15rem 0.15rem 0.8rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.55) rgba(255, 255, 255, 0.06);
}

.ribbon-track .card {
    scroll-snap-align: start;
}

.ribbon-track.is-deferred {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 44%);
    border-radius: 0.75rem;
}

#catalog-grid {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.15rem;
    min-height: 0;
    overflow: visible;
    padding: 0;
}

.card {
    position: relative;
    overflow: hidden;
    min-height: 25rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(22, 22, 28, 0.72), rgba(7, 7, 10, 0.92));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    filter: brightness(1.05);
}

.poster-shell,
.poster,
.poster-fallback,
.poster-shimmer {
    position: absolute;
    inset: 0;
}

.poster-shell {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(24, 24, 30, 0.9), rgba(8, 8, 12, 1));
}

.poster-shell::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.94));
    pointer-events: none;
}

.poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 220ms ease;
}

.card.is-loaded .poster {
    opacity: 1;
}

.poster-shimmer {
    background: linear-gradient(90deg, rgba(25, 25, 32, 0.95) 0%, rgba(46, 46, 60, 0.95) 50%, rgba(25, 25, 32, 0.95) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

.card.is-loaded .poster-shimmer,
.card.has-fallback .poster-shimmer {
    opacity: 0;
    pointer-events: none;
}

.poster-fallback {
    display: none;
    place-items: center;
    font-family: "Lexend", sans-serif;
    font-size: 2.4rem;
    background:
        radial-gradient(circle at 50% 24%, rgba(139, 92, 246, 0.45), transparent 12rem),
        linear-gradient(180deg, rgba(32, 22, 57, 0.95), rgba(8, 8, 12, 1));
}

.card.has-fallback .poster-fallback {
    display: grid;
}

.pill-row {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
}

.card-body {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    display: grid;
    gap: 0.7rem;
    padding: 8.6rem 0.95rem 0.95rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.78) 38%, rgba(0, 0, 0, 0.96) 100%);
}

.card-head {
    display: grid;
    gap: 0.3rem;
}

.title {
    font-size: 1.06rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.meta,
.summary {
    margin: 0;
    font-size: 0.9rem;
    color: #e8eaf3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    align-items: center;
}

.thumb-button {
    width: 2.7rem;
    height: 2.7rem;
    padding: 0;
    opacity: 0.62;
}

.thumb-button.is-active {
    opacity: 1;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.2);
}

.more-button {
    font-weight: 600;
}

.inline-ad-slot {
    grid-column: 1 / -1;
}

.ad-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 1.25rem;
}

.ad-copy h3,
.ad-copy p,
.ad-label,
.empty-state h2 {
    margin: 0;
}

.empty-state {
    padding: 3.5rem 1rem;
    text-align: center;
}

.player-modal,
.details-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.player-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(28px);
}

.details-panel {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    border-radius: 1.5rem;
    padding: 1.2rem;
}

.details-panel {
    display: grid;
    grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
    gap: 1.2rem;
}

.details-poster-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    min-height: 28rem;
    background: rgba(255, 255, 255, 0.05);
}

.details-poster,
.details-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.details-poster {
    object-fit: cover;
}

.details-fallback {
    display: grid;
    place-items: center;
    font-family: "Lexend", sans-serif;
    font-size: 2.4rem;
    background:
        radial-gradient(circle at 50% 24%, rgba(139, 92, 246, 0.45), transparent 12rem),
        linear-gradient(180deg, rgba(32, 22, 57, 0.95), rgba(8, 8, 12, 1));
}

.details-copy {
    display: grid;
    align-content: start;
    gap: 0.9rem;
}

.cast-button {
    display: none;
}

.cast-button.is-available {
    display: inline-flex;
}

.auth-shell,
.admin-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 0;
}

.auth-hero-bg,
.auth-hero-img,
.auth-hero-overlay,
.bg-nebula,
.bg-orb {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.auth-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.88));
}

.bg-nebula {
    background: radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.08), transparent 18rem);
    filter: blur(30px);
}

.bg-orb {
    inset: auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(90px);
    background: rgba(139, 92, 246, 0.45);
}

.orb-1 {
    top: 6rem;
    left: -4rem;
}

.orb-2 {
    right: -4rem;
    top: 14rem;
}

.auth-panel,
.admin-hero,
.admin-panel,
.status-strip {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    border-radius: 1.4rem;
}

.auth-panel {
    width: min(34rem, 100%);
    padding: 1.5rem;
}

.auth-head,
.provider-list,
.admin-grid,
.metric-grid,
.source-list,
.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form label {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
}

.auth-form input {
    width: 100%;
    border-radius: 0.95rem;
}

.primary-button,
.provider-button,
.tab-link,
#admin-rescan-button,
.source-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(139, 92, 246, 0.45);
    background: linear-gradient(135deg, #a78bfa, var(--accent));
    color: white;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.tab-link,
.source-toggle.is-off {
    background: rgba(0, 0, 0, 0.42);
    border-color: rgba(255, 255, 255, 0.09);
    color: var(--text);
    font-weight: 600;
}

.auth-toggle,
.admin-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--muted);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-shell {
    display: grid;
    gap: 1rem;
    padding: 2rem 0 3rem;
}

.admin-hero,
.status-strip,
.admin-panel {
    padding: 1.25rem;
}

.admin-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.8fr);
}

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

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

.source-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.source-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.request-list {
    display: grid;
    gap: 1rem;
}

.request-card {
    align-items: stretch;
}

.request-card-body {
    display: grid;
    gap: 0.7rem;
    min-width: 0;
}

.request-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.request-actions button {
    min-height: 2.3rem;
    padding-inline: 0.8rem;
    text-transform: capitalize;
}

.path-text,
.status-copy {
    color: var(--muted);
}

.hidden {
    display: none !important;
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}







/* --- Top nav layout (added 2026-06-19 — container was unstyled) ----------- */

.site-nav {
    position: relative;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    flex-wrap: wrap;
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
}

.nav-brand {
    font-family: "Lexend", sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: var(--text);
    white-space: nowrap;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* --- Upload + featured-strip (added 2026-06-12) --------------------------- */

.nav-upload {
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-upload:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.nav-request {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.nav-request:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: var(--line-strong);
}

.feature-strip {
    display: flex;
    gap: 0.6rem;
    margin: 0.9rem 0 0.2rem;
    flex-wrap: wrap;
}

.feature-strip-thumb {
    width: 132px;
    height: 74px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    cursor: pointer;
    opacity: 0.78;
    transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.feature-strip-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.request-modal,
.upload-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.request-modal.hidden,
.upload-modal.hidden {
    display: none;
}

.request-panel,
.upload-panel {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.6rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.upload-panel-wide {
    width: min(860px, 100%);
    max-height: min(90vh, 920px);
    overflow: auto;
}

.upload-tabs {
    display: flex;
    gap: 0.45rem;
    margin: 0.9rem 0 1rem;
    flex-wrap: wrap;
}

.upload-tab {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.upload-tab.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.28);
}

.upload-tab-panel.hidden {
    display: none;
}

.eporner-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.6rem;
    margin: 0.9rem 0 0.7rem;
}

.eporner-search-form input,
.eporner-search-form select {
    width: 100%;
    border-radius: 0.9rem;
    font: inherit;
}

.eporner-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
    margin-top: 0.8rem;
}

.eporner-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.eporner-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

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

.eporner-duration {
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.4rem;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.eporner-card-body {
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem 0.8rem 0.85rem;
}

.eporner-card-body h3 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eporner-card-actions {
    margin-top: 0.25rem;
}

.eporner-download {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.eporner-download:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.eporner-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.eporner-pager.hidden {
    display: none;
}

.foryou-queries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.4rem 0 0.9rem;
}

.foryou-query-chip {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.foryou-query-chip:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.foryou-reason {
    margin: 0;
    color: #fbbf24;
    font-size: 0.82rem;
    line-height: 1.35;
}

.similar-scenes-panel {
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line);
}

.similar-scenes-panel.hidden {
    display: none;
}

.similar-scenes-list {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.45rem;
}

.similar-scene-chip {
    display: grid;
    gap: 0.15rem;
    text-align: left;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 0.85rem;
    padding: 0.55rem 0.7rem;
    font: inherit;
    cursor: pointer;
}

.similar-scene-chip strong {
    font-size: 0.92rem;
}

.similar-scene-chip span {
    color: var(--muted);
    font-size: 0.8rem;
}

.similar-scene-chip:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.scene-identify-panel {
    margin: 1rem 0 0.4rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 0.65rem;
}

.scene-identify-panel.hidden {
    display: none;
}

.scene-field {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.scene-field input,
.scene-field textarea {
    width: 100%;
    border-radius: 0.9rem;
    font: inherit;
}

.scene-identify-actions {
    margin-top: 0.15rem;
}

.card.needs-identify {
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.35);
}

.quality-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0f172a;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.scene-card-identify {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    z-index: 3;
    border: none;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    box-shadow: 0 8px 18px rgba(139, 92, 246, 0.35);
}

.scene-card-identify:hover {
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .eporner-search-form {
        grid-template-columns: 1fr;
    }

    .eporner-results {
        grid-template-columns: 1fr;
    }
}

.request-form {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    margin-top: 1rem;
}

.request-field {
    display: grid;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.request-field-full,
.request-status,
.request-form .player-actions {
    grid-column: 1 / -1;
}

.request-field input,
.request-field select,
.request-field textarea {
    width: 100%;
    border-radius: 0.9rem;
    font: inherit;
}

.request-field textarea {
    resize: vertical;
    min-height: 6.5rem;
}

.request-status {
    min-height: 1.5rem;
    margin: 0;
    color: var(--muted);
}

.request-status.is-success {
    color: #86efac;
}

.request-status.is-error {
    color: #fca5a5;
}

.upload-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
    margin: 1rem 0;
    padding: 1rem;
    border: 2px dashed var(--line-strong);
    border-radius: 14px;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.upload-drop:hover,
.upload-drop.is-dragover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--text);
}

.upload-override {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.upload-override.hidden {
    display: none;
}

.upload-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 0.7rem;
}

.upload-progress.hidden {
    display: none;
}

.upload-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #22d3ee);
    transition: width 0.2s ease;
}

.upload-status {
    min-height: 1.2rem;
    margin: 0 0 0.8rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.upload-status.is-success {
    color: #4ade80;
}

.upload-status.is-error {
    color: #f87171;
}

/* Fire TV cast button — always shown (unlike the Google Cast button) */
.sendtv-button {
    display: inline-flex;
    position: relative;
    gap: 0.4rem;
    font-weight: 600;
}

.sendtv-button::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 2px;
    background: #ff9900; /* Fire TV orange */
}

.sendtv-button[data-state="busy"] {
    opacity: 0.7;
    cursor: progress;
}

.sendtv-button[data-state="ok"] {
    border-color: rgba(52, 211, 153, 0.5);
    color: #34d399;
}

.sendtv-button[data-state="error"] {
    border-color: rgba(248, 113, 113, 0.5);
    color: #f87171;
}


/* ===== Responsive overrides — kept last so media queries win the cascade ===== */

@media (max-width: 960px) {
    .details-panel,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .hero-glass {
        padding: 1.8rem;
    }

    .hero-glass-layout {
        gap: 1.8rem;
    }

    .feature-poster-mini-shell {
        width: 175px;
    }

    .controls {
        top: 0.5rem;
        margin-top: -1.6rem;
    }
}

@media (max-width: 720px) {
    .hero-content,
    main {
        width: min(100%, calc(100% - 1.2rem));
    }

    /* --- Compact top bar: brand left, tidy action cluster right --- */
    .site-nav {
        gap: 0.5rem;
        flex-wrap: nowrap;
        padding: 0.7rem 0.85rem;
    }

    .nav-brand {
        flex: 0 0 auto;
        font-size: 1rem;
    }

    .nav-right {
        flex: 1 1 auto;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.4rem;
    }

    /* Contribution actions collapse to compact icon buttons on phones */
    .nav-request,
    .nav-upload {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        font-size: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .nav-request::before {
        content: "\271A";
        font-size: 1.05rem;
    }

    .nav-upload::before {
        content: "\2934";
        font-size: 1.2rem;
    }

    /* Auth links stay labeled but compact */
    #toolbar-auth .ghost-link,
    #toolbar-auth .hero-link {
        padding: 0.5rem 0.85rem;
        font-size: 0.88rem;
    }

    /* --- Hero: sleek adaptive layout on smaller screens --- */
    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: max(4.2rem, calc(env(safe-area-inset-top) + 3rem)) 0 1.5rem;
        gap: 1rem;
    }

    .hero-glass {
        padding: 1.4rem;
        border-radius: 1.4rem;
    }

    .hero-glass-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-poster-mini-shell {
        display: none;
    }

    .hero h1 {
        margin-top: 0.2rem;
        font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    }

    .feature-actions {
        margin-top: 0.6rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .feature-actions .hero-link {
        grid-column: span 2;
        text-align: center;
    }

    .feature-actions .ghost-button {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    /* --- Controls + catalog --- */
    .hero-glass,
    .controls,
    .catalog-shell,
    .player-panel,
    .details-panel {
        border-radius: 1.1rem;
    }

    .controls {
        top: 0.5rem;
        margin-top: 0.85rem;
        padding: 0.85rem;
    }

    .catalog-shell {
        padding: 1rem 0.85rem;
    }

    .catalog-grid,
    #catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .ribbon-track {
        grid-auto-columns: minmax(9.25rem, 10.25rem);
        min-height: 21rem;
        gap: 0.8rem;
    }

    .card {
        min-height: 21rem;
    }

    .card-body {
        padding-top: 6.5rem;
    }

    .request-form {
        grid-template-columns: 1fr;
    }

    .player-head,
    .toolbar-main,
    .toolbar-sub,
    .catalog-head {
        align-items: stretch;
    }

    /* Modal header action rows span full width below the title */
    .player-head .player-actions,
    .details-copy .player-actions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 0.95rem;
    }

    /* The 720px block collapses these to 40px icon buttons (font-size: 0 plus a
       ::before glyph). Re-stating padding and font-size here put 13px labels
       back inside a 40px button, so both captions spilled across the brand.
       Narrower than 720 is still a phone: the icons stand. */

    .hero h1 {
        font-size: clamp(2rem, 8.5vw, 3rem);
    }

    .feature-summary {
        font-size: 0.92rem;
    }

    .catalog-grid,
    #catalog-grid {
        gap: 0.7rem;
    }

    .ribbon-track {
        grid-auto-columns: minmax(8.5rem, 9.5rem);
    }

    /* Cast / Send-to-TV / Fullscreen / Close grow to real tap targets */
    .player-actions .cast-button,
    .player-actions .ghost-button {
        flex: 1 1 auto;
    }
}

/* ==========================================================================
   TV control — "what is on the TVs, and drive them"
   ========================================================================== */

.tv-bar {
    margin: 1.2rem 0 0.4rem;
    padding: 1rem 1.1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.tv-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.tv-bar-head .section-kicker {
    margin: 0;
}

.tv-bar-refresh {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.tv-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    gap: 0.9rem;
}

.tv-card {
    display: grid;
    gap: 0.5rem;
    padding: 0.9rem 1rem 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.tv-card.is-idle {
    opacity: 0.72;
}

.tv-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.tv-card-name {
    margin: 0;
    font-family: "Lexend", sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.tv-card-state {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    white-space: nowrap;
}

.tv-card-state[data-state="active"] {
    color: #c4b5fd;
    border-color: var(--line-strong);
    background: var(--accent-soft);
}

.tv-card-state[data-state="offline"] {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.4);
}

.tv-card-title {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text);
    /* Long release names must not stretch the grid column. */
    overflow-wrap: anywhere;
}

.tv-card-time,
.tv-card-status {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
    min-height: 1rem;
}

.tv-card-status.is-error {
    color: #fca5a5;
}

.tv-scrub {
    display: flex;
}

.tv-seek,
.tv-volume {
    width: 100%;
    accent-color: var(--accent);
    /* A 44px-tall hit area: a 4px-tall native slider is unusable with a thumb. */
    height: 1.75rem;
    cursor: pointer;
}

.tv-seek:disabled {
    opacity: 0.35;
    cursor: default;
}

.tv-card-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tv-btn {
    flex: 1 1 auto;
    min-width: 4.2rem;
    /* 2.75rem = 44px, the smallest reliably tappable target. */
    min-height: 2.75rem;
    padding: 0 0.7rem;
    border-radius: 0.8rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.tv-btn:hover {
    border-color: var(--line-strong);
}

.tv-btn-primary {
    background: var(--accent-soft);
    border-color: var(--line-strong);
    font-weight: 600;
}

.tv-card-volume {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --------------------------------------------------- where-to-play chooser */

.target-sheet {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.target-sheet.hidden {
    display: none;
}

.target-panel {
    position: relative;
    z-index: 1;
    width: min(30rem, 100%);
    margin: 0 0 max(0.75rem, env(safe-area-inset-bottom));
    padding: 1.3rem 1.3rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    background: var(--panel-strong);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
}

.target-panel h2 {
    margin: 0.2rem 0 1rem;
    font-family: "Lexend", sans-serif;
    font-size: 1.25rem;
}

.target-options {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.target-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
    padding: 0.7rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.target-option:hover,
.target-option:focus-visible {
    border-color: var(--line-strong);
    background: var(--accent-soft);
}

.target-option-name {
    font-weight: 600;
}

.target-option-note {
    font-size: 0.78rem;
    color: var(--muted);
}

.target-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ==========================================================================
   Phones
   ========================================================================== */

@media (max-width: 720px) {
    /* Sheets belong at the bottom of a phone, in thumb reach. */
    .target-panel {
        width: 100%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .tv-bar {
        margin-top: 0.9rem;
        padding: 0.85rem 0.9rem 1rem;
        border-radius: 1rem;
    }

    .tv-cards {
        /* One TV per row: side-by-side cards squeeze the controls too far. */
        grid-template-columns: 1fr;
    }

    /* The player modal is the one place a phone should get the full screen. */
    .player-panel {
        width: 100%;
        max-width: 100%;
        max-height: 100dvh;
        border-radius: 0;
        padding: 0.9rem 0.9rem calc(0.9rem + env(safe-area-inset-bottom));
    }

    .player-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .player-head h2 {
        font-size: 1.1rem;
        overflow-wrap: anywhere;
    }

    .player-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    /* Every control in the player reaches the 44px tap target. */
    .player-actions button {
        flex: 1 1 7rem;
        min-height: 2.75rem;
    }



    /* iOS zooms the page when a focused input is under 16px. Holding every
       control at 16px is the only reliable way to stop that. */
    input,
    select,
    textarea {
        font-size: 16px;
    }

    .filter-chip {
        min-height: 2.5rem;
    }

    /* The filter row scrolls sideways instead of wrapping into three lines. */
    .filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.2rem;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex: 0 0 auto;
    }

    .toolbar-sub {
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .tv-btn {
        min-width: 3.6rem;
        font-size: 0.8rem;
    }
}

.toolbar-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--accent-soft);
    color: #c4b5fd;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

@media (max-width: 720px) {
    /* The nav is the tightest row on a phone; the badge earns its width. */
    .toolbar-badge {
        padding: 0.28rem 0.55rem;
        font-size: 0.68rem;
    }

    .toolbar-user {
        display: none;
    }
}

/* The TV bar sits outside <main>, so it carries its own page gutters. */
.tv-bar {
    width: min(72rem, calc(100% - 2.4rem));
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 720px) {
    .tv-bar {
        width: calc(100% - 1.2rem);
    }
}

/* ==========================================================================
   THEATER-GRADE MOBILE & DESKTOP VIDEO PLAYER
   ========================================================================== */

.player-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.player-modal.hidden {
    display: none !important;
}

.player-backdrop {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 1;
}

.player-panel {
    position: relative;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.player-surface {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

#player-video {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100dvh;
    object-fit: contain;
    background: #000;
    outline: none;
    cursor: pointer;
}

/* Control overlays auto-hide */
.player-overlay-top,
.player-overlay-center,
.player-overlay-bottom {
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.controls-hidden .player-overlay-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
}

.controls-hidden .player-overlay-center {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9);
}

.controls-hidden .player-overlay-bottom {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

/* Top bar overlay */
.player-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: max(0.9rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 2.6rem max(1rem, env(safe-area-inset-left));
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.player-title-box {
    flex: 1;
    min-width: 0;
}

.player-title-box h2 {
    margin: 0;
    font-size: clamp(1rem, 3.2vw, 1.35rem);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.player-meta-inline {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-top-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.player-icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(18, 15, 26, 0.65);
    backdrop-filter: blur(14px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.player-icon-btn:hover,
.player-icon-btn:focus-visible {
    background: rgba(139, 92, 246, 0.45);
    border-color: rgba(139, 92, 246, 0.65);
    transform: scale(1.06);
}

.player-icon-btn .btn-subtext {
    position: absolute;
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    pointer-events: none;
}

/* Center play/pause toggle button */
.player-overlay-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    pointer-events: none;
}

.center-play-button {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(18, 15, 26, 0.78);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(139, 92, 246, 0.25);
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.center-play-button:hover,
.center-play-button:focus-visible {
    transform: scale(1.12);
    background: rgba(124, 58, 237, 0.85);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(139, 92, 246, 0.5);
}

.center-play-button svg {
    margin-left: 3px;
}

.center-play-button .icon-pause {
    margin-left: 0;
}

/* Double-tap feedback ripples */
.double-tap-ripple {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 38%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #fff;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 80%);
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    z-index: 25;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.double-tap-left {
    left: 0;
    border-radius: 0 100% 100% 0 / 0 50% 50% 0;
}

.double-tap-right {
    right: 0;
    border-radius: 100% 0 0 100% / 50% 0 0 50%;
}

.double-tap-ripple.animate-ripple {
    opacity: 1;
    transform: scale(1);
}

.double-tap-ripple .tap-icon {
    font-size: 2.2rem;
    font-weight: 800;
}

.double-tap-ripple .tap-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Bottom bar overlay */
.player-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 3rem max(1.2rem, env(safe-area-inset-right)) max(1.2rem, env(safe-area-inset-bottom)) max(1.2rem, env(safe-area-inset-left));
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Scrubber Timeline */
.player-timeline {
    position: relative;
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.player-seek {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 6px;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #8b5cf6 0%, #d946ef var(--seek-progress, 0%), rgba(255, 255, 255, 0.22) var(--seek-progress, 0%));
}

.player-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.85);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.player-seek:hover::-webkit-slider-thumb,
.player-seek:active::-webkit-slider-thumb {
    transform: scale(1.35);
}

.player-seek::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.85);
    cursor: pointer;
}

/* Bottom controls row */
.player-bottom-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.player-ctrl-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.player-time {
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    margin-left: 0.3rem;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.player-volume {
    width: 80px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    accent-color: #8b5cf6;
    cursor: pointer;
}

.player-speed {
    background: rgba(18, 15, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

/* ==========================================================================
   ROKU TV CAST MODAL
   ========================================================================== */

.roku-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
}

.roku-modal.hidden {
    display: none !important;
}

.roku-panel {
    position: relative;
    z-index: 2;
    width: min(540px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(20, 16, 32, 0.96);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.2);
}

.roku-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.9rem;
}

.roku-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.roku-badge {
    background: #662d91;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.roku-head h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.roku-body {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.roku-method {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1rem;
}

.roku-method .method-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.98rem;
    color: #fff;
}

.roku-method p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.roku-link-box {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.roku-link-box input {
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.65rem;
    padding: 0.6rem 0.8rem;
    color: #e2e8f0;
    font-size: 0.85rem;
    outline: none;
}

.roku-ip-box {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.roku-ip-box input {
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.65rem;
    padding: 0.6rem 0.8rem;
    color: #e2e8f0;
    font-size: 0.88rem;
    outline: none;
}

.roku-status {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a78bfa;
}

.meta-subtext {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE REFINEMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .site-nav {
        padding: max(0.6rem, env(safe-area-inset-top)) 0.8rem 0.6rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        padding: max(3.8rem, calc(env(safe-area-inset-top) + 2.8rem)) 0.9rem 1rem;
        width: 100%;
    }

    /* Horizontal Stat Strip on Mobile */
    .hero-stats {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.5rem 0.2rem;
        width: 100%;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hero-stats::-webkit-scrollbar {
        display: none;
    }

    .hero-stats .stat {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.4rem 0.85rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 999px;
    }

    .hero-stats .stat .label {
        font-size: 0.72rem;
        text-transform: uppercase;
        color: var(--muted);
    }

    .hero-stats .stat strong {
        font-size: 0.88rem;
        color: #fff;
    }

    .feature-poster-mini-shell {
        display: none;
    }

    .feature-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        width: 100%;
    }

    .feature-actions .hero-link,
    .feature-actions .ghost-button {
        width: 100%;
        padding: 0.75rem 0.6rem;
        font-size: 0.92rem;
        text-align: center;
    }

    .controls {
        position: sticky;
        top: max(3.5rem, calc(env(safe-area-inset-top) + 2.5rem));
        z-index: 60;
        margin-top: -1rem;
        border-radius: 1rem;
        padding: 0.8rem;
    }

    .toolbar-sub {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .filters {
        display: flex;
        overflow-x: auto;
        gap: 0.45rem;
        padding-bottom: 0.2rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex: 0 0 auto;
        padding: 0.55rem 0.9rem;
        font-size: 0.84rem;
        white-space: nowrap;
    }

    /* Details modal mobile bottom sheet */
    .details-modal {
        align-items: flex-end;
        padding: 0;
    }

    .details-panel {
        width: 100%;
        max-height: 88vh;
        border-radius: 1.5rem 1.5rem 0 0;
        grid-template-columns: 1fr;
        overflow-y: auto;
        padding: 1.5rem 1.2rem max(1.5rem, env(safe-area-inset-bottom));
    }

    .details-poster-shell {
        min-height: 14rem;
        max-height: 20rem;
    }
}

.provider-button.google-provider-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.provider-button.google-provider-button:hover:not(.is-disabled) {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}

.provider-button.google-provider-button .provider-icon {
    flex-shrink: 0;
}

/* Browser-compatible playback: shown while a converted copy is built or swapped in. */
.player-notice {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  max-width: min(92%, 560px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.82);
  color: #f3f3f6;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
  z-index: 6;
  pointer-events: none;
}
.player-notice.hidden { display: none; }


/* ==========================================================================
   SHARE / RECOMMENDATION MODAL & CARD BUTTONS
   ========================================================================== */

.card-share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text, #f3f3f6);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.card-share-button:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.55);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}

.card-share-button svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.card-share-button:hover svg {
    transform: scale(1.12);
}

.share-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.share-modal.hidden {
    display: none !important;
}

.share-panel {
    position: relative;
    z-index: 2;
    width: min(540px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(20, 16, 32, 0.96);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: shareModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes shareModalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.share-movie-card {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 0.85rem;
    align-items: center;
}

.share-movie-poster {
    width: 65px;
    height: 95px;
    object-fit: cover;
    border-radius: 0.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    background: #111;
}

.share-movie-info {
    flex: 1;
    min-width: 0;
}

.share-movie-title {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-movie-meta {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.share-movie-desc {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-benefit-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.85rem;
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.share-badge-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.share-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

.share-input-row {
    display: flex;
    gap: 0.5rem;
}

.share-link-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: monospace;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.share-link-input:focus {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    white-space: nowrap;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-copy-btn.is-copied {
    background: #10b981 !important;
    border-color: #059669 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.share-quick-channels {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.share-channels-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

.share-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.65rem;
}

.share-channel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.85rem;
    padding: 0.85rem 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-channel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.share-channel-btn .channel-icon {
    font-size: 1.4rem;
}

/* Floating Toast Notification */
.app-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20000;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(20, 16, 32, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.5);
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-toast.toast-in {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.app-toast.toast-out {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
}

.app-toast.hidden {
    display: none !important;
}

.app-toast .toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

@media (max-width: 480px) {
    .share-panel {
        padding: 1.25rem 1rem;
        border-radius: 1.25rem;
    }
    .share-movie-card {
        padding: 0.65rem;
    }
    .share-movie-poster {
        width: 50px;
        height: 75px;
    }
    .share-channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================================================
   OPEN GRAPH / SOCIAL PREVIEW CARD
   ========================================================================== */

.og-preview-box {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.og-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.og-preview-badge {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.og-preview-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.og-card {
    background: #1e1b2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.og-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.og-card-banner {
    position: relative;
    width: 100%;
    height: 180px;
    background: #0d0b14;
    overflow: hidden;
}

.og-card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    filter: brightness(0.9);
}

.og-card-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.og-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding-left: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.6);
}

.og-card-body {
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: rgba(26, 22, 38, 0.98);
}

.og-card-site {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #a78bfa;
}

.og-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.og-card-desc {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.feature-highlights[hidden],
.feature-strip[hidden],
[hidden] {
    display: none !important;
}

.ribbon-row.is-featured-seasonal {
    padding: 0.75rem 0.9rem;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(255, 107, 0, 0.22);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.ribbon-row.is-featured-seasonal .ribbon-label {
    color: #ff9f43;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 0 16px rgba(255, 159, 67, 0.35);
}
