/* ===== 회차 페이지 스타일 ===== */

/* 첫 섹션: 만화 정보 */
.episode-info-section {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.episode-info-inner {
    max-width: 600px;
    margin: 0 auto;
}

/* 만화 이미지 */
.episode-thumbnail {
    width: 100%;
    margin: 0 auto 0rem;
    border: 0px solid #FFD700;
    border-radius: 0.5rem;
    overflow: hidden;
    /*aspect-ratio: 3/4;*/
}

.episode-thumbnail img {
    /*width: 100%;
    height: 100%;
    object-fit: cover;*/

	max-height: 300px;

    border: 2px solid #FFD700;
    border-radius: 0.5rem;
}

/* 만화 제목 */
.episode-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.75rem;
}

/* 만화 장르 */
.episode-genre {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.episode-genre span {
    display: inline-block;
    margin: 0 4px;
}

/* 만화 줄거리 */
.episode-synopsis {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

/* 버튼 */
.episode-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-first-episode,
.btn-bookmark {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-first-episode {
    background: #1A1A1A;
    color: #fff;
    border: 2px solid #1A1A1A;
}

.btn-first-episode:hover {
    background: #333;
    border-color: #333;
}

.btn-bookmark {
    background: #fff;
    color: #1A1A1A;
    border: 2px solid #1A1A1A;
}

.btn-bookmark:hover {
    background: #f5f5f5;
}

/* ===== 두번째 섹션: 회차 리스트 ===== */
.episode-list-section {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.episode-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1A1A1A;
}

.episode-total {
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A1A;
}

/* 회차 리스트 */
.episode-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.episode-item {
    border-bottom: 1px solid #eee;
}

.episode-item:last-child {
    border-bottom: none;
}

.episode-item a {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
}

.episode-item a:hover {
    background: #f9f9f9;
}
.episode-number0 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ff8d00;
	width:40px;
}
.episode-number {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}


.episode-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
	margin-left:auto;
}

.episode-today-badge {
    display: inline-block;
    background: #DC143C;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 10px;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .episode-info-section {
        padding: 1.5rem 1rem;
    }

    .episode-thumbnail {
        /*width: 160px;*/
    }

    .episode-title {
        font-size: 1.3rem;
    }

    .episode-genre {
        font-size: 0.85rem;
    }

    .episode-synopsis {
        font-size: 0.8rem;
        padding: 0;
    }

    .btn-first-episode,
    .btn-bookmark {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .episode-list-section {
        padding: 1rem;
    }

    .episode-item a {
        padding: 10px 6px;
    }
    .episode-number0 {
        font-size: 0.85rem;
    }
    .episode-number {
        font-size: 0.85rem;
    }
	.episode-date {
		font-size: 0.85rem;
	}
}

@media (max-width: 480px) {
    .episode-thumbnail {
        /*width: 140px;*/
    }

    .episode-title {
        font-size: 1.1rem;
    }

    .episode-buttons {
        gap: 8px;
    }

    .btn-first-episode,
    .btn-bookmark {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}
