/* FRAME — native CSS, no external animation or font dependency. */
:root {
    --frame-bg: #0a0a0a;
    --frame-secondary: #121212;
    --frame-surface: #1b1b1b;
    --frame-text: #f1efe8;
    --frame-muted: #a1a1a1;
    --frame-accent: #b44f38;
    --frame-line: #2d2d2d;
    --frame-serif: Georgia, "Times New Roman", "Noto Serif", serif;
    --frame-sans: "Segoe UI", Arial, "Noto Sans", sans-serif;
    --frame-ease: cubic-bezier(.2, .72, .23, 1);
    --bs-body-bg: #0a0a0a;
    --bs-body-color: #f1efe8;
    --bs-border-color: #2d2d2d;
    color-scheme: dark
}

html {
    scroll-behavior: smooth
}

body.frame-body {
    background: var(--frame-bg);
    color: var(--frame-text);
    font-family: var(--frame-sans);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.6
}

.frame-body * {
    box-sizing: border-box
}

.frame-body a {
    color: inherit;
    text-decoration: none
}

.frame-body a:hover {
    color: #e0a28e
}

.frame-body :focus-visible {
    outline: 2px solid #e6a28b;
    outline-offset: 4px
}

.frame-body [hidden] {
    display: none !important
}

.frame-skip {
    position: absolute;
    left: 12px;
    top: -100px;
    background: var(--frame-text);
    color: var(--frame-bg) !important;
    padding: 10px;
    z-index: 100
}

.frame-skip:focus {
    top: 8px
}

.frame-main {
    flex: 1;
    width: min(100% - 64px, 1360px);
    margin: auto;
    padding: 42px 0 70px;
    min-width: 0
}

.frame-main:has(.frame-home) {
    padding-top: 0
}

.frame-header {
    border-bottom: 1px solid var(--frame-line)
}

.frame-navbar {
    padding: 15px 0
}

.frame-nav-inner {
    width: min(100% - 64px, 1360px);
    padding: 0;
    gap: 25px;
    margin: auto
}

.frame-brand {
    font-weight: 800;
    font-size: clamp(27px, 3vw, 39px);
    letter-spacing: -.09em;
    line-height: 1;
    white-space: nowrap
}

.frame-brand span {
    color: var(--frame-accent)
}

.frame-nav-links {
    gap: clamp(8px, 1.6vw, 24px)
}

.frame-body .navbar .nav-link {
    color: var(--frame-muted) !important;
    font-size: 12px;
    letter-spacing: .025em;
    padding: 8px 4px
}

.frame-body .navbar .nav-link:hover {
    color: var(--frame-text) !important
}

.frame-account {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    min-width: 0
}

.frame-account .navbar-nav {
    gap: 9px;
    align-items: center
}

.frame-account .nav-link {
    max-width: 180px;
    overflow-wrap: anywhere
}

.frame-bag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    white-space: nowrap;
    border-left: 1px solid var(--frame-line);
    padding-left: 16px
}

.frame-toggler {
    color: var(--frame-text);
    border: 1px solid var(--frame-line);
    font-size: 13px;
    border-radius: 0
}

.frame-footer {
    border-top: 1px solid var(--frame-line);
    padding: 42px max(32px, calc((100% - 1360px)/2));
    color: var(--frame-muted)
}

.frame-footer-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap
}

.frame-footer-top .frame-brand {
    color: var(--frame-text)
}

.frame-footer-top p {
    margin: 12px 0
}

.frame-footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
    font-size: 13px
}

.frame-footer-bottom {
    border-top: 1px solid var(--frame-line);
    margin-top: 28px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
    letter-spacing: .04em
}

.frame-home {
    min-width: 0
}

.frame-home h1,
.frame-home h2,
.frame-home h3 {
    font-family: var(--frame-serif);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.04em;
    margin: 0;
    color: var(--frame-text)
}

.frame-home h1 {
    font-size: clamp(58px, 9vw, 140px)
}

.frame-home h2 {
    font-size: clamp(44px, 6vw, 88px)
}

.frame-home h3 {
    font-size: clamp(25px, 3vw, 48px)
}

.frame-home em {
    font-weight: 400;
    color: #c4bcb0
}

.frame-eyebrow {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .19em;
    color: var(--frame-muted);
    font-weight: 600;
    margin: 0 0 18px
}

