/**
 * 上映スケジュール一覧ページ（[movie_schedule]ショートコード）用スタイル
 */

.movie-schedule-wrapper {
    width: 100%;
}

.movie-schedule-wrapper .week-navigation {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 10px;
    width: 100%;
}

.movie-schedule-wrapper .week-nav-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #e0e0e0;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    flex-shrink: 0;
}

.movie-schedule-wrapper .week-nav-btn:hover:not(:disabled) {
    background: #ccc;
}

.movie-schedule-wrapper .week-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.movie-schedule-wrapper .date-tabs-container {
    flex: 1;
    overflow-x: auto;
    min-width: 0;
}

.movie-schedule-wrapper .date-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
}

.movie-schedule-wrapper .date-tabs a.date-tab {
    display: flex;
    padding: 10px 15px;
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    text-align: center;
    flex: 1;
}

.movie-schedule-wrapper .date-tabs a.date-tab .date-num {
    font-size: 16px;
    display: block;
}

.movie-schedule-wrapper .date-tabs a.date-tab .date-weekday {
    font-size: 12px;
    display: block;
}

.movie-schedule-wrapper .date-tabs a.date-tab .special-day {
    font-size: 10px;
    display: block;
    color: #c41e3a;
    white-space: nowrap;
}

.movie-schedule-wrapper .date-tabs a.date-tab.active .special-day {
    color: #ffcc00;
}

.movie-schedule-wrapper .date-tabs a.date-tab:hover {
    background: #ccc;
}

.movie-schedule-wrapper .date-tabs a.date-tab.active {
    background: #f0831e;
    color: #fff;
}

.movie-schedule-wrapper .schedule-date-title {
    background: #f0831e;
    color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-top: none !important;
}

.movie-schedule-wrapper .movie-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 15px;
    background: #fff;
}

.movie-schedule-wrapper .movie-thumbnail {
    flex-shrink: 0;
    width: 100px;
}

.movie-schedule-wrapper .movie-thumbnail img {
    width: 100px;
    height: auto;
    border-radius: 5px;
}

.movie-schedule-wrapper .movie-thumbnail .no-image {
    width: 100px;
    height: 150px;
    background: #f0f0f0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

.movie-schedule-wrapper .movie-item-content {
    flex: 1;
}

.movie-schedule-wrapper .movie-title {
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    border-top: none !important;
}

.movie-schedule-wrapper .movie-title a {
    color: #333;
    text-decoration: none;
}

.movie-schedule-wrapper .movie-title a:hover {
    color: #f0831e;
    text-decoration: underline;
}

.movie-schedule-wrapper .badge-new {
    background: #ff6600;
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
    margin-right: 5px;
}

.movie-schedule-wrapper .badge-rating {
    background: #0066cc;
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
    margin-right: 10px;
}

.movie-schedule-wrapper .screening-times {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.movie-schedule-wrapper .screening-item {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.movie-schedule-wrapper .screening-item .time {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 15px;
}

.movie-schedule-wrapper .screening-item .time .start-time {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.movie-schedule-wrapper .screening-item .time .end-time {
    font-size: 11px;
    font-weight: normal;
    color: #888;
}

.movie-schedule-wrapper .screening-item .screen {
    background: #f5f5f5;
    border-left: 1px solid #ccc;
    padding: 10px 12px;
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    align-self: stretch;
}

.movie-schedule-wrapper .no-schedule {
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    color: #666;
}

@media (max-width: 768px) {
    .movie-schedule-wrapper .date-tabs a.date-tab {
        min-width: 50px;
        padding: 8px 10px;
    }
    .movie-schedule-wrapper .date-tabs a.date-tab .date-num {
        font-size: 14px;
    }
    .movie-schedule-wrapper .date-tabs a.date-tab .date-weekday {
        font-size: 10px;
    }
    .movie-schedule-wrapper .date-tabs a.date-tab .special-day {
        font-size: 8px;
    }
    .movie-schedule-wrapper .week-nav-btn {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }
}
