/* ========================================================
   StreamFliz - Premium Content Details CSS
   ======================================================== */

.details-hero-wrap {
    position: relative;
    width: 100%;
    min-height: 480px;
    background-color: #070709;
    overflow: hidden;
}

.details-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: brightness(0.4) saturate(1.1);
    transform: scale(1.02);
}

.details-hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(7, 7, 9, 0.4) 0%, rgba(7, 7, 9, 0.85) 65%, #070709 100%),
        linear-gradient(90deg, rgba(7, 7, 9, 0.95) 0%, rgba(7, 7, 9, 0.75) 45%, rgba(7, 7, 9, 0.3) 100%);
    pointer-events: none;
}

.details-hero-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 860px) {
    .details-hero-container {
        flex-direction: row;
        align-items: flex-start;
        padding-top: 60px;
        padding-bottom: 40px;
    }
}

/* Left Poster Wrap */
.details-poster-box {
    width: 220px;
    flex-shrink: 0;
    margin: 0 auto;
}

@media (min-width: 860px) {
    .details-poster-box {
        width: 260px;
        margin: 0;
    }
}

.details-poster-img-wrap {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: #121319;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(235, 13, 13, 0.15);
}

.details-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Content Info Area */
.details-info-box {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.details-title {
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 6px 0;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.3px;
}

.details-jap-title {
    font-size: 15px;
    font-weight: 600;
    color: #cbd5e1;
    margin: 0 0 10px 0;
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.details-alt-title {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0 0 14px 0;
    font-style: italic;
}

/* ========================================================
   1. Sub, Dub, Multi Audio Counts Badges Row
   ======================================================== */
.details-audio-counts-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 20px;
}

.audio-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.audio-count-sub {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.audio-count-dub {
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.audio-count-multi {
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.audio-count-rating {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.38);
    color: #fbbf24;
}

.audio-count-duration {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

.audio-count-views {
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.38) !important;
    color: #34d399 !important;
}

/* ========================================================
   2. Key Metadata List (years, type, status, total ep, genre, lang)
   ======================================================== */
.details-meta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px 20px;
}

.meta-item-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 13.5px;
    line-height: 1.5;
}

.meta-item-label {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    min-width: 80px;
    display: inline-block;
}

.meta-item-value {
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
}

.meta-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2.5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-item-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.genre-pill {
    display: inline-block;
    padding: 3.5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease;
}

.genre-pill:hover {
    background: #eb0d0d;
    border-color: #eb0d0d;
    color: #ffffff;
    transform: translateY(-1.5px);
}

.lang-pill {
    display: inline-block;
    padding: 3.5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    color: #93c5fd;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-pill:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateY(-1.5px);
}

/* ========================================================
   3. Description with Expand/Collapse
   ======================================================== */
.details-overview-wrap {
    margin-bottom: 26px;
    position: relative;
}

.details-overview-label {
    font-size: 13px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
    display: block;
}

.details-overview-text {
    font-size: 14px;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.details-overview-text.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: #eb0d0d;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0 0 0;
    outline: none;
}

.btn-read-more:hover {
    color: #ff4d4d;
    text-decoration: underline;
}
    color: #ff4d4d;
    text-decoration: underline;
}

/* Action Buttons Group */
.details-actions-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.btn-action-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 32px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eb0d0d 0%, #b80000 100%);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(235, 13, 13, 0.45);
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-action-watch:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(235, 13, 13, 0.6);
    filter: brightness(1.1);
}

.btn-action-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-action-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-action-secondary.active {
    background: rgba(235, 13, 13, 0.2);
    border-color: #eb0d0d;
    color: #ff5555 !important;
}

/* ========================================================
   SEASONS SHOWCASE SECTION
   ======================================================== */
.seasons-section-wrap {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.seasons-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.seasons-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.seasons-main-title {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.3px;
}

.seasons-total-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}

.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.season-card {
    background: #121319;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.season-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #eb0d0d, transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.season-card:hover {
    background: #171821;
    border-color: rgba(235, 13, 13, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(235, 13, 13, 0.1);
}

.season-card:hover::before {
    opacity: 1;
}

.season-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.season-card-num-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(235, 13, 13, 0.15) 0%, rgba(235, 13, 13, 0.05) 100%);
    border: 1px solid rgba(235, 13, 13, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.season-card-num-label {
    font-size: 8.5px;
    font-weight: 800;
    color: #ff6b6b;
    letter-spacing: 0.8px;
}

.season-card-num-val {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.season-card-info {
    flex: 1;
    min-width: 0;
}

.season-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    font-family: 'Poppins', sans-serif;
}

.season-card-eps-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
}

.season-card-body {
    padding-top: 4px;
}

.season-audio-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.season-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 9px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.season-pill-sub {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.season-pill-dub {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
}

.season-pill-multi {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

.season-pill-dl {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.season-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.btn-season-watch {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eb0d0d 0%, #b80000 100%);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(235, 13, 13, 0.35);
    transition: all 0.2s ease;
}

.btn-season-watch:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(235, 13, 13, 0.5);
    filter: brightness(1.1);
}

.btn-season-download {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fbbf24 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-season-download:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-1.5px);
}

/* ========================================================
   EPISODE SECTION
   ======================================================== */
.episodes-section-wrap {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.episodes-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.episodes-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.episodes-main-title {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.season-selector-pill {
    padding: 6px 16px;
    border-radius: 10px;
    background: #181a22;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.season-summary-tag {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
}

/* Episode Cards Grid */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

@media (max-width: 600px) {
    .episodes-grid {
        grid-template-columns: 1fr;
    }
}

.episode-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 14px;
    background: #121319;
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none !important;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.episode-card-item:hover {
    background: #1a1c25;
    border-color: rgba(235, 13, 13, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.ep-card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ep-card-badge {
    font-size: 11px;
    font-weight: 900;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}

.ep-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-card-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #34d399;
    background: rgba(6, 78, 59, 0.6);
    border: 1px solid rgba(52, 211, 153, 0.4);
    padding: 2px 7px;
    border-radius: 5px;
    width: fit-content;
    margin-top: 2px;
}

.ep-card-play-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.episode-card-item:hover .ep-card-play-icon {
    background: #eb0d0d;
    border-color: #eb0d0d;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 14px rgba(235, 13, 13, 0.6);
}

a, a:hover, a:focus, a:active,
button, button:hover, .btn, .btn:hover {
    text-decoration: none !important;
    text-decoration-line: none !important;
}