.frame-hero {
    min-height: clamp(490px, 70vh, 760px);
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: center;
    position: relative;
    gap: 24px;
    padding: 65px 0 90px;
    border-bottom: 1px solid var(--frame-line);
    overflow: hidden
}

.frame-hero-copy {
    position: relative;
    z-index: 1
}

.frame-lead {
    font-size: clamp(15px, 1.4vw, 19px);
    max-width: 400px;
    color: var(--frame-muted);
    margin: 26px 0 28px
}

.frame-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--frame-accent);
    padding: 5px 0;
    color: var(--frame-text);
    font-weight: 500;
    font-size: 13px
}

.frame-hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 1;
    isolation: isolate
}

.frame-disc {
    width: 90%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #0a0a0a 0 6%, #b4b0a5 6.2% 6.7%, #232323 7% 11%, #72716c 11.2% 12%, #141414 12.2% 18%, transparent 18.2%), repeating-radial-gradient(circle at center, #222 0 1px, #1a1a1a 1px 3px);
    border: 1px solid #393939;
    position: relative;
    transform: rotate(-20deg)
}

.frame-disc:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 15deg, transparent 0deg, #d5cbbb18 48deg, transparent 93deg, #c9a89518 175deg, transparent 230deg, #c3b9a815 300deg, transparent 360deg)
}

.frame-art-mark {
    position: absolute;
    bottom: 12%;
    right: 8%;
    font-size: clamp(26px, 4vw, 58px);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.08em;
    color: var(--frame-text)
}

.frame-art-mark span {
    display: block;
    font-size: 9px;
    letter-spacing: .15em;
    margin-top: 10px;
    color: var(--frame-muted)
}

.frame-hero-foot {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--frame-muted);
    font-size: 10px;
    letter-spacing: .12em
}

.frame-enter {
    animation: frame-enter .7s var(--frame-ease) both
}

.frame-enter:nth-child(2) {
    animation-delay: .08s
}

.frame-enter:nth-child(3) {
    animation-delay: .16s
}

.frame-enter:nth-child(4) {
    animation-delay: .24s
}

@keyframes frame-enter {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.frame-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--frame-line);
    scroll-margin-top: 20px
}

.frame-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 36px;
    flex-wrap: wrap
}

.frame-section-head>p {
    font-size: 13px;
    color: var(--frame-muted);
    margin: 0;
    max-width: 340px
}

.frame-shelf-stage {
    background: var(--frame-secondary);
    padding: 36px clamp(12px, 4vw, 52px) 18px;
    border: 1px solid var(--frame-line)
}

.frame-shelf {
    --case-height: clamp(192px, 27vw, 330px);
    --spine: clamp(32px, 4.1vw, 52px);
    --front: calc(var(--case-height)*.72);
    display: flex;
    align-items: end;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    position: relative;
    padding: 20px 5px 24px;
    scrollbar-width: thin;
    scrollbar-color: #686460 var(--frame-secondary);
    perspective: 1100px
}

.frame-case {
    flex: 0 0 var(--spine);
    width: var(--spine);
    height: var(--case-height);
    position: relative;
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: transparent;
    transition: flex-basis .55s var(--frame-ease), width .55s var(--frame-ease);
    text-align: left;
    color: var(--frame-text);
    perspective: 900px;
    touch-action: pan-x
}

.frame-case.is-open {
    flex-basis: calc(var(--front) + var(--spine));
    width: calc(var(--front) + var(--spine))
}

.frame-case-inner {
    position: absolute;
    inset: 0;
    display: block;
    transform-style: preserve-3d;
    transition: transform .55s var(--frame-ease)
}

.frame-case.is-open .frame-case-inner {
    transform: translateY(-7px)
}

.frame-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--spine);
    background: #232b35;
    border: 1px solid #434a53;
    border-radius: 3px 0 0 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 3px;
    gap: 12px;
    z-index: 2
}

.frame-case:nth-child(4n+2) .frame-spine {
    background: #542e25;
    border-color: #754a3b
}

.frame-case:nth-child(4n+3) .frame-spine {
    background: #353431;
    border-color: #55534e
}

.frame-case:nth-child(4n+4) .frame-spine {
    background: #343b38;
    border-color: #535b54
}

.frame-spine-logo,
.frame-spine-index {
    font-size: 9px;
    letter-spacing: .05em;
    color: #e1dfd6
}

