/* Ported from B2 profile/friends UI — regenerate: python scripts/extract-social-css.py */

:root {
    --bg: var(--lmh-bg, #111010);
    --surface: var(--lmh-surface, #1a1816);
    --text: var(--lmh-text, #ece6dc);
    --muted: var(--lmh-muted, #9a9084);
    --accent: var(--lmh-chili, #c24a3a);
    --accent-strong: var(--lmh-chili-deep, #8f3428);
    --ui-scale: 1;
    --card-ratio-franchise: 15 / 8;
    --card-ratio-release: 2 / 3;
    --card-ratio-upcoming: 2 / 3;
}
.topbar-wrap {
    position: fixed;
    top: 12px;
    right: 16px;
    left: auto;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    pointer-events: none;
}

.topbar-wrap > * {
    pointer-events: auto;
}

.topbar {
    height: auto;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
}

.site-logo-link {
    position: fixed;
    top: 4px;
    left: 4px;
    z-index: 110;
    display: inline-flex;
    align-items: flex-start;
    flex-shrink: 0;
    line-height: 0;
    border-radius: 0;
    text-decoration: none;
    background: transparent;
    pointer-events: auto;
    transition: transform 0.14s ease, opacity 0.14s ease;
    transform-origin: top left;
}

.site-logo-link:hover,
.site-logo-link:focus-visible {
    transform: scale(1.03);
    opacity: 0.94;
    outline: none;
}

.site-logo {
    display: block;
    height: 78px;
    width: auto;
    max-width: min(94vw, 315px);
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.scroll-nav-buttons {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(14, 22, 35, 0.92);
    color: #f3f4f6;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.scroll-nav-btn:hover {
    background: rgba(20, 31, 50, 0.95);
    border-color: rgba(255, 255, 255, 0.42);
}

.scroll-nav-btn.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-profile-hit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    padding: 2px 4px;
    margin: -2px -4px;
    border: none;
    background: transparent;
    font: inherit;
    cursor: default;
}

.user-menu-wrap {
    position: relative;
}

.user-menu-wrap.is-logged-in .user-profile-hit {
    cursor: pointer;
}

.user-menu-wrap.is-logged-in .user-profile-hit:hover,
.user-menu-wrap.is-logged-in .user-profile-hit:focus-visible {
    outline: none;
}

.user-menu-wrap.is-logged-in .user-profile-hit:hover .nickname,
.user-menu-wrap.is-logged-in .user-profile-hit:focus-visible .nickname {
    color: #ffffff;
}

.user-menu-wrap.is-logged-in .user-profile-hit:hover .avatar,
.user-menu-wrap.is-logged-in .user-profile-hit:focus-visible .avatar {
    border-color: rgba(232, 127, 192, 0.75);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 188px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(14, 22, 35, 0.97);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity 0.18s ease,
        transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1),
        visibility 0.18s ease;
    pointer-events: none;
    z-index: 140;
}

.user-menu-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.user-menu-wrap.is-logged-in.is-menu-open .user-menu-dropdown,
.user-menu-wrap.is-logged-in:focus-within .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-menu-wrap.is-logged-in.is-menu-open {
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.user-menu-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    color: #f3f4f6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.14s ease, color 0.14s ease;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
    background: rgba(232, 127, 192, 0.14);
    color: #ffffff;
    outline: none;
}

.user-menu-item[aria-disabled="true"],
.user-menu-item:disabled {
    pointer-events: none;
    opacity: 0.45;
}

.user-menu-item.is-guest-action {
    pointer-events: auto;
    opacity: 0.65;
}

.user-menu-item-button {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: #f3f4f6;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.35;
}

.user-menu-item-logout {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    color: #fca5a5;
}

.user-menu-item-logout:hover,
.user-menu-item-logout:focus-visible {
    background: rgba(248, 113, 113, 0.14);
    color: #fecaca;
}

.user-settings-status-input {
    min-height: 88px;
    resize: vertical;
}

.user-settings-avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-settings-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 9999px;
    background: #16243b;
    color: #f9fafb;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.user-settings-avatar-preview.has-photo {
    color: transparent;
}

.user-settings-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.user-settings-showcase-block {
    margin-bottom: 16px;
}

.user-settings-showcase-hint {
    margin-top: 4px;
    margin-bottom: 10px;
}

.user-settings-showcase-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.user-settings-showcase-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.user-settings-showcase-option:hover {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.user-settings-showcase-option.is-selected {
    border-color: rgba(96, 165, 250, 0.85);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.user-settings-showcase-option-image {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.user-settings-showcase-none {
    font-size: 0.72rem;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1;
}

.user-settings-showcase-empty {
    margin: 0;
    flex: 1 1 100%;
}

.user-settings-avatar-upload {
    cursor: pointer;
}

.user-settings-banner-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-settings-banner-preview {
    width: 100%;
    height: 128px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(135deg, rgba(36, 42, 53, 0.95) 0%, rgba(22, 28, 38, 0.98) 55%, rgba(15, 20, 28, 1) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.user-settings-banner-preview.has-banner {
    border-color: rgba(255, 255, 255, 0.22);
}

.user-settings-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-settings-banner-hint {
    margin: 0;
}

.user-settings-avatar-hint {
    margin: 0;
    text-align: center;
}

.user-settings-nickname-hint {
    margin-top: -4px;
    margin-bottom: 12px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    background: #16243b;
    color: #f9fafb;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nickname {
    color: #e5e7eb;
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
    max-width: 108px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-nickname-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 184px;
}

.profile-showcase-badge {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.profile-showcase-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
}

.profile-showcase-badge-wrap .profile-showcase-badge {
    cursor: help;
}

.profile-showcase-badge-wrap .profile-showcase-badge:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.85);
    outline-offset: 2px;
}

.profile-showcase-tooltip-layer,
.user-profile-achievement-tooltip-layer {
    position: fixed;
    z-index: 12050;
    width: max-content;
    max-width: min(220px, 70vw);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
    text-align: center;
    pointer-events: none;
    transform: translate(-50%, -100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.profile-showcase-tooltip-layer.is-visible,
.user-profile-achievement-tooltip-layer.is-visible {
    opacity: 1;
    visibility: visible;
}

.profile-showcase-tooltip-layer.is-tooltip-below {
    transform: translate(-50%, 0);
}

.profile-showcase-tooltip-layer::after,
.user-profile-achievement-tooltip-layer::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    transform: translateX(-50%) rotate(45deg);
    background: rgba(15, 23, 42, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-showcase-tooltip-layer.is-tooltip-below::after {
    bottom: auto;
    top: -6px;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-showcase-badge-tooltip-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    color: #f8fafc;
}

.profile-showcase-badge-tooltip-requirement {
    display: block;
    margin-top: 6px;
    font-size: 0.7rem;
    line-height: 1.35;
    color: #cbd5e1;
}

.user-showcase-badge {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.friends-user-showcase-badge {
    width: 20px;
    height: 20px;
}

.user-friend-requests-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9999px;
    background: linear-gradient(145deg, #fb923c, #f97316);
    border: 1px solid rgba(255, 237, 213, 0.55);
    box-shadow:
        0 0 10px rgba(249, 115, 22, 0.65),
        0 0 18px rgba(249, 115, 22, 0.35);
    color: #fff7ed;
    line-height: 1;
    pointer-events: none;
    animation: friend-requests-badge-glow 2.2s ease-in-out infinite;
}

.user-friend-requests-badge[hidden] {
    display: none !important;
}

.user-friend-requests-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.user-friend-requests-count {
    font-size: 0.62rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

@keyframes friend-requests-badge-glow {
    0%,
    100% {
        box-shadow:
            0 0 8px rgba(249, 115, 22, 0.55),
            0 0 14px rgba(249, 115, 22, 0.28);
    }
    50% {
        box-shadow:
            0 0 12px rgba(251, 146, 60, 0.85),
            0 0 22px rgba(249, 115, 22, 0.45);
    }
}

.auth-btn {
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 22, 35, 0.88);
    color: #f3f4f6;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    outline: none;
}

.auth-btn:hover {
    background: rgba(20, 31, 50, 0.95);
    border-color: rgba(255, 255, 255, 0.42);
}

.auth-btn:focus,
.auth-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.imdb-section {
    max-width: 1600px;
    margin: 22px auto 36px;
}

.imdb-header {
    max-width: 1320px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.imdb-heading {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.imdb-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.imdb-filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(17, 24, 39, 0.45);
    color: #e5e7eb;
    border-radius: 9999px;
    padding: 7px 12px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.imdb-filter-btn:hover {
    border-color: rgba(232, 127, 192, 0.65);
}

.imdb-filter-btn.is-active {
    background: rgba(232, 127, 192, 0.22);
    border-color: rgba(232, 127, 192, 0.8);
    color: #f9fafb;
}

.imdb-table-wrap {
    max-width: 1320px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(18, 22, 29, 0.86);
}

.imdb-table {
    width: 100%;
    border-collapse: collapse;
}

.imdb-table thead th {
    font-size: 0.84rem;
    font-weight: 700;
    color: #cbd5e1;
    text-align: left;
    padding: 12px 12px;
    background: rgba(17, 24, 39, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.imdb-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: #e5e7eb;
    vertical-align: middle;
}

.imdb-table tbody tr:hover {
    background: rgba(232, 127, 192, 0.08);
}

.imdb-row-highlight {
    animation: imdbRowGlow 1.6s ease;
}

@keyframes imdbRowGlow {
    0% {
        background: rgba(232, 127, 192, 0.34);
    }
    100% {
        background: transparent;
    }
}

.imdb-rank-cell {
    width: 58px;
    font-weight: 700;
    color: #f8fafc;
}

.imdb-poster-cell {
    width: 110px;
}

.imdb-poster-link {
    text-decoration: none;
    color: inherit;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: inline-block;
    cursor: zoom-in;
}

.imdb-poster {
    width: 74px;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(232, 127, 192, 0.2) 0%, rgba(39, 47, 60, 0.86) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

.imdb-poster-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.imdb-title-link {
    text-decoration: none;
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.96rem;
}

.imdb-title-link:hover {
    color: #fbcfe8;
}

.imdb-meta-muted {
    margin-top: 3px;
    font-size: 0.76rem;
    color: var(--muted);
}

.imdb-rating-cell {
    font-weight: 700;
    color: #facc15;
    width: 92px;
    font-size: 0.96rem;
}

.imdb-rating-link {
    color: #facc15;
    text-decoration: none;
    font-weight: 700;
}

.imdb-rating-link:hover {
    color: #fde68a;
    text-decoration: underline;
}

.imdb-duration-cell {
    min-width: 124px;
    color: #e5e7eb;
    font-weight: 600;
    white-space: nowrap;
}

.imdb-sortable-head {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 18px;
}

.imdb-sortable-head::after {
    content: "⇅";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
}

.imdb-sortable-head.is-active-sort {
    color: #f8fafc;
}

.imdb-sortable-head.is-active-sort[data-sort-dir="asc"]::after {
    content: "↑";
    color: #fbcfe8;
}

.imdb-sortable-head.is-active-sort[data-sort-dir="desc"]::after {
    content: "↓";
    color: #fbcfe8;
}

.imdb-actors-cell {
    min-width: 320px;
    color: #dbe4ef;
    line-height: 1.35;
}

.imdb-director-cell {
    min-width: 160px;
    color: #e5e7eb;
    font-weight: 600;
}

.imdb-person-link {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(232, 127, 192, 0.45);
}

.imdb-person-link:hover {
    color: #fbcfe8;
    border-bottom-color: rgba(252, 211, 232, 0.9);
}

.imdb-actors-cell .imdb-person-link {
    font-weight: 500;
}

.imdb-actions {
    max-width: 1320px;
    margin: 10px auto 0;
    display: flex;
    justify-content: center;
}

.imdb-toggle-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(17, 24, 39, 0.45);
    color: #e5e7eb;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
}

.imdb-toggle-btn:hover {
    border-color: rgba(232, 127, 192, 0.65);
}


.releases-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: 1320px;
    margin: 0 auto;
    gap: 10px;
}

.release-card {
    text-decoration: none;
    color: var(--text);
    display: block;
    perspective: 1000px;
    --gloss-angle: 20deg;
    --gloss-travel: 320%;
    --gloss-opacity: 0.2;
    --gloss-duration: 0.6s;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #242a35 0%, #1c212b 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    transform-style: preserve-3d;
    transition: transform 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
    position: relative;
}

.release-card:hover {
    transform: translateY(-15px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    border-color: rgba(232, 127, 192, 0.75);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(232, 127, 192, 0.35);
}

.soon-card {
    text-decoration: none;
    color: var(--text);
    display: block;
    perspective: 1000px;
    --gloss-angle: 20deg;
    --gloss-travel: 320%;
    --gloss-opacity: 0.16;
    --gloss-duration: 0.58s;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #25303b 0%, #1b232d 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    transform-style: preserve-3d;
    transition: transform 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
    position: relative;
}

.soon-card:hover {
    transform: translateY(-15px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    border-color: rgba(232, 127, 192, 0.75);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(232, 127, 192, 0.35);
}

.soon-card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -26%;
    width: 44%;
    height: 250%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, var(--gloss-opacity, 0.2)) 45%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(var(--gloss-angle, 20deg)) translateX(0);
    transition: transform var(--gloss-duration, 0.6s) ease;
    opacity: 0;
}

.soon-card:hover::after {
    transform: rotate(var(--gloss-angle, 20deg)) translateX(var(--gloss-travel, 320%));
    opacity: 1;
}

.soon-card[data-format="portrait"] {
    --gloss-travel: 420%;
}

.soon-card[data-format="portrait"]::after {
    left: -34%;
}

.soon-card-art {
    aspect-ratio: var(--card-ratio-upcoming);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 700;
    background: linear-gradient(145deg, rgba(232, 127, 192, 0.2) 0%, rgba(52, 60, 74, 0.9) 100%);
}

.soon-card-meta {
    padding: 10px 10px 11px;
}

.soon-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
}

.soon-card-info {
    margin-top: 6px;
    font-size: 0.73rem;
    color: var(--muted);
}

.release-card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -26%;
    width: 44%;
    height: 250%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, var(--gloss-opacity, 0.2)) 45%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(var(--gloss-angle, 20deg)) translateX(0);
    transition: transform var(--gloss-duration, 0.6s) ease;
    opacity: 0;
}

.release-card:hover::after {
    transform: rotate(var(--gloss-angle, 20deg)) translateX(var(--gloss-travel, 320%));
    opacity: 1;
}

.release-card[data-format="portrait"] {
    --gloss-travel: 420%;
}

.release-card[data-format="portrait"]::after {
    left: -34%;
}

.release-card-art {
    aspect-ratio: var(--card-ratio-release);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-size: 0.86rem;
    font-weight: 700;
    background: linear-gradient(145deg, rgba(232, 127, 192, 0.15) 0%, rgba(40, 46, 58, 0.85) 100%);
}

.card-poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-art-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    font-size: 0.72rem;
    color: #eef2ff;
    background: rgba(7, 10, 14, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 4px 10px;
    backdrop-filter: blur(2px);
}

.card-art-badge--rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 4px 9px;
}

.card-art-badge-star {
    color: #fbbf24;
    font-size: 0.68rem;
    line-height: 1;
}

.card-art-badge--rating.is-empty .card-art-badge-star {
    color: rgba(251, 191, 36, 0.45);
}

.release-card-meta {
    padding: 10px 10px 11px;
}

.release-card-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

.release-card-info {
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--muted);
}

.release-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(120deg, #ff5ea8, #ff7b4f);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.franchise-card[data-format="portrait"] .franchise-card-art,
.release-card[data-format="portrait"] .release-card-art,
.soon-card[data-format="portrait"] .soon-card-art {
    aspect-ratio: 2 / 3;
}

.franchise-card[data-format="landscape"] .franchise-card-art,
.release-card[data-format="landscape"] .release-card-art,
.soon-card[data-format="landscape"] .soon-card-art {
    aspect-ratio: 16 / 9;
}

.franchise-card[data-format="square"] .franchise-card-art,
.release-card[data-format="square"] .release-card-art,
.soon-card[data-format="square"] .soon-card-art {
    aspect-ratio: 1 / 1;
}

.simple-page-main {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 102px;
    padding-left: 16px;
    padding-right: 16px;
}

.simple-page-main.has-page-back {
    position: relative;
}

.simple-page-card.has-page-back {
    position: relative;
}

.simple-page-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(23, 26, 31, 0.9);
    padding: 18px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(148, 163, 184, 0.42);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    transition: color 0.14s ease;
}

.simple-page-card.has-page-back > .back-link {
    position: absolute;
    left: 8px;
    top: 0;
    z-index: 2;
    transform: translateY(calc(-100% - 6px));
    padding: 0;
    background: transparent;
}

.back-link:hover,
.back-link:focus-visible {
    color: rgba(148, 163, 184, 0.68);
    outline: none;
}

.simple-page-title {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.simple-page-text {
    margin: 0;
    color: var(--muted);
}

.user-profile-card {
    padding: 22px;
    position: relative;
    overflow: visible;
}

.user-profile-card.has-page-back > .user-profile-page-back {
    top: 0;
    left: 8px;
    z-index: 6;
    transform: translateY(calc(-100% - 6px));
    padding: 0;
    background: transparent;
    color: rgba(148, 163, 184, 0.42);
    text-shadow: none;
}

.user-profile-page-back:hover,
.user-profile-page-back:focus-visible {
    color: rgba(148, 163, 184, 0.68);
}

.user-profile-edit-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #d1d5db;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.14s ease, transform 0.14s ease;
}

.user-profile-edit-icon {
    width: 18px;
    height: 18px;
}

.user-profile-edit-btn:hover,
.user-profile-edit-btn:focus-visible {
    color: #ffffff;
    outline: none;
    transform: scale(1.06);
}

.user-profile-edit-btn[hidden],
.user-profile-edit-btn.hidden {
    display: none !important;
}

.user-settings-intro-hint {
    margin: 0 0 16px;
}

.user-settings-stub-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.user-settings-stub-item {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: rgba(10, 14, 20, 0.55);
}

.user-settings-stub-title {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #f3f4f6;
}

.user-settings-stub-text {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

.user-settings-stub-actions {
    margin-top: 0;
}

.user-profile-shell {
    position: relative;
    z-index: 1;
}

.user-profile-add-friend-btn {
    flex-shrink: 0;
    align-self: flex-start;
    margin-left: auto;
    margin-top: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 16, 22, 0.75);
    color: #d1d5db;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.user-profile-add-friend-icon {
    width: 20px;
    height: 20px;
}

.user-profile-add-friend-btn:hover,
.user-profile-add-friend-btn:focus-visible {
    background: rgba(232, 127, 192, 0.16);
    border-color: rgba(232, 127, 192, 0.55);
    color: #ffffff;
    outline: none;
}

.user-profile-add-friend-btn.is-pending,
.user-profile-add-friend-btn.is-friend {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(15, 20, 28, 0.65);
    color: var(--muted);
    cursor: default;
}

.user-profile-add-friend-btn.is-pending:hover,
.user-profile-add-friend-btn.is-pending:focus-visible,
.user-profile-add-friend-btn.is-friend:hover,
.user-profile-add-friend-btn.is-friend:focus-visible {
    background: rgba(15, 20, 28, 0.65);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--muted);
}

.user-profile-add-friend-btn:disabled {
    opacity: 1;
}

.user-profile-add-friend-btn[hidden],
.user-profile-add-friend-btn.hidden {
    display: none !important;
}

.user-profile-shell[hidden],
.user-profile-page-message[hidden] {
    display: none !important;
}

.user-profile-hero {
    position: relative;
    margin: -22px -22px 22px;
    padding: 18px 54px 20px 18px;
    border-radius: 14px 14px 10px 10px;
    overflow: hidden;
    isolation: isolate;
}

.user-profile-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(135deg, rgba(36, 42, 53, 0.95) 0%, rgba(22, 28, 38, 0.98) 55%, rgba(15, 20, 28, 1) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.user-profile-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(8, 10, 14, 0.12) 0%,
        rgba(8, 10, 14, 0.42) 58%,
        rgba(8, 10, 14, 0.72) 100%
    );
    pointer-events: none;
}

.user-profile-hero.has-banner .user-profile-hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(8, 10, 14, 0.2) 0%,
        rgba(8, 10, 14, 0.5) 55%,
        rgba(8, 10, 14, 0.82) 100%
    );
}

.user-profile-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    padding: 0;
    border-bottom: none;
    text-align: left;
}

.user-profile-header-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 2px;
}

.user-profile-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f9fafb;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
}

.user-profile-name-text {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-name .profile-showcase-badge-wrap {
    flex-shrink: 0;
}

.user-profile-name .profile-showcase-badge {
    width: clamp(24px, 2.2vw, 30px);
    height: clamp(24px, 2.2vw, 30px);
    border-radius: 8px;
}

.user-profile-status-line {
    width: 100%;
    max-width: 560px;
    margin: 0;
    padding: 0 0 2px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 0;
    display: block;
    text-align: left;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
}

.user-profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 9999px;
    background: #16243b;
    color: #f9fafb;
    font-size: 3.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.user-profile-avatar.has-photo {
    color: transparent;
}

.user-profile-status-line.is-empty {
    color: var(--muted);
}

.admin-page .simple-page-card.has-page-back > .back-link {
    left: 10px;
}

@media (max-width: 720px) {
    .simple-page-card.has-page-back > .back-link {
        left: 6px;
    }

    .user-profile-card.has-page-back > .user-profile-page-back {
        left: 6px;
    }
}

@media (max-width: 640px) {
    .user-profile-hero {
        padding-right: 48px;
    }

    .user-profile-header {
        flex-wrap: wrap;
    }

    .user-profile-add-friend-btn {
        width: 40px;
        margin-left: auto;
        margin-top: 0;
        order: 3;
    }

    .user-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .user-profile-header-main {
        width: 100%;
    }

    .user-profile-avatar {
        width: 128px;
        height: 128px;
        font-size: 2.8rem;
    }
}

.user-profile-achievements {
    margin-top: 18px;
    padding-top: 0;
    width: 100%;
    overflow: visible;
}

.user-profile-achievements .user-profile-section-title {
    margin-bottom: 4px;
}

.user-profile-achievements-carousel-wrap {
    --achievement-size: 52px;
    position: relative;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.user-profile-achievements-carousel {
    width: 100%;
    flex: none;
    min-width: 0;
    position: relative;
    min-height: calc(var(--achievement-size, 52px) + 8px);
    overflow: hidden;
    padding: 96px 8px 0;
    margin-top: -88px;
    box-sizing: border-box;
    touch-action: pan-y;
}

.user-profile-achievements-carousel.can-drag {
    cursor: grab;
}

.user-profile-achievements-carousel.can-drag .user-profile-achievement-card {
    cursor: grab;
}

.user-profile-achievements-carousel.can-drag.is-dragging,
.user-profile-achievements-carousel.can-drag.is-dragging .user-profile-achievement-card {
    cursor: grabbing;
}

.user-profile-achievements-carousel.can-drag.is-dragging {
    user-select: none;
}

.user-profile-achievements-carousel.is-coasting .user-profile-achievements-track,
.user-profile-achievements-carousel.is-coasting .user-profile-achievement {
    transition: none !important;
}

.user-profile-achievements-carousel.is-dragging .user-profile-achievements-track {
    transition: none !important;
}

.user-profile-achievements-carousel.is-dragging .user-profile-achievement {
    transition: none !important;
}

.user-profile-achievements-carousel.is-dragging .user-profile-achievement:hover,
.user-profile-achievements-carousel.is-dragging .user-profile-achievement:focus-within {
    transform: translate(-50%, -50%);
}

.user-profile-achievements-carousel:has(.user-profile-achievement:hover),
.user-profile-achievements-carousel:has(.user-profile-achievement:focus-within) {
    z-index: 4;
}

.user-profile-achievements-carousel-wrap:has(.user-profile-achievement:hover),
.user-profile-achievements-carousel-wrap:has(.user-profile-achievement:focus-within) {
    z-index: 4;
}

.user-profile-achievements-track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    margin: 0;
    padding: 0;
    list-style: none;
}

.user-profile-achievement {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max-content;
    height: max-content;
    transform: translate(-50%, -50%);
    --achievement-scale: 1;
    z-index: 2;
    opacity: 1;
    filter: brightness(1);
    transition:
        left 2.2s cubic-bezier(0.25, 0.85, 0.35, 1),
        opacity 2.2s ease,
        filter 2.2s ease,
        transform 0.28s ease-out;
}

.user-profile-achievement:hover:not(.is-hidden-left):not(.is-hidden-right),
.user-profile-achievement:focus-within:not(.is-hidden-left):not(.is-hidden-right) {
    z-index: 8;
    opacity: 1 !important;
    filter: brightness(1) !important;
    transform: translate(-50%, -50%) translateY(-6px);
}

.user-profile-achievement.is-center {
    z-index: 5;
}

.user-profile-achievement.is-hidden-left,
.user-profile-achievement.is-hidden-right {
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    filter: brightness(0.65);
    pointer-events: none;
}

.user-profile-achievement-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: default;
    font: inherit;
    overflow: visible;
}

.user-profile-achievement-media {
    display: block;
    width: var(--achievement-size);
    height: var(--achievement-size);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    transform-origin: center center;
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.28s ease;
}

.user-profile-achievement-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.35s ease;
}

