/* Anime Detail Page Styles */
.anime-detail-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.anime-poster-section {
    flex: 0 0 250px;
}

.anime-poster-section img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.anime-details-section {
    flex: 1;
}

.anime-episodes-section {
    flex: 0 0 300px;
}

.anime-detail-item {
    margin-bottom: 10px;
    color: var(--text-color);
}

.anime-detail-item strong {
    display: inline-block;
    min-width: 150px;
    color: var(--text-color);
}

.anime-detail-item a {
    color: var(--text-color);
    text-decoration: none;
    margin-right: 5px;
}

.anime-detail-item a:hover {
    color: var(--color-hover-tone);
}

/* Genre Tags - Footer style */
.anime-genre-tag {
    font-size: 11px;
    background-color: var(--color-bg);
    padding: 5px 10px;
    color: var(--text-color);
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-block;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.anime-genre-tag:hover {
    background-color: var(--color-hover-tone);
    color: var(--text-color);
}

.anime-genre-tag i {
    margin-right: 4px;
}

.anime-actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.anime-actions button {
    border: 0;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.anime-actions button:hover {
    opacity: 0.8;
}

.anime-synopsis {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-tone);
}

.anime-synopsis h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.anime-synopsis p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Episode List */
.episode-list-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for Episode List */
.episode-list-container::-webkit-scrollbar {
    width: 8px;
}

.episode-list-container::-webkit-scrollbar-track {
    background: var(--color-bg-dark-hard);
    border-radius: 4px;
}

.episode-list-container::-webkit-scrollbar-thumb {
    background: var(--color-border-tone);
    border-radius: 4px;
    transition: background 0.2s;
}

.episode-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-hover-tone);
}

/* Firefox scrollbar */
.episode-list-container {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-tone) var(--color-bg-dark-hard);
}

.episode-list-item {
    padding: 10px;
    border-bottom: 1px solid var(--color-border-tone);
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.episode-list-item:hover {
    background: var(--color-hover-tone);
}

.episode-list-item.active {
    background: var(--color-hover-tone);
}

.episode-list-item .watched-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    flex-shrink: 0;
}

.episode-list-item .text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .anime-detail-container {
        flex-direction: column;
    }
    
    .anime-poster-section {
        flex: 1;
    }
    
    .anime-episodes-section {
        flex: 1;
    }
}



