.ja-series-tabs-container {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #000;
    color: #fff;
}

.ja-series-hero {
    position: relative;
    min-height: 70vh;
    background-size: 0;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0;
    overflow: hidden;
}

.ja-series-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}
.ja-series-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 8%,
            rgba(0, 0, 0, 0.3) 15%,
            transparent 25%
        ),
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.3) 70%,
            transparent 100%
        );
    z-index: 1;
    pointer-events: none;
}
.ja-series-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.ja-series-hero h1 {
    font-size: 4em;
    margin: 0 0 20px 0;
    color: #fff;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    max-width: 800px;
}
.ja-series-meta {
    display: flex;
    gap: 25px;
    margin: 20px 0 0 0;
    font-size: 1em;
    flex-wrap: wrap;
}
.ja-series-meta-item {
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}
.ja-series-meta-item strong {
    color: #fff;
    font-weight: 700;
}
.ja-series-hero-excerpt {
    font-size: 1.1em;
    line-height: 1.6;
    color: #fff;
    margin: 24px 0 32px 0;
    max-width: 700px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.ja-series-hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.ja-hero-btn {
    padding: 14px 40px !important;
    font-size: 1.1em !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4) !important;
    outline: none !important;
}
.ja-hero-btn-play {
    background: #FFD700 !important;
    background-color: #FFD700 !important;
    color: #000 !important;
}
.ja-hero-btn-play:hover {
    background: #FFC700 !important;
    background-color: #FFC700 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 12px rgba(255,215,0,0.5) !important;
}
.ja-hero-btn-play:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.3) !important;
}
.ja-hero-btn-trailer {
    background: rgba(255,255,255,0.2) !important;
    background-color: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.ja-hero-btn-trailer:hover {
    background: rgba(255,255,255,0.3) !important;
    background-color: rgba(255,255,255,0.3) !important;
    border-color: #fff !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 12px rgba(255,255,255,0.3) !important;
}
.ja-hero-btn-trailer:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3) !important;
}
.ja-hero-btn-icon {
    font-size: 1.2em;
    line-height: 1;
}

.ja-series-tabs-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 40px;
    background: transparent;
}

.ja-series-tabs-header {
    display: flex;
    gap: 48px;
    border-bottom: 1px solid #333;
    margin: 0 0 48px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ja-series-tabs-header::-webkit-scrollbar {
    display: none;
}
.ja-series-tab {
    padding: 16px 0 !important;
    font-size: 1.15em !important;
    font-weight: 600 !important;
    color: #b3b3b3 !important;
    cursor: pointer !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -1px !important;
    transition: color 0.25s ease !important;
    white-space: nowrap !important;
    letter-spacing: -0.02em !important;
    position: relative !important;
    box-shadow: none !important;
    text-decoration: none !important;
    outline: none !important;
}
.ja-series-tab:hover {
    color: #FFD700 !important;
    background: none !important;
    background-color: transparent !important;
    border-bottom-color: transparent !important;
}
.ja-series-tab.active {
    color: #FFD700 !important;
    font-weight: 700 !important;
    border-bottom-color: #FFD700 !important;
    background: none !important;
    background-color: transparent !important;
}
.ja-series-tab:focus {
    outline: none !important;
    box-shadow: none !important;
}

.ja-series-tab-content {
    display: none;
}
.ja-series-tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ja-video-player-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px !important;
    overflow: auto;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ja-video-player-container[style*="display: block"] {
    display: flex !important;
}

.ja-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.ja-player-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9) !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.ja-player-close:hover {
    background: #fff !important;
    color: #000 !important;
    transform: scale(1.15) rotate(90deg);
    border-color: #fff !important;
}

.ja-player-close svg {
    width: 24px;
    height: 24px;
    color:#FFC700;
}

.ja-player-info {
    padding: 24px 32px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.7));
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    pointer-events: none;
}

