.staff-cinema {
    --staff-bg-1: #020611;
    --staff-bg-2: #040d1c;
    --staff-bg-3: #02040b;
    --staff-panel: rgba(13, 24, 42, 0.56);
    --staff-panel-strong: rgba(15, 28, 47, 0.7);
    --staff-border: rgba(255, 255, 255, 0.14);
    --staff-text: #eef5ff;
    --staff-muted: #a9b7cc;
    --staff-teal: #13d5c1;
    --staff-teal-soft: rgba(19, 213, 193, 0.2);
    --staff-gold: #ffcf62;
    --staff-silver: #ced7e4;
    --staff-bronze: #d99a63;
    --staff-radius-xl: 20px;
    --staff-radius-lg: 16px;
    --staff-fast: 200ms;
    position: relative;
    overflow: clip;
    isolation: isolate;
    direction: rtl;
    text-align: right;
    color: var(--staff-text);
    min-height: 75vh;
    padding-block: clamp(26px, 3.3vw, 48px) 68px;
    font-family: "abdulla", "abdullaa", "Noto Kufi Arabic", "Noto Sans Arabic", "Cairo", "Tajawal", "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.staff-cinema__backdrop {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(75% 60% at 15% 8%, rgba(19, 213, 193, 0.16) 0%, rgba(19, 213, 193, 0) 100%),
        radial-gradient(70% 50% at 100% 10%, rgba(255, 207, 98, 0.12) 0%, rgba(255, 207, 98, 0) 100%),
        linear-gradient(170deg, var(--staff-bg-1), var(--staff-bg-2) 45%, var(--staff-bg-3) 100%);
}

.staff-cinema__vignette {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0.56) 100%);
    pointer-events: none;
}

.staff-cinema__beam {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    filter: blur(2px);
    opacity: 0.46;
    mix-blend-mode: screen;
    animation: staffBeamDrift 11s ease-in-out infinite alternate;
}

.staff-cinema__beam--one {
    width: 420px;
    height: 680px;
    inset-inline-start: -120px;
    inset-block-start: -130px;
    background: linear-gradient(130deg, rgba(19, 213, 193, 0), rgba(19, 213, 193, 0.18), rgba(255, 207, 98, 0));
    transform: rotate(-7deg);
}

.staff-cinema__beam--two {
    width: 460px;
    height: 640px;
    inset-inline-end: -140px;
    inset-block-start: -100px;
    background: linear-gradient(42deg, rgba(255, 207, 98, 0), rgba(255, 207, 98, 0.18), rgba(19, 213, 193, 0));
    transform: rotate(8deg);
    animation-delay: 1.7s;
}

@keyframes staffBeamDrift {
    0% { transform: translate3d(0, 0, 0) rotate(-6deg); }
    100% { transform: translate3d(18px, -10px, 0) rotate(-1deg); }
}

.staff-cinema__container {
    width: min(1320px, 95vw);
    margin-inline: auto;
    display: grid;
    gap: 20px;
}

.staff-hero,
.staff-podium,
.staff-grid-section,
.staff-member-view,
.staff-member-works,
.staff-empty-state {
    border-radius: var(--staff-radius-xl);
    border: 1px solid var(--staff-border);
    background: var(--staff-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38);
}

.staff-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 3vw, 34px);
}

.staff-hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, rgba(19, 213, 193, 0.26), rgba(255, 207, 98, 0.16), rgba(19, 213, 193, 0.1));
    opacity: 0.58;
    z-index: 0;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    padding: 1px;
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.staff-hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.staff-hero__particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(19, 213, 193, 0));
    opacity: 0.36;
    animation: staffParticleFloat linear infinite;
}

@keyframes staffParticleFloat {
    0% { transform: translateY(24px) scale(0.8); opacity: 0; }
    20% { opacity: 0.48; }
    80% { opacity: 0.3; }
    100% { transform: translateY(-120px) scale(1.2); opacity: 0; }
}

.staff-hero__content,
.staff-hero__controls {
    position: relative;
    z-index: 2;
}

.staff-hero__title {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(19, 213, 193, 0.4),
        0 0 26px rgba(255, 207, 98, 0.24),
        0 6px 24px rgba(0, 0, 0, 0.45);
}

.staff-hero__subtitle {
    margin: 10px 0 0;
    max-width: 980px;
    color: rgba(228, 237, 249, 0.9);
    font-size: clamp(15px, 2vw, 20px);
    line-height: 1.9;
}

