/* =========================
   SEAT SELECTION PAGE
========================= */

.seat-page {
    width: 100%;
    min-height: calc(100vh - 96px);
    background: #f3f2ee;
    color: #050505;
}

.seat-page__inner {
    width: min(100% - 32px, 1540px);
    margin: 0 auto;
    padding: clamp(28px, 3vw, 48px) 0 clamp(58px, 5vw, 86px);
}

/* =========================
   BACK
========================= */

.seat-back {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: clamp(18px, 1.5vw, 26px);
    color: rgba(5, 5, 5, 0.78);
    font-size: clamp(13px, 0.9vw, 16px);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: color 0.18s ease;
}

.seat-back:hover {
    color: #ff2118;
}

/* =========================
   LAYOUT
========================= */

.seat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
    gap: clamp(42px, 5vw, 86px);
    align-items: start;
}

.seat-main {
    min-width: 0;
}

/* =========================
   HEAD
========================= */

.seat-head {
    min-width: 0;
    padding-bottom: clamp(22px, 2vw, 30px);
    border-bottom: 1px solid rgba(5, 5, 5, 0.16);
}

.seat-head h1 {
    display: inline-block;
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(58px, 5.4vw, 104px);
    font-weight: 400;
    line-height: 0.78;
    letter-spacing: -0.088em;
    text-transform: uppercase;
    transform: scaleX(0.96) scaleY(1.12);
    transform-origin: left bottom;
}

.seat-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 0;
    margin-top: clamp(22px, 1.7vw, 28px);
}

.seat-meta__item {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-right: 20px;
    margin-right: 18px;
    border-right: 1px solid rgba(5, 5, 5, 0.2);
    color: rgba(5, 5, 5, 0.58);
    font-size: clamp(12px, 0.86vw, 15px);
    font-weight: 900;
    line-height: 1.2;
}

.seat-meta__item:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
}

.seat-meta__icon,
.seat-summary__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(5, 5, 5, 0.55);
}

.seat-meta__icon img,
.seat-summary__icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* =========================
   SCREEN
========================= */

.seat-screen {
    width: min(100%, 760px);
    margin: clamp(26px, 2.6vw, 42px) auto clamp(30px, 3vw, 52px);
    text-align: center;
}

.seat-screen__shape {
    position: relative;
    width: 100%;
    height: clamp(18px, 1.2vw, 24px);
    background: #050505;
    clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
    box-shadow: 0 28px 38px rgba(5, 5, 5, 0.16);
}