.ja-player-info h3 {
    margin: 0;
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.ja-player-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

@media (max-width: 1024px) {
    .ja-video-player-container {
        padding: 20px !important;
    }

    .ja-player-close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .ja-player-info {
        padding: 20px 24px;
    }

    .ja-player-info h3 {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .ja-video-player-container {
        padding: 10px !important;
    }

    .ja-player-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .ja-player-close svg {
        width: 20px;
        height: 20px;
    }

    .ja-player-info {
        padding: 16px 20px;
    }

    .ja-player-info h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .ja-video-player-container {
        padding: 0 !important;
        align-items: stretch;
    }

    .ja-player-wrapper {
        border-radius: 0;
        max-width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .ja-player-iframe-wrapper {
        flex: 1;
        padding-bottom: 0;
        height: 100%;
    }

    .ja-player-close {
        top: 10px;
        right: 10px;
    }

    .ja-player-info {
        padding: 12px 16px;
    }

    .ja-player-info h3 {
        font-size: 1em;
    }
}

.ja-series-description {
    font-size: 1.05em;
    line-height: 1.7;
    color: #d1d1d1;
    max-width: 900px;
}
.ja-series-description p {
    margin-bottom: 1em;
}

.ja-season-selector {
    margin-bottom: 40px;
}
.ja-season-dropdown {
    padding: 6px 22px 6px 10px !important;
    background: #000 !important;
    background-color: #000 !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 1em !important;
    color: #fbbf24 !important;
    transition: opacity 0.2s ease !important;
    outline: none !important;
    width: 100%;
    max-width: 200px;
    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;
}
.ja-season-dropdown:hover {
    opacity: 0.8 !important;
}
.ja-season-dropdown:focus {
    outline: none !important;
}
.ja-season-dropdown option {
    background: #000 !important;
    color: #fbbf24 !important;
    padding: 8px !important;
}
.ja-season-episodes {
    display: none;
}
.ja-season-episodes.active {
    display: block;
}

@media (max-width: 768px) {
    .ja-series-hero {
        min-height: 50vh;
    }
    .ja-series-hero-content {
        padding: 40px 20px 30px;
    }
    .ja-series-hero h1 {
        font-size: 2.5em;
    }
    .ja-series-hero-excerpt {
        font-size: 0.95em;
        margin: 16px 0 24px 0;
    }
    .ja-hero-btn {
        padding: 12px 32px !important;
        font-size: 1em !important;
    }
    .ja-series-tabs-wrapper {
        padding: 30px 20px;
    }
    .ja-series-tabs-header {
        gap: 32px;
        margin-bottom: 36px;
    }
    .ja-series-tab {
        font-size: 1em !important;
        padding: 14px 0 !important;
    }
    .ja-season-dropdown {
        max-width: 100%;
        font-size: 0.95em !important;
    }
}

@media (max-width: 480px) {
    .ja-series-hero h1 {
        font-size: 1.8em;
    }
    .ja-series-hero-excerpt {
        font-size: 0.9em;
        margin: 12px 0 20px 0;
    }
    .ja-hero-btn {
        padding: 10px 28px !important;
        font-size: 0.95em !important;
    }
    .ja-series-meta {
        flex-direction: column;
        gap: 12px;
    }
}

.ja-login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.ja-login-modal.active {
    display: flex;
}

.ja-login-modal-content {
    background: #000;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 48px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.3);
}

.ja-login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}

.ja-login-modal-close:hover {
    color: #fbbf24;
}

.ja-login-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.ja-login-modal-icon svg {
    width: 56px;
    height: 56px;
}

.ja-login-modal h2 {
    color: #fff;
    font-size: 28px;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.ja-login-modal p {
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.ja-login-modal-btn {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    padding: 16px 48px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}

.ja-login-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
    color: #000;
    text-decoration: none;
}

@media (max-width: 600px) {
    .ja-login-modal-content {
        padding: 32px 24px;
    }

    .ja-login-modal h2 {
        font-size: 24px;
    }

    .ja-login-modal p {
        font-size: 14px;
    }

    .ja-login-modal-btn {
        padding: 14px 36px;
        font-size: 16px;
    }
}