.frame-spine-title {
    writing-mode: vertical-rl;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(11px, 1.3vw, 15px);
    font-weight: 600;
    letter-spacing: .02em;
    flex: 1;
    max-height: 100%
}

.frame-cover {
    position: absolute;
    left: var(--spine);
    top: 0;
    bottom: 0;
    width: var(--front);
    background: #142331;
    border: 2px solid #354e63;
    border-radius: 0 5px 5px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-origin: left center;
    transform: rotateY(-89deg) scaleX(.06);
    opacity: 0;
    transition: transform .55s var(--frame-ease), opacity .36s ease;
    pointer-events: none
}

.frame-case.is-open .frame-cover {
    opacity: 1;
    transform: rotateY(-7deg) scaleX(1)
}

.frame-cover-top,
.frame-cover-bottom {
    font-size: 8px;
    letter-spacing: .09em;
    display: flex;
    justify-content: space-between;
    padding: 5px;
    color: #dce6ec;
    white-space: nowrap
}

.frame-cover img {
    width: 100%;
    min-height: 0;
    flex: 1;
    object-fit: contain;
    background: #121212;
    display: block
}

.frame-shelf-caption {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--frame-line);
    padding-top: 12px;
    color: var(--frame-muted);
    font-size: 9px;
    letter-spacing: .12em
}

.frame-film-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 30px;
    padding: 30px 0 0;
    animation: frame-enter .42s var(--frame-ease) both
}

.frame-summary {
    max-width: 640px;
    color: var(--frame-muted);
    margin: 16px 0 0;
    overflow-wrap: anywhere
}

.frame-film-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--frame-muted);
    align-items: flex-start
}

.frame-film-meta strong {
    color: var(--frame-text);
    font-weight: 500;
    margin-left: 8px
}

.frame-price {
    font-size: 19px;
    font-weight: 600;
    color: var(--frame-text);
    font-variant-numeric: tabular-nums
}

.frame-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px
}

.frame-button,
.frame-body .btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    border: 1px solid var(--frame-accent);
    background: var(--frame-accent);
    color: #fff !important;
    border-radius: 0;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    transition: background .2s, border-color .2s;
    line-height: 1.3;
    text-decoration: none
}

.frame-button:hover,
.frame-body .btn-primary:hover {
    background: #963c2a;
    border-color: #963c2a
}

.frame-button-outline,
.frame-body .btn-outline-primary {
    background: transparent;
    border: 1px solid #77716a;
    color: var(--frame-text) !important
}

.frame-button-outline:hover,
.frame-body .btn-outline-primary:hover {
    background: var(--frame-surface);
    border-color: var(--frame-text)
}

.frame-genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.frame-genre-list button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 48px;
    background: transparent;
    color: var(--frame-muted);
    padding: 10px 18px;
    border: 1px solid var(--frame-line);
    font-size: 13px
}

.frame-genre-list button[aria-pressed=true],
.frame-genre-list button:hover {
    border-color: #ab8173;
    color: var(--frame-text);
    background: #251a17
}

.frame-search-label {
    display: block;
    color: var(--frame-muted);
    font-size: 11px;
    letter-spacing: .06em;
    margin-bottom: 4px
}

.frame-search {
    border: 1px solid var(--frame-line);
    background: var(--frame-secondary);
    color: var(--frame-text);
    padding: 12px;
    width: min(100%, 260px);
    border-radius: 0
}

.frame-result-count {
    font-size: 11px;
    color: var(--frame-muted);
    letter-spacing: .08em;
    text-transform: uppercase
}

.frame-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 22px
}

.frame-product {
    min-width: 0
}

.frame-product-image {
    display: block;
    aspect-ratio: 3/4;
    background: var(--frame-secondary);
    border: 1px solid var(--frame-line);
    overflow: hidden;
    padding: 10px
}

.frame-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .45s var(--frame-ease)
}

.frame-product-image:hover img {
    transform: scale(1.025)
}

.frame-product-kicker {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--frame-muted);
    font-size: 11px;
    margin-top: 13px
}

.frame-product h3 {
    font-size: clamp(23px, 2.5vw, 37px);
    margin: 8px 0;
    overflow-wrap: anywhere
}

.frame-product .frame-price {
    font-size: 15px;
    margin: 10px 0
}

.frame-product .frame-actions {
    justify-content: space-between;
    align-items: center
}