.user-profile-achievement--locked .user-profile-achievement-image {
    filter: grayscale(1) brightness(0.72);
}

.user-profile-achievement--completed .user-profile-achievement-image {
    filter: none;
}

.user-profile-achievement-hover-title {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    color: #f8fafc;
}

.user-profile-achievement-hover-requirement {
    display: block;
    font-size: 0.7rem;
    line-height: 1.35;
    color: #cbd5e1;
}

.user-profile-achievement-hover-status {
    display: block;
    margin-bottom: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
    color: #86efac;
}

.user-profile-achievement-hover-next {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.user-profile-achievement-hover-next-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.user-profile-achievement-hover-next-title {
    display: block;
    margin-bottom: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.25;
    color: #e2e8f0;
}

.user-profile-achievement-hover-next-requirement {
    display: block;
    font-size: 0.68rem;
    line-height: 1.35;
    color: #94a3b8;
}

.user-profile-achievement-tooltip-layer .user-profile-achievement-hover-title {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    color: #f8fafc;
}

.user-profile-achievement-tooltip-layer .user-profile-achievement-hover-requirement {
    display: block;
    font-size: 0.7rem;
    line-height: 1.35;
    color: #cbd5e1;
}

.user-profile-achievement-tooltip-layer .user-profile-achievement-hover-status {
    display: block;
    margin-bottom: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
    color: #86efac;
}

.user-profile-achievement-tooltip-layer .user-profile-achievement-hover-next {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.user-profile-achievement-tooltip-layer .user-profile-achievement-hover-next-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.user-profile-achievement-tooltip-layer .user-profile-achievement-hover-next-title {
    display: block;
    margin-bottom: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.25;
    color: #e2e8f0;
}

.user-profile-achievement-tooltip-layer .user-profile-achievement-hover-next-requirement {
    display: block;
    font-size: 0.68rem;
    line-height: 1.35;
    color: #94a3b8;
}

.user-profile-achievement-card:hover .user-profile-achievement-media,
.user-profile-achievement-card:focus-visible .user-profile-achievement-media {
    transform: scale(1.06);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

@media (max-width: 640px) {
    .user-profile-achievements-carousel-wrap {
        --achievement-size: 48px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.user-profile-section-title {
    margin: 0 0 6px;
    font-size: 1rem;
}

.user-profile-recent-movies {
    margin-top: 22px;
    width: 100%;
}

.user-profile-recent-movies-header {
    margin-bottom: 12px;
}

.user-profile-recent-movies-header .user-profile-section-title {
    margin-bottom: 0;
}

.user-profile-recent-movies-grid {
    max-width: none;
    margin: 0;
    padding-top: 4px;
}

.user-profile-recent-movies-grid .release-card:not(.release-card-empty):hover,
.user-profile-recent-movies-grid .release-card-empty:hover {
    transform: translateY(-5px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(232, 127, 192, 0.35);
}

.release-card-empty {
    cursor: default;
}

.user-profile-recent-movies-grid .release-card-empty {
    pointer-events: auto;
}

.release-card-empty:hover {
    border-color: rgba(232, 127, 192, 0.75);
}

.release-card-empty::after {
    opacity: 0;
}

.user-profile-recent-movies-grid .release-card-empty::after {
    display: block;
}

.user-profile-recent-movies-grid .release-card-empty:hover::after {
    transform: rotate(var(--gloss-angle, 20deg)) translateX(var(--gloss-travel, 460%));
    opacity: 1;
}

.user-profile-page .release-card {
    min-width: 0;
}

@media (max-width: 900px) {
    .user-profile-recent-movies-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .user-profile-recent-movies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.user-profile-top-section {
    margin-top: 24px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.user-profile-top-section .imdb-header,
.user-profile-top-section .imdb-table-wrap {
    max-width: none;
}

.user-profile-top-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    font-weight: 700;
    color: #f8fafc;
}

.timeline-rating-form {
    margin-top: 18px;
    max-width: 360px;
}

.timeline-rating-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-rating-input {
    flex: 1 1 0;
    min-width: 0;
}

.timeline-rating-message {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.user-profile-page-message {
    margin: 0;
}

.friends-page-card {
    padding: 22px;
}

.friends-page-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.friends-page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.friends-page-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: min(100%, 240px);
    max-width: 320px;
    flex: 1 1 200px;
    margin-left: auto;
    padding: 0 12px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 16, 22, 0.75);
    transition: border-color 0.14s ease, background 0.14s ease;
}

.friends-page-search-wrap:focus-within {
    border-color: rgba(232, 127, 192, 0.55);
    background: rgba(15, 20, 28, 0.9);
}

.friends-page-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--muted);
    pointer-events: none;
}

.friends-page-search-icon svg {
    width: 16px;
    height: 16px;
}

.friends-page-search {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f3f4f6;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
}

.friends-page-search::placeholder {
    color: var(--muted);
}

.friends-page-search::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.friends-page-tab {
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 16, 22, 0.75);
    color: #d1d5db;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.friends-page-tab:hover,
.friends-page-tab:focus-visible {
    border-color: rgba(232, 127, 192, 0.45);
    color: #ffffff;
    outline: none;
}

.friends-page-tab.is-active {
    border-color: rgba(232, 127, 192, 0.65);
    background: rgba(232, 127, 192, 0.16);
    color: #ffffff;
}

.friends-page-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 9999px;
    background: linear-gradient(145deg, #fb923c, #f97316);
    border: 1px solid rgba(255, 237, 213, 0.45);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
    color: #fff7ed;
    font-size: 0.68rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.friends-page-tab-badge[hidden] {
    display: none !important;
}

.friends-page-count {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: var(--muted);
}

.friends-page-message[hidden] {
    display: none !important;
}

.friends-user-list {
    display: grid;
    gap: 10px;
}

.friends-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 20, 28, 0.55);
    transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

.friends-user-card:hover {
    border-color: rgba(232, 127, 192, 0.45);
    background: rgba(232, 127, 192, 0.08);
    transform: translateY(-1px);
}

.friends-user-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.friends-user-link {
    display: inline-flex;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 9999px;
    outline: none;
}

.friends-user-link:hover,
.friends-user-link:focus-visible {
    outline: none;
}

.friends-user-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    pointer-events: none;
}

.friends-watched-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    min-width: 52px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 20, 0.72);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.friends-watched-value,
.friends-watched-total {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f3f4f6;
}

.friends-watched-value {
    color: var(--muted);
}

.friends-watched-sep {
    font-size: 0.78rem;
    color: var(--muted);
}

.friends-user-favorites {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    pointer-events: auto;
}

.friends-favorite-slot {
    width: 38px;
    aspect-ratio: var(--card-ratio-release);
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
        rgba(10, 14, 20, 0.82);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    flex-shrink: 0;
}

.friends-favorite-slot--filled {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(10, 14, 20, 0.92);
}

.friends-favorite-poster-link {
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: zoom-in;
}

.friends-favorite-poster-link:focus-visible {
    outline: 2px solid rgba(139, 92, 246, 0.85);
    outline-offset: 2px;
}

.friends-favorite-slot-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friends-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: #16243b;
    color: #f9fafb;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.friends-user-avatar.has-photo {
    color: transparent;
}

.friends-user-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.friends-user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.friends-user-name {
    font-size: 1rem;
    font-weight: 700;
    color: #f3f4f6;
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friends-user-name:hover,
.friends-user-name:focus-visible {
    color: #ffffff;
    outline: none;
}

.friends-user-add-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 16, 22, 0.75);
    color: #d1d5db;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.friends-user-add-icon {
    width: 16px;
    height: 16px;
}