.seat-screen span {
    display: block;
    margin-top: 16px;
    color: rgba(5, 5, 5, 0.52);
    font-family: var(--font-display);
    font-size: clamp(11px, 0.82vw, 14px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* =========================
   SEAT MAP
========================= */

.seat-map {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.seat-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 1.2vw, 20px);
    margin-bottom: 12px;
}

.seat-row__label {
    color: rgba(5, 5, 5, 0.72);
    font-family: var(--font-display);
    font-size: clamp(12px, 0.85vw, 15px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.seat-row__places {
    display: flex;
    align-items: center;
    gap: clamp(7px, 0.7vw, 12px);
}

.seat-place {
    width: clamp(42px, 3.2vw, 56px);
    height: clamp(34px, 2.55vw, 44px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(5, 5, 5, 0.32);
    border-radius: 4px;
    background: transparent;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(12px, 0.85vw, 15px);
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.seat-place:nth-child(3) {
    margin-left: clamp(18px, 2.4vw, 44px);
}

.seat-place:nth-child(7) {
    margin-left: clamp(18px, 2.4vw, 44px);
}

.seat-place:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.seat-place--busy,
.seat-place--busy:hover {
    border-color: rgba(5, 5, 5, 0.12);
    background: rgba(5, 5, 5, 0.72);
    color: rgba(255, 255, 255, 0.78);
    cursor: default;
    transform: none;
}

.seat-place--selected,
.seat-place--selected:hover {
    border-color: #ff2118;
    background: #ff2118;
    color: #ffffff;
    transform: translateY(-1px);
}

/* =========================
   LEGEND
========================= */

.seat-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(18px, 2vw, 34px);
    margin-top: clamp(24px, 2.4vw, 38px);
}

.seat-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(5, 5, 5, 0.58);
    font-size: clamp(11px, 0.8vw, 13px);
    font-weight: 900;
    line-height: 1;
}

.seat-legend__box {
    width: 28px;
    height: 24px;
    display: block;
    border-radius: 4px;
}

.seat-legend__box--free {
    border: 1px solid rgba(5, 5, 5, 0.32);
    background: transparent;
}

.seat-legend__box--busy {
    border: 1px solid rgba(5, 5, 5, 0.12);
    background: rgba(5, 5, 5, 0.72);
}

.seat-legend__box--selected {
    border: 1px solid #ff2118;
    background: #ff2118;
}

.seat-hint {
    max-width: 620px;
    margin: clamp(18px, 1.7vw, 26px) auto 0;
    color: rgba(5, 5, 5, 0.52);
    font-size: clamp(12px, 0.82vw, 14px);
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}

/* =========================
   SUMMARY
========================= */

.seat-summary {
    position: sticky;
    top: 112px;
    min-width: 0;
    padding: clamp(20px, 2vw, 28px);
    border: 1px solid rgba(5, 5, 5, 0.14);
    background: rgba(255, 255, 255, 0.18);
}

.seat-summary__movie {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(5, 5, 5, 0.14);
}

.seat-summary__poster {
    position: relative;
    width: 100%;
    aspect-ratio: 0.72 / 1;
    overflow: hidden;
    background: #050505;
}

.seat-summary__poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.seat-summary__poster span {
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    color: rgba(255, 255, 255, 0.18);
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 0.9;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.seat-summary__info {
    min-width: 0;
}

.seat-summary__info h2 {
    margin: 0 0 18px;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(25px, 1.9vw, 36px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.seat-summary__details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seat-summary__detail {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(5, 5, 5, 0.72);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.seat-summary__section {
    padding: 24px 0;
    border-bottom: 1px solid rgba(5, 5, 5, 0.14);
}

.seat-summary__label {
    display: block;
    margin-bottom: 12px;
    color: rgba(5, 5, 5, 0.62);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.012em;
    text-transform: uppercase;
}

.seat-summary__selected {
    margin: 0;
    color: #ff2118;
    font-size: clamp(12px, 0.85vw, 15px);
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.seat-summary__section--price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.seat-summary__section--price .seat-summary__label {
    margin-bottom: 0;
}

.seat-summary__section--price strong {
    color: #050505;
    font-size: clamp(24px, 1.8vw, 34px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.seat-summary__continue {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
    padding: 0 24px;
    border: 1px solid #ff2118;
    background: #ff2118;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(11px, 0.82vw, 14px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.seat-summary__continue span {
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
}

.seat-summary__continue:not(.seat-summary__continue--disabled):hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.seat-summary__continue--disabled {
    border-color: rgba(5, 5, 5, 0.22);
    background: transparent;
    color: rgba(5, 5, 5, 0.38);
    pointer-events: none;
}

.seat-summary__clear {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 0 18px;
    border: 1px solid rgba(5, 5, 5, 0.32);
    background: transparent;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(10px, 0.74vw, 12px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.seat-summary__clear:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.seat-summary__notice {
    margin: 18px 0 0;
    color: rgba(5, 5, 5, 0.56);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

/* =========================
   EMPTY
========================= */

.seat-empty {
    max-width: 620px;
    margin: 0 auto;
    padding: clamp(28px, 3vw, 44px);
    border: 1px solid rgba(5, 5, 5, 0.14);
    background: rgba(255, 255, 255, 0.22);
}

.seat-empty h2 {
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(34px, 3vw, 54px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.075em;
    text-transform: uppercase;
}

.seat-empty p {
    margin: 14px 0 0;
    color: rgba(5, 5, 5, 0.58);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1280px) {
    .seat-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
        gap: 36px;
    }

    .seat-summary__movie {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 16px;
    }
}

@media (max-width: 1080px) {
    .seat-layout {
        grid-template-columns: 1fr;
    }

    .seat-summary {
        position: static;
    }

    .seat-summary__movie {
        grid-template-columns: 110px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .seat-page__inner {
        width: min(100% - 18px, 1540px);
        padding-top: 24px;
    }

    .seat-head h1 {
        font-size: clamp(42px, 13vw, 62px);
        transform: none;
        letter-spacing: -0.075em;
    }

    .seat-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .seat-meta__item {
        padding-right: 0;
        margin-right: 0;
        border-right: 0;
    }

    .seat-screen {
        margin-top: 26px;
    }

    .seat-map {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .seat-row {
        width: max-content;
        min-width: 100%;
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .seat-place {
        width: 40px;
        height: 34px;
        font-size: 11px;
    }

    .seat-place:nth-child(3),
    .seat-place:nth-child(7) {
        margin-left: 18px;
    }

    .seat-summary {
        padding: 18px;
    }

    .seat-summary__movie {
        grid-template-columns: 92px minmax(0, 1fr);
    }
}

@media (max-width: 460px) {
    .seat-page__inner {
        width: min(100% - 14px, 1540px);
    }

    .seat-back {
        font-size: 12px;
    }

    .seat-head h1 {
        font-size: 38px;
    }

    .seat-row {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .seat-row__label {
        font-size: 10px;
    }

    .seat-place {
        width: 34px;
        height: 30px;
        border-radius: 3px;
        font-size: 10px;
    }

    .seat-place:nth-child(3),
    .seat-place:nth-child(7) {
        margin-left: 12px;
    }

    .seat-legend {
        justify-content: flex-start;
        gap: 14px;
    }

    .seat-summary__movie {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .seat-summary__info h2 {
        font-size: 23px;
    }

    .seat-summary__section--price strong {
        font-size: 24px;
    }

    .seat-summary__continue {
        min-height: 50px;
        padding: 0 18px;
    }
}

/* =========================
   ICON SIZE FIX
========================= */

.seat-meta__icon,
.seat-summary__icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    flex: 0 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(5, 5, 5, 0.52) !important;
    overflow: hidden !important;
}

.seat-meta__icon img,
.seat-meta__icon svg,
.seat-summary__icon img,
.seat-summary__icon svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    display: block !important;
    object-fit: contain !important;
    color: currentColor !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

.seat-meta__item {
    gap: 9px;
}

.seat-summary__detail {
    gap: 9px;
}