@import '../movie/movie.css';

/* ==========================================
   PREVENT SCREEN OVERFLOW & BODY EXTENSION
   ========================================== */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.details-layout,
.movie-main-col,
#seriesMainCol,
#seriesDetailsCard,
.movie-main-card,
.auth-media-box {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.auth-media-box {
    overflow: hidden;
}

.series-badge {
    background-color: #857318;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
}

/* ==========================================
   SLIDEABLE SEASON TABS (NOT EXTENDABLE)
   ========================================== */
.season-tabs-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    padding-bottom: 8px !important;
    margin-bottom: 14px !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    overscroll-behavior-x: contain !important;
    touch-action: pan-x !important;
    cursor: grab;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgba(255, 255, 255, 0.08);
}

.season-tabs-scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto !important;
}

.season-tabs-scroll::-webkit-scrollbar {
    height: 5px;
}

.season-tabs-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

.season-tabs-scroll::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 3px;
}

.season-tabs-scroll::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

/* Season Tab Buttons */
.user-series-season-tab,
.user-series-zip-tab {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: all 0.15s ease;
    outline: none;
    user-select: none;
    cursor: pointer;
}

.user-series-season-tab:hover,
.user-series-zip-tab:hover {
    filter: brightness(1.1);
}

.user-series-season-tab:active,
.user-series-zip-tab:active {
    transform: scale(0.98);
}

.user-series-season-container,
.user-series-zip-container {
    animation: fadeInSeason 0.2s ease-out;
    min-width: 0;
    max-width: 100%;
}

@keyframes fadeInSeason {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clean cards matching movie page */
.series-ep-row {
    transition: all 0.15s ease;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.series-ep-row:hover {
    border-color: #555 !important;
    background: #252525 !important;
}

.series-zip-card {
    transition: all 0.15s ease;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.series-zip-card:hover {
    border-color: #555 !important;
    background: #252525 !important;
}

@media (max-width: 540px) {
    .auth-media-box {
        padding: 14px 10px !important;
    }
    .series-ep-row {
        padding: 10px 10px !important;
        gap: 8px !important;
    }
}
