.episode-top {
    padding: 28px 0 36px;
    background: #fff;
}

.episode-top__backline {
    margin-bottom: 15px;
}

.episode-top__backline a {
    font-size: 15px;
    color: #111;
}

.episode-top__backline a:hover {
    color: #000;
}

.episode-top__nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.episode-top__season {
    font-weight: 700;
    color: #ff5500;
}

.episode-top__arrow {
    font-size: 20px;
    line-height: 1;
}

.episode-top__all {
    color: #111;
}

.episode-top__title {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
}
.episode-top__watch {
    margin-left: 8px;
    color: #1a73e8;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.episode-top__watch:hover {
    color: #0b5ed7;
}
.episode-top__meta-line {
    margin-top: 10px;
    margin-bottom: 18px;
    color: #777;
    font-size: 15px;
}

.episode-top__inner {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
}

/* LEFT COLUMN */
.episode-top__poster {
    width: 100%;
}

.episode-top__main-frame {
    margin-bottom: 10px;
}

.episode-top__main-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;

}

.episode-top__thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.episode-top__thumbs img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.episode-top__thumbs img:hover {
    transform: scale(1.04);
}

/* RIGHT COLUMN */
.episode-top__content {
    width: 100%;
}

.episode-top__desc {
    max-width: 880px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.55;
}

.episode-top__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.episode-top__genres span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #dcdcdc;
    color: #444;
}

.episode-top__facts {
    border-top: 1px solid #eee;
}

.episode-top__fact {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.episode-top__label {
    font-weight: 600;
}

.episode-top__value {
    line-height: 1.5;
}

.episode-top__value a {
    color: #1a73e8;
}

/* PLAYER */
.title-main__player-block {
    width: 100%;
    margin-top: 18px;
}

.title-main__player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    overflow: hidden;
}

.title-main__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.title-main__table {
    position: relative;
    z-index: 2;
}
.title-main__row {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
    margin-bottom: 14px;
}

.title-main__row:last-child {
    margin-bottom: 0;
}



/* OPTIONAL EXTRA GALLERY BELOW */
.episode-gallery {
    margin-top: 32px;
    padding: 22px;
    background: #fafafa;
    border-radius: 14px;
}

.episode-gallery__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
    padding-left: 14px;
    border-left: 4px solid  #ff5500;
}

.episode-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.episode-gallery__grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.episode-gallery__grid img:hover {
    transform: scale(1.03);
}

.title-main__info-card {
    position: relative;
    padding: 24px 28px 28px;
    background: #f6f6f6;
    overflow: hidden;
}

.title-main__label {
    color: #8d8d8d;
    font-size: 15px;
    line-height: 1.35;
}

.title-main__value {
    color: #222;
    font-size: 15px;
    line-height: 1.35;
}
.title-main__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 24px;
}

.title-main__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.title-main__genre {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    background: #FFC400;
    color: #4c3b10;
    font-size: 13px;
    text-decoration: none;
    box-sizing: border-box;
}
.episode-top__title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.episode-top__watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #1a73e8;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.episode-top__watch-btn:hover {
    background: #0b5ed7;
}
.episode-top__title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.episode-top__watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #1a73e8;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.episode-top__watch-btn:hover {
    background: #0b5ed7;
}

.player-highlight {
    animation: playerGlow 1.6s ease;
}

@keyframes playerGlow {
    0% {
        box-shadow: 0 0 0 rgba(26, 115, 232, 0);
        transform: scale(1);
    }
    30% {
        box-shadow: 0 0 0 8px rgba(26, 115, 232, 0.18);
        transform: scale(1.01);
    }
    100% {
        box-shadow: 0 0 0 rgba(26, 115, 232, 0);
        transform: scale(1);
    }
}

.episode-card__image-wrap,
.episodes_table_kadr {
    max-width: 200px;
    min-width: 200px;
}
.episodes_table_kadr img{
    width: 100%;
}
@media (min-width: 1024px) {
    .title-main__player-block {
        width: calc(100% - 364px);
        margin-top: 18px;
        margin-left: 364px;
    }
}
@media (max-width: 1023px) {


    .title-main__player-block {
        max-width: 100%;
    }

    .title-main__player-block {
        width: 100%;
        margin-top: 24px;
        margin-left: 0;
        margin-right: 0;
    }

    .container {
        padding: 0 16px;
    }


}

