/* 10. Full-Screen Detail Sheet */
.detail {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    background-color: var(--sheet);
    z-index: 60;
    visibility: hidden;
    pointer-events: none;
    will-change: clip-path;
    overflow: hidden;
}

.detail.is-open {
    visibility: visible;
    pointer-events: auto;
}

.detail-close {
    position: absolute;
    left: 36px;
    top: 28px;
    color: var(--ink);
    z-index: 5;
}

.detail-brand {
    position: absolute;
    right: 36px;
    top: 25px;
    height: 27px;
    display: flex;
    align-items: center;
    z-index: 5;
}

.detail-brand-logo {
    display: block;
    height: 27px;
    width: auto;
    object-fit: contain;
    pointer-events: none;
}

.detail-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1460px;
    height: calc(100vh - 110px);
    height: calc(100dvh - 110px);
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    padding: 0 5.5vw 0 6.5vw;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 4vw;
    align-items: center;
    box-sizing: border-box;
}

.detail-left {
    max-width: 640px;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.7vh, 18px);
    justify-content: center;
    align-self: center;
}

.detail-mask {
    overflow: hidden;
    flex-shrink: 0;
    padding: 2px 2px 4px 0;
}

.detail-line {
    will-change: transform;
    display: block;
}

.detail-sub {
    color: var(--cobalt);
    font-size: 13px;
    letter-spacing: 0.16em;
}

.detail-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(46px, 5.2vw, 76px);
    line-height: 1.08;
    padding-bottom: 0.06em;
    letter-spacing: -0.03em;
    color: var(--cobalt);
}

.detail-meta {
    color: var(--muted);
    font-size: 12.5px;
}

.detail-meta.is-gemini-headline {
    color: var(--ink);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.16em;
    line-height: 1.4;
}

.detail-synopsis {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(16px, 1.9vh, 19px);
    line-height: 1.45;
    max-width: 46ch;
    color: var(--ink);
}

.detail-credit {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(14px, 1.6vh, 16.5px);
    line-height: 1.4;
    color: var(--muted);
}

/* Interactive Subscription Plan Selector */
.detail-plans {
    display: flex;
    flex-direction: column;
    gap: 13px;
    width: 100%;
    max-width: 580px;
    margin: 4px 0 6px;
}

.detail-plans[hidden],
.detail-mask[hidden] {
    display: none !important;
}

.plan-card {
    width: 100%;
    padding: 17px 22px;
    border: 1px solid rgba(20, 20, 20, 0.22);
    background-color: rgba(255, 255, 255, 0.36);
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
    transition:
        border-color 0.28s var(--ease),
        background-color 0.28s var(--ease),
        transform 0.28s var(--ease),
        box-shadow 0.28s var(--ease);
}

.plan-card:hover {
    border-color: var(--cobalt);
    background-color: rgba(31, 63, 176, 0.04);
}

.plan-card.is-selected {
    border-color: var(--cobalt);
    background-color: rgba(31, 63, 176, 0.07);
    box-shadow: inset 0 0 0 0.5px var(--cobalt);
}

.plan-radio {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 1.5px solid var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.25s var(--ease);
}

.plan-radio::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--cobalt);
    transform: scale(0);
    transition: transform 0.25s var(--ease);
}

.plan-card.is-selected .plan-radio {
    border-color: var(--cobalt);
}

.plan-card.is-selected .plan-radio::after {
    transform: scale(1);
}

.plan-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.plan-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 18.5px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.plan-card.is-selected .plan-title {
    color: var(--cobalt);
}

.plan-specs {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 11.5px;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.plan-price {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.06em;
    padding: 9px 15px;
    border: 1px solid rgba(20, 20, 20, 0.22);
    color: var(--ink);
    background-color: transparent;
    flex-shrink: 0;
    transition:
        border-color 0.25s var(--ease),
        background-color 0.25s var(--ease),
        color 0.25s var(--ease);
}

.plan-card.is-selected .plan-price {
    border-color: var(--cobalt);
    background-color: var(--cobalt);
    color: #FFFFFF;
}

.detail-watch-btn {
    height: 50px;
    padding: 0 30px;
    margin: 1px 0;
    font-size: 12.5px;
    border: 1.5px solid var(--cobalt);
    background: transparent;
    color: var(--cobalt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transition:
        background-color 0.3s var(--ease),
        color 0.3s var(--ease);
}

.detail-watch-btn:hover {
    background-color: var(--cobalt);
    color: var(--sheet);
}

.detail-action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 580px;
}

.detail-coupon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 1;
    min-width: 210px;
    max-width: 310px;
}

.detail-coupon-input {
    width: 100%;
    height: 50px;
    padding: 0 92px 0 16px;
    margin: 1px 0;
    border: 1.5px solid rgba(20, 20, 20, 0.25);
    background-color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    outline: none;
    cursor: text !important;
    user-select: text;
    -webkit-user-select: text;
    transition:
        border-color 0.25s var(--ease),
        background-color 0.25s var(--ease);
}

.detail-coupon-input::placeholder {
    color: var(--muted);
    opacity: 0.65;
    font-weight: 600;
}

.detail-coupon-input:focus {
    border-color: var(--cobalt);
    background-color: rgba(255, 255, 255, 0.78);
}

.detail-coupon-input.is-applied {
    border-color: #15803D;
    background-color: rgba(21, 128, 61, 0.06);
    color: #15803D;
}

.detail-coupon-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-sans);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #15803D;
    pointer-events: none;
}

.plan-price-old {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 12.5px;
    font-weight: 500;
    margin-right: 6px;
}

.detail-right {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.detail-poster-svg {
    height: 58vh;
    height: 58dvh;
    max-height: min(60vh, 520px);
    max-height: min(60dvh, 520px);
    width: auto;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: block;
    filter:
        drop-shadow(0 28px 46px rgba(15, 12, 8, 0.28))
        drop-shadow(0 8px 16px rgba(15, 12, 8, 0.14));
}

/* 11. Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 58px;
    height: 58px;
    margin-left: -29px;
    margin-top: -29px;
    pointer-events: none;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.cursor-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    background-color: transparent;
    transition:
        transform 0.5s var(--ease),
        background-color 0.4s var(--ease),
        border-color 0.4s var(--ease);
}

.cursor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--ink);
    transition:
        transform 0.4s var(--ease),
        background-color 0.4s var(--ease);
}

.cursor.spine .cursor-ring {
    transform: scale(0.72);
}

.cursor.btn .cursor-ring {
    transform: scale(0.55);
}

.cursor.btn .cursor-dot {
    transform: scale(0);
}