:root {
    --schedule-bg: radial-gradient(circle at 20% 20%, rgba(0, 122, 255, 0.2), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(77, 214, 255, 0.18), transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(86, 135, 255, 0.18), transparent 60%),
        #0b0b11;
    --schedule-card: rgba(14, 18, 30, 0.75);
    --schedule-card-border: rgba(90, 120, 200, 0.18);
    --schedule-accent: #69d1ff;
    --schedule-accent-strong: #4dd0ff;
    --schedule-text: #e9eef7;
    --schedule-muted: #9aa8bd;
    --schedule-line: rgba(105, 209, 255, 0.3);
    --schedule-glow: 0 0 24px rgba(105, 209, 255, 0.35);
    --schedule-radius-lg: 18px;
    --schedule-radius-md: 14px;
    --schedule-radius-sm: 10px;
    --schedule-hero-bg: none;
}

.animiku-schedule {
    position: relative;
    padding: 110px 24px 60px;
    background: var(--schedule-bg);
    color: var(--schedule-text);
    min-height: 100vh;
    overflow: hidden;
}

.animiku-schedule::before {
    content: "";
    position: absolute;
    inset: -10%;
    background-image: var(--schedule-hero-bg);
    background-size: cover;
    background-position: center;
    filter: blur(34px) brightness(0.4) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.6;
    z-index: 0;
}

.animiku-schedule::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 8, 14, 0.65);
    z-index: 0;
}

.animiku-schedule-inner {
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.schedule-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

.schedule-header-mobile {
    display: none;
    align-items: center;
    gap: 12px;
}

.schedule-back {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(16, 22, 35, 0.7);
    border: 1px solid rgba(105, 209, 255, 0.25);
    color: var(--schedule-text);
}

.schedule-logo {
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 16px;
}

.schedule-timebox {
    text-align: right;
    font-size: 14px;
    color: var(--schedule-muted);
}

.schedule-clock {
    font-size: 32px;
    font-weight: 600;
    color: var(--schedule-text);
    letter-spacing: 0.04em;
}

.schedule-clock-part {
    display: inline-block;
    min-width: 28px;
    text-align: center;
}

.schedule-clock-sep {
    display: inline-block;
    margin: 0 2px;
    animation: schedule-blink 1s steps(1, end) infinite;
}

.schedule-date {
    margin-top: 4px;
}

.schedule-error {
    margin: 16px 0 24px;
    padding: 16px 20px;
    border-radius: var(--schedule-radius-md);
    background: rgba(16, 22, 35, 0.7);
    border: 1px solid rgba(255, 86, 86, 0.4);
    color: #ffb4b4;
}

.schedule-admin-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    flex-wrap: wrap;
}

.schedule-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(16, 22, 35, 0.8);
    border: 1px solid rgba(105, 209, 255, 0.25);
    color: var(--schedule-text);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.schedule-admin-note {
    color: var(--schedule-accent);
    font-size: 12px;
}


.schedule-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--schedule-radius-lg);
    background: rgba(10, 14, 25, 0.9);
    border: 1px solid rgba(105, 209, 255, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    padding: 28px 32px;
    margin-bottom: 20px;
}

.schedule-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.4;
    filter: saturate(1.1);
}

.schedule-hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.schedule-hero-label {
    font-size: 13px;
    letter-spacing: 0.22em;
    color: var(--schedule-muted);
    margin-bottom: 8px;
}

.schedule-hero-accent {
    color: var(--schedule-accent);
}

.schedule-hero-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
}

.schedule-hero-episode {
    color: var(--schedule-muted);
    margin-bottom: 14px;
}

.schedule-hero-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(12, 18, 30, 0.9);
    border: 1px solid rgba(105, 209, 255, 0.35);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--schedule-text);
}

.schedule-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--schedule-accent);
    box-shadow: var(--schedule-glow);
}

.schedule-tabs {
    display: flex;
    gap: 8px;
    background: rgba(14, 18, 30, 0.8);
    border: 1px solid rgba(105, 209, 255, 0.12);
    border-radius: 999px;
    padding: 8px;
    justify-content: center;
    margin-bottom: 18px;
}

.schedule-tab {
    border: none;
    background: transparent;
    color: var(--schedule-muted);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.schedule-tab.is-active {
    color: var(--schedule-text);
    background: rgba(105, 209, 255, 0.15);
    border: 1px solid rgba(105, 209, 255, 0.3);
    box-shadow: var(--schedule-glow);
}

.schedule-tab.is-today {
    border: 1px solid rgba(105, 209, 255, 0.35);
    color: var(--schedule-text);
}

.schedule-tab.is-active.is-today {
    border-color: rgba(105, 209, 255, 0.6);
}

.schedule-day-title {
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--schedule-muted);
    margin: 14px 0 18px;
}

.schedule-day-title-mobile {
    display: none;
    letter-spacing: 0.04em;
}

.schedule-day-title-desktop {
    text-transform: uppercase;
}

.schedule-list {
    margin-top: 18px;
    padding: 16px 20px 10px;
    border-radius: var(--schedule-radius-lg);
    background: rgba(10, 14, 25, 0.7);
    border: 1px solid rgba(105, 209, 255, 0.18);
    backdrop-filter: blur(18px);
}

.schedule-days {
    position: relative;
}

.schedule-day {
    position: relative;
    display: none;
    padding-left: 60px;
}

.schedule-day.is-active {
    display: block;
}

.schedule-day-line {
    position: absolute;
    top: 10px;
    left: 128px;
    width: 3px;
    height: calc(100% - 20px);
    background: linear-gradient(
        to bottom,
        rgba(105, 209, 255, 0),
        rgba(105, 209, 255, 0.55) 12%,
        rgba(105, 209, 255, 0.55) 88%,
        rgba(105, 209, 255, 0)
    );
    box-shadow: 0 0 16px rgba(105, 209, 255, 0.45);
}

.schedule-row {
    position: relative;
    display: grid;
    grid-template-columns: 50px 14px 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.schedule-time {
    text-align: right;
    font-size: 20px;
    font-weight: 600;
    color: var(--schedule-muted);
}

.schedule-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--schedule-accent);
    box-shadow: 0 0 14px rgba(105, 209, 255, 0.75), 0 0 28px rgba(105, 209, 255, 0.35);
    justify-self: center;
}

.schedule-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: stretch;
    gap: 14px;
    padding: 0;
    min-height: 104px;
    border-radius: var(--schedule-radius-md);
    background: var(--schedule-card);
    border: 1px solid var(--schedule-card-border);
    color: var(--schedule-text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(12px);
    position: relative;
}

.schedule-row.is-active .schedule-card {
    border-color: rgba(105, 209, 255, 0.5);
    box-shadow: var(--schedule-glow);
}

.schedule-card:hover {
    transform: translateY(-1px);
    border-color: rgba(105, 209, 255, 0.4);
}

.schedule-card-poster {
    width: 56px;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0px 0px 10px;
}

.schedule-card-poster-empty {
    background: rgba(255, 255, 255, 0.1);
}

.schedule-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 16px 18px 16px 0;
}

.schedule-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--schedule-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-card-ep {
    font-size: 14px;
    color: var(--schedule-muted);
}

.schedule-card-watched {
    font-size: 13px;
    color: rgba(105, 209, 255, 0.85);
}

.schedule-card-time {
    font-size: 22px;
    font-weight: 600;
    color: var(--schedule-text);
    position: absolute;
    top: 12px;
    right: 18px;
}

.schedule-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-top: 6px;
    width: fit-content;
}

.schedule-badge-new {
    background: rgba(77, 214, 255, 0.2);
    border: 1px solid rgba(77, 214, 255, 0.45);
    color: var(--schedule-accent);
}

.schedule-badge-final {
    background: rgba(255, 122, 122, 0.15);
    border: 1px solid rgba(255, 122, 122, 0.4);
    color: #ff8d8d;
}

.schedule-empty {
    padding: 18px 20px;
    border-radius: var(--schedule-radius-md);
    background: rgba(16, 22, 35, 0.7);
    border: 1px dashed rgba(105, 209, 255, 0.2);
    color: var(--schedule-muted);
}

@media (max-width: 960px) {
    .animiku-schedule {
        padding: 80px 16px 50px;
    }

    .schedule-header {
        justify-content: space-between;
    }

    .schedule-header-mobile {
        display: flex;
    }

    .schedule-timebox {
        text-align: right;
        display: none;
    }

    .schedule-hero {
        padding: 18px 20px;
    }

    .schedule-hero-title {
        font-size: 22px;
    }

    .schedule-tabs {
        justify-content: space-between;
        gap: 4px;
        padding: 6px;
    }

    .schedule-day-title-desktop {
        display: none;
    }

    .schedule-day-title-mobile {
        display: inline;
        font-size: 16px;
        color: var(--schedule-text);
    }

    .schedule-day {
        padding-left: 40px;
    }

    .schedule-day-line {
        left: 56px;
    }

    .schedule-row {
        grid-template-columns: 44px 12px 1fr;
    }

    .schedule-card {
        grid-template-columns: 48px 1fr;
        padding: 0;
        min-height: 90px;
    }

    .schedule-card-poster {
        width: 48px;
        height: 100%;
    }
}

@media (max-width: 520px) {
    .schedule-tabs {
        gap: 2px;
    }

    .schedule-clock {
        font-size: 18px;
    }

    .schedule-card-title {
        font-size: 14px;
    }

    .schedule-card-time {
        font-size: 14px;
        right: 12px;
    }
}

@keyframes schedule-blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 420px) {
    .schedule-tab {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 0;
    }
}