.friends-user-add-btn:hover,
.friends-user-add-btn:focus-visible {
    background: rgba(232, 127, 192, 0.16);
    border-color: rgba(232, 127, 192, 0.55);
    color: #ffffff;
    outline: none;
}

.friends-user-add-btn.is-pending,
.friends-user-add-btn.is-friend {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(15, 20, 28, 0.65);
    color: var(--muted);
    cursor: default;
}

.friends-user-add-btn.is-pending:hover,
.friends-user-add-btn.is-pending:focus-visible,
.friends-user-add-btn.is-friend:hover,
.friends-user-add-btn.is-friend:focus-visible {
    background: rgba(15, 20, 28, 0.65);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--muted);
}

.friends-user-add-btn:disabled {
    opacity: 1;
}

.friends-user-remove-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 16, 22, 0.75);
    color: #d1d5db;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.friends-user-remove-icon {
    width: 16px;
    height: 16px;
}

.friends-user-remove-btn:hover,
.friends-user-remove-btn:focus-visible {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.55);
    color: #fecaca;
    outline: none;
}

.friends-user-remove-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.friends-request-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.friends-user-card-aside {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.friends-request-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 16, 22, 0.75);
    color: #e5e7eb;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.friends-request-btn:hover,
.friends-request-btn:focus-visible {
    outline: none;
}