.frame-about {
    display: grid;
    gap: 15px;
    justify-items: start
}

.frame-about>p:last-child {
    color: var(--frame-muted);
    max-width: 650px;
    line-height: 1.8
}

.frame-management-table {
    font-size: 13px
}

.frame-empty {
    padding: 26px 0;
    color: var(--frame-muted)
}

/* Baseline styling for existing CRUD, Identity and checkout views (no field changes). */
.frame-body .form-control,
.frame-body .form-select,
.frame-body input.form-control,
.frame-body select.form-control {
    background: var(--frame-secondary);
    color: var(--frame-text);
    border: 1px solid #464646;
    border-radius: 0;
    min-height: 42px
}

.frame-body .form-control:focus,
.frame-body .form-select:focus {
    border-color: #dc9b87;
    box-shadow: none;
    background: var(--frame-secondary);
    color: var(--frame-text)
}

.frame-body .table {
    --bs-table-color: var(--frame-text);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--frame-line);
    --bs-table-striped-color: var(--frame-text);
    --bs-table-striped-bg: #171717;
    --bs-table-hover-color: var(--frame-text);
    --bs-table-hover-bg: #1b1b1b;
    color: var(--frame-text)
}

.frame-body .text-danger {
    color: #ffad9e !important
}

.frame-body .text-muted {
    color: var(--frame-muted) !important
}

.frame-body .btn {
    border-radius: 0
}

.frame-body .form-group {
    margin-bottom: 14px
}

.frame-body input::placeholder {
    color: #a1a1a1
}

.frame-body .nav-pills .nav-link.active {
    background: var(--frame-accent)
}

@media(max-width:991px) {

    .frame-nav-inner,
    .frame-main {
        width: calc(100% - 40px)
    }

    .frame-account {
        padding: 10px 0;
        align-items: flex-start
    }

    .frame-account .navbar-nav {
        align-items: flex-start
    }

    .frame-bag {
        border-left: 0;
        padding-left: 0
    }

    .frame-nav-links {
        padding: 12px 0
    }

    .frame-footer {
        padding: 32px 20px
    }

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

    .frame-hero {
        min-height: 520px
    }

    .frame-section {
        padding: 50px 0
    }
}