/* FOOTER RESPONSIVE */
@media (max-width: 1100px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
    .title-main__row {
        grid-template-columns: 180px 1fr;
    }
    .episode-top__desc {
        margin-bottom: 14px;
    }
}
@media (max-width: 900px) {
    .episode-top__inner {
        grid-template-columns: 260px 1fr;
        gap: 18px;
    }

    /* ЛЕВАЯ КОЛОНКА (кадры) */
    .episode-top__poster {
        max-width: 260px;
    }

    .episode-top__thumbs {
        gap: 6px;
    }


    /* ПРАВАЯ КОЛОНКА */
    .episode-top__title {
        font-size: 24px;
    }

    .episode-top__meta-line {
        font-size: 13px;
    }

    .episode-top__desc {
        font-size: 14px;
        line-height: 1.45;
    }

    .episode-top__label,
    .episode-top__value {
        font-size: 13px;
    }

    .title-main__genre {
        font-size: 12px;
        padding: 0 8px;
        min-height: 32px;
    }
    .episodes_table_kadr {
        max-width: 100px;
        min-width: 100px;
    }

}
@media (max-width: 768px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }

    .footer {
        padding: 40px 0 50px;
    }

    .episode-top__title {
        font-size: 22px;
    }

}
@media (max-width: 720px) {
    .episode-top__inner {
        grid-template-columns: 200px 1fr;
        gap: 14px;
    }

    /* ЛЕВАЯ КОЛОНКА */
    .episode-top__poster {
        max-width: 200px;
    }

    .episode-top__main-frame {
        margin-bottom: 6px;
    }

    .episode-top__thumbs {
        gap: 5px;
    }

    /* ПРАВАЯ КОЛОНКА */
    .episode-top__title {
        font-size: 20px;
    }

    .episode-top__desc {
        font-size: 13px;
        line-height: 1.4;
    }

    .episode-top__meta-line {
        font-size: 12px;
    }

    .episode-top__label,
    .episode-top__value {
        font-size: 12px;
    }

    .title-main__genre {
        font-size: 11px;
        padding: 0 6px;
        min-height: 28px;
    }
    .title-main__row {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 12px;
    }

}

@media (max-width: 580px) {
    .episode-top__inner {
        grid-template-columns: 160px 1fr;
        gap: 12px;
    }

    /* ЛЕВАЯ КОЛОНКА */
    .episode-top__poster {
        max-width: 160px;
    }

    .episode-top__main-frame {
        margin-bottom: 6px;
    }

    .episode-top__thumbs {
        gap: 4px;
    }

    /* ПРАВАЯ КОЛОНКА */
    .episode-top__title {
        font-size: 18px;
    }

    .episode-top__desc {
        font-size: 12.5px;
        line-height: 1.35;
    }

    .episode-top__meta-line {
        font-size: 11px;
    }

    .episode-top__label,
    .episode-top__value {
        font-size: 11px;
    }

    .title-main__genre {
        font-size: 10px;
        padding: 0 6px;
        min-height: 26px;
    }

}
@media (max-width: 480px) {
    .header__top-inner {
        padding: 14px 0;
    }


    .burger {
        margin-right: 12px;
    }

    .mobile-menu__nav a {
        padding: 12px;
    }

    .episode-gallery__grid {
        grid-template-columns: 1fr;
    }
    .episode-top__inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .episode-top__poster,
    .episode-top__content,
    .title-main__player-block,
    .title-main__info-card,
    .title-main__table {
        max-width: 100%;
        width: 100%;
    }

    .episode-top__poster {
        max-width: 100%;
    }

    .episode-top__main-frame img,
    .episode-top__thumbs img {
        width: 100%;
    }

    .title-main__player-block {
        margin-left: 0;
        margin-right: 0;
        margin-top: 20px;
    }

    .episode-top__desc {
        font-size: 14px;
        line-height: 1.45;
    }

    .title-main__row {
        grid-template-columns: 1fr;
        gap: 4px;
        margin-bottom: 10px;
    }

    .title-main__label {
        font-size: 11px;
        color: #8d8d8d;
    }

    .title-main__value {
        font-size: 13px;
    }

    .episode-top__fact {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.title-main__story {
    margin-bottom: 10px;
}

.title-main__subtitle {
    font-size: 26px;
    margin-bottom: 10px;
}

.title-main__story p {
    font-size: 15px;
    line-height: 1.6;
    color: #222;
}


.actors-slider {
    overflow-x: auto;
    padding: 10px 0;
    margin-top: 20px;
}

.actors-track {
    display: flex;
    gap: 12px;
}

.actor-card {
    min-width: 90px;
    max-width: 90px;
    text-align: center;
    cursor: pointer;
}

.actor-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s;
}

.actor-card:hover img {
    transform: scale(1.05);
}

.actor-name {
    margin-top: 6px;
    font-size: 12px;
    color: #333;
}



.actor-photo {
    width: 100%;
    height: 110px;
    border-radius: 5px;
    overflow: hidden;
    background: #e5e5e5; /* серый фон */
    position: relative;
}

/* картинка поверх */
.actor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* иконка только если нет картинки */
.actor-photo img[style*="display: none"] + .no-photo {
    display: flex;
}


.actors-block {
    margin-top: 20px;
}

.actors-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.actors-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.actor-card {
    width: 90px;
    text-align: center;
}

.actor-card img {
    width: 90px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 6px;
    transition: 0.2s;
}

.actor-card img:hover {
    transform: scale(1.05);
}

.actor-name {
    font-size: 13px;
    color: #333;
    line-height: 1.2;
}
.actors-header {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.title-main__watch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    background:#0c0;
    color: #fff;
    font-size: 14px;
    margin: 12px 0 16px;
}
.title__h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 400;
    color: #111;
}

