.live-schedule-section,
.live-subject-section {
    background: linear-gradient(160deg, #04122f 0%, #071b47 55%, #04122f 100%);
}

.live-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}

.live-schedule-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.live-schedule-updated {
    color: #b8cffb;
    font-size: 0.9rem;
}

.live-refresh-btn {
    border: 1px solid rgba(61, 148, 255, 0.55);
    background: rgba(17, 31, 68, 0.88);
    color: #d9e8ff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.live-refresh-btn:hover:not(:disabled) {
    background: rgba(44, 94, 194, 0.92);
    border-color: rgba(92, 178, 255, 0.92);
    color: #fff;
}

.live-refresh-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.live-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(170px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.live-day-card {
    background: linear-gradient(180deg, rgba(12, 31, 79, 0.95), rgba(7, 19, 48, 0.95));
    border: 1px solid rgba(90, 146, 238, 0.32);
    border-radius: 16px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 30px rgba(2, 8, 23, 0.28);
}

.live-day-card.is-today {
    border-color: rgba(65, 178, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(65, 178, 255, 0.3), 0 18px 34px rgba(35, 129, 255, 0.32);
}

.live-day-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(139, 177, 237, 0.2);
}

.live-day-head-main h3 {
    margin: 0;
    color: #f8fbff;
    font-size: 1.05rem;
}

.live-day-head-main small {
    color: #99b8f7;
}

.live-day-count {
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(31, 76, 168, 0.45);
    border: 1px solid rgba(103, 159, 255, 0.45);
    color: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
}

.live-day-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px 12px;
}

.live-day-session {
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(85, 136, 228, 0.35);
    background: rgba(9, 25, 65, 0.82);
    padding: 8px 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.live-day-session:hover {
    transform: translateY(-1px);
    border-color: rgba(133, 188, 255, 0.7);
    background: rgba(19, 43, 98, 0.96);
}

.live-day-session-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.live-day-session-time {
    color: #d6e8ff;
    font-weight: 700;
    font-size: 0.9rem;
}

.live-day-session-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.live-day-session.is-live .live-day-session-status {
    background: rgba(233, 68, 68, 0.22);
    border-color: rgba(255, 87, 87, 0.65);
    color: #ffbcbc;
}

.live-day-session.is-scheduled .live-day-session-status {
    background: rgba(35, 120, 255, 0.2);
    border-color: rgba(116, 177, 255, 0.55);
    color: #cfe7ff;
}

.live-day-session-title {
    display: block;
    color: #f6f9ff;
    font-size: 0.93rem;
    line-height: 1.5;
    margin-bottom: 2px;
}

.live-day-session-meta {
    color: #a8c2f5;
    font-size: 0.79rem;
}

.live-day-empty {
    border: 1px dashed rgba(109, 149, 226, 0.38);
    border-radius: 12px;
    color: #9db9eb;
    text-align: center;
    padding: 16px 8px;
    margin-top: 4px;
}

.live-subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.live-subject-card {
    background: linear-gradient(180deg, rgba(16, 36, 89, 0.92), rgba(8, 22, 58, 0.92));
    border: 1px solid rgba(100, 152, 243, 0.36);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 15px 28px rgba(2, 8, 23, 0.26);
}

.live-subject-card.is-live-now {
    border-color: rgba(255, 95, 95, 0.68);
    box-shadow: 0 0 0 1px rgba(255, 95, 95, 0.3), 0 16px 34px rgba(210, 64, 64, 0.24);
}

.live-subject-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-subject-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(126, 183, 255, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(11, 31, 77, 0.9);
}

.live-subject-head-text {
    min-width: 0;
}

.live-subject-head-text h3 {
    margin: 0 0 2px;
    color: #f6f9ff;
    font-size: 1.05rem;
}

.live-subject-head-text p {
    margin: 0;
    color: #a9c1ef;
    font-size: 0.86rem;
}

.live-subject-badge {
    margin-inline-start: auto;
    background: rgba(228, 61, 61, 0.24);
    border: 1px solid rgba(255, 112, 112, 0.7);
    color: #ffd0d0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.live-subject-days {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.live-day-chip {
    border: 1px solid rgba(100, 162, 255, 0.46);
    background: rgba(13, 35, 83, 0.88);
    color: #cfe3ff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.76rem;
    font-weight: 700;
}

.live-subject-meta {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #cae0ff;
    font-size: 0.84rem;
}

.live-subject-next {
    margin-top: 10px;
    color: #a9c6fb;
    font-size: 0.84rem;
}

.live-subject-action {
    margin-top: 14px;
    width: 100%;
    text-align: center;
    display: inline-block;
    border-radius: 12px;
    border: 1px solid rgba(70, 170, 255, 0.52);
    color: #f8fbff;
    text-decoration: none;
    font-weight: 800;
    padding: 10px 12px;
    background: linear-gradient(120deg, rgba(40, 99, 232, 0.85), rgba(25, 187, 210, 0.9));
    transition: all 0.2s ease;
}

.live-subject-action:hover {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.live-schedule-empty {
    margin-top: 4px;
}

@media (max-width: 992px) {
    .live-schedule-header {
        align-items: stretch;
        flex-direction: column;
    }

    .live-schedule-tools {
        justify-content: space-between;
    }
}
