.serie-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    direction: ltr;
    text-align: center;
    color: #fff;
    padding-bottom: 10px
}

.container.has-cover-container .serie-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .8);
    font-size: 30px;
    margin-top: 20px;
    margin-right: 30px
}

@media screen and (max-width:768px) {
    .movie-title {
        display: none
    }

    .container.has-cover-container .serie-title {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, .8);
        font-size: 24px;
        margin-right: 0;
        margin-top: 0
    }
}

/* Episode Section - Modern Card Design */
.episode-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    width: 100%;
    flex-wrap: wrap;
    height: fit-content;
    text-align: center;
}

.episode-section-header {
    width: 100%;
}

.episode-section h2,
.episode-section h3 {
    width: 100%;
    height: fit-content;
    color: #590ea0;
}

/* Episode Card Link Wrapper */
.episode-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.episode-card-link:hover {
    transform: translateY(-3px);
}

/* Episode Card */
.episode-card {
    position: relative;
    width: 200px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

.episode-card.active {
    border: 2px solid #8a2be2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.episode-card-content {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Episode Image */
.episode-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Episode Badge */
.episode-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #8a2be2, #6b21a8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: top right;
}

.episode-card:hover .episode-badge {
    transform: scale(0.7);
}

/* Episode Overlay */
.episode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
}

.episode-card:hover .episode-overlay {
    opacity: 1;
}

.episode-overlay-content {
    text-align: center;
    width: 100%;
}

.episode-overlay-title {
    display: block;
    color: #d8b4fe;
    font-size: 11px;
    margin-bottom: 4px;
    font-weight: 500;
    transition: transform 0.3s ease, font-size 0.3s ease;
}

.episode-card:hover .episode-overlay-title {
    transform: scale(1.1);
}

.episode-overlay-subtitle {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    transition: transform 0.3s ease, font-size 0.3s ease;
}

.episode-card:hover .episode-overlay-subtitle {
    transform: scale(1.2);
}