.title__h1 span {
    font-weight: 400;
    color: #959595;
    font-size: 22px;
}

.subh1 {
    margin-top: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #777;
}
.message-title-alert {
    background: #ff5500;
    color: #fff;
    font-weight: 600;
    display: inline-block;
    padding: 8px 10px;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 6px;
}
.title_h2_container {
    text-align: center;        /* центр текста */
    margin: 20px 0 15px;       /* отступ сверху и снизу */
    padding: 10px 0;
}

.title__h2 {
    margin: 0 auto;            /* центр блока */
    font-size: 24px;
    line-height: 1.2;
    font-weight: 500;
    color: #111;
    max-width: 900px;          /* чтобы не растягивался на всю ширину */
}
.seo-text {
    margin: 20px 0 30px;
    padding: 18px 20px;
    background: #f8f8f8;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.seo-text--bottom {
    margin-top: 30px;
}
.watch-label {
    font-size: 13px;
    color: #111;
    margin-bottom: 10px;
    text-align: center;
}


.episodes-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.episodes-block__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
    color: #111;
}

.episodes-block__seasons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.episodes-block__season {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    color: #111;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.episodes-block__season--active { background: #f2c94c; }
.episodes-block__season:hover { background: #f7e29d; }

.episodes-block__list { border-top: 1px solid #e6e6e6; }

.episode-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid #e6e6e6;
}

.episode-card__image-wrap {
    position: relative;
    flex: 0 0 220px;
    width: 220px;
    text-decoration: none;
    overflow: hidden;
}

.episode-card__image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;

}

.episode-card__content {
    flex: 1 1 auto;
    min-width: 0;
}

.episode-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 12px;
}

.episode-card__heading { min-width: 0; }