.staff-hero__controls {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.staff-role-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.staff-role-filters__chip {
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #edf4ff;
    padding-inline: 14px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--staff-fast) ease, border-color var(--staff-fast) ease, background-color var(--staff-fast) ease, box-shadow var(--staff-fast) ease;
}

.staff-role-filters__chip:hover {
    transform: translateY(-1px);
    border-color: rgba(19, 213, 193, 0.58);
    box-shadow: 0 8px 18px rgba(19, 213, 193, 0.2);
}

.staff-role-filters__chip.is-active {
    border-color: rgba(19, 213, 193, 0.78);
    background: linear-gradient(120deg, rgba(19, 213, 193, 0.24), rgba(255, 207, 98, 0.18));
    color: #fff;
    box-shadow: 0 10px 20px rgba(19, 213, 193, 0.22);
}

.staff-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.staff-sort__label {
    font-size: 13px;
    color: var(--staff-muted);
}

.staff-sort__select {
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-inline: 10px;
}

.staff-sort__select:focus-visible {
    outline: none;
    border-color: rgba(19, 213, 193, 0.7);
    box-shadow: 0 0 0 3px rgba(19, 213, 193, 0.22);
}

.staff-podium {
    position: relative;
    overflow: hidden;
    padding: 18px;
}

.staff-podium__spotlight {
    position: absolute;
    inset-inline: 16%;
    inset-block-start: -180px;
    height: 390px;
    background: radial-gradient(circle, rgba(255, 207, 98, 0.3), rgba(19, 213, 193, 0.05) 52%, rgba(0, 0, 0, 0) 78%);
    filter: blur(2px);
    pointer-events: none;
}

.staff-podium__header {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}

.staff-podium__header h2,
.staff-grid-section__head h2,
.staff-member-works__head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.2;
    font-weight: 800;
}

.staff-section-description {
    margin: 8px 0 0;
    color: rgba(221, 233, 247, 0.86);
    line-height: 1.8;
    font-size: 14px;
}

.staff-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .45s ease;
}

.staff-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.staff-podium__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.staff-podium-card,
.staff-glass-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: var(--staff-panel-strong);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
    transition: transform var(--staff-fast) ease, border-color var(--staff-fast) ease, box-shadow var(--staff-fast) ease;
}

.staff-podium-card {
    padding: 16px;
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    animation: staffFloat 4.8s ease-in-out infinite;
}

.staff-podium-card.slot-left { animation-delay: 0.25s; }
.staff-podium-card.slot-right { animation-delay: 0.5s; }

@keyframes staffFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.staff-podium-card:hover,
.staff-glass-card:hover {
    transform: translateY(-7px);
    border-color: rgba(19, 213, 193, 0.58);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.44), 0 0 26px rgba(19, 213, 193, 0.16);
}

.staff-podium-card.rank-1 {
    min-height: 420px;
    background: linear-gradient(180deg, rgba(255, 207, 98, 0.28), rgba(35, 26, 10, 0.5)), var(--staff-panel-strong);
    border-color: rgba(255, 207, 98, 0.65);
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.48), 0 0 34px rgba(255, 207, 98, 0.3);
}

.staff-podium-card.rank-1::after {
    content: "";
    position: absolute;
    inset: -20px;
    border-radius: inherit;
    border: 1px solid rgba(255, 207, 98, 0.2);
    animation: staffGoldAura 3.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes staffGoldAura {
    0%, 100% { transform: scale(1); opacity: 0.38; }
    50% { transform: scale(1.03); opacity: 0.62; }
}

.staff-podium-card.rank-2 {
    min-height: 360px;
    background: linear-gradient(180deg, rgba(206, 215, 228, 0.2), rgba(21, 29, 39, 0.52)), var(--staff-panel-strong);
    border-color: rgba(206, 215, 228, 0.55);
}

.staff-podium-card.rank-3 {
    min-height: 360px;
    background: linear-gradient(180deg, rgba(217, 154, 99, 0.2), rgba(34, 24, 17, 0.5)), var(--staff-panel-strong);
    border-color: rgba(217, 154, 99, 0.55);
}

.staff-podium-card__rank {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    min-height: 30px;
    padding-inline: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(0, 0, 0, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
}

.staff-avatar-ring {
    position: relative;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, rgba(19, 213, 193, 0.12), rgba(255, 207, 98, 0.85), rgba(19, 213, 193, 0.12));
    animation: staffSpin 7s linear infinite;
    box-shadow: 0 0 16px rgba(19, 213, 193, 0.3);
}

.staff-avatar-ring--small {
    width: 90px;
    height: 90px;
}

.staff-avatar-ring--profile {
    width: 126px;
    height: 126px;
}

@keyframes staffSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.staff-avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: #091224;
}