.friends-request-btn-accept:hover,
.friends-request-btn-accept:focus-visible {
    border-color: rgba(134, 239, 172, 0.55);
    background: rgba(34, 197, 94, 0.16);
    color: #ffffff;
}

.friends-request-btn-reject:hover,
.friends-request-btn-reject:focus-visible {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(239, 68, 68, 0.12);
    color: #ffffff;
}

.friends-request-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.friends-user-card.is-request {
    align-items: center;
}

.friends-user-status {
    font-size: 0.88rem;
    line-height: 1.4;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friends-user-status.is-empty {
    color: var(--muted);
}

.hidden {
    display: none !important;
}

.b2-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.b2-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.b2-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.b2-modal-dialog {
    position: relative;
    width: min(420px, 100%);
    max-height: min(90vh, 640px);
    overflow: auto;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 20px 20px 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.b2-modal-dialog-wide {
    width: min(520px, 100%);
}

.admin-movie-modal-dialog {
    width: min(980px, 98vw);
    max-height: min(96vh, 940px);
    padding: 18px 18px 14px;
}

.b2-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.b2-modal-close:hover {
    color: var(--text);
}

.b2-modal-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.b2-modal-subtitle {
    margin: 0 0 16px;
    font-size: 0.85rem;
    color: var(--muted);
}

.b2-modal-hint {
    margin: 12px 0 0;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.4;
}

.b2-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.b2-auth-tab {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
}

.b2-auth-tab.is-active {
    border-color: var(--accent-strong);
    background: rgba(232, 127, 192, 0.15);
}

.b2-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.b2-label {
    font-size: 0.78rem;
    color: var(--muted);
}

.b2-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0d0f12;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
}

textarea.b2-input {
    resize: vertical;
    line-height: 1.45;
}

.b2-form-row.hidden {
    display: none;
}

.b2-form-error {
    min-height: 1.2em;
    margin: 0;
    font-size: 0.8rem;
    color: #f87171;
}

.b2-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

.b2-btn-primary,
.b2-btn-secondary {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
}

.b2-btn-primary {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #111827;
    font-weight: 600;
}

.b2-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
