.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.schedule-page {
    padding-bottom: 3rem;
}

/* —— Hero —— */
.schedule-hero {
    position: relative;
    isolation: isolate;
    padding: 2.8rem 0 3.2rem;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(180deg, #f4f0ea 0%, #faf8f5 100%);
}

.schedule-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.12;
    background: url("../../images/portal/hero-national-theater.webp") center 40% / cover no-repeat;
    filter: grayscale(0.15);
}

.schedule-hero__icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    border-radius: 14px;
    background: rgba(122, 24, 36, 0.08);
    color: var(--maroon);
}

.schedule-hero h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    color: var(--ink);
}

.schedule-hero p {
    margin: 0.65rem auto 0;
    max-width: 42ch;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

/* —— Toolbar —— */
.schedule-toolbar-wrap {
    margin-top: -1.35rem;
    position: relative;
    z-index: 3;
}

.schedule-toolbar {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 0.9fr) 0.95fr;
    gap: 0.6rem;
    align-items: center;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.schedule-toolbar__search,
.schedule-toolbar__select,
.schedule-toolbar__date {
    position: relative;
    display: block;
}

.schedule-toolbar__search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    height: 48px;
    padding: 0 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fbfaf8;
    color: var(--muted);
}

.schedule-toolbar__search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 600;
}

.schedule-toolbar__icon {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    display: grid;
    place-items: center;
    z-index: 1;
}

.schedule-toolbar__select select,
.schedule-toolbar__date input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fbfaf8;
    color: var(--ink);
    font-weight: 700;
    padding: 0 2.4rem 0 0.9rem;
    outline: none;
}

.schedule-toolbar__select select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        14px calc(50% - 2px),
        20px calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-left: 2rem;
}

.schedule-toolbar__date input {
    color-scheme: light;
}

.schedule-toolbar__select select:focus,
.schedule-toolbar__date input:focus,
.schedule-toolbar__search:focus-within {
    border-color: rgba(122, 24, 36, 0.35);
    box-shadow: 0 0 0 4px rgba(122, 24, 36, 0.08);
    background-color: #fff;
}

/* —— Controls —— */
.schedule-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.4rem;
}

.schedule-views {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: 12px;
    background: rgba(232, 224, 212, 0.55);
    border: 1px solid rgba(197, 160, 109, 0.18);
}

.schedule-views__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.88rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.schedule-views__btn:hover {
    color: var(--maroon);
}

.schedule-views__btn.is-active {
    background: #fff;
    color: var(--maroon);
    box-shadow: 0 4px 12px rgba(40, 18, 22, 0.08);
}

.schedule-week {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
}

.schedule-week__nav {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 10px;
    color: var(--maroon);
    transition: background 0.2s ease;
}

.schedule-week__nav:hover {
    background: rgba(122, 24, 36, 0.08);
}

.schedule-week__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 13rem;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    color: var(--ink);
    font-weight: 800;
    font-size: 0.92rem;
}

.schedule-week__label svg {
    color: var(--maroon-soft);
}

/* —— Results / Table —— */
.schedule-results {
    padding: 1.25rem 0 1rem;
}

.schedule-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.schedule-table thead th {
    padding: 0.95rem 0.85rem;
    background: #efe6d8;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 800;
    text-align: start;
    white-space: nowrap;
    border-bottom: 1px solid rgba(122, 24, 36, 0.08);
}

.schedule-table tbody td {
    padding: 0.85rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.9rem;
}

.schedule-table tbody tr:last-child td {
    border-bottom: 0;
}

.schedule-table tbody tr:hover td {
    background: rgba(247, 241, 232, 0.45);
}

.schedule-show {
    display: block;
    width: 168px;
}

.schedule-show__thumb {
    position: relative;
    display: block;
    width: 168px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1214;
}

.schedule-show__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.schedule-row:hover .schedule-show__thumb img {
    transform: scale(1.05);
}

.schedule-show__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(12, 6, 8, 0.78) 100%);
}

.schedule-show__title {
    position: absolute;
    right: 0.65rem;
    left: 0.65rem;
    bottom: 0.55rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.schedule-theater {
    display: grid;
    gap: 0.15rem;
}

.schedule-theater strong {
    font-weight: 800;
}

.schedule-theater small {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.schedule-date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.schedule-date svg {
    color: var(--maroon-soft);
}

.schedule-time {
    white-space: nowrap;
    color: var(--ink-soft, #4a3f3a);
}

.schedule-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.schedule-cat {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.schedule-cat--muted {
    background: rgba(114, 103, 95, 0.12);
    color: #5f554f;
}

.schedule-cat--gold {
    background: rgba(197, 160, 109, 0.22);
    color: var(--gold-deep);
}

.schedule-price {
    white-space: nowrap;
    color: var(--maroon);
    font-weight: 800;
}

.schedule-book {
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 10px;
    box-shadow: none;
    white-space: nowrap;
    gap: 0.3rem;
}

.schedule-book--ghost {
    border: 1px solid rgba(122, 24, 36, 0.28);
    background: #fff;
    color: var(--maroon);
    font-weight: 800;
}

.schedule-book--ghost:hover {
    background: rgba(122, 24, 36, 0.05);
}

/* —— Cards view —— */
.schedule-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.schedule-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.schedule-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #1a1214;
    overflow: hidden;
}

.schedule-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.schedule-card:hover .schedule-card__media img {
    transform: scale(1.05);
}

.schedule-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(12, 6, 8, 0.8) 100%);
}

.schedule-card__type {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(247, 241, 232, 0.92);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 800;
}

.schedule-card__media h2 {
    position: absolute;
    right: 0.9rem;
    left: 0.9rem;
    bottom: 0.8rem;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.schedule-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.95rem 1rem 1.05rem;
    flex: 1;
}

.schedule-card__meta {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
}

.schedule-card__meta svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--maroon-soft);
}

.schedule-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.55rem;
}

.schedule-card__footer strong {
    color: var(--maroon);
    font-size: 0.95rem;
}

/* —— Empty / More —— */
.schedule-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.schedule-empty h2 {
    margin: 0 0 0.45rem;
    font-size: 1.3rem;
}

.schedule-empty p {
    margin: 0 0 1.2rem;
    color: var(--muted);
}

.schedule-more {
    display: flex;
    justify-content: center;
    margin-top: 1.6rem;
}

.schedule-more__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(122, 24, 36, 0.22);
    background: #fff;
    color: var(--maroon);
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s ease, transform 0.2s ease;
}

.schedule-more__btn:hover {
    background: rgba(122, 24, 36, 0.05);
    transform: translateY(-1px);
}

.schedule-more__btn--ghost {
    box-shadow: none;
}

@media (max-width: 1180px) {
    .schedule-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .schedule-toolbar__search,
    .schedule-toolbar__sort {
        grid-column: 1 / -1;
    }

    .schedule-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .schedule-toolbar {
        grid-template-columns: 1fr;
    }

    .schedule-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-views,
    .schedule-week {
        width: 100%;
        justify-content: center;
    }

    .schedule-views__btn {
        flex: 1;
        justify-content: center;
    }

    .schedule-cards {
        grid-template-columns: 1fr;
    }

    .schedule-week__label {
        min-width: 0;
        flex: 1;
    }
}