.staff-podium-card h3,
.staff-glass-card h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 1.9vw, 24px);
    line-height: 1.2;
    font-weight: 800;
}

.staff-role-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.staff-role-badge {
    min-height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(19, 213, 193, 0.56);
    background: linear-gradient(120deg, rgba(19, 213, 193, 0.24), rgba(255, 207, 98, 0.14));
    color: #f3fffc;
    padding-inline: 10px;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.staff-stats-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.staff-stats-line span {
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #f2f7ff;
    padding-inline: 11px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
}

.staff-view-profile-btn {
    width: 100%;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(19, 213, 193, 0.62);
    background: linear-gradient(130deg, rgba(19, 213, 193, 0.92), rgba(255, 207, 98, 0.88));
    color: #08231f;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(19, 213, 193, 0.28);
    transition: transform var(--staff-fast) ease, filter var(--staff-fast) ease, box-shadow var(--staff-fast) ease;
}

.staff-view-profile-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(19, 213, 193, 0.34);
}

.staff-grid-section {
    padding: 18px;
}

.staff-glass-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.staff-glass-card {
    min-height: 286px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.staff-glass-card__gradient-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(19, 213, 193, 0.62), rgba(255, 207, 98, 0.38), rgba(19, 213, 193, 0.38));
    opacity: 0.38;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    transition: opacity var(--staff-fast) ease;
    pointer-events: none;
}

.staff-glass-card:hover .staff-glass-card__gradient-border {
    opacity: 0.8;
}

.staff-glass-card.is-hidden,
.staff-podium-card.is-hidden {
    display: none !important;
}

.staff-profile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 4800;
    background: rgba(3, 9, 16, 0.76);
    backdrop-filter: blur(10px) saturate(1.16);
    -webkit-backdrop-filter: blur(10px) saturate(1.16);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--staff-fast) ease, visibility var(--staff-fast) ease;
}

.staff-profile-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.staff-profile-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 4810;
    width: min(960px, calc(100vw - 34px));
    max-height: min(90vh, 860px);
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--staff-fast) ease, opacity var(--staff-fast) ease, visibility var(--staff-fast) ease;
    background: linear-gradient(180deg, rgba(9, 17, 31, 0.97), rgba(7, 14, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.56),
        0 0 0 1px rgba(19, 213, 193, 0.12) inset;
    overflow: hidden;
}

.staff-profile-panel.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.staff-profile-panel__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--staff-fast) ease, border-color var(--staff-fast) ease, transform var(--staff-fast) ease;
}

.staff-profile-panel__close:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.17);
    border-color: rgba(19, 213, 193, 0.6);
}

.staff-profile-panel__close:focus-visible {
    outline: none;
    border-color: rgba(19, 213, 193, 0.75);
    box-shadow: 0 0 0 3px rgba(19, 213, 193, 0.24);
}

.staff-profile-panel__scroll {
    max-height: inherit;
    overflow: auto;
    padding: clamp(16px, 2.6vw, 24px);
    display: grid;
    gap: 16px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
}

.staff-profile-panel__hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(12px, 2vw, 18px);
    align-items: start;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    padding: clamp(12px, 2.1vw, 18px);
}

.staff-profile-panel__identity {
    min-width: 0;
}

.staff-profile-panel__identity h3 {
    margin: 0;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.15;
    color: #fff;
    word-break: break-word;
}

.staff-profile-panel__identity p {
    margin: 8px 0 0;
    color: rgba(222, 232, 245, 0.9);
    line-height: 1.9;
    font-size: clamp(13px, 1.4vw, 15px);
}

.staff-profile-panel__meta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 12px;
}

.staff-profile-panel__section {
    min-width: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
    padding: 12px 12px 13px;
}

.staff-profile-panel__section h4 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 17px;
    line-height: 1.3;
}

.staff-profile-panel__section--works {
    padding-block-end: 12px;
}

.staff-achievements-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.staff-achievements-list li {
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #e9f2ff;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.staff-profile-works-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 10px;
}

.staff-profile-work {
    text-decoration: none;
    color: #fff;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform var(--staff-fast) ease, border-color var(--staff-fast) ease, box-shadow var(--staff-fast) ease;
}

.staff-profile-work:not(a) {
    min-height: 120px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    line-height: 1.6;
    color: rgba(231, 240, 252, 0.92);
}