@media(max-width:575px) {

    .frame-nav-inner,
    .frame-main {
        width: calc(100% - 32px)
    }

    .frame-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 42px 0 62px;
        gap: 6px
    }

    .frame-home h1 {
        font-size: clamp(49px, 12vw, 76px)
    }

    .frame-hero-art {
        width: 66%;
        justify-self: end;
        max-height: 240px
    }

    .frame-hero-foot {
        font-size: 8px
    }

    .frame-section {
        padding: 40px 0
    }

    .frame-section-head {
        margin-bottom: 22px
    }

    .frame-film-panel {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .frame-shelf-stage {
        padding: 16px 8px 10px
    }

    .frame-shelf {
        --case-height: 204px;
        --spine: 34px;
        gap: 5px
    }

    .frame-shelf-caption {
        font-size: 8px
    }

    .frame-grid {
        gap: 24px 12px
    }

    .frame-product-image {
        padding: 4px
    }

    .frame-product .frame-actions {
        align-items: stretch;
        flex-direction: column
    }

    .frame-button {
        min-height: 44px
    }

    .frame-product-kicker {
        font-size: 10px
    }

    .frame-footer-bottom {
        font-size: 10px
    }

    .frame-genre-list button {
        min-height: 44px
    }

    .frame-account .navbar-nav {
        gap: 2px
    }

    .frame-body .row>div {
        min-width: 0
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .frame-body *,
    .frame-body *::before,
    .frame-body *::after {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }
}


/* FRAME UI repair: final overrides for layout, shelf and typography. */
html {
    font-size: 16px;
}

.frame-body {
    overflow-wrap: break-word;
}

.frame-body .frame-brand {
    color: var(--frame-text);
}

.frame-main,
.frame-nav-inner {
    width: min(calc(100% - 64px), 1360px);
}

.frame-main,
.frame-home,
.frame-section,
.frame-shelf-stage,
.frame-film-panels {
    min-width: 0;
    max-width: 100%;
}

.frame-body img {
    max-width: 100%;
}

.frame-home h1,
.frame-home h2,
.frame-home h3,
.frame-detail__title {
    font-family: var(--frame-serif);
    line-height: 1.22;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.frame-home h1 {
    font-size: clamp(48px, 7.6vw, 112px);
    line-height: 1.05;
}

.frame-home h2 {
    font-size: clamp(38px, 5.2vw, 78px);
}

.frame-home h3 {
    font-size: clamp(24px, 3vw, 44px);
}

.frame-home h3 a {
    color: inherit;
}

.frame-hero {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.frame-hero-copy,
.frame-hero-art,
.frame-section-head>* {
    min-width: 0;
}

.frame-hero-art {
    width: 100%;
}

.frame-feature {
    margin: 42px 0 20px;
    padding: clamp(20px, 4vw, 56px);
    background: #151515;
    border: 1px solid #3a3632;
    border-top: 2px solid var(--frame-accent);
}

.frame-feature .frame-section-head {
    margin-bottom: 28px;
}

.frame-feature h2 {
    font-size: clamp(48px, 7vw, 100px);
}

.frame-feature .frame-eyebrow {
    color: #d5a18e;
}

.frame-shelf-stage {
    padding: clamp(12px, 2vw, 26px);
    background: radial-gradient(ellipse at 48% 0%, #252321 0%, #111 68%);
    border: 1px solid #403b36;
}

.frame-stage-label {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 10px;
    color: #bcb5ae;
    letter-spacing: .13em;
    padding-bottom: 6px;
}

.frame-shelf {
    --case-height: clamp(225px, 30vw, 360px);
    --spine: clamp(34px, 3.6vw, 46px);
    --front: calc(var(--case-height)*.72);
    gap: 7px;
    padding: 20px 5px 24px;
    width: 100%;
    overflow-anchor: none;
    overscroll-behavior-x: contain;
}

.frame-case {
    flex: 0 0 auto;
    width: var(--spine);
    min-width: 0;
    height: var(--case-height);
    transition: width 580ms cubic-bezier(.22, .75, .24, 1);
    touch-action: auto;
}

.frame-case.is-open {
    flex-basis: auto;
    width: calc(var(--front) + var(--spine));
}

.frame-case-inner {
    overflow: clip;
    transform-style: flat;
    transition: transform 580ms cubic-bezier(.22, .75, .24, 1);
}

.frame-case.is-open .frame-case-inner {
    transform: translateY(-5px);
}

.frame-spine {
    display: block;
    padding: 0;
}

.frame-spine-logo,
.frame-spine-index {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1.2;
}

.frame-spine-logo {
    top: 12px;
}

.frame-spine-index {
    bottom: 12px;
}

.frame-spine-title {
    writing-mode: horizontal-tb;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: calc(var(--case-height) - 72px);
    max-width: none;
    max-height: none;
    line-height: 1.5;
    font-family: var(--frame-sans);
    font-size: 13px;
    letter-spacing: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.frame-cover {
    transform: perspective(1000px) rotateY(-88deg);
    opacity: 0;
    transition: transform 580ms cubic-bezier(.22, .75, .24, 1), opacity 300ms ease;
}

.frame-case.is-open .frame-cover {
    transform: perspective(1000px) rotateY(0deg);
    opacity: 1;
}

.frame-cover img {
    object-fit: contain;
}

.frame-cover-top,
.frame-cover-bottom {
    font-size: clamp(7px, .7vw, 10px);
    flex-shrink: 0;
}

.frame-film-panels {
    display: grid;
    margin-top: 4px;
}

.frame-film-panel {
    grid-area: 1/1;
    min-width: 0;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(18px, 4vw, 52px);
    padding-top: 26px;
    animation: none;
}

/* Hidden panels occupy the same grid area to keep height stable while hovering. */
.frame-body .frame-film-panels>.frame-film-panel[hidden] {
    display: grid !important;
    visibility: hidden;
    pointer-events: none;
}

.frame-film-panel.is-active {
    animation: frame-panel-in 320ms ease-out both;
}

@keyframes frame-panel-in {
    from {
        opacity: .5;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.frame-film-meta {
    font-size: 14px;
    gap: 12px;
}

.frame-film-meta .frame-price {
    font-size: clamp(23px, 3vw, 34px);
}

.frame-summary {
    line-height: 1.75;
}

.frame-product-image {
    aspect-ratio: 3/4;
}

.frame-product h3 {
    line-height: 1.3;
    letter-spacing: 0;
}

.frame-search {
    max-width: 100%;
}

.frame-body .frame-management-table td {
    overflow-wrap: anywhere;
}

.frame-body .table-responsive {
    max-width: 100%;
}

.frame-body .navbar-brand {
    word-break: normal;
}

.frame-detail-breadcrumb {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--frame-muted);
    font-size: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--frame-line);
}

.frame-detail-breadcrumb a {
    color: var(--frame-text);
}

.frame-detail {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 6vw, 100px);
    padding: clamp(24px, 5vw, 64px) 0 60px;
    align-items: start;
}

.frame-detail__media {
    min-width: 0;
    padding: clamp(18px, 4vw, 54px);
    background: radial-gradient(ellipse at 50% 35%, #252c32, #141414 75%);
    border: 1px solid var(--frame-line);
    display: grid;
    place-items: center;
}

.frame-detail__case {
    width: min(100%, 330px);
    position: relative;
    padding: 10px 10px 10px 23px;
    background: #152738;
    border: 1px solid #506474;
    border-radius: 3px 6px 6px 3px;
    box-shadow: 10px 16px 30px #0006;
    animation: frame-enter .55s var(--frame-ease) both;
}

.frame-detail__spine {
    position: absolute;
    inset: 0 auto 0 0;
    width: 17px;
    background: #253a4e;
    writing-mode: vertical-rl;
    font: 10px var(--frame-sans);
    padding: 8px 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frame-detail__case-top,
.frame-detail__case-bottom {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: wrap;
    color: #dce6ec;
    font-size: 9px;
    letter-spacing: .08em;
}

.frame-detail__case-top {
    margin-bottom: 8px;
}

.frame-detail__case-bottom {
    margin-top: 8px;
}

.frame-detail__image {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: contain;
    background: #101418;
    display: block;
}

.frame-detail__content {
    min-width: 0;
    animation: frame-enter .65s var(--frame-ease) both;
}

.frame-detail__title {
    font-size: clamp(34px, 5vw, 70px);
    margin: 0 0 24px;
    font-weight: 400;
}

.frame-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 0 30px;
}

.frame-detail__meta div span,
.frame-detail__label,
.frame-specs dt {
    display: block;
    color: var(--frame-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 6px;
}

.frame-detail__meta strong {
    font-size: 17px;
}

.frame-detail__summary {
    font-size: 16px;
    line-height: 1.8;
    color: #b8b6b1;
    margin: 0 0 24px;
}

.frame-detail__price {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 600;
    margin: 12px 0 20px;
}

.frame-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.frame-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid #77716a;
    padding: 10px 22px;
    font-size: 14px;
    transition: background .2s, border-color .2s;
}

.frame-btn--accent {
    background: var(--frame-accent);
    border-color: var(--frame-accent);
    color: #fff !important;
}

.frame-btn--accent:hover {
    background: #963c2a;
}

.frame-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid var(--frame-line);
}

.frame-specs dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.frame-detail__manage {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--frame-muted);
}

.frame-detail__manage a {
    text-decoration: underline;
}

@media(max-width:991px) {

    .frame-main,
    .frame-nav-inner {
        width: calc(100% - 40px);
    }

    .frame-detail {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        gap: 28px;
    }
}

@media(max-width:767px) {

    .frame-detail,
    .frame-film-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .frame-detail__media {
        padding: 24px;
    }

    .frame-feature {
        margin-top: 28px;
        padding: 18px;
    }

    .frame-shelf {
        --case-height: 230px;
        --spine: 34px;
    }

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

@media(max-width:575px) {

    .frame-main,
    .frame-nav-inner {
        width: calc(100% - 32px);
    }

    .frame-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .frame-hero-art {
        width: 66%;
    }

    .frame-home h1 {
        font-size: clamp(42px, 11vw, 64px);
    }

    .frame-shelf {
        --case-height: 204px;
        --spine: 32px;
        gap: 6px;
    }

    .frame-shelf-stage {
        padding: 10px;
    }

    .frame-stage-label {
        font-size: 8px;
    }

    .frame-film-meta .frame-actions {
        width: 100%;
    }

    .frame-film-meta .frame-actions a {
        flex: 1 1 110px;
    }

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

    .frame-product h3 {
        font-size: 21px;
    }

    .frame-product-kicker {
        flex-wrap: wrap;
    }

    .frame-specs {
        grid-template-columns: 1fr;
    }
}

@media(prefers-reduced-motion:reduce) {

    .frame-body *,
    .frame-body *::before,
    .frame-body *::after {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


.frame-detail__spine {
    writing-mode: horizontal-tb;
    padding: 0;
}

.frame-detail__spine>span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 155px;
    line-height: 1.4;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* ==========================================================================
   MOTION POLISH — Smooth editorial easing & staggered depth
   ========================================================================== */
:root {
    --frame-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Làm dịu các đĩa không được chọn để tạo chiều sâu sân khấu */
.frame-shelf:has(.frame-case.is-open) .frame-case:not(.is-open) {
    opacity: 0.72;
}

.frame-shelf:has(.frame-case.is-open) .frame-case:not(.is-open):hover {
    opacity: 1;
}

/* 2. Mở rộng gáy đĩa êm và hãm phanh mượt hơn */
.frame-case {
    transition:
        width 720ms var(--frame-ease-out),
        opacity 380ms ease;
    will-change: width;
}

.frame-case-inner {
    transition: transform 620ms var(--frame-ease-out);
}

/* Nhấc nhẹ gáy đĩa khi rê chuột (anticipation) */
.frame-case:not(.is-open):hover .frame-case-inner {
    transform: translateY(-6px);
}

.frame-spine {
    transition:
        border-color 320ms ease,
        filter 320ms ease,
        box-shadow 620ms var(--frame-ease-out);
}

.frame-case:not(.is-open):hover .frame-spine {
    border-color: #827b73;
    filter: brightness(1.15);
}

/* Tạo bóng rãnh gáy sách khi đĩa mở */
.frame-case.is-open .frame-spine {
    box-shadow: 6px 0 18px rgba(0, 0, 0, 0.5);
}

/* 3. Bìa trước xoay mở có độ trễ nhẹ + ảnh poster thu về khung */
.frame-cover {
    transform: perspective(1100px) rotateY(-78deg) scale(0.97);
    opacity: 0;
    transition:
        transform 720ms var(--frame-ease-out),
        opacity 460ms ease 60ms,
        box-shadow 720ms var(--frame-ease-out);
    will-change: transform, opacity;
}

.frame-case.is-open .frame-cover {
    transform: perspective(1100px) rotateY(0deg) scale(1);
    opacity: 1;
    box-shadow: 10px 16px 28px rgba(0, 0, 0, 0.55);
}

.frame-cover img {
    transform: scale(1.06);
    transition: transform 850ms var(--frame-ease-out);
    will-change: transform;
}

.frame-case.is-open .frame-cover img {
    transform: scale(1);
}

/* 4. Nội dung phim bên dưới (tên phim, mô tả, giá) trượt nổi mượt và có nhịp trễ */
@keyframes frame-panel-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.frame-film-panel.is-active {
    animation: frame-panel-in 560ms var(--frame-ease-out) both;
}

.frame-film-panel.is-active .frame-film-meta {
    animation: frame-panel-in 560ms var(--frame-ease-out) 75ms both;
}

/* 5. Nút bấm & thẻ phim bên dưới mượt đồng bộ */
.frame-button,
.frame-btn,
.frame-genre-list button {
    transition:
        background-color 280ms var(--frame-ease-out),
        border-color 280ms var(--frame-ease-out),
        color 280ms var(--frame-ease-out),
        transform 280ms var(--frame-ease-out);
}

.frame-button:hover,
.frame-btn:hover {
    transform: translateY(-1px);
}

.frame-product-image img {
    transition: transform 650ms var(--frame-ease-out);
}

.frame-product-image:hover img {
    transform: scale(1.035);
}

/* Giữ an toàn cho chế độ giảm chuyển động của hệ điều hành */
@media (prefers-reduced-motion: reduce) {
    .frame-body *,
    .frame-body *::before,
    .frame-body *::after {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
/* Căn thẳng hàng giá tiền và nút Add to cart ở đáy thẻ phim */
.frame-product {
    display: flex;
    flex-direction: column;
}

.frame-product .frame-price {
    margin-top: auto;
    padding-top: 10px;
}

/* Ép ảnh poster lấp đầy 100% khung bìa đĩa Blu-ray */
.frame-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Ưu tiên giữ trọn phần đầu/mặt nhân vật khi cắt khung */
}