/**
 * 作品詳細ページ（single-movie.php）用スタイル
 */

/* ページヘッダー内のバッジ */
.page-header .movie-badges {
    margin-top: 15px;
    margin-bottom: 0;
    text-align: center;
}

.movie-badges {
    margin-bottom: 20px;
}

.badge-new {
    background: #ff6600;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 3px;
    margin-right: 5px;
}

.badge-rating {
    background: #0066cc;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 3px;
    margin-right: 10px;
}

.badge-end-date {
    background: #dc3545;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 3px;
}

.movie-image {
    margin-bottom: 30px;
    text-align: center;
}

.movie-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.movie-description,
.movie-staff,
.movie-cast,
.movie-distributor,
.movie-official,
.movie-notes,
.movie-schedule {
    margin-bottom: 30px;
}

.movie-description h2,
.movie-staff h2,
.movie-cast h2,
.movie-distributor h2,
.movie-official h2,
.movie-notes h2,
.movie-schedule h2 {
    font-size: 18px;
    border-bottom: 2px solid #f0831e;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-top: none !important;
}

.movie-official a {
    color: #003366;
    word-break: break-all;
}

.badge-ended {
    display: inline-block;
    background: #6c757d;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}



/* 関連リンク */
.movie-related-links {
    margin-bottom: 30px;
}

.movie-related-links h2 {
    font-size: 18px;
    border-bottom: 2px solid #f0831e;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-top: none !important;
}

.movie-related-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.movie-related-links ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.movie-related-links ul li:last-child {
    border-bottom: none;
}

.movie-related-links ul li a {
    color: #003366;
    text-decoration: none;
    word-break: break-all;
}

.movie-related-links ul li a:hover {
    color: #f0831e;
    text-decoration: underline;
}

/* 上映スケジュール */
.movie-schedule {
    background: #fff;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.movie-schedule > h2 {
    background: #f0831e;
    color: #fff;
    padding: 15px 20px;
    margin: 0;
    border-bottom: none;
    border-top: none !important;
    font-size: 16px;
}

/* 週ナビゲーション */
.movie-schedule .week-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
}

.movie-schedule .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 .week-nav-btn:hover:not(:disabled) {
    background: #ccc;
}

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

/* 日付タブコンテナ */
.movie-schedule .date-tabs-container {
    flex: 1;
    overflow-x: auto;
    min-width: 0;
}

/* 日付タブ */
.movie-schedule .date-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
}

.movie-schedule .date-tabs a.date-tab {
    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 .date-tabs a.date-tab .date-num {
    font-size: 14px;
    display: block;
}

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

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

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

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

.schedule-day {
    padding: 15px 20px;
}

.schedule-day h3 {
    font-size: 14px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

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

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

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

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

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

.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;
    align-self: stretch;
}

.no-schedule {
    padding: 20px;
    margin: 0;
    text-align: center;
    color: #666;
}

/* 戻るリンク */
.back-link {
    margin-top: 30px;
}

.back-link a {
    color: #003366;
}