.staff-profile-work:hover {
    transform: translateY(-2px);
    border-color: rgba(19, 213, 193, 0.52);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.staff-profile-work img {
    width: 100%;
    height: 174px;
    object-fit: cover;
    display: block;
}

.staff-profile-work span {
    display: block;
    padding: 9px;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
    color: #eef6ff;
    margin-top: auto;
}

.staff-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.staff-social-icon {
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    padding-inline: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    transition: transform var(--staff-fast) ease, border-color var(--staff-fast) ease, background-color var(--staff-fast) ease;
}

.staff-social-icon:hover {
    transform: translateY(-1px);
    border-color: rgba(19, 213, 193, 0.56);
    background: rgba(19, 213, 193, 0.16);
}

.staff-social-icon.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.staff-profile-panel__visit-btn {
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(19, 213, 193, 0.68);
    background: linear-gradient(120deg, rgba(19, 213, 193, 0.92), rgba(255, 207, 98, 0.88));
    color: #06201e;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 2px;
    box-shadow: 0 12px 24px rgba(19, 213, 193, 0.26);
}

html.staff-profile-open,
body.staff-profile-open {
    overflow: hidden;
}

.staff-member-view,
.staff-member-works {
    padding: 16px;
}

.staff-member-view__back,
.staff-empty-state__link {
    color: #9feee4;
    text-decoration: none;
}

.staff-member-view__hero {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.staff-member-view__avatar-wrap {
    margin: 0;
    width: 130px;
    height: 130px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.staff-member-view__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-member-view__title {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3.4vw, 42px);
}

.staff-member-view__roles {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.staff-member-view__stats {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.staff-member-view__stats span {
    min-height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    padding-inline: 12px;
    display: inline-flex;
    align-items: center;
}

.staff-member-view__bio {
    margin: 10px 0 0;
    color: rgba(227, 236, 248, 0.92);
    line-height: 1.85;
}

.staff-member-works__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.staff-member-works__filters {
    display: inline-flex;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
}

.staff-member-works__filters a {
    min-height: 32px;
    border-radius: 999px;
    padding-inline: 12px;
    color: #ecf3ff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.staff-member-works__filters a.is-active {
    background: rgba(19, 213, 193, 0.22);
    border: 1px solid rgba(19, 213, 193, 0.66);
}

.staff-member-works__grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.staff-member-works__card {
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.staff-member-works__card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.staff-member-works__meta {
    display: block;
    padding: 8px;
}

.staff-member-works__meta strong {
    display: block;
    line-height: 1.3;
}

.staff-member-works__meta small {
    display: block;
    color: rgba(223, 235, 247, 0.82);
    margin-top: 4px;
}

.staff-empty-state {
    padding: 18px;
    text-align: center;
    color: rgba(228, 238, 248, 0.95);
}

.staff-empty-state__link {
    display: inline-block;
    margin-top: 8px;
}

@media (max-width: 1270px) {
    .staff-glass-grid,
    .staff-member-works__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .staff-podium__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-podium-card.rank-1 {
        grid-column: 1 / -1;
    }

    .staff-glass-grid,
    .staff-member-works__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-profile-panel {
        width: min(860px, calc(100vw - 24px));
    }
}

@media (max-width: 860px) {
    .staff-member-view__hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .staff-member-view__roles,
    .staff-member-view__stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .staff-cinema {
        padding-block: 20px 54px;
    }

    .staff-cinema__container {
        width: min(1320px, 94vw);
    }

    .staff-podium__grid,
    .staff-glass-grid,
    .staff-member-works__grid {
        grid-template-columns: 1fr;
    }

    .staff-podium,
    .staff-grid-section,
    .staff-member-view,
    .staff-member-works,
    .staff-empty-state {
        border-radius: 16px;
    }

    .staff-sort {
        justify-self: start;
    }

    .staff-profile-panel {
        width: calc(100vw - 16px);
        max-height: 92vh;
        border-radius: 18px;
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0;
    }

    .staff-profile-panel.is-open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }

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

    .staff-profile-panel__meta-grid {
        grid-template-columns: 1fr;
    }

    .staff-profile-panel__identity .staff-role-badges {
        justify-content: center;
    }

    .staff-profile-works-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .staff-profile-panel {
        width: calc(100vw - 10px);
        max-height: 94vh;
        border-radius: 14px;
    }

    .staff-profile-panel__scroll {
        padding: 12px;
        gap: 12px;
    }

    .staff-profile-panel__close {
        width: 34px;
        height: 34px;
        top: 8px;
        right: 8px;
    }

    .staff-profile-works-track {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .staff-podium-card,
    .staff-avatar-ring,
    .staff-hero__particle,
    .staff-reveal {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
