/* =========================
   HOME SCHEDULE
========================= */

.home-page .home-schedule {
    --schedule-row-height: clamp(88px, 6vw, 112px);

    width: 100%;
    padding: clamp(28px, 3.4vw, 56px) clamp(10px, 3vw, 52px) clamp(34px, 4vw, 68px);
    background: #f3f2ee;
    color: #050505;
    border-top: 1px solid rgba(0, 0, 0, 0.14);
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.home-page .home-schedule--loading {
    opacity: 0.58;
    pointer-events: none;
}

.home-page .home-schedule__inner {
    width: min(100%, 1740px);
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.home-page .home-schedule__head {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) auto minmax(150px, 0.45fr);
    grid-template-areas: "title dates link";
    align-items: center;
    column-gap: clamp(24px, 3.2vw, 64px);
    row-gap: 16px;
    margin-bottom: clamp(30px, 3.2vw, 58px);
}

.home-page .home-schedule__title {
    grid-area: title;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.1vw, 18px);
    min-width: 0;
}

.home-page .home-schedule__title .home-stripes {
    display: inline-block;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(18px, 1.5vw, 28px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.26em;
    transform: skewX(-16deg);
}

.home-page .home-schedule__title h2 {
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(28px, 2.6vw, 52px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.065em;
    text-transform: uppercase;
}

.home-page .home-schedule__dates {
    grid-area: dates;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(10px, 1vw, 22px);
}

.home-page .home-schedule__date {
    min-height: clamp(38px, 2.7vw, 54px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(14px, 1.25vw, 24px);
    color: #252525;
    font-size: clamp(11px, 0.82vw, 15px);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: -0.01em;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-page .home-schedule__date:hover {
    color: #ff3b30;
    transform: translateY(-1px);
}

.home-page .home-schedule__date--active {
    min-width: clamp(92px, 6.3vw, 122px);
    background: #050505;
    color: #ffffff;
}

.home-page .home-schedule__date--active:hover {
    color: #ffffff;
}

.home-page .home-schedule .home-section-head__link {
    grid-area: link;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 1vw, 18px);
    color: #050505;
    font-size: clamp(10px, 0.78vw, 14px);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-page .home-schedule .home-section-head__link span {
    font-size: clamp(15px, 1.2vw, 22px);
    line-height: 1;
}

.home-page .home-schedule .home-section-head__link:hover {
    color: #ff3b30;
    transform: translateX(2px);
}

/* =========================
   TABLE
========================= */

.home-page .home-schedule__table {
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.16);
    border-left: 1px solid rgba(0, 0, 0, 0.16);
    border-right: 1px solid rgba(0, 0, 0, 0.16);
}

.home-page .home-schedule-row {
    display: grid;
    grid-template-columns:
        clamp(72px, 5vw, 94px)
        minmax(360px, 1.45fr)
        minmax(82px, 0.26fr)
        minmax(340px, 1fr)
        minmax(128px, 0.36fr);
    align-items: stretch;
    height: var(--schedule-row-height);
    min-height: var(--schedule-row-height);
    background: rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
    transition: background 0.2s ease;
}

.home-page .home-schedule-row.is-selected {
    background: rgba(255, 59, 48, 0.055);
}

.home-page .home-schedule-row > * {
    min-width: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.home-page .home-schedule-row > *:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.12);
}

/* =========================
   POSTER
========================= */

.home-page .home-schedule-row__poster {
    justify-content: center;
    padding: 0;
    overflow: hidden;
    background: #111111;
}

.home-page .home-schedule-row__poster img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    filter: grayscale(1) contrast(1.12) brightness(0.9);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.home-page .home-schedule-row:hover .home-schedule-row__poster img {
    filter: grayscale(0.72) contrast(1.1) brightness(0.92);
}

.home-page .home-schedule-row.is-selected .home-schedule-row__poster img {
    filter: grayscale(0) saturate(1.12) contrast(1.08) brightness(1);
    transform: scale(1.02);
}

/* =========================
   MOVIE
========================= */

.home-page .home-schedule-row__movie {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(10px, 1vw, 16px) clamp(18px, 1.55vw, 30px);
}

.home-page .home-schedule-row__movie h3 {
    max-width: 100%;
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(16px, 1.22vw, 24px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-page .home-schedule-row__movie p {
    max-width: 100%;
    margin: clamp(6px, 0.45vw, 8px) 0 0;
    color: #303030;
    font-size: clamp(8px, 0.64vw, 11px);
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   FORMAT
========================= */

.home-page .home-schedule-row__format {
    justify-content: center;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(18px, 1.55vw, 30px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.055em;
    text-transform: uppercase;
    padding: 0 clamp(8px, 0.8vw, 14px);
}

/* =========================
   TIMES
========================= */

.home-page .home-schedule-row__times {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 3.2vw, 64px);
    padding: 0 clamp(20px, 2.2vw, 42px);
    flex-wrap: wrap;
}

.home-page .home-schedule-row__time {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(16px, 1.25vw, 25px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-page .home-schedule-row__time:hover {
    color: #ff3b30;
    transform: translateY(-1px);
}

.home-page .home-schedule-row__time--selected {
    color: #ff3b30 !important;
}

.home-page .home-schedule-row__time--selected:hover {
    color: #ff3b30 !important;
    transform: none;
}

/* =========================
   BUY
========================= */

.home-page .home-schedule-row__buy {
    padding: 0;
}

.home-page .home-schedule-row__buy-link {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 clamp(14px, 1.4vw, 24px);
    color: #050505;
    font-size: clamp(8px, 0.64vw, 11px);
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.home-page .home-schedule-row__buy-link span {
    font-size: clamp(14px, 1.2vw, 22px);
    line-height: 1;
}

.home-page .home-schedule-row__buy-link:not(.home-schedule-row__buy-link--disabled):hover {
    background: #050505;
    color: #ffffff;
}

.home-page .home-schedule-row__buy-link--disabled {
    opacity: 0.34;
    cursor: default;
}

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

.home-page .home-schedule .home-empty {
    padding: clamp(22px, 2.4vw, 34px);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.home-page .home-schedule .home-empty h3 {
    margin: 0 0 8px;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.home-page .home-schedule .home-empty p {
    margin: 0;
    color: #333333;
    font-size: clamp(12px, 1vw, 15px);
    line-height: 1.4;
}

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

@media (max-width: 1300px) {
    .home-page .home-schedule {
        --schedule-row-height: 102px;
    }

    .home-page .home-schedule__head {
        grid-template-columns: minmax(360px, 1fr) auto auto;
        column-gap: 28px;
    }

    .home-page .home-schedule__date {
        padding: 0 14px;
    }

    .home-page .home-schedule-row {
        grid-template-columns:
            78px
            minmax(280px, 1.3fr)
            78px
            minmax(300px, 1fr)
            116px;
    }

    .home-page .home-schedule-row__times {
        gap: 34px;
        padding: 0 24px;
    }
}

@media (max-width: 1050px) {
    .home-page .home-schedule__head {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "dates"
            "link";
        align-items: start;
        gap: 16px;
        margin-bottom: 28px;
    }

    .home-page .home-schedule__dates {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .home-page .home-schedule .home-section-head__link {
        justify-self: start;
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .home-page .home-schedule {
        padding: 26px 14px 40px;
    }

    .home-page .home-schedule__table {
        border-left: 0;
        border-right: 0;
    }

    .home-page .home-schedule-row {
        grid-template-columns: 58px minmax(0, 1fr) 58px;
        grid-template-areas:
            "poster movie format"
            "times times times"
            "buy buy buy";
        height: auto;
        min-height: auto;
    }

    .home-page .home-schedule-row > * {
        height: auto;
    }

    .home-page .home-schedule-row__poster {
        grid-area: poster;
        border-right: 1px solid rgba(0, 0, 0, 0.12);
    }

    .home-page .home-schedule-row__poster img {
        height: 88px;
        min-height: 88px;
    }

    .home-page .home-schedule-row__movie {
        grid-area: movie;
        min-height: 88px;
        border-right: 1px solid rgba(0, 0, 0, 0.12);
    }

    .home-page .home-schedule-row__format {
        grid-area: format;
        min-height: 88px;
        border-right: 0;
    }

    .home-page .home-schedule-row__times {
        grid-area: times;
        min-height: 54px;
        justify-content: flex-start;
        padding: 12px 10px;
        gap: 18px;
        border-top: 1px solid rgba(0, 0, 0, 0.12);
    }

    .home-page .home-schedule-row__buy {
        grid-area: buy;
        border-top: 1px solid rgba(0, 0, 0, 0.12);
    }

    .home-page .home-schedule-row__buy-link {
        min-height: 46px;
    }
}

@media (max-width: 560px) {
    .home-page .home-schedule {
        padding: 24px 10px 34px;
    }

    .home-page .home-schedule__title {
        gap: 8px;
    }

    .home-page .home-schedule__title .home-stripes {
        font-size: 15px;
    }

    .home-page .home-schedule__title h2 {
        font-size: clamp(21px, 7vw, 32px);
    }

    .home-page .home-schedule__dates {
        gap: 8px;
    }

    .home-page .home-schedule__date {
        min-height: 34px;
        padding: 0 11px;
        font-size: 9px;
    }

    .home-page .home-schedule__date--active {
        min-width: 76px;
    }

    .home-page .home-schedule-row {
        grid-template-columns: 50px minmax(0, 1fr) 48px;
    }

    .home-page .home-schedule-row__poster img {
        height: 82px;
        min-height: 82px;
    }

    .home-page .home-schedule-row__movie {
        min-height: 82px;
        padding: 10px 12px;
    }

    .home-page .home-schedule-row__movie h3 {
        font-size: 13px;
    }

    .home-page .home-schedule-row__movie p {
        font-size: 8px;
    }

    .home-page .home-schedule-row__format {
        min-height: 82px;
        font-size: 15px;
    }

    .home-page .home-schedule-row__times {
        gap: 14px;
        padding: 10px;
    }

    .home-page .home-schedule-row__time {
        font-size: 15px;
    }

    .home-page .home-schedule-row__buy-link {
        min-height: 44px;
        font-size: 9px;
    }
}

@media (max-width: 420px) {
    .home-page .home-schedule {
        padding-left: 8px;
        padding-right: 8px;
    }

    .home-page .home-schedule__title .home-stripes {
        display: none;
    }

    .home-page .home-schedule__title h2 {
        font-size: 22px;
    }

    .home-page .home-schedule__date {
        min-height: 31px;
        padding: 0 9px;
        font-size: 8px;
    }

    .home-page .home-schedule-row {
        grid-template-columns: 44px minmax(0, 1fr) 42px;
    }

    .home-page .home-schedule-row__poster img {
        height: 76px;
        min-height: 76px;
    }

    .home-page .home-schedule-row__movie {
        min-height: 76px;
        padding: 9px 10px;
    }

    .home-page .home-schedule-row__movie h3 {
        font-size: 11px;
    }

    .home-page .home-schedule-row__movie p {
        font-size: 7px;
    }

    .home-page .home-schedule-row__format {
        min-height: 76px;
        font-size: 13px;
    }

    .home-page .home-schedule-row__times {
        gap: 12px;
        padding: 10px 8px;
    }

    .home-page .home-schedule-row__time {
        font-size: 13px;
    }

    .home-page .home-schedule-row__buy-link {
        padding: 0 10px;
    }
}