:root {
    color-scheme: dark;
    --bg: #050505;
    --panel: #111111;
    --panel-soft: #181818;
    --ink: #f7f3ec;
    --muted: #a8a39a;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #e23a3a;
    --accent-2: #f0b64d;
    --focus: #79d4ff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    --header-height: 76px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.5), #050505 55%),
        radial-gradient(circle at top right, rgba(226, 58, 58, 0.16), transparent 32%);
}

[hidden] {
    display: none !important;
}

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

button,
input,
select {
    font: inherit;
}

select {
    color: var(--ink);
    color-scheme: dark;
}

select option,
select optgroup {
    color: var(--ink);
    background: var(--panel-soft);
}

select option:checked {
    color: #ffffff;
    background: var(--accent);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(120px, 190px) minmax(220px, 1fr) minmax(240px, 460px) auto;
    gap: 24px;
    align-items: center;
    min-height: var(--header-height);
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(5, 5, 5, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.notification-region {
    position: fixed;
    top: var(--notification-top, calc(var(--header-height) + 12px));
    left: 50%;
    z-index: 10000;
    display: flex;
    width: min(440px, calc(100vw - 32px));
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    transform: translateX(-50%);
    transition: top 160ms ease;
}

.notification {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
    min-height: 58px;
    padding: 16px 18px 17px;
    overflow: hidden;
    color: #f7fbff;
    background: #183b59;
    border: 1px solid rgba(135, 204, 255, 0.48);
    border-radius: 10px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.58);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease;
}

.notification.is-closing {
    opacity: 0;
    transform: translateY(-8px);
}

.notification-success {
    color: #eafff3;
    background: #174c37;
    border-color: rgba(111, 229, 166, 0.52);
}

.notification-error {
    color: #fff0f0;
    background: #61262b;
    border-color: rgba(255, 128, 138, 0.55);
}

.notification-warning {
    color: #fff8db;
    background: #604b16;
    border-color: rgba(255, 211, 91, 0.58);
}

.notification-message {
    margin: 0;
    font-size: 0.93rem;
    font-weight: 750;
    line-height: 1.45;
}

.notification-dismiss {
    display: grid;
    width: 26px;
    height: 26px;
    margin: -5px -7px 0 0;
    padding: 0;
    place-items: center;
    color: currentColor;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.68;
}

.notification-dismiss:hover,
.notification-dismiss:focus-visible {
    background: rgba(255, 255, 255, 0.13);
    opacity: 1;
    outline: 0;
}

.notification-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.48;
    transform: scaleX(1);
    transform-origin: left;
    animation: notification-countdown var(--notification-duration) linear forwards;
}

@keyframes notification-countdown {
    to {
        transform: scaleX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .notification-region,
    .notification {
        transition: none;
    }

    .notification-progress {
        animation: none;
    }
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: auto;
    max-width: min(170px, 100%);
    max-height: 44px;
    height: auto;
}

.primary-nav {
    display: flex;
    gap: clamp(14px, 2vw, 28px);
    align-items: center;
    color: var(--muted);
    font-size: 0.94rem;
}

.primary-nav a,
.back-link {
    transition: color 160ms ease;
}

.primary-nav a:hover,
.back-link:hover {
    color: var(--ink);
}

.search {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
}

.search > span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.search input {
    width: 100%;
    min-width: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
}

.search:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(121, 212, 255, 0.16);
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 90;
    display: grid;
    max-height: min(420px, calc(100vh - var(--header-height) - 24px));
    padding: 8px;
    overflow-y: auto;
    background: rgba(18, 18, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.search-results[hidden],
.search-result[hidden] {
    display: none;
}

.search-result {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    color: var(--ink);
    border-radius: 7px;
}

.search-result:hover,
.search-result:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: 0;
}

.search-result-image {
    width: 46px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--panel-soft);
}

.search-result-image-person,
.search-result-image-studio {
    height: 46px;
    border-radius: 50%;
}

.search-result-image-fallback {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 900;
}

.search-result-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.search-result-title {
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 800;
}

.search-result-type {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.search-result-empty {
    display: block;
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.account {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.account-menu {
    position: relative;
}

.account-trigger {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    padding: 4px;
    color: inherit;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.account-trigger:hover,
.account-trigger:focus-visible,
.account-menu.is-open .account-trigger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    outline: 0;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 80;
    display: grid;
    min-width: 210px;
    padding: 8px;
    background: rgba(18, 18, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.account-menu.is-open .account-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.account-dropdown a {
    padding: 12px 12px;
    color: var(--muted);
    border-radius: 7px;
    font-weight: 800;
}

.account-dropdown a:hover,
.account-dropdown a:focus-visible {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    outline: 0;
}

.account-dropdown-status-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.subscription-menu-icon,
.subscription-menu-status {
    flex: 0 0 auto;
}

.login-button,
.primary-action,
.secondary-action,
.list-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
}

.login-button,
.secondary-action {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.list-status {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    cursor: default;
}

.primary-action {
    color: #ffffff;
    background: var(--accent);
    border-color: rgba(255, 255, 255, 0.08);
}

.primary-action:hover {
    background: #f14b4b;
}

.purchase-action {
    background: #24945f;
    border-color: rgba(255, 255, 255, 0.1);
}

.purchase-action:hover,
.purchase-action:focus-visible {
    background: #2caf72;
    outline: 0;
}

.action-with-icon {
    gap: 9px;
}

.action-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.action-icon-play {
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid currentColor;
}

.action-icon-movie {
    border: 2px solid currentColor;
    border-radius: 3px;
}

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

.action-icon-movie::before {
    top: -2px;
    left: 2px;
    right: 2px;
    height: 5px;
    background: repeating-linear-gradient(
        90deg,
        currentColor 0 3px,
        transparent 3px 6px
    );
}

.action-icon-movie::after {
    top: 9.5px;
    left: 50%;
    width: 6px;
    height: 7px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform: translate(-50%, -50%);
}

.action-icon-plus::before,
.action-icon-plus::after,
.action-icon-minus::before {
    position: absolute;
    top: 8px;
    left: 3px;
    width: 12px;
    height: 2px;
    content: "";
    background: currentColor;
    border-radius: 999px;
}

.action-icon-plus::after {
    transform: rotate(90deg);
}

.action-icon-info {
    border: 2px solid currentColor;
    border-radius: 999px;
}

.action-icon-info::before,
.action-icon-info::after {
    position: absolute;
    left: 50%;
    content: "";
    background: currentColor;
    border-radius: 999px;
    transform: translateX(-50%);
}

.action-icon-info::before {
    top: 4px;
    width: 2px;
    height: 2px;
}

.action-icon-info::after {
    top: 8px;
    width: 2px;
    height: 5px;
}

.action-icon-check::before {
    position: absolute;
    top: 3px;
    left: 5px;
    width: 7px;
    height: 11px;
    content: "";
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(42deg);
}

.secondary-action:hover,
.login-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.secondary-action.needs-save {
    color: #1a1204;
    background: #ffb340;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 179, 64, 0.18);
}

.secondary-action.needs-save:hover,
.secondary-action.needs-save:focus-visible {
    background: #ffc35f;
}

.success-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    color: #ffffff;
    background: #24945f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
}

.success-action:hover,
.success-action:focus-visible {
    background: #2caf72;
    outline: 0;
}

button.success-action:disabled,
button.success-action[disabled] {
    color: rgba(255, 255, 255, 0.58);
    background: #555555;
    border-color: rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
}

button.success-action:disabled:hover,
button.success-action:disabled:focus-visible,
button.success-action[disabled]:hover,
button.success-action[disabled]:focus-visible {
    background: #555555;
    cursor: not-allowed;
}

.profile-name {
    color: var(--muted);
    font-size: 1.08rem;
    font-weight: 800;
}

.profile-summary {
    display: grid;
    justify-items: end;
    gap: 3px;
    min-width: 0;
}

.subscription-menu-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.subscription-menu-status.is-active,
.subscription-menu-icon.is-active {
    color: #5edb91;
}

.subscription-menu-status.is-warning,
.subscription-menu-icon.is-warning {
    color: #f5a524;
}

.subscription-menu-status.is-expired,
.subscription-menu-icon.is-expired {
    color: #ff6b6b;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.profile-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #252525;
}

main {
    min-height: calc(100vh - var(--header-height));
}

.hero-carousel {
    position: relative;
    display: grid;
    min-height: min(760px, calc(100vh - var(--header-height)));
    overflow: hidden;
}

.hero-slide {
    position: relative;
    grid-area: 1 / 1;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 760px);
    align-items: center;
    padding: clamp(34px, 6vw, 92px) clamp(18px, 6vw, 82px) 108px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 640ms ease;
    z-index: 0;
}

.hero-slide::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center right;
    filter: saturate(0.88) contrast(1.04);
    opacity: 1;
}

.hero-slide::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.82) 0%, rgba(5, 5, 5, 0.54) 38%, rgba(5, 5, 5, 0.04) 100%),
        linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0.42) 28%, rgba(5, 5, 5, 0) 64%),
        linear-gradient(180deg, rgba(5, 5, 5, 0.34) 0%, rgba(5, 5, 5, 0) 24%);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-copy {
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    row-gap: 16px;
    align-content: center;
    max-width: 720px;
    min-height: 470px;
}

.eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--accent-2);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

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

.hero-copy h1,
.player-details h1,
.not-found h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 7vw, 7.6rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.hero-copy h1 {
    margin-bottom: 0;
}

.hero-copy p,
.player-details p {
    max-width: 680px;
    color: #d5cec3;
    font-size: clamp(1rem, 1.5vw, 1.24rem);
    line-height: 1.65;
}

.hero-copy p {
    margin-bottom: 0;
}

.hero-kicker {
    min-height: 66px;
}

.hero-title-slot {
    display: flex;
    align-items: start;
    min-height: clamp(164px, 17vw, 206px);
}

.hero-description-slot {
    display: flex;
    align-items: start;
    min-height: 82px;
}

.hero-meta,
.detail-tags,
.hero-actions,
.player-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta {
    min-height: 30px;
    margin: 0;
    color: var(--muted);
}

.player-action-form {
    display: inline-flex;
}

.player-action-form .secondary-action {
    width: 100%;
}

.hero-meta span,
.detail-tags span,
.hero-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 30px;
}

.card-tags {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.card-tags span {
    color: #ffffff;
    background: rgba(226, 58, 58, 0.92);
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-dots {
    position: absolute;
    right: clamp(18px, 6vw, 82px);
    bottom: 36px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 34px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: var(--accent);
}

.library {
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: clamp(34px, 5vw, 72px) clamp(18px, 4vw, 56px);
}

.library-heading {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.library-heading h2 {
    margin-bottom: 0;
    font-size: clamp(1.6rem, 3vw, 3rem);
    line-height: 1;
}

.library-heading p {
    margin-bottom: 2px;
    color: var(--muted);
    font-weight: 700;
}

.movie-row {
    margin-top: 34px;
}

.movie-row h3 {
    margin-bottom: 14px;
    font-size: 1.04rem;
}

.movie-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 380px);
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 24px;
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.movie-card {
    display: grid;
    gap: 12px;
    scroll-snap-align: start;
    outline: 0;
}

.movie-card figure {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--panel-soft);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.movie-card img,
.movie-card-preview,
.movie-card-preview video,
.movie-card-preview iframe {
    width: 100%;
    height: 100%;
}

.movie-card img,
.movie-card-preview video {
    object-fit: cover;
    transition: transform 220ms ease, opacity 180ms ease;
}

.movie-card-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    background: #000000;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.movie-card-preview video,
.movie-card-preview iframe {
    display: block;
    border: 0;
}

.movie-card:hover figure,
.movie-card:focus-visible figure {
    border-color: rgba(255, 255, 255, 0.34);
}

.movie-card:hover img,
.movie-card:focus-visible img {
    transform: scale(1.035);
}

.movie-card.is-previewing .movie-card-preview {
    opacity: 1;
}

.card-copy {
    display: grid;
    gap: 4px;
}

.card-copy strong {
    line-height: 1.2;
}

.card-copy span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card[hidden] {
    display: none;
}

.empty-state {
    padding: 26px;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.player-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1.25fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    padding: clamp(28px, 6vw, 76px) clamp(18px, 6vw, 82px);
    overflow: hidden;
}

.studio-profile {
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: clamp(28px, 6vw, 76px) clamp(18px, 6vw, 82px) clamp(12px, 3vw, 32px);
}

.studio-profile-grid {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: clamp(22px, 5vw, 58px);
    align-items: center;
}

.studio-profile-image {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    margin: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.studio-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.studio-profile-image span {
    color: var(--ink);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
}

.studio-profile-copy h1 {
    max-width: 14ch;
    margin-bottom: 14px;
    font-size: clamp(2.6rem, 5vw, 5.4rem);
    line-height: 0.96;
}

.studio-profile-copy p {
    max-width: 760px;
    color: #d9d3ca;
    font-size: clamp(1rem, 1.4vw, 1.22rem);
    line-height: 1.6;
}

.studio-movie-library {
    padding-top: clamp(22px, 3vw, 42px);
}

.person-profile {
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: clamp(28px, 6vw, 76px) clamp(18px, 6vw, 82px) clamp(18px, 3vw, 36px);
}

.person-profile-grid {
    display: grid;
    grid-template-columns: minmax(210px, 320px) minmax(0, 1fr);
    gap: clamp(26px, 5vw, 64px);
    align-items: center;
    margin-top: 28px;
}

.person-profile-image-wrap {
    position: relative;
}

.person-profile-image {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    width: 100%;
    margin: 0;
    overflow: hidden;
    color: #aaa49b;
    background: var(--panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: clamp(4rem, 9vw, 7rem);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.34);
}

.person-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.person-profile-image.is-clickable {
    cursor: zoom-in;
}

.person-profile-image.is-clickable:focus-visible {
    border-color: #ffffff;
    outline: 2px solid rgba(255, 255, 255, 0.48);
    outline-offset: 3px;
}

.person-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 48px);
    background: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.person-image-viewer[hidden] {
    display: none;
}

.person-image-viewer img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - clamp(36px, 8vw, 96px));
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.65);
}

.person-profile-copy h1 {
    margin: 4px 0 14px;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 0.96;
}

.person-profile-editable-heading,
.person-profile-description {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.person-profile-description p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.7;
    white-space: pre-line;
}

.person-profile-edit {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #000000;
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 150ms ease;
}

.person-profile-edit i {
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
}

.person-profile-edit:hover,
.person-profile-edit:focus-visible {
    background: transparent;
    outline: 0;
    opacity: 1;
}

.person-profile-image-edit {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
}

.person-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 220px));
    gap: 12px;
    margin: 28px 0 0;
}

.person-profile-stats div {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.person-profile-stats dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.person-profile-stats dd {
    margin: 5px 0 0;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 900;
}

.person-filmography {
    padding-top: 24px;
}

.person-filmography-heading {
    gap: 20px;
}

.person-filmography-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.person-filmography-filters button {
    min-height: 38px;
    padding: 0 15px;
    color: #d7d2cb;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
}

.person-filmography-filters button:hover,
.person-filmography-filters button:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    outline: 0;
}

.person-filmography-filters button.is-active {
    color: #000000;
    background: #cfc9c1;
    outline: 0;
}

.person-movie-affiliations {
    display: grid;
    gap: 3px;
    margin-top: 5px;
}

.person-movie-affiliations small {
    color: #c9c3ba;
    font-size: 0.98rem;
    line-height: 1.35;
}

.person-profile-disclaimer {
    max-width: 700px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-style: italic;
}

.person-edit-dialog {
    border-color: rgba(255, 255, 255, 0.18);
}

.person-edit-dialog .admin-movie-form {
    margin-top: 18px;
}

.player-shell::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background-image: var(--player-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px) saturate(0.7);
    opacity: 0.18;
    transform: scale(1.08);
}

.player-shell::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.82) 40%, rgba(5, 5, 5, 0.48) 100%),
        linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0) 45%);
}

.back-link {
    display: inline-flex;
    margin-bottom: 30px;
    color: var(--muted);
    font-weight: 800;
}

.player-details h1 {
    max-width: 10ch;
    margin-bottom: 14px;
    font-size: clamp(2.8rem, 5.2vw, 5.8rem);
    line-height: 0.96;
}

.studio-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 900;
}

.studio-byline a {
    color: #d9d3ca;
}

.studio-byline a:not(:last-child)::after {
    margin-left: 8px;
    color: var(--muted);
    content: "/";
}

.studio-byline a:hover,
.studio-byline a:focus-visible {
    color: #ffffff;
    outline: 0;
}

.detail-tags {
    margin-bottom: 24px;
}

.player-actions {
    margin-top: 24px;
}

.watch-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: var(--shadow);
}

body.is-watch-playing {
    overflow: hidden;
}