.episode-card__name {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.episode-card__name a {
    color: #111;
    text-decoration: none;
}

.episode-card__name a:hover { color: #d58b00; }

.episode-card__date {
    flex: 0 0 auto;
    color: #7d7d7d;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
}

.episode-card__desc {
    margin-bottom: 15px;
    color: #222;
    font-size: 14px;
    line-height: 1.3;
}

.episode-card__bottom {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.episode-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #444;
    font-size: 16px;
}

.episode-card__star {
    color: #f2c94c;
    font-size: 20px;
    line-height: 1;
}

.episode-card__rating-value {
    font-weight: 700;
    color: #333;
}

.episode-card__rating-count { color: #767676; }

.episode-card__link {
    color: #1a73e8;
    font-size: 16px;
    text-decoration: none;
}

.episode-card__link:hover { text-decoration: underline; }
.episode-card--active .episode-card__name a { color: #111; }




.episodes-block__subtext {
    margin: 18px 0 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #777;
}

.episodes-block__title2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    color: #111;
}
.episodes-mini {
    display: flex;
    gap: 10px;
    margin: 15px 0 25px;
    flex-wrap: wrap;
}

.episodes-mini a {
    padding: 6px 10px;
    background: #f1f1f1;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #333;
}

.episodes-mini a:hover {
    background: #e5e5e5;
}

.actors-slider {
    overflow-x: auto;
    max-width: 100%;
}

.actors-track {
    display: flex;
    gap: 12px;
    min-width: 100%;
    width: max-content;
}

.actor-card {
    flex: 0 0 90px; /* запрет сжатия */
}
@media (max-width: 900px) {
    .episode-top__inner {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 18px;
    }
}

@media (max-width: 720px) {
    .episode-top__inner {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 14px;
    }
}

@media (max-width: 580px) {
    .episode-top__inner {
        grid-template-columns: 160px minmax(0, 1fr);
        gap: 12px;
    }
}
.episode-top__content {
    width: 100%;
    min-width: 0;
}
.actors-slider {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.actors-track {
    display: flex;
    gap: 12px;
    width: max-content;
    min-width: 100%;
}

.actor-card {
    flex: 0 0 90px;
}

.title-main__player {
    height: 360px;
    background: #000;
    margin-bottom: 4px;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-image, .gallery-frame {
    width: 100px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-image:hover, .gallery-frame:hover {
    transform: scale(1.1);
}



.rating-block {
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.rating-text {
    font-weight: bold;
    margin-right: 10px;
}
.star {
    font-size: 22px;
    color: #ccc;
}
.stars {
    display: flex;
    margin-right: 10px;
}



.full {
    color: #ffb800; /* Желтая для полных звезд */
}

.empty {
    color: #d3d3d3; /* Серый для пустых звезд */
}

.half {
    color: #ffb800; /* Желтая для половинной звезды */
    background: linear-gradient(to right, #ffb800 50%, #d3d3d3 50%); /* Половинная звезда */
    -webkit-background-clip: text;
    color: transparent;
}

.rating {
    font-size: 18px;
    color: #333;
}
.star.full {
    color: gold;
}

.star.empty {
    color: #ccc;
}

.star.half {
    position: relative;
    color: #ccc;
}

.star.half::before {
    content: "★";
    position: absolute;
    color: gold;
    width: 50%;
    overflow: hidden;
    left: 0;
    top: 0;
}
/* Container for the table */
.unique-table-container {
    max-width: 900px;
    margin: 20px auto;
    overflow-x: auto;
    background-color: #333;
    font-size: 14px;
}

/* Table styling */
.unique-rating-table {
    width: 100%;
    border-collapse: collapse;
    color: #000;
    text-align: center;
}

.unique-header {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: 1px solid #ddd;
}



.unique-cell:hover {
    background-color: #7B9B4C;
}

.unique-empty-cell {
    background-color: #333;
    color: transparent;
    border: 1px solid #333;
}

/* Table styling */
.unique-rating-table {
    width: 100%;
    border-collapse: collapse;
    color: #000;
    text-align: center;
}

.unique-header {
    background-color: #b0b0b0; /* Light gray for header */
    color: white;
    padding: 10px;
    border: 1px solid #ddd;
}

.unique-cell {
    font-size: 14px;
    border: 1px solid #ddd;
    border: 1px solid #ddd;
}

/* Different background colors based on rating (higher ratings are brighter) */
.unique-cell.low {
    background-color: #d7d7d7; /* Very light gray for low ratings */
}

.unique-cell.medium-low {
    background-color: #ffeb99; /* Light yellow for medium-low ratings */
}

.unique-cell.medium {
    background-color: #ffee99; /* Light yellow-green for medium ratings */
}

.unique-cell.medium-high {
    background-color: #c7ff99; /* Light green for medium-high ratings */
}

.unique-cell.high {
    background-color: #8bc34a; /* Brighter green for high ratings */
}

.unique-cell.excellent {
    background-color: #66bb6a; /* Even brighter green for excellent ratings */
}

.unique-cell:hover {
    background-color: #7B9B4C;
}

.unique-empty-cell {
    background-color: #333;
    color: transparent;
    border: 1px solid #333;
}
.rating-episodes-box {
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center; /* Вертикальное выравнивание */
}

.rating-episodes-star {
    color: gold;
    font-size: 20px;
    margin-right: 5px;
}

.rating-episodes-score {
    font-size: 16px;
    color: #555;
}
.is-visible-mobile {
    display: none;
}
.a-unique-cell {
    width: 100%;
    padding: 10px;
    display: inline-block;
}
.video-player {
    width: 800px;
    background-color: #333;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 13px;
}

.tabs {
    list-style: none;
    display: flex;
    margin: 0;
    background-color: #444;
    color: white;
    justify-content: flex-start; /* Align items to the left */
    font-size: 13px;
}

.tabs li {
    padding: 10px 20px; /* Increase horizontal padding for spacing */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.tabs li.current {
    background-color: black; /* Active tab color */
}

.tabs li:hover {
    background-color: black; /* Hover effect */
}

.iframe-container {
    width: 100%;
    height: 400px;
}
.alert-box {
    background-color: #d9534f; /* Red background */
    color: white; /* White text color */
    padding: 5px; /* Padding around text */
    text-align: center; /* Center align text */
    font-size: 14px; /* Adjust font size */
}

@media (max-width: 768px) {
    .is-hidden-mobile {
        display: none;
    }
    .is-visible-mobile {
        display: block;
    }
    .episode-top {
        padding: 18px 0 24px;
    }

    .episode-top__inner {
        display: block;
    }

    .episode-top__poster,
    .episode-top__content,
    .title-main__player-block,
    .title-main__info-card,
    .title-main__table,
    .title-main__story {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .episode-top__poster {
        margin-bottom: 18px;
    }

    .episode-top__main-frame {
        margin-bottom: 8px;
    }

    .episode-top__main-frame img {
        width: 100%;

    }

    .episode-top__thumbs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .episode-top__thumbs img {
        width: 100%;

    }

    .title__h1,
    .episode-top__title {
        font-size: 22px;
        line-height: 1.2;
    }

    .subh1,
    .episode-top__meta-line,
    .watch-label {
        font-size: 12px;
        line-height: 1.4;
    }

    .episode-top__desc,
    .title-main__story p,
    .seo-text {
        font-size: 13px;
        line-height: 1.45;
    }

    .title-main__info-card {
        padding: 16px;
    }

    .title-main__row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
        margin-bottom: 12px;
    }

    .title-main__label {
        font-size: 11px;
        color: #777;
    }

    .title-main__value {
        font-size: 13px;
        line-height: 1.45;
    }

    .actors-slider {
        margin-top: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .actors-track {
        display: flex;
        gap: 10px;
        width: max-content;
        min-width: 100%;
    }

    .actor-card {
        flex: 0 0 78px;
        width: 78px;
    }

    .actor-photo {
        height: 96px;
    }

    .actor-card img {
        width: 78px;
        height: 96px;
    }

    .actor-name {
        font-size: 12px;
        line-height: 1.25;
    }

    .title-main__watch-btn {
        min-height: 42px;
        font-size: 14px;
        margin: 12px 0 14px;
    }

    .title-main__player-block {
        margin-top: 18px;
    }


    .title-main__row {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 8px 12px;
        margin-bottom: 12px;
        align-items: start;
    }

    .title-main__label {
        font-size: 11px;
        line-height: 1.35;
    }

    .title-main__value {
        font-size: 13px;
        line-height: 1.4;
        min-width: 0;
    }

    .container {
        width: 100%;
        padding: 10px 5px;
    }
    .title-main {
        padding: 0;
    }
    .mobile-hidden {
        display: none;
    }
    .episodes_table_kadr {
        text-align: center;
    }
    .is-visible-mobile {
        display: block;
    }

}
@media (max-width: 500px) {
    .alert-box {
        font-size: 12px; /* Adjust font size */
    }
    .rating-episodes-box {
        justify-content: center; /* Горизонтальное выравнивание */
    }

    .episodes-block__header h2 {
        text-align: center;
        width: 100%;
    }
    .rating-episodes-star {
        color: gold;
        font-size: 16px;
        margin-right: 5px;
    }

    .rating-episodes-score {
        font-size: 13px;
        color: #555;
    }
    .rating-episodes-box {
        text-align: center;
    }

    .episode-card {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 14px;
        align-items: start;
        padding: 12px 0;
    }
    .episodes-block__title {
        font-size: 17px;
    }
    .episode-card__image-wrap {
        width: 100%;
        flex: none;
    }

    .episode-card__image-wrap img {
        width: 100%;
        height: auto;
    }

    .episode-card__content {
        width: 100%;
    }

    .episode-card__top {
        align-items: flex-start;
        gap: 6px;
    }
    .unique-table-container {
        font-size: 13px;
        margin: 10px 0;
        overflow-x: auto;
    }

    .episode-card__date {
        font-size: 12px;
        color: #888;
    }

    .episode-card__name {
        font-size: 13px;
        line-height: 1.1;
    }
    .episode-card__top {
        margin-bottom: 5px;
    }


    .episode-card__desc {
        font-size: 12px;
        line-height: 1.45;
    }

    .episode-card__bottom {
        gap: 12px;
    }
}
.is-hidden-pc{
    display: none;
}

.episode-actions {
    margin: 20px auto 10px;
    display: flex;
    justify-content: center;
    gap: 12px;
}
.episode-actions a {
    padding: 8px 12px;
    background: #eee;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}
.episode-actions a {
    padding: 8px 12px;
    background: #eee;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}
.episode-actions a {
    padding: 8px 12px;
    background: #eee;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}
/* ===== ACCORDION BASE ===== */
.accordion {
    display: none;
    background: #000;
    border-radius: 0;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 213, 79, 0.85);
}

/* ===== MOBILE ONLY ===== */
@media (max-width: 768px) {
    .accordion {
        display: block;
        margin-bottom: 10px;
    }
}

/* ===== ITEM ===== */
.accordion-item {
    border-bottom: 1px solid #222;
}

/* ===== HEADER ===== */
.accordion-header {
    padding: 14px 16px;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #111;
}

/* ===== CONTENT ===== */
.accordion-content {
    background: #000;
    padding: 0 16px;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding: 10px 16px;
}

/* ===== LINKS ===== */
.accordion-content a {
    display: block;
    color: #aaa;
    padding: 6px 0;
    text-decoration: none;
    font-size: 16px;
}

.accordion-content a:hover {
    color: rgba(255, 213, 79, 0.85);
}


.serial-playlist-row {
    display: flex;
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 30px;
    margin-top: 15px;

    scrollbar-width: thin;
}

.serial-playlist-card {
    width: 170px;
    flex-shrink: 0;

    text-decoration: none;
}

.serial-playlist-thumb {
    position: relative;
    overflow: hidden;
}

.serial-playlist-thumb img {
    width: 170px;
    height: 96px;
    object-fit: cover;
    display: block;
}

.serial-playlist-play {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 38px;
    height: 38px;

    transform: translate(-50%, -50%);

    background: rgba(0,0,0,.7);

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 15px;

    transition: .2s;

    z-index: 3;
}

.serial-playlist-card:hover .serial-playlist-play {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.08);
}

.serial-playlist-number {
    position: absolute;

    bottom: 6px;
    left: 6px;

    padding: 4px 7px;

    background: rgba(0,0,0,.8);

    border-radius: 5px;

    color: #fff;
    font-size: 13px;
    font-weight: 600;

    z-index: 3;
}

@media (max-width: 768px) {

    .serial-playlist-row {
        gap: 8px;
    }

    .serial-playlist-card {
        width: 120px;
    }

    .serial-playlist-thumb img {
        width: 120px;
        height: 68px;
    }

    .serial-playlist-play {
        width: 30px;
        height: 30px;

        font-size: 12px;
    }

    .serial-playlist-number {
        right: 4px;
        bottom: 4px;

        padding: 3px 6px;

        font-size: 11px;
    }

}
@media (max-width: 468px) {

    .serial-playlist-row {
        gap: 5px;

        margin-top: 10px;
        padding-bottom: 6px;
    }

    .serial-playlist-card {
        width: 82px;
    }

    .serial-playlist-thumb {
        border-radius: 6px;
    }

    .serial-playlist-thumb img {
        width: 82px;
        height: 46px;
    }

    .serial-playlist-play {
        width: 20px;
        height: 20px;

        font-size: 9px;
    }

    .serial-playlist-number {
        right: 2px;
        bottom: 2px;
        padding: 2px 4px;
        font-size: 9px;
    }

}
.serial-main-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.serial-main-player iframe {
    width: 100%;
    height: 100%;

    border: 0;
}
/* Все сезоны */

.all-seasons-block{
    margin:20px 0;
    background:#f8f8f8;
    border:1px solid #e3e3e3;
    padding:15px;
}

.all-seasons-title{
    font-size:20px;
    font-weight:600;
    margin-bottom:15px;
    color:#333;
}

.seasons-grid{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.season-card{
    text-decoration:none;
    transition:.3s;
}

.season-card:hover{
    transform:translateY(-4px);
}

.season-poster{
    width:130px;
    height:190px;
    overflow:hidden;
    position:relative;
    box-shadow:0 4px 12px rgba(0,0,0,.2);
}

.season-poster img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.season-overlay{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    padding:10px;
    background:linear-gradient(
            transparent,
            rgba(0,0,0,.9)
    );
    text-align:center;
}

.season-overlay span{
    color:#fff;
    font-size:16px;
    font-weight:bold;
}

@media(max-width:768px){

    .season-poster{
        width:100px;
        height:145px;
    }

}