.market-schedule-page {
    min-height: 70vh;
    padding: 22px 0 72px;
}

.schedule-page-hero {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    margin-bottom: 20px;
    padding: clamp(28px, 4vw, 52px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 88% 20%,
            rgba(132, 155, 255, 0.25),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            rgba(7, 19, 77, 0.98),
            rgba(27, 52, 126, 0.96)
        );
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.schedule-hero-content {
    max-width: 850px;
}

.schedule-page-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.schedule-page-hero h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -0.045em;
}

.schedule-page-hero p {
    max-width: 730px;
    margin: 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.92rem;
    line-height: 1.75;
}

.schedule-summary-card {
    display: flex;
    min-width: 170px;
    min-height: 145px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
    backdrop-filter: blur(10px);
}

.schedule-summary-card span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schedule-summary-card strong {
    margin: 5px 0;
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}

.schedule-summary-card small {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.68rem;
}

.schedule-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(7, 19, 77, 0.7);
}

.schedule-search-wrapper {
    position: relative;
    width: min(100%, 470px);
}

.schedule-search-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    display: inline-flex;
    width: 19px;
    height: 19px;
    color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%);
    pointer-events: none;
}

.schedule-search-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.schedule-search-input {
    width: 100%;
    height: 45px;
    padding: 0 16px 0 44px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    outline: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.82rem;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease;
}

.schedule-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.schedule-search-input:focus {
    border-color: rgba(149, 169, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(95, 124, 244, 0.15);
}

.schedule-result-counter {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.75rem;
}

.schedule-result-counter strong {
    color: #ffffff;
}

.schedule-table-section {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(13, 28, 90, 0.94),
            rgba(7, 19, 77, 0.97)
        );
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.2);
}

.schedule-table-scroll {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    min-width: 930px;
    margin: 0;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 15px 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    text-align: left;
    vertical-align: middle;
}

.schedule-table th {
    position: sticky;
    z-index: 3;
    top: 0;
    color: rgba(255, 255, 255, 0.58);
    background: #0a1750;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.schedule-table tbody tr {
    transition: background-color 140ms ease;
}

.schedule-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.045);
}

.schedule-table tbody tr:last-child td {
    border-bottom: 0;
}

.schedule-table td {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.79rem;
}

.schedule-number-column,
.schedule-row-number {
    width: 58px;
    text-align: center !important;
}

.schedule-row-number {
    color: rgba(255, 255, 255, 0.35) !important;
    font-weight: 800;
}

.schedule-market-name {
    color: #ffffff !important;
    font-weight: 850;
}

.schedule-time {
    color: #bdc9ff !important;
    font-weight: 800;
    white-space: nowrap;
}

.schedule-remark-badge {
    display: inline-flex;
    max-width: 220px;
    padding: 5px 8px;
    border: 1px solid rgba(150, 169, 255, 0.23);
    border-radius: 8px;
    color: #bdc8ff;
    background: rgba(99, 123, 231, 0.1);
    font-size: 0.59rem;
    font-weight: 850;
    line-height: 1.35;
}

.schedule-remark-empty {
    color: rgba(255, 255, 255, 0.26);
}

.schedule-result-link {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid rgba(151, 170, 255, 0.32);
    border-radius: 9px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            rgba(54, 87, 216, 0.7),
            rgba(104, 132, 245, 0.7)
        );
    font-size: 0.67rem;
    font-weight: 800;
    white-space: nowrap;
    transition:
        transform 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.schedule-result-link:hover,
.schedule-result-link:focus {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 20px rgba(42, 69, 180, 0.28);
    transform: translateY(-1px);
}

.schedule-result-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.schedule-result-unavailable {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.37);
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.62rem;
    font-weight: 750;
}

.schedule-mobile-list {
    display: grid;
    gap: 11px;
}

.schedule-mobile-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            rgba(13, 28, 90, 0.95),
            rgba(7, 19, 77, 0.98)
        );
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17);
}

.schedule-mobile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.schedule-mobile-card-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 850;
}

.schedule-mobile-index {
    display: inline-flex;
    min-width: 30px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.62rem;
    font-weight: 850;
}

.schedule-mobile-card-body {
    padding: 14px 16px 16px;
}

.schedule-mobile-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 12px;
}

.schedule-mobile-time-item {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.045);
}

.schedule-mobile-time-item span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.39);
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.schedule-mobile-time-item strong {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 850;
}

.schedule-mobile-remark {
    margin-bottom: 12px;
}

.schedule-mobile-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.schedule-empty-state,
.schedule-loading-state {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.schedule-empty-state {
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(7, 19, 77, 0.6);
}

.schedule-empty-state strong {
    color: #ffffff;
    font-size: 0.9rem;
}

.schedule-empty-state span {
    font-size: 0.76rem;
}

.schedule-information-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    color: rgba(255, 255, 255, 0.48);
    background: rgba(7, 19, 77, 0.52);
}

.schedule-note-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
    color: #aebcff;
}

.schedule-note-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.schedule-information-note p {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.65;
}

@media (max-width: 767.98px) {
    .market-schedule-page {
        padding-top: 10px;
    }

    .schedule-page-hero {
        display: block;
        padding: 27px 22px;
        border-radius: 18px;
    }

    .schedule-page-hero h1 {
        font-size: 2rem;
    }

    .schedule-page-hero p {
        font-size: 0.82rem;
    }

    .schedule-summary-card {
        min-width: 0;
        min-height: 0;
        align-items: flex-start;
        margin-top: 22px;
        padding: 14px 16px;
        flex-direction: row;
        gap: 9px;
        text-align: left;
    }

    .schedule-summary-card span,
    .schedule-summary-card small {
        align-self: center;
    }

    .schedule-summary-card strong {
        margin: 0;
        font-size: 1.5rem;
    }

    .schedule-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .schedule-search-wrapper {
        width: 100%;
    }

    .schedule-result-counter {
        padding: 0 2px;
    }
}

@media (max-width: 575.98px) {
    .schedule-mobile-time-grid {
        gap: 7px;
    }
}