.watch-frame img,
.watch-frame iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.watch-frame iframe {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.youtube-player-host,
.youtube-player-host iframe {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.watch-frame.is-playing {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.watch-frame.is-playing iframe {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
}

.watch-frame-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 5vw, 38px);
    color: #ffffff;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.56)),
        radial-gradient(circle at center, rgba(226, 58, 58, 0.3), rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0.62) 100%);
}

.watch-frame-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    max-width: min(460px, 100%);
}

.watch-frame-card strong {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    line-height: 1;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.54);
}

.watch-frame-card .watch-frame-ready-title {
    font-size: clamp(1.35rem, 3.2vw, 2.25rem);
    white-space: nowrap;
}

.watch-frame-card p {
    max-width: 30ch;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.watch-frame-play {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: clamp(68px, 9vw, 92px);
    aspect-ratio: 1;
    margin-bottom: 4px;
    color: #ffffff;
    background: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.42),
        0 0 0 12px rgba(226, 58, 58, 0.18);
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.watch-frame-play::before {
    position: absolute;
    inset: -12px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: inherit;
}

.watch-frame-play span {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid currentColor;
}

.watch-frame-play:hover,
.watch-frame-play:focus-visible {
    background: #f14b4b;
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.46),
        0 0 0 15px rgba(226, 58, 58, 0.22);
    outline: 0;
    transform: translateY(-1px) scale(1.03);
}

.watch-frame.is-playing .watch-frame-overlay,
.watch-frame.is-playing img {
    display: none;
}

.watch-frame.is-provider-youtube.is-youtube-paused .youtube-player-host {
    opacity: 0;
}

.watch-frame.is-provider-youtube.is-youtube-paused img {
    display: block;
    filter: brightness(0.45) saturate(0.8);
}

.watch-frame.is-provider-youtube.is-youtube-paused .watch-frame-overlay {
    display: flex;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58)),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58) 66%);
}

.watch-frame.is-provider-youtube.is-youtube-paused .watch-frame-card strong,
.watch-frame.is-provider-youtube.is-youtube-paused .watch-frame-card p {
    display: none;
}

.watch-frame.has-paused-player img {
    display: none;
}

.watch-frame.has-paused-player .watch-frame-overlay {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.54)),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5) 66%);
}

.watch-frame.has-paused-player .watch-frame-card strong,
.watch-frame.has-paused-player .watch-frame-card p {
    display: none;
}

.movie-player-chrome {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    grid-template-rows: auto 1fr auto;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 24%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0) 34%);
    opacity: 1;
    transition: opacity 180ms ease;
}

.movie-player-chrome[hidden] {
    display: none;
}

.watch-frame.is-controls-idle .movie-player-chrome:not(:focus-within) {
    opacity: 0;
    pointer-events: none;
}

.movie-player-topbar,
.movie-player-controls {
    padding: clamp(16px, 3vw, 34px);
}

.movie-player-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.68);
}

.movie-player-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    aspect-ratio: 1;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    cursor: pointer;
}

.movie-player-back-button span {
    width: 14px;
    height: 14px;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: translateX(2px) rotate(45deg);
}

.movie-player-center {
    cursor: pointer;
}

.movie-player-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 92px;
    aspect-ratio: 1;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.82);
}

.movie-player-feedback.is-visible {
    animation: player-feedback-pop 680ms ease forwards;
}

.movie-player-feedback .player-icon {
    transform: scale(1.25);
}

@keyframes player-feedback-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.82);
    }

    18% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

.movie-player-controls {
    align-self: end;
}

.movie-player-progress {
    width: 100%;
    height: 6px;
    margin: 0 0 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.movie-player-control-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.movie-player-time {
    margin-right: auto;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.movie-player-icon-button,
.movie-player-text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
}

.movie-player-icon-button {
    width: 46px;
    padding: 0;
}

.player-icon {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.player-icon-play {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid currentColor;
}

.player-icon-pause::before,
.player-icon-pause::after {
    position: absolute;
    top: 2px;
    bottom: 2px;
    width: 6px;
    content: "";
    background: currentColor;
    border-radius: 1px;
}

.player-icon-pause::before {
    left: 3px;
}

.player-icon-pause::after {
    right: 3px;
}

.player-icon-fullscreen::before,
.player-icon-fullscreen::after {
    position: absolute;
    width: 8px;
    height: 8px;
    content: "";
}

.player-icon-fullscreen::before {
    top: 1px;
    left: 1px;
    border-top: 3px solid currentColor;
    border-left: 3px solid currentColor;
}

.player-icon-fullscreen::after {
    right: 1px;
    bottom: 1px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
}

.player-icon-volume::before {
    position: absolute;
    top: 5px;
    left: 1px;
    width: 8px;
    height: 10px;
    content: "";
    background: currentColor;
    clip-path: polygon(0 28%, 38% 28%, 100% 0, 100% 100%, 38% 72%, 0 72%);
}

.player-icon-volume::after {
    position: absolute;
    top: 4px;
    right: 1px;
    width: 8px;
    height: 12px;
    content: "";
    border: 2px solid currentColor;
    border-left: 0;
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-radius: 0 999px 999px 0;
}

.player-icon-volume.is-muted::after {
    top: 1px;
    right: 3px;
    width: 3px;
    height: 18px;
    background: currentColor;
    border: 0;
    border-radius: 999px;
    transform: rotate(45deg);
}

.movie-player-volume {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.movie-player-volume-popover {
    position: absolute;
    right: 50%;
    bottom: calc(100% + 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 132px;
    padding: 14px 0;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 8px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.movie-player-volume:hover .movie-player-volume-popover,
.movie-player-volume:focus-within .movie-player-volume-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translate(50%, 0);
}

.movie-player-volume-slider {
    width: 96px;
    accent-color: var(--accent);
    cursor: pointer;
    transform: rotate(-90deg);
}

.movie-player-icon-button:hover,
.movie-player-icon-button:focus-visible,
.movie-player-back-button:hover,
.movie-player-back-button:focus-visible,
.movie-player-text-button:hover,
.movie-player-text-button:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    outline: 0;
}

.related-library {
    padding-top: 0;
}

.movie-credits {
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: clamp(36px, 5vw, 64px) clamp(18px, 6vw, 82px) 12px;
}

.movie-credits-heading {
    margin-bottom: 24px;
}

.movie-credits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.movie-credit-group {
    min-width: 0;
}

.movie-credit-group h2 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 2.5vw, 2.15rem);
}

.movie-credits + .related-library {
    margin-top: clamp(44px, 6vw, 80px);
}

.movie-credit-table-wrap {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.movie-credit-table {
    width: 100%;
    border-collapse: collapse;
}

.movie-credit-table th,
.movie-credit-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-credit-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.movie-credit-table tr:last-child td {
    border-bottom: 0;
}

.movie-credit-table td:last-child {
    width: 42%;
    color: #d9d3ca;
}

.movie-credit-person {
    display: flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
}

.movie-credit-person:hover strong,
.movie-credit-person:focus-visible strong {
    color: var(--focus);
}

.movie-credit-avatar {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    overflow: hidden;
    color: #aaa49b;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.movie-credit-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.compact-strip {
    grid-auto-columns: minmax(240px, 320px);
}

.not-found {
    display: grid;
    align-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: clamp(24px, 6vw, 82px);
}

.not-found p {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.6;
}

.profile-select-shell {
    min-height: calc(100vh - var(--header-height));
    padding: clamp(44px, 7vw, 96px) clamp(18px, 5vw, 72px);
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.72), #050505 78%),
        radial-gradient(circle at top right, rgba(226, 58, 58, 0.18), transparent 34%);
}

.profile-select-heading {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.profile-select-heading h1 {
    margin-bottom: 16px;
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    line-height: 0.95;
}

.profile-select-heading p,
.profile-select-error {
    color: var(--muted);
    line-height: 1.6;
}

.profile-select-error {
    width: min(100%, 680px);
    margin: 0 auto 22px;
    padding: 14px 16px;
    color: #ffd6d6;
    background: rgba(226, 58, 58, 0.15);
    border: 1px solid rgba(226, 58, 58, 0.4);
    border-radius: 8px;
}

.invitation-form {
    display: grid;
    gap: 14px;
    width: min(100%, 420px);
    margin: 0 auto;
}

.invitation-form label {
    color: var(--muted);
    font-weight: 800;
}

.invitation-form input {
    min-height: 48px;
    padding: 0 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
}

.invitation-form input:focus {
    outline: 0;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    width: min(100%, 1040px);
    margin: 0 auto;
}

.profile-card {
    display: grid;
    gap: 16px;
    justify-items: center;
    align-content: center;
    min-height: 214px;
    padding: 24px 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.profile-card:hover,
.profile-card:focus-visible {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.34);
    outline: 0;
}

.profile-card-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    color: #ffffff;
    background: linear-gradient(135deg, #e23a3a, #2a7f8f);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 2.6rem;
    font-weight: 900;
}

.profile-card strong {
    font-size: 1.05rem;
    text-align: center;
}

.profile-page {
    display: grid;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    padding: clamp(44px, 7vw, 96px) clamp(18px, 5vw, 72px);
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.7), #050505 82%),
        radial-gradient(circle at top right, rgba(42, 127, 143, 0.2), transparent 34%);
}

.profile-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(22px, 4vw, 48px);
    align-items: center;
    width: min(100%, 920px);
    margin: 0 auto;
    padding: clamp(24px, 5vw, 52px);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.profile-page-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(104px, 16vw, 160px);
    height: clamp(104px, 16vw, 160px);
    color: #ffffff;
    background: linear-gradient(135deg, #e23a3a, #2a7f8f);
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
}

.profile-page-copy h1 {
    margin-bottom: 24px;
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    line-height: 0.96;
}

.profile-details {
    --profile-details-label-width: 130px;
    display: grid;
    gap: 12px;
    margin: 0;
}

.user-dashboard-profile-page .profile-details {
    --profile-details-label-width: 160px;
}

.profile-details div {
    display: grid;
    grid-template-columns: var(--profile-details-label-width) minmax(0, 1fr);
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-details dt {
    color: var(--muted);
    font-weight: 800;
}

.profile-details dd {
    margin: 0;
    font-weight: 800;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0;
    min-height: calc(100vh - var(--header-height));
    background: #080808;
}

.admin-sidebar {
    padding: 28px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-heading {
    display: grid;
    gap: 2px;
    margin-bottom: 24px;
}

.admin-sidebar-heading strong {
    font-size: 1.05rem;
}

.studio-dashboard-sidebar > .admin-sidebar-heading {
    margin-bottom: 18px;
}

.studio-dashboard-nav-section {
    display: grid;
    gap: 8px;
}

.studio-dashboard-summary-nav {
    margin-bottom: 24px;
}

.studio-dashboard-nav-section + .studio-dashboard-nav-section {
    margin-top: 24px;
}

.studio-dashboard-section-trigger {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2px;
    color: var(--ink);
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.studio-dashboard-section-trigger::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--muted);
    content: "-";
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-weight: 900;
}

.studio-dashboard-section-trigger[aria-expanded="false"]::after {
    content: "+";
}

.studio-dashboard-section-trigger:hover,
.studio-dashboard-section-trigger:focus-visible {
    color: #ffffff;
    outline: 0;
}

.studio-dashboard-section-trigger strong {
    min-width: 0;
    font-size: 1.05rem;
}

.studio-dashboard-nav-section nav[hidden] {
    display: none;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar a {
    padding: 12px 12px;
    color: var(--muted);
    border-radius: 8px;
    font-weight: 800;
}

.admin-sidebar a:hover,
.admin-sidebar a:focus-visible,
.admin-sidebar a.is-active {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.1);
    outline: 0;
}

.admin-content {
    min-width: 0;
    padding: clamp(28px, 4vw, 54px);
}

.admin-page-heading {
    margin-bottom: 28px;
}

.admin-page-heading-actions {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
}

.admin-page-heading h1 {
    margin-bottom: 12px;
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 0.96;
}

.admin-page-heading p {
    max-width: 680px;
    color: var(--muted);
    line-height: 1.6;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.admin-stat {
    display: grid;
    gap: 14px;
    min-height: 150px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.admin-stat span {
    color: var(--muted);
    font-weight: 800;
}

.admin-stat strong {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
}

.admin-stat small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.85rem;
    font-weight: 700;
}

.kpi-trend {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.kpi-trend > span {
    color: inherit;
}

.kpi-trend small {
    color: rgba(255, 255, 255, 0.48);
    font-size: inherit;
    font-weight: 700;
}

.kpi-trend--positive {
    color: #58d68d;
}

.kpi-trend--negative {
    color: #ff6b6b;
}

.kpi-trend--neutral {
    color: rgba(255, 255, 255, 0.58);
}

.admin-stat .kpi-trend--positive {
    color: #58d68d;
}

.admin-stat .kpi-trend--negative {
    color: #ff6b6b;
}

.admin-stat .kpi-trend--neutral {
    color: rgba(255, 255, 255, 0.58);
}

.dashboard-stat-grid .admin-stat {
    grid-template-rows: minmax(2.35rem, auto) minmax(4.6rem, 1fr) 1rem;
    gap: 10px;
}

.dashboard-stat-grid .admin-stat strong {
    align-self: center;
}

.dashboard-stat-grid .admin-stat .kpi-trend {
    align-self: end;
}

.dashboard-insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.dashboard-panel {
    min-width: 0;
    padding: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.dashboard-panel--wide {
    grid-column: 1 / -1;
}

.dashboard-panel-heading {
    display: flex;
    gap: 18px;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dashboard-panel-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.05;
}

.dashboard-panel-note {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: right;
}

.dashboard-line-chart {
    position: relative;
    min-height: 278px;
    padding: 16px 16px 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
}

.dashboard-line-chart svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 220px;
    overflow: visible;
    pointer-events: none;
}

.dashboard-line-points {
    position: absolute;
    z-index: 3;
    inset: 16px 16px auto;
    height: 220px;
    pointer-events: auto;
}

.dashboard-line-grid line {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 0.45;
    vector-effect: non-scaling-stroke;
}

.dashboard-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    vector-effect: non-scaling-stroke;
}

.dashboard-line-point {
    position: absolute;
    z-index: 2;
    left: var(--point-x);
    top: var(--point-y);
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #151515;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
    cursor: default;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    transition: box-shadow 140ms ease, transform 140ms ease;
}

.dashboard-line-point:hover,
.dashboard-line-point:focus-visible {
    z-index: 5;
    outline: 0;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.16),
        0 8px 22px rgba(0, 0, 0, 0.42);
    transform: translate(-50%, -50%) scale(1.35);
}

.dashboard-line-point span {
    position: absolute;
    z-index: 6;
    bottom: calc(100% + 11px);
    left: 50%;
    width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    visibility: hidden;
    opacity: 0;
    background: #242424;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
    pointer-events: none;
    transform: translate(-50%, 4px) scale(0.88);
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.dashboard-line-point span::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 8px;
    height: 8px;
    content: "";
    background: #242424;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transform: translate(-50%, -4px) rotate(45deg);
}

.dashboard-line-point:hover span,
.dashboard-line-point:focus-visible span {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0) scale(0.74);
}

.dashboard-line--clicks {
    stroke: #ff6868;
}

.dashboard-line-point--clicks,
.dashboard-legend-dot--clicks {
    background: #ff6868;
}

.dashboard-line--initiated {
    stroke: #5cc9d6;
}

.dashboard-line-point--initiated,
.dashboard-legend-dot--initiated {
    background: #5cc9d6;
}

.dashboard-line--qualified {
    stroke: #f0c96b;
}

.dashboard-line-point--qualified,
.dashboard-legend-dot--qualified {
    background: #f0c96b;
}

.dashboard-line--completed {
    stroke: #58d68d;
}

.dashboard-line-point--completed,
.dashboard-legend-dot--completed {
    background: #58d68d;
}

.dashboard-line--profiles {
    stroke: #9bdbff;
}

.dashboard-line-point--profiles,
.dashboard-legend-dot--profiles {
    background: #9bdbff;
}

.dashboard-line--subscribers {
    stroke: #f0c96b;
}

.dashboard-line-point--subscribers,
.dashboard-legend-dot--subscribers {
    background: #f0c96b;
}

.dashboard-line-axis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.dashboard-line-axis span {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-chart-legend,
.dashboard-funnel-step small,
.dashboard-ranked-item small,
.dashboard-progress-list span,
.dashboard-empty {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    font-weight: 800;
}

.dashboard-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.dashboard-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-chart-legend strong {
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.dashboard-funnel,
.dashboard-ranked-list,
.dashboard-progress-list {
    display: grid;
    gap: 13px;
}

.dashboard-funnel-step {
    display: grid;
    gap: 8px;
}

.dashboard-funnel-step > div:first-child,
.dashboard-ranked-item,
.dashboard-progress-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.dashboard-funnel-step > div:first-child span,
.dashboard-ranked-item > span:last-child {
    color: #ffffff;
    font-weight: 900;
}

.dashboard-funnel-track,
.dashboard-progress-track {
    height: 9px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.dashboard-funnel-track span,
.dashboard-progress-track span {
    display: block;
    width: var(--funnel-width, var(--progress-width));
    height: 100%;
    background: linear-gradient(90deg, #e23a3a, #3aa2ad);
    border-radius: inherit;
}

.dashboard-ranked-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-progress-list article {
    grid-template-columns: 1fr;
    gap: 8px;
}

.dashboard-ranked-item:last-child {
    border-bottom: 0;
}

.dashboard-rank {
    display: inline-grid;
    place-items: center;
    width: 30px;
    aspect-ratio: 1;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 900;
}

.dashboard-ranked-item div,
.dashboard-progress-list article > div:first-child {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.dashboard-ranked-item a,
.dashboard-ranked-item strong,
.dashboard-progress-list strong {
    overflow: hidden;
    color: #ffffff;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-ranked-item a:hover,
.dashboard-ranked-item a:focus-visible {
    color: var(--focus);
    outline: 0;
}

.dashboard-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-health-card {
    display: grid;
    gap: 8px;
    min-height: 104px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.dashboard-health-card strong {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1;
}

.dashboard-health-card span {
    color: rgba(255, 255, 255, 0.64);
    font-weight: 800;
}

.dashboard-health-card--good {
    border-color: rgba(88, 214, 141, 0.28);
}

.dashboard-health-card--warn {
    border-color: rgba(255, 190, 92, 0.34);
}

.dashboard-health-card--muted {
    border-color: rgba(255, 255, 255, 0.12);
}

.dashboard-empty {
    margin: 0;
    line-height: 1.5;
}

.movie-statistics-funnel,
.movie-statistics-momentum {
    margin-top: 22px;
}

.studio-movie-overview {
    display: grid;
    grid-template-columns: minmax(620px, 936px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    width: 100%;
    max-width: none;
    margin-bottom: 18px;
}

.studio-movie-overview .statistics-movie-summary {
    max-width: none;
    margin-bottom: 0;
}

.admin-section.studio-license-section {
    gap: 12px;
    max-width: none;
    padding: 14px;
}

.studio-license-section .admin-section-header h2 {
    margin-bottom: 0;
    font-size: 1.15rem;
}

.studio-license-body {
    display: grid;
    grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.studio-license-current {
    display: grid;
    gap: 9px;
    margin: 0;
}

.studio-license-current div {
    display: grid;
    gap: 3px;
}

.studio-license-current dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.studio-license-current dd {
    min-width: 0;
    margin: 0;
    color: #f2eee7;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.35;
}

.studio-license-explanation {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
}

.streaming-contract-table-wrap.studio-license-table-wrap {
    overflow: visible;
}

.admin-table.streaming-contract-table.studio-license-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.studio-license-table th:nth-child(1),
.studio-license-table td:nth-child(1) {
    width: 38%;
}

.studio-license-table th:nth-child(2),
.studio-license-table td:nth-child(2) {
    width: 40%;
}

.studio-license-table th:nth-child(3),
.studio-license-table td:nth-child(3) {
    width: 22%;
}

.studio-license-table th,
.studio-license-table td {
    padding: 9px 10px;
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.statistics-toolbar {
    grid-template-columns: minmax(240px, 320px) auto;
    align-items: end;
    width: fit-content;
    max-width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.statistics-toolbar .primary-action,
.statistics-toolbar .secondary-action {
    min-height: 2.8rem;
}

.statistics-period-field {
    min-width: 0;
}

.statistics-clear-action {
    color: rgba(255, 255, 255, 0.82);
}

.statistics-filter-note {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 800;
}

.statistics-table-wrap {
    margin-top: 1.4rem;
}

.finance-kpi-grid .admin-stat,
.finance-claims-grid .admin-stat {
    grid-template-columns: minmax(0, 1fr);
    position: relative;
}

.finance-kpi-grid .admin-stat {
    min-height: 128px;
}

.finance-kpi-grid .admin-stat strong,
.finance-claims-grid .admin-stat strong {
    font-size: clamp(2.2rem, 4vw, 3.25rem);
}

.finance-kpi-label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    gap: 7px;
}

.finance-kpi-info {
    display: inline-grid;
    padding: 0;
    color: rgba(255, 255, 255, 0.58);
    font: inherit;
    line-height: 1;
    background: none;
    border: 0;
    cursor: help;
}

.finance-kpi-info:hover,
.finance-kpi-info:focus-within {
    color: rgba(255, 255, 255, 0.92);
}

.admin-stat .finance-kpi-tooltip {
    position: absolute;
    z-index: 4;
    top: 52px;
    right: 14px;
    left: 14px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    visibility: hidden;
    opacity: 0;
    background: #242424;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
    pointer-events: none;
    transition: opacity 120ms ease, visibility 120ms ease;
}

.finance-kpi-info:hover .finance-kpi-tooltip,
.finance-kpi-info:focus-within .finance-kpi-tooltip {
    visibility: visible;
    opacity: 1;
}

.finance-claims-grid {
    margin-bottom: 24px;
}

.transactions-kpi-grid + .admin-toolbar {
    margin-top: 24px;
}

.escrow-kpi-grid {
    margin-bottom: 24px;
}

.studio-payout-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.studio-payout-action form {
    flex: 0 0 auto;
}

.studio-payout-action p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.finance-table {
    min-width: 980px;
}

.transactions-table {
    min-width: 1080px;
}

.admin-table td .transaction-amount {
    font-weight: 900;
}

.admin-table td .transaction-amount.is-incoming {
    color: #5edb91;
}

.admin-table td .transaction-amount.is-outgoing {
    color: #ff6b6b;
}

.finance-expand-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    text-align: left;
}

.finance-expand-button .finance-expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    line-height: 1;
    text-align: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.finance-movie-row td {
    padding: 0;
    background: rgba(255, 255, 255, 0.035);
}

.finance-movie-table {
    width: 100%;
    border-collapse: collapse;
}

.finance-movie-table th,
.finance-movie-table td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.finance-movie-table th {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.statistics-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 0 0.75rem;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    font-weight: 700;
}

.statistics-movie-summary {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 22px;
    max-width: 1080px;
    padding: 18px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.statistics-movie-heading-main {
    display: flex;
    gap: 16px;
    align-items: start;
}

.statistics-back-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.statistics-movie-summary figure {
    aspect-ratio: 2 / 3;
    margin: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.statistics-movie-poster-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: zoom-in;
}

.statistics-movie-poster-button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: -3px;
}

.statistics-movie-summary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.statistics-movie-summary-copy {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
}

.statistics-movie-summary-copy h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1;
}

.statistics-movie-summary-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.statistics-movie-meta {
    display: grid;
    gap: 10px;
    margin: 0;
}

.statistics-movie-meta div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
}

.statistics-movie-meta dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.statistics-movie-meta dd {
    margin: 0;
    font-weight: 800;
}

.statistics-section-heading {
    margin: 30px 0 16px;
}

.statistics-section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1;
}

.statistics-movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.statistics-movie-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.72rem;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.statistics-poster-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
}

.statistics-poster-modal[hidden] {
    display: none;
}

.statistics-poster-dialog {
    display: grid;
    gap: 12px;
    justify-items: end;
    max-width: min(92vw, 760px);
    max-height: 92vh;
}

.statistics-poster-dialog img {
    max-width: 100%;
    max-height: calc(92vh - 56px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.statistics-poster-close {
    color: #ffffff;
    background: rgba(20, 20, 20, 0.92);
}

.admin-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 12px;
    align-items: end;
    width: 100%;
    margin-bottom: 18px;
}

.admin-users-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 190px);
}

.admin-add-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(140px, 180px) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 22px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.admin-add-form label {
    display: grid;
    gap: 8px;
}

.admin-add-form span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-add-form input,
.admin-add-form select,
.admin-inline-form input,
.admin-inline-form select,
.admin-section input,
.admin-section select,
.admin-section textarea,
.admin-movie-form input,
.admin-movie-form select,
.admin-movie-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    outline: 0;
}

.admin-section textarea,
.admin-movie-form textarea {
    min-height: 112px;
    padding: 12px;
    resize: vertical;
}

.admin-add-form input:focus,
.admin-add-form select:focus,
.admin-inline-form input:focus,
.admin-inline-form select:focus,
.admin-section input:focus,
.admin-section select:focus,
.admin-section textarea:focus,
.admin-movie-form input:focus,
.admin-movie-form select:focus,
.admin-movie-form textarea:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(121, 212, 255, 0.16);
}

.admin-movie-form input.has-unsaved-change,
.admin-movie-form select.has-unsaved-change,
.admin-movie-form textarea.has-unsaved-change {
    border-color: #ff9f1c;
    box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.18);
}

.image-upload-field {
    display: grid;
    gap: 10px;
}

.image-upload-panel {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.image-upload-preview {
    display: grid;
    place-items: center;
    width: 116px;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

[data-upload-context="studio-logo"] .image-upload-preview,
[data-upload-context="public-profile-image"] .image-upload-preview {
    aspect-ratio: 1;
}

.image-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.image-upload-actions small {
    flex-basis: 100%;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.image-crop-dialog {
    width: min(100%, 860px);
    border-color: rgba(255, 255, 255, 0.18);
}

.image-crop-frame {
    position: relative;
    width: 100%;
    aspect-ratio: var(--crop-aspect, 1);
    margin: 18px 0 14px;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
        #080808;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.image-crop-frame:active {
    cursor: grabbing;
}

.image-crop-frame img {
    position: absolute;
    inset: 0 auto auto 0;
    max-width: none;
    transform-origin: top left;
    user-select: none;
}

.image-crop-controls {
    display: grid;
    gap: 10px;
}

.image-crop-controls label {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-message {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 800;
}

.admin-message-success {
    color: #d9ffec;
    background: rgba(42, 127, 92, 0.18);
    border: 1px solid rgba(96, 207, 152, 0.35);
}

.admin-message-error {
    color: #ffd6d6;
    background: rgba(226, 58, 58, 0.15);
    border: 1px solid rgba(226, 58, 58, 0.4);
}

.admin-toolbar label {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-toolbar span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-toolbar input,
.admin-toolbar select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    outline: 0;
}

.admin-toolbar input:focus,
.admin-toolbar select:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(121, 212, 255, 0.16);
}

.admin-table-wrap {
    width: 100%;
    overflow: auto;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #141414;
}

.admin-table th button {
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    text-align: left;
}

.admin-table th button::after {
    margin-left: 8px;
    color: var(--muted);
    content: "";
}

.admin-table th button.is-asc::after {
    content: "asc";
}

.admin-table th button.is-desc::after {
    content: "desc";
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-table td {
    color: #d9d3ca;
    vertical-align: top;
}

.admin-table td a {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-weight: 900;
}

.admin-table td span {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
}

.admin-table td .statistics-table-value {
    display: inline;
    color: inherit;
    font-size: 1.12rem;
    line-height: 1;
}

.admin-table td .kpi-trend {
    display: inline-flex;
    margin-left: 8px;
    font-size: 0.72rem;
    font-weight: 400;
    vertical-align: baseline;
}

.admin-table td .kpi-trend--positive {
    color: #58d68d;
}

.admin-table td .kpi-trend--negative {
    color: #ff6b6b;
}

.admin-table td .kpi-trend--neutral {
    color: rgba(255, 255, 255, 0.58);
}

.admin-table td .kpi-trend > span {
    display: inline;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.admin-table td .kpi-trend--neutral > span {
    display: none;
}

.admin-table td .kpi-trend small {
    display: none;
}

.admin-table td .admin-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background: #1d6fd6;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    cursor: pointer;
}

.admin-table td .admin-icon-action:hover,
.admin-table td .admin-icon-action:focus-visible {
    color: #ffffff;
    background: #2f8bff;
    outline: 0;
}

.admin-table td .admin-icon-action svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.admin-users-table {
    min-width: 980px;
}

.admin-studios-table {
    min-width: 900px;
}

.admin-public-profiles-table {
    min-width: 1040px;
}

.admin-public-profiles-table th:last-child,
.admin-public-profiles-table td:last-child {
    width: 208px;
}

.admin-public-profile-identity,
.admin-public-profile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-public-profile-avatar {
    display: inline-grid !important;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    overflow: hidden;
    color: #aaa49b !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

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

.admin-public-profile-dialog {
    overflow: auto;
    width: min(100%, 680px);
    max-height: calc(100vh - 40px);
    border-color: rgba(255, 255, 255, 0.18);
}

.admin-public-profile-dialog .admin-movie-form {
    gap: 14px;
    margin-top: 18px;
}

.admin-public-profile-dialog label {
    display: grid;
    gap: 8px;
}

.admin-assignments-dialog {
    width: min(100%, 760px);
}

.admin-assignment-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

.admin-assignment-group {
    min-width: 0;
}

.admin-assignment-group h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
}

.admin-assignment-list {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.admin-assignment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(90px, 0.75fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-assignment-row:last-child {
    border-bottom: 0;
}

.admin-assignment-row strong,
.admin-assignment-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-assignment-row span {
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-assignment-row form {
    display: inline-flex;
}

.admin-assignment-remove {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: #ffffff;
    background: #a82020;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    cursor: pointer;
}

.admin-assignment-remove:hover,
.admin-assignment-remove:focus-visible {
    background: #d72f2f;
    outline: 0;
}

.admin-assignment-empty {
    margin: 0;
    padding: 14px;
    color: var(--muted);
}

.streaming-contract-table {
    min-width: 680px;
}

.movie-person-add-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.movie-person-name-field {
    position: relative;
    min-width: 0;
}

.movie-person-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 8;
    overflow: hidden;
    padding: 5px;
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.movie-person-suggestion {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    text-align: left;
}

.movie-person-suggestion:hover,
.movie-person-suggestion:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: 0;
}

.movie-people-table {
    min-width: 0;
    table-layout: fixed;
}

.movie-people-table th:first-child,
.movie-people-table td:first-child {
    width: 46%;
}

.movie-people-table th:last-child,
.movie-people-table td:last-child {
    width: 138px;
}

.movie-people-table th,
.movie-people-table td {
    padding-right: 10px;
    padding-left: 10px;
}

.movie-people-table td {
    vertical-align: middle;
}

.movie-people-table tr.is-dragging {
    opacity: 0.46;
}

.movie-person-identity,
.movie-person-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.movie-person-identity strong {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.movie-person-drag-handle {
    width: 28px;
    height: 38px;
    flex: 0 0 auto;
    padding: 0;
    color: #8e8981;
    background: transparent;
    border: 0;
    cursor: grab;
    font-size: 1rem;
}

.movie-person-drag-handle:active {
    cursor: grabbing;
}

.movie-person-avatar {
    display: inline-grid !important;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    overflow: hidden;
    color: #aaa49b !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1rem !important;
}

.movie-person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.movie-person-actions form {
    display: inline-flex;
}

.admin-table td .movie-person-delete {
    background: #a82020;
}

.admin-table td .movie-person-profile-link {
    color: #ffffff;
    background: #292929;
}

.admin-table td .movie-person-profile-link:hover,
.admin-table td .movie-person-profile-link:focus-visible {
    color: #ffffff;
    background: #414141;
}

.admin-table td .movie-person-delete:hover,
.admin-table td .movie-person-delete:focus-visible {
    background: #d72f2f;
}

.admin-table td .admin-icon-action i {
    font-size: 0.94rem;
}

.movie-credit-dialog {
    border-color: rgba(255, 255, 255, 0.18);
}

.movie-credit-dialog .admin-movie-form {
    margin-top: 18px;
}

[data-core-streaming-model-field] select {
    font-size: 0.78rem;
}

.admin-inline-form {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) max-content;
    gap: 8px;
    align-items: center;
}

.admin-inline-form .secondary-action,
.danger-action {
    min-height: 38px;
    padding: 0 12px;
    white-space: nowrap;
}

.danger-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #a82020;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
}

.danger-action:hover,
.danger-action:focus-visible {
    background: #d72f2f;
    outline: 0;
}

.danger-action:disabled {
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
}

.admin-empty {
    margin: 0;
    padding: 22px;
    color: var(--muted);
}

.admin-movie-form {
    display: grid;
    gap: 22px;
    max-width: 980px;
}

.admin-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.admin-system-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.admin-section {
    display: grid;
    gap: 18px;
    max-width: 980px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.admin-section-grid .admin-section {
    max-width: none;
}

.admin-content > .admin-access-section {
    width: 100%;
    max-width: none;
    margin-bottom: 28px;
}

.admin-access-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    width: 100%;
}

.admin-access-add,
.admin-access-reference {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.admin-add-form-compact {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.admin-add-form-compact select,
.admin-inline-form select {
    min-width: 210px;
}

.admin-access-reference-table td:first-child {
    min-width: 130px;
}

.admin-section-stack {
    display: grid;
    gap: 22px;
    align-content: start;
    min-width: 0;
}

.admin-section-header h2 {
    margin: 4px 0 8px;
}

.admin-section-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.footer-links-admin {
    max-width: none;
}

.footer-link-form {
    max-width: none;
    gap: 14px;
}

.footer-link-icon-label-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

.footer-link-icon-field {
    display: grid;
    gap: 8px;
}

.footer-link-icon-field > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-icon-picker {
    display: inline-flex;
    align-items: center;
}

.footer-icon-trigger,
.footer-link-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.footer-icon-trigger {
    cursor: pointer;
}

.footer-icon-trigger:hover,
.footer-icon-trigger:focus-visible {
    background: rgba(47, 139, 255, 0.24);
    border-color: rgba(121, 212, 255, 0.5);
    outline: 0;
}

.footer-icon-trigger.is-empty::before {
    width: 18px;
    height: 18px;
    content: "";
}

.footer-icon-popover {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.footer-icon-popover[hidden] {
    display: none;
}

.footer-icon-popover-panel {
    display: grid;
    gap: 14px;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    padding: 18px;
    overflow: auto;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

.footer-icon-popover-header {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.footer-icon-popover-header strong {
    font-size: 1.15rem;
}

.footer-icon-popover-header button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
}

.footer-icon-popover-header button:hover,
.footer-icon-popover-header button:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    outline: 0;
}

.footer-icon-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    grid-auto-rows: 38px;
    gap: 8px;
    align-content: start;
    height: 178px;
    overflow: auto;
    padding: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.footer-icon-results button {
    display: inline-grid;
    place-items: center;
    min-height: 38px;
    padding: 0;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    cursor: pointer;
}

.footer-icon-results button.is-selected {
    color: #ffffff;
    background: #1d6fd6;
    border-color: rgba(121, 212, 255, 0.42);
}

.footer-icon-results button:hover,
.footer-icon-results button:focus-visible {
    color: #ffffff;
    background: rgba(47, 139, 255, 0.28);
    outline: 0;
}

.footer-icon-popover-actions {
    display: flex;
    justify-content: flex-end;
}

.footer-link-list {
    display: grid;
    gap: 10px;
}

.footer-link-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.footer-link-summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.footer-link-summary strong,
.footer-link-summary a {
    display: block;
    overflow-wrap: anywhere;
}

.footer-link-summary a {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.84rem;
}

.footer-link-actions {
    display: flex;
    gap: 8px;
}

.footer-link-actions form {
    display: inline-flex;
}

.footer-link-actions .admin-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background: #1d6fd6;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    cursor: pointer;
}

.footer-link-actions .admin-icon-action:hover,
.footer-link-actions .admin-icon-action:focus-visible {
    background: #2f8bff;
    outline: 0;
}

.footer-link-actions .footer-link-delete {
    background: #a82020;
}

.footer-link-actions .footer-link-delete:hover,
.footer-link-actions .footer-link-delete:focus-visible {
    background: #d72f2f;
}

.footer-link-dialog {
    overflow: auto;
    width: min(100%, 680px);
    max-height: calc(100vh - 40px);
    border-color: rgba(255, 255, 255, 0.18);
}

.my-list-content {
    max-width: 1420px;
}

.my-list-heading {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
}

.my-list-heading strong {
    flex: 0 0 auto;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 1rem;
}

.my-list-search {
    display: grid;
    gap: 8px;
    width: min(100%, 520px);
    margin-bottom: 28px;
}

.my-list-search span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.my-list-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    outline: 0;
}

.my-list-search input:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(121, 212, 255, 0.16);
}

.my-list-table-wrap {
    overflow: auto;
}

.my-list-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.my-list-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.my-list-table tr[hidden] {
    display: none;
}

.my-list-table td {
    padding: 0 24px 28px 0;
    vertical-align: middle;
}

.my-list-table td:last-child {
    padding-right: 0;
}

.my-list-poster-cell {
    width: 260px;
}

.my-list-poster-link {
    width: 240px;
}

.my-list-poster-link figure {
    box-shadow: none;
}

.my-list-copy {
    width: 100%;
}

.my-list-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.12;
}

.my-list-copy p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.my-list-date {
    width: 160px;
    color: #d9d3ca;
    font-weight: 800;
    white-space: nowrap;
}

.my-list-actions {
    width: 120px;
    text-align: right;
}

.my-list-actions form {
    display: inline-flex;
}

.my-list-empty {
    padding-left: 0;
}

.subscription-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.subscription-status-card,
.subscription-purchase-card,
.subscription-history {
    max-width: none;
}

.subscription-pill {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.subscription-pill.is-active {
    color: #d9ffec;
    background: rgba(42, 127, 92, 0.24);
    border: 1px solid rgba(96, 207, 152, 0.38);
}

.subscription-pill.is-inactive {
    color: #ffe0b3;
    background: rgba(173, 111, 34, 0.22);
    border: 1px solid rgba(255, 185, 94, 0.35);
}

.subscription-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.subscription-facts div {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.subscription-facts dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.subscription-facts dd {
    margin: 0;
    color: var(--ink);
    font-weight: 900;
}

.subscription-form {
    display: grid;
    gap: 14px;
}

.subscription-form label {
    display: grid;
    gap: 8px;
}

.subscription-form label > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.subscription-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    outline: 0;
}

.subscription-table {
    min-width: 760px;
}

.subscription-table td .secondary-action {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.admin-section label > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-save-status {
    color: #ffd983;
    font-size: 0.9rem;
    font-weight: 800;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.admin-section .admin-form-grid {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.admin-form-grid label {
    display: grid;
    gap: 8px;
}

.admin-form-grid span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-copy-input {
    position: relative;
}

.admin-copy-input input {
    width: 100%;
    padding-right: 84px;
}

.admin-copy-input-button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-copy-input.has-copy-value:hover .admin-copy-input-button,
.admin-copy-input.has-copy-value:focus-within .admin-copy-input-button {
    opacity: 1;
    pointer-events: auto;
}

.admin-copy-input-button:hover,
.admin-copy-input-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
}

.admin-field-note {
    align-self: end;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.admin-field-note.is-invalid,
.svod-total-warning {
    color: #ffd983;
}

.svod-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 22px;
    align-items: start;
}

.svod-settings-controls {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.svod-settings-fields {
    align-self: start;
    align-items: start;
    align-content: start;
    gap: 14px 16px;
}

.svod-settings-fields label {
    align-content: start;
    gap: 6px;
}

.svod-settings-fields .svod-percent-input {
    position: relative;
    display: block;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
}

.svod-percent-input input {
    min-height: 44px;
    padding-right: 34px;
    appearance: textfield;
}

.svod-percent-input input::-webkit-outer-spin-button,
.svod-percent-input input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.svod-percent-input > span {
    position: absolute;
    top: 50%;
    right: 12px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 900;
    pointer-events: none;
    transform: translateY(-50%);
}

.svod-total-note {
    align-self: end;
    padding-bottom: 11px;
}

.svod-total-note strong {
    color: var(--ink);
}

.svod-total-note.is-invalid strong {
    color: #ffd983;
}

.svod-chart-panel {
    display: grid;
    gap: 14px;
    justify-items: center;
    min-width: 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.svod-pie-chart {
    width: min(100%, 240px);
    aspect-ratio: 1;
    overflow: visible;
}

.svod-pie-chart path {
    cursor: pointer;
    stroke: #111111;
    stroke-width: 1.5;
    transition: filter 160ms ease, opacity 160ms ease, transform 160ms ease;
    transform-origin: center;
}

.svod-pie-chart path:hover,
.svod-pie-chart path:focus-visible {
    filter: brightness(1.12);
    outline: 0;
    transform: scale(1.025);
}

.svod-chart-legend {
    display: grid;
    gap: 8px;
    width: 100%;
}

.svod-chart-legend-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 8px 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
}

.svod-chart-legend-item:hover,
.svod-chart-legend-item:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: 0;
}

.svod-chart-legend-item span {
    width: 12px;
    height: 12px;
    background: var(--svod-color);
    border-radius: 999px;
}

.svod-chart-legend-item strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.svod-chart-legend-item em {
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 900;
}

.admin-form-full {
    grid-column: 1 / -1;
}

.admin-studio-fieldset {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.admin-studio-fieldset legend {
    padding: 0 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-studio-fieldset p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-profile-assignment-section {
    align-content: start;
}

.admin-studio-list {
    display: grid;
    gap: 8px;
}

.admin-studio-search {
    position: relative;
    display: grid;
    gap: 8px;
}

.admin-studio-suggestions {
    display: grid;
    overflow: hidden;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.admin-studio-suggestions[hidden] {
    display: none;
}

.admin-studio-suggestions button {
    padding: 10px 12px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-weight: 900;
    text-align: left;
}

.admin-studio-suggestions button:last-child {
    border-bottom: 0;
}

.admin-studio-suggestions button:hover,
.admin-studio-suggestions button:focus-visible {
    background: rgba(47, 139, 255, 0.22);
    outline: 0;
}

.admin-studio-empty {
    margin: 0;
    color: var(--muted);
}

.admin-studio-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.admin-studio-row strong {
    min-width: 0;
}

.admin-profile-assignment-table th:first-child,
.admin-profile-assignment-table td:first-child {
    width: auto;
}

.admin-profile-assignment-table th:last-child,
.admin-profile-assignment-table td:last-child {
    width: 72px;
}

.admin-studio-share {
    display: grid;
    grid-template-columns: auto 80px auto;
    gap: 8px;
    align-items: center;
}

.admin-studio-assumed-share,
.admin-studio-share span,
.admin-studio-share small {
    color: var(--muted);
    font-weight: 900;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.admin-danger-zone {
    display: grid;
    align-items: center;
    background: rgba(168, 32, 32, 0.1);
    border: 1px solid rgba(215, 47, 47, 0.36);
}

.admin-confirm-dialog h2 {
    margin: 4px 0 8px;
}

.admin-confirm-dialog p {
    margin: 0;
    color: var(--muted);
}

.admin-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
}

.admin-confirm-overlay[hidden] {
    display: none;
}

.admin-confirm-dialog {
    width: min(100%, 520px);
    padding: 22px;
    background: #141414;
    border: 1px solid rgba(215, 47, 47, 0.52);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

.streaming-contract-dialog {
    overflow: auto;
    width: min(100%, 760px);
    max-height: calc(100vh - 40px);
    border-color: rgba(255, 255, 255, 0.18);
}

.streaming-contract-dialog .admin-message {
    margin: 14px 0 0;
}

.streaming-contract-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.streaming-contract-dialog-actions > div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
}

.admin-toolbar .batch-payout-open {
    grid-column: -2 / -1;
    justify-self: end;
}

.batch-payout-open[hidden] {
    display: none;
}

.batch-payout-select-cell {
    width: 64px;
    text-align: center !important;
    vertical-align: middle !important;
}

.batch-payout-checkbox {
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.batch-payout-checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2caf72;
    cursor: pointer;
}

.batch-payout-dialog {
    overflow: auto;
    max-height: calc(100vh - 40px);
    border-color: rgba(44, 175, 114, 0.5);
}

.batch-payout-list {
    overflow: hidden;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.batch-payout-item,
.batch-payout-item > div {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.batch-payout-item {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.batch-payout-item:last-child {
    border-bottom: 0;
}

.batch-payout-item > div {
    min-width: 0;
    flex: 1;
}

.batch-payout-item span {
    color: var(--muted);
    font-size: 0.86rem;
}

.batch-payout-item.is-skipped > span {
    color: #ffb9b9;
    text-align: right;
}

.batch-payout-item.is-skipped > .batch-payout-new-error {
    color: #e35d5d;
    font-weight: 900;
}

.batch-payout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 12px;
    color: #d9ffec;
    background: rgba(42, 127, 92, 0.18);
    border: 1px solid rgba(96, 207, 152, 0.25);
    border-radius: 8px;
}

.has-modal-open {
    overflow: hidden;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 28px clamp(18px, 4vw, 56px);
    color: #77736d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer > span:first-child {
    grid-column: 1;
}

.site-footer > span:last-child {
    grid-column: 3;
    text-align: right;
}

.site-footer-links {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    justify-content: center;
}

.site-footer-links a {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: #aaa49b;
    font-weight: 800;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
    color: #ffffff;
    outline: 0;
}

@media (max-width: 1380px) {
    .studio-movie-overview {
        grid-template-columns: 1fr;
    }

    .studio-license-body {
        grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
    }
}

@media (max-width: 1080px) {
    .site-header {
        grid-template-columns: minmax(110px, 160px) 1fr auto;
    }

    .primary-nav {
        display: none;
    }

    .hero-slide,
    .player-shell {
        grid-template-columns: 1fr;
    }

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

    .subscription-layout,
    .subscription-facts,
    .svod-settings-layout {
        grid-template-columns: 1fr;
    }

    .svod-total-note {
        padding-bottom: 0;
    }

    .dashboard-insights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: auto;
    }

    .site-header {
        position: static;
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 14px 16px;
    }

    .brand img {
        max-width: 96px;
        max-height: 52px;
    }

    .search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .profile-summary {
        display: none;
    }

    .account-dropdown {
        min-width: 190px;
    }

    .hero-carousel {
        min-height: 640px;
    }

    .hero-slide {
        padding: 44px 18px 92px;
    }

    .hero-copy {
        row-gap: 16px;
        min-height: 524px;
    }

    .hero-kicker {
        min-height: 70px;
    }

    .hero-title-slot {
        min-height: 190px;
    }

    .hero-description-slot {
        min-height: 108px;
    }

    .hero-copy h1,
    .player-details h1,
    .not-found h1 {
        font-size: clamp(2.7rem, 16vw, 4.8rem);
    }

    .hero-actions,
    .player-actions {
        align-items: stretch;
    }

    .hero-actions > *,
    .player-actions > * {
        flex: 1 1 160px;
    }

    .library-heading {
        display: grid;
    }

    .movie-strip {
        grid-auto-columns: minmax(260px, 84vw);
    }

    .player-shell {
        padding: 20px 16px 48px;
    }

    .site-footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-footer > span:first-child,
    .site-footer > span:last-child,
    .site-footer-links {
        grid-column: 1;
    }

    .site-footer,
    .site-footer > span:last-child {
        text-align: left;
    }

    .site-footer-links {
        justify-content: flex-start;
    }

    .profile-panel {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .profile-details div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

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

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

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

    .admin-page-heading-actions,
    .admin-access-grid,
    .admin-add-form {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .admin-add-form-compact select,
    .admin-inline-form select {
        min-width: 0;
    }

    .studio-movie-overview,
    .statistics-movie-summary {
        grid-template-columns: 1fr;
    }

    .studio-license-body,
    .studio-license-current div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .dashboard-panel {
        padding: 18px;
    }

    .dashboard-panel-heading,
    .dashboard-ranked-item {
        grid-template-columns: 1fr;
    }

    .dashboard-panel-heading {
        display: grid;
        gap: 8px;
    }

    .dashboard-panel-note {
        text-align: left;
    }

    .dashboard-line-chart {
        min-height: 238px;
        padding-inline: 12px;
    }

    .dashboard-line-chart svg {
        height: 178px;
    }

    .dashboard-line-points {
        height: 178px;
    }

    .dashboard-health-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-ranked-item {
        gap: 8px;
    }

    .dashboard-rank {
        width: 28px;
    }

    .statistics-movie-summary figure {
        width: min(100%, 280px);
    }

    .my-list-heading {
        display: grid;
        gap: 8px;
    }

    .my-list-heading strong {
        margin-bottom: 0;
    }

    .my-list-table {
        min-width: 0;
    }

    .my-list-table tbody,
    .my-list-table tr,
    .my-list-table td {
        display: block;
        width: 100%;
    }

    .my-list-table tr {
        margin-bottom: 34px;
    }

    .my-list-table td {
        padding: 0;
    }

    .my-list-poster-link {
        width: 100%;
        margin-bottom: 14px;
    }

    .my-list-copy {
        margin-bottom: 12px;
    }

    .my-list-date {
        margin-bottom: 14px;
    }

    .my-list-actions {
        text-align: left;
    }

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

    .image-upload-panel {
        grid-template-columns: 1fr;
    }

    .image-upload-preview {
        width: min(100%, 220px);
    }

    .movie-person-add-form {
        grid-template-columns: 1fr;
    }

    .movie-credits-grid {
        grid-template-columns: 1fr;
    }

    .person-profile-grid {
        grid-template-columns: 1fr;
    }

    .person-profile-image-wrap {
        width: min(100%, 300px);
    }

    .person-profile-stats {
        grid-template-columns: 1fr;
    }

    .person-filmography-heading {
        align-items: flex-start;
    }

    .admin-assignment-groups {
        grid-template-columns: 1fr;
    }
}
