.ja-bunny-episodes {
    margin: 0;
    padding: 0;
    border-radius: 8px;
}

.ja-episodes-header {
    padding: 16px 0 0 0;
}

.ja-episodes-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.ja-season-selector {
    background: #000 !important;
    border: none !important;
    color: #fbbf24 !important;
    padding: 6px 22px 6px 10px !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    min-width: 120px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23fbbf24' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 5px center !important;
    background-size: 12px 8px !important;
    transition: opacity 0.2s ease !important;
}

.ja-season-selector:hover {
    opacity: 0.8 !important;
}

.ja-season-selector:focus {
    outline: none !important;
}

.ja-episodes-season {
    padding: 12px 0 24px 0;
}

.ja-episode-scroll-wrapper {
    position: relative;
}

.ja-episode-list {
    list-style: none;
    padding: 12px 0 24px;
    margin: 0;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #fbbf24 #141414;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.ja-episode-list::-webkit-scrollbar {
    height: 8px;
}

.ja-episode-list::-webkit-scrollbar-track {
    background: #141414;
}

.ja-episode-list::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 4px;
}

.ja-episode-list::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

.ja-episode-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #fbbf24;
    color: #fbbf24;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    user-select: none;
    opacity: 0;
    pointer-events: none;
}

.ja-episode-scroll-wrapper:hover .ja-episode-nav {
    opacity: 1;
    pointer-events: auto;
}

.ja-episode-nav:hover {
    background: #fbbf24;
    border-color: #f59e0b;
    color: #000;
    transform: translateY(-50%) scale(1.15);
}

.ja-episode-nav.prev {
    left: 12px;
}

.ja-episode-nav.next {
    right: 12px;
}

.ja-episode-nav:disabled {
    opacity: 0 !important;
    pointer-events: none;
}

/* EPISODE CARD */
.ja-episode-item {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 280px;
    cursor: pointer;
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: auto;
}

.ja-episode-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 10;
    background: #252525;
    border-color: rgba(255, 255, 255, 0.15);
}

.ja-episode-item:hover .ja-episode-thumbnail {
    filter: brightness(1.1);
}

.ja-episode-number {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 5;
}

.ja-episode-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ja-episode-thumbnail-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8), transparent);
    z-index: 2;
    pointer-events: none;
}

.ja-episode-thumbnail-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-size: 30px 30px;
    background-position: 53% center;
    background-repeat: no-repeat;
    z-index: 3;
}

.ja-episode-item:hover .ja-episode-thumbnail-wrapper::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.ja-episode-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0a0a0a;
    display: block;
    transition: filter 0.3s ease;
}

.ja-episode-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ja-episode-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.ja-episode-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #fff;
    flex: 1;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ja-episode-duration {
    color: #b3b3b3;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ja-episode-description {
    margin: 0;
    color: #999;
    font-size: 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
    .ja-episodes-header {
        padding: 16px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ja-episodes-title {
        font-size: 20px;
    }

    .ja-season-selector {
        width: 100%;
        min-width: 100% !important;
    }

    .ja-episode-item {
        width: 220px;
    }

    .ja-episode-nav {
        width: 42px;
        height: 42px;
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .ja-episodes-header {
        padding: 12px 20px;
    }

    .ja-episodes-title {
        font-size: 18px;
    }

    .ja-episode-item {
        width: 180px;
    }

    .ja-episode-nav {
        display: none;
    }
}