/* Legacy card support (if any old pages still use it) */
.episode-section a {
    text-decoration: none;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.episode-section .card {
    position: relative;
    width: 60px;
    min-width: 60px;
    display: inline-block;
    cursor: pointer;
    border: 1px solid #8a2be2;
    padding: 20px 0;
    margin: 10px;
    text-align: center;
}

.episode-section a:hover .card {
    background-color: #8a2be2;
    cursor: pointer;
    color: #fff;
}

.episode-section .card.active {
    background: linear-gradient(135deg, #8a2be2 0, #590ea0 100%);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
    box-shadow: 0 6px 20px rgba(138, 43, 226, .4);
}

.episode-section a:hover .card.active {
    background: linear-gradient(135deg, #8a2be2 0, #590ea0 100%);
    box-shadow: 0 10px 30px rgba(138, 43, 226, .5);
    transform: translateY(-2px);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .episode-section {
        gap: 12px;
        padding: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .episode-section h2,
    .episode-section h3 {
        grid-column: 1 / -1;
    }
    
    .episode-section .card {
        width: calc(50% - 6px);
        min-width: 0;
        padding: 15px 5px;
        margin: 0 !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .episode-section {
        gap: 10px;
        padding: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .episode-section .card {
        width: calc(50% - 5px);
        min-width: 120px;
        padding: 12px 5px;
        margin: 0 !important;
    }
    
    .episode-badge {
        font-size: 13px;
        padding: 4px 10px;
    }
}

.season-navigation-section {
    text-align: center;
    margin-top: 20px;
    grid-column: 2;
    grid-row: 1
}

.season-navigation-section h2,
.season-navigation-section h3 {
    color: #590ea0;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700
}

.season-grid {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 12px;
    justify-content: center;
    align-items: flex-start
}

.season-button {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .3s ease, box-shadow .3s ease
}

.season-button:hover {
    transform: translateY(-5px);
    text-decoration: none
}

.season-card {
    background: linear-gradient(135deg, #8a2be2 0, #9932cc 100%);
    border-radius: 12px;
    padding: 15px 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(138, 43, 226, .3);
    border: 2px solid rgba(255, 255, 255, .1);
    transition: all .3s ease;
    position: relative;
    max-width: 150px;
    width: 140px;
    height: auto;
    overflow: hidden
}

.season-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, .1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .6s ease
}

.season-button:hover .season-card {
    box-shadow: 0 12px 35px rgba(138, 43, 226, .4);
    border-color: rgba(255, 255, 255, .3)
}

.season-button:hover .season-card::before {
    transform: translateX(100%)
}

.season-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
    line-height: 1.2
}

.season-info {
    color: rgba(255, 255, 255, .9);
    font-size: 13px
}

.episode-count {
    background: rgba(255, 255, 255, .2);
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 500
}

.season-button.current-season .season-card,
.season-card.active {
    background: linear-gradient(135deg, #ff6b35 0, #f7931e 100%);
    border-color: rgba(255, 255, 255, .4);
    box-shadow: 0 10px 30px rgba(255, 107, 53, .4);
    max-width: 150px
}

.season-button.current-season:hover .season-card,
.season-card.active:hover {
    box-shadow: 0 15px 40px rgba(255, 107, 53, .5);
    transform: translateY(-3px)
}

.season-button.current-season .season-card::before,
.season-card.active::before {
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, .2) 50%, transparent 70%)
}

@media (min-width:1200px) {
    .season-grid {
        grid-template-columns: repeat(6, minmax(140px, min-content));
        gap: 10px;
        justify-content: center
    }
}

@media (max-width:1199px) and (min-width:992px) {
    .season-grid {
        grid-template-columns: repeat(5, minmax(150px, min-content));
        gap: 12px;
        justify-content: center
    }
}

@media (max-width:991px) and (min-width:769px) {
    .season-grid {
        grid-template-columns: repeat(3, minmax(150px, min-content));
        gap: 12px;
        justify-content: center
    }
}

@media (max-width:768px) and (min-width:481px) {
    .season-grid {
        grid-template-columns: repeat(4, min-content);
        gap: 10px;
        padding: 0 15px;
        justify-content: center
    }

    .season-title {
        font-size: 13px
    }

    .episode-count {
        font-size: 12px;
        padding: 4px 8px
    }
}

@media (max-width:580px) {
    .season-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 10px;
        justify-content: center
    }

    .season-card {
        padding: 6px 2px
    }

    .season-title {
        font-size: 12px
    }

    .episode-count {
        font-size: 11px;
        padding: 3px 6px
    }
}

@media (max-width:360px) {
    .season-grid {
        grid-template-columns: repeat(2, min-content);
        gap: 8px;
        justify-content: center
    }

    .season-card {
        padding: 4px 8px;
        width: 120px
    }

    .season-title {
        font-size: 11px
    }
}

@media screen and (max-width:768px) {
    .movie-details .movie-title {
        display: block;
        font-size: 24px;
        font-weight: 700;
        text-align: center;
        margin: 15px 0;
        color: #fff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, .8);
        line-height: 1.3
    }
}



.series-details-container {
    box-sizing: border-box;
    background-color: transparent;
    padding: 10px 15px;
    margin: 5px auto;
    max-width: 1000px;
    position: relative;
    direction: rtl;
}

.details-header {
    text-align: right;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.details-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: inline-block;
    padding-right: 40px;
    position: relative;
}

.quote-icon {
    position: absolute;
    right: 0;
    top: -10px;
    font-size: 40px;
    color: #a855f7;
    font-family: serif;
    opacity: 0.8;
}

.header-decoration {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-right: 40px;
    gap: 5px;
}

.header-decoration .dot {
    width: 6px;
    height: 6px;
    background-color: #a855f7;
    border-radius: 50%;
    display: inline-block;
}

.header-decoration .line {
    width: 60px;
    height: 4px;
    background-color: #a855f7;
    border-radius: 2px;
    display: inline-block;
}

.series-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 0;
}

.series-info-item {
    display: flex;
    align-items: center;
    padding: 8px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

.series-info-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.info-icon {
    font-size: 1.2em;
    margin-left: 10px;
    filter: grayscale(100%) brightness(120%) sepia(100%) hue-rotate(240deg) saturate(500%);
    display: inline-block;
    width: 24px;
    text-align: center;
}

.info-label {
    color: #a855f7;
    font-weight: 700;
    font-size: 15px;
    margin-left: 5px;
    white-space: nowrap;
}

.info-value {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
}

.info-value a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.info-value a:hover {
    color: #a855f7;
    text-decoration: underline;
}

.dir-ltr {
    direction: ltr;
    display: inline-block;
}

@media (max-width: 768px) {
    .series-details-container {
        grid-template-columns: 1fr;
        column-gap: 0;
        margin: 10px auto;
        padding: 10px 15px;
    }

    .series-info-list {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
    
    .details-header {
        margin-bottom: 5px;
    }

    .details-header h2 {
        font-size: 18px;
    }
    
    .quote-icon {
        font-size: 24px;
        top: -5px;
    }

    .header-decoration {
        margin-top: 5px;
    }

    .series-info-item {
        padding: 8px 0;
    }

    .series-info-item.wide-item {
        padding-top: 10px;
        align-items: flex-start;
    }

    .series-info-item.wide-item .info-icon,
    .series-info-item.wide-item .info-label {
        margin-top: 8px;
    }

    .movice-story {
        box-sizing: border-box;
        padding: 10px 15px !important;
        margin-top: 5px !important;
        font-size: 15px !important;
        line-height: 22px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: break-word;
    }

    .container .movie-details {
    }
    
    .movie-details .movie-title, 
    .movie-details .serie-title {
        font-size: 20px !important;
        margin: 10px 0 !important;
    }
}

.actors-mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.mini-actor {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 3px 12px 3px 3px;
    text-decoration: none !important;
    transition: background-color 0.2s, transform 0.2s;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.mini-actor:hover {
    background-color: rgba(168, 85, 247, 0.15);
    transform: translateY(-2px);
    border-color: #a855f7;
}

.mini-actor-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 8px;
    border: 1px solid #a855f7;
}

.mini-actor-name {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.series-info-item.wide-item {
    grid-column: 1 / -1;
    border-bottom: none;
    display: flex;
    flex-wrap: wrap;
    padding-top: 10px;
}

.series-info-item.wide-item .info-icon,
.series-info-item.wide-item .info-label {
    margin-bottom: 0;
}

.series-info-item.wide-item .info-value {
    width: auto;
    flex: 1;
}