.post-singl {
    display: flex;
    gap: 20px;
    background: #14181c;
	border: 1px solid rgb(255 255 255 / 5%);
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.poster-section {
    flex: 0 0 auto;
    text-align: center;
    margin-bottom: -5px;
}
.movie-poster {
    width: 230px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.movie-title {
    font-size: 2em;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}
.original-title {
    font-size: 1.1rem;
    color: #d1d5db;
    font-style: italic;
    margin: 0;
}

.rating-votes {
    color: #9ca3af;
    font-size: 0.85rem;
}
.genres-list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    padding-bottom: 10px;
}
.carousel-wrapper {
    position: relative;
    margin: 0 -10px;
}

.recs-carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 0 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.rec-item {
    flex: 0 0 auto;
    width: 105px;
    text-decoration: none;
    color: inherit;
	aspect-ratio: 2 / 3;
    overflow: hidden;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 5px;
}
.rec-item div {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #222;
}
.rec-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.rec-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgb(0 0 0), #000000ad);
    padding: 8px;
}
.rec-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rec-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #fff;
    margin-top: 4px;
}
.rating-logo {
    width: 20px;
    height: 10px;
    object-fit: contain;
    border-radius: 2px;
}
.genre-chip {
    background: rgba(30, 58, 138, 0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9em;
    text-decoration: none;
    transition:
        background 0.3s ease,
        border-color 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.5);
}
.genre-chip:hover {
    background: rgba(30, 58, 138, 0.3);
    border-color: rgba(30, 58, 138, 0.7);
}
.genre-chip a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}
.metadata-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.95rem;
    color: #9ca3af;
}
.metadata-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.metadata-label {
    font-weight: 600;
    color: #fff;
}
.metadata-value {
    color: #d1d5db;
}
.metadata-value a {
    color: #60a5fa;
    text-decoration: none;
}
.metadata-value a:hover {
    text-decoration: underline;
    color: #93c5fd;
}
.tags-section {
    margin-top: 10px;
}
.tags-label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    display: block;
    font-size: 0.95rem;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tag-chip {
    background: rgba(30, 58, 138, 0.2);
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(30, 58, 138, 0.5);
    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}
.tag-chip:hover {
    background: rgba(30, 58, 138, 0.3);
    border-color: rgba(30, 58, 138, 0.7);
}
@media (max-width: 768px) {
    .post-singl {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .movie-poster {
        width: 80%;
        align-self: center;
        border-radius: 20px;
    }
    .info-section {
        gap: 10px;
    }
    .movie-title {
        font-size: 1.8em;
        text-align: center;
    }
    .original-title {
        text-align: center;
        display: none;
    }

    .genres-list {
        justify-content: center;
    }
}
.genre-chip,
.rating-item,
.tag-chip {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}
.d-lama .metadata-row {
    color: #9ca3af;
}
#platforms_scroller .scroller_wrap {
    padding: 2rem;
    background: #111827;
    border-radius: 1.5rem;
}
.platforms-container {
    background: #14181c;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(55, 65, 81, 0.5);

    position: relative;
    overflow: hidden;
}
.platforms-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
}
.platforms-inner {
    position: relative;
    z-index: 1;
}
#platforms_scroller .scroller {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.625rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
#platforms_scroller .scroller::-webkit-scrollbar {
    height: 6px;
}
#platforms_scroller .scroller::-webkit-scrollbar-track {
    background: 0 0;
}
#platforms_scroller .scroller::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}
.platform-card {
    flex: 0 0 auto;
    text-align: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 0.625rem;
    min-width: 120px;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    position: relative;
}
.platform-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}
.platform-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.platform-picture {
    margin-bottom: 0.5rem;
}
.platform-logo {
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border-radius: 30%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition:
        transform 0.4s ease,
        border-radius 0.3s ease;
}
.platform-logo:hover {
    transform: scale(1.1);
    border-radius: 15px;
}
.platform-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}
.platform-logo.placeholder {
    background: rgba(255, 255, 255, 0.2);
}
.platform-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    margin: 0 auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.platform-card:hover .platform-name {
    opacity: 1;
}
.platform-card::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1rem;
    height: 1rem;
    background: url(data:image/svg+xml;utf8,SVG_REPLACED) no-repeat center;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.platform-card:hover::after {
    opacity: 1;
    color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 768px) {
    #platforms_scroller .scroller_wrap,
    .platforms-container {
        padding: 1rem;
        border-radius: 1rem;
    }
    .platform-card {
        min-width: 100px;
    }
    .platform-logo {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .platform-name {
        max-width: 80px;
    }
}
.d-lama #platforms_scroller .scroller_wrap {
    background: #111827;
}

.d-lama .platform-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.d-lama .platform-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
.d-lama .platform-logo.placeholder {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}
.d-lama #platforms_scroller * {
    font-family: Inter, sans-serif;
}
.seasons-section h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #000;
}
.seasons-accordion {
    background: #fff;
    border-radius: 4px;
}
.seasons-item {
    margin-bottom: 10px;
}
.seasons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
}
.seasons-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}
.seasons-left {
    display: flex;
    align-items: center;
    flex: 1;
}
.seasons-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}
.seasons-expand {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    background: url(data:image/svg+xml;utf8,SVG_REPLACED) no-repeat center;
    background-size: contain;
    transition: transform 0.3s;
}
.seasons-expand.opened {
    transform: rotate(180deg);
}
.seasons-underline {
    height: 2px;
    background: #eee;
}
.seasons-underline-left {
    height: 100%;
    background: #007bff;
    transition: width 0.3s;
}
.seasons-overview {
    padding: 15px;
    font-size: 14px;
    color: #333;
}
.madripple {
    position: relative;
    overflow: hidden;
}
.madripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1);
    pointer-events: none;
    transition:
        transform 0.5s,
        opacity 1s;
}
.madripple:active::after {
    transform: scale(100);
    opacity: 1;
    transition: 0s;
}
.d-lama .seasons-overview,
.d-lama .seasons-section h2,
.d-lama .seasons-title {
    color: #fff;
}
.d-lama .seasons-accordion {
    background: #222;
}
.d-lama .seasons-header {
    background: #333;
    border-bottom-color: #555;
}
.d-lama .seasons-underline {
    background: #555;
}
.d-lama .seasons-underline-left {
    background: #66b3ff;
}
.d-lama .seasons-expand {
    background: url(data:image/svg+xml;utf8,SVG_REPLACED) no-repeat center;
    background-size: contain;
}
:root {
    --ico-dropdown: url("data:image/svg+xml;utf8,SVG_REPLACED");
    --ico-shape-plus: url("data:image/svg+xml;utf8,SVG_REPLACED");
    --ico-shape-minus: url("data:image/svg+xml;utf8,SVG_REPLACED");
}
.faq-section h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #000;
}

.d-lama div.faq-section {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 20px;
    margin: 5px;
    background: #181c20;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin-top: 8px;
    color: #fff;
}
.faq-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.faq-minimize {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.faq-minimize:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.d-lama .faq-minimize {
    background: rgb(30 38 41);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.2);
}
.d-lama .faq-minimize:hover {
    background: rgb(30 38 41);
}
.faq-minimize-text {
    font-size: 14px;
    color: #fff;
    margin-right: 8px;
}
.faq-minimize-icon {
    width: 16px;
    height: 16px;
    background: var(--ico-dropdown) no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
}
.d-lama .faq-minimize-icon {
    filter: brightness(0) invert(1);
}
.faq-minimize-icon.minimized {
    transform: rotate(180deg);
}
.faq-questions-container {
    display: none;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.faq-questions-container:not(.minimized) {
    display: block;
}
.faq-accordion {
    background: 0 0;
    border-radius: 8px;
    overflow: hidden;
}
.faq-item {
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(221, 221, 221, 0.5);
    background: rgba(249, 249, 249, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.faq-header:hover {
    background: rgba(249, 249, 249, 1);
    transform: translateX(4px);
}
.d-lama .faq-header {
    background: rgb(30 38 41);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #ddd;
}
.d-lama .faq-header:hover {
    background: rgb(30 38 41);
    color: #fff;
}
.faq-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}
.faq-left {
    display: flex;
    align-items: center;
    flex: 1;
}
.faq-question {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    transition: color 0.3s ease;
}
.faq-expand {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    background: url(data:image/svg+xml;utf8,SVG_REPLACED) no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
}
.d-lama .faq-expand {
    background: url(data:image/svg+xml;utf8,SVG_REPLACED) no-repeat center;
}
.faq-expand.opened {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 15px 20px;
    font-size: 14px;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 0 0 6px 6px;
    animation: slideDown 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes slideDown {
    from {
        opacity: 0;
        height: 0;
        padding: 0;
    }
    to {
        opacity: 1;
        height: auto;
        padding: 15px 20px;
    }
}
.d-lama .faq-answer {
    background: rgb(34 52 61 / 24%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ddd;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.faq-answer-content {
    margin: 0;
}
.madripple {
    position: relative;
    overflow: hidden;
}
.madripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(59, 130, 246, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1);
    pointer-events: none;
    transition:
        transform 0.5s,
        opacity 1s;
}
.madripple:active::after {
    transform: scale(100);
    opacity: 1;
    transition: 0s;
}
.d-lama .madripple::after {
    background: rgb(83 114 165 / 30%);
}
.faq-underline {
    height: 2px;
    background: rgba(221, 221, 221, 0.5);
    overflow: hidden;
    margin-top: 4px;
}
.d-lama .faq-underline {
    background: rgba(255, 255, 255, 0.1);
}
.faq-underline-left {
    height: 100%;
    background: #3b82f6;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 1px;
}
.faq-header.active .faq-underline-left,
.faq-header:hover .faq-underline-left {
    width: 100%;
}
.d-lama .faq-underline-left {
    background: #3b82f6;
}
.d-lama .faq-answer,
.d-lama .faq-minimize-text,
.d-lama .faq-question,
.d-lama .faq-section h2 {
    color: #fff;
}
.d-lama .faq-accordion {
    background: 0 0;
}
@media (max-width: 767px) {
    .d-lama div.faq-section,
    div.faq-section {
        padding: 16px;
        margin: 12px;
        border-radius: 8px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .faq-question {
        font-size: 16px;
    }
    .faq-answer {
        font-size: 13px;
        padding: 12px 16px;
    }
    .faq-minimize-text {
        font-size: 12px;
    }
    .faq-header {
        padding: 12px 16px;
    }
    .d-lama .faq-header:hover {
        transform: none;
    }
}
.episodes-preview-block {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    background: 0 0;
    justify-content: flex-start;
}
.click-svg {
    display: block;
    width: 100%;
    height: auto;
}
@media (min-width: 769px) {
    .episodes-preview-block {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
}
@media (max-width: 768px) {
    .episodes-preview-block {
        flex-direction: column;
        gap: 16px;
    }
}
.ratings {
    display: flex;
    gap: 5px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 10px 0;
}

.rating-item {
    display: flex;
    align-items: center;
    background: #111;
    border-radius: 8px;
    padding: 0px 10px 0px 0;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    min-height: 48px;
}



.rating-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 10px;
}

.rating-left {
    flex-shrink: 0;
}

.rating-logo {
    height: 30px;
    width: auto;
    display: block;
    border-radius: 2px;
}

.rating-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    align-items: flex-start;
}

.rating-score {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    white-space: nowrap;
}

.rating-votes {
    font-size: 0.8rem;
    opacity: 0.8;
    white-space: nowrap;
}

.nmtw-rating-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nmtw-rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 25px;
    padding: 0 5px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.nmtw-rating-text {
    font-size: 0.92rem;
    font-weight: 500;
    opacity: .85;
}

/* Score colors */
.nmtw-excellent {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.nmtw-good {
    background: linear-gradient(135deg, #84cc16, #a3e635);
    color: #111;
}

.nmtw-mixed {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #111;
}

.nmtw-bad {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* Mobile */
@media (max-width: 768px) {
    .nmtw-rating-wrap {
        gap: 8px;
    }

    .nmtw-rating-badge {
        min-width: 28px;
        height: 20px;
        font-size: 0.8rem;
        padding: 0 5px;
    }

    .nmtw-rating-text {
        font-size: 0.85rem;
    }
}

.rating-item.is-empty .rating-logo {
    filter: grayscale(50%);
    opacity: 0.45;
}

.rating-item.is-empty .rating-score,
.rating-item.is-empty .rating-votes {
    color: rgba(255,255,255,.45);
}

/* Metacritic score styles */
.mc-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    padding: 0 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
}

.mc-good {
    background: #00ce7a;
    color: #000;
}

.mc-mixed {
    background: #ffcc33;
    color: #000;
}

.mc-bad {
    background: #d65a5be6;
    color: #fff;
}



/* Mobile */
@media (max-width: 768px) {
    .ratings {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
		gap:0px;
    }

    .ratings::-webkit-scrollbar {
        display: none;
    }

    .rating-item {
        flex: 0 0 auto;
    }

    .rating-logo {
        height: 26px;
    }

    .rating-score {
        font-size: 0.95rem;
    }

    .rating-votes {
        font-size: 0.75rem;
    }

    /* Упрощаем Metacritic на мобиле */
    .mc-score {
        min-width: auto;
        height: auto;
        padding: 0;
        border-radius: 0;
        background: none !important;
    }

    .mc-good {
        color: #00ce7a;
    }

    .mc-mixed {
        color: #ffcc33;
    }

    .mc-bad {
        color: #ff4e50;
    }

    .mc-na {
        color: rgba(255,255,255,.45);
    }
}
#similar {
    margin:0px 15px;
}
.video-scroll-container {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 3px 5px 20px;
    scrollbar-width: thin;
    scrollbar-color: #333 #0c0f11;
}
.video-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.video-scroll-container::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 10px;
}
.video-item {
    flex: 0 0 auto;
    width: 220px;

    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.video-thumb-wrap:hover {
         transform: scale(1.02); 
        transition:
        transform 0.25s ease;
}
.video-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #222;
}
.video-info {
    padding: 10px;
    color: #fff;
}
.video-info h3 {
    font-size: 14px;
    margin: 0 0 6px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-info p {
    font-size: 12px;
    color: #aaa;
    margin: 0;
}
@media (max-width: 768px) {
    .video-item {
        width: 180px;
    }
    .video-item img {
        height: 120px;
    }
}
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.video-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.video-popup-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}
.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}
@media (max-width: 768px) {
    .video-close {
        top: -30px;
        font-size: 28px;
    }
}


/* Базовые настройки для предотвращения переполнения */
.summary-block,
.about-this-wrap,
.tab-container {
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Основной блок информации */
.summary-block {
    color: #d3d3d3;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.6;

}

/* Таблица - адаптивная */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Фиксируем布局 для контроля ширины */
}

.summary-table tbody {
    display: table;
    width: 100%;
}

.summary-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: table-row;
}

.summary-table tr:last-child {
    border-bottom: none;
}

/* Ячейки таблицы */
.summary-table td {
    padding: 12px 8px;
    vertical-align: top;
    display: table-cell;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-label {
    color: #b0b0b0;
    width: 35%; /* Процент вместо фиксированной ширины */
    min-width: 120px;
    max-width: 200px;
    padding: 12px 12px 12px 0;
    font-weight: 600;
    font-size: 14px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.summary-value {
    color: #dedede;
    padding: 12px 0;
    width: 65%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.5;
}

/* Ссылки в таблице */
.keyword-link,
.summary-link {
    color: #5cc3ff;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline;
    word-break: break-word;
    overflow-wrap: break-word;
}

.keyword-link:hover,
.summary-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Блок описания */
.about-this-wrap {
    padding: 20px 0 0 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-this-main-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.about-this-main-title h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.about-this-content {
    font-size: 15px;
    line-height: 1.7;
    color: #cfcfcf;
}

.about-this-content p {
    margin: 0 0 15px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.about-this-content-inner {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Табы */
.tab-container {
    margin: 20px 0 30px 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgb(21 23 25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tab-menu {
    display: flex;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    -webkit-overflow-scrolling: touch;
}

.tab-menu::-webkit-scrollbar {
    height: 4px;
}

.tab-menu::-webkit-scrollbar-track {
    background: transparent;
}

.tab-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.tab {
    flex: 1;
    min-width: 140px;
    cursor: pointer;
    color: #9e9e9e;
    padding: 14px 20px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    user-select: none;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.tab.active {
    background: rgba(26, 28, 30, 0.9);
    color: #fff;
    font-weight: 600;
    border-bottom-color: #5cc3ff;
}

.tab-pane {
    display: none;
    padding: 20px;
}

.tab-pane.active {
    display: block;
}

.tab-content {
    padding: 0;
}

/* Рейтинг */
.summary-rating {
    border: 1px solid rgba(222, 222, 222, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* Награды */
.summary-value .award-oscar { color: #facc15; font-weight: 700; }
.summary-value .award-emmy { color: #60a5fa; font-weight: 700; }
.summary-value .award-bafta { color: #f59e0b; font-weight: 700; }
.summary-value .award-globe { color: #4ade80; font-weight: 700; }

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .summary-label {
        width: 40%;
        min-width: 100px;
    }
    
    .summary-value {
        width: 60%;
    }
}
/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .summary-block {
        padding: 15px;
        font-size: 14px;
        border-radius: 8px;
    }

    /* Таблица */
    .summary-table {
        width: 100%;
        display: table;
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    .summary-table tbody {
        display: table-row-group;
    }

    /* Каждая строка = карточка */
    .summary-table tr {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        margin-bottom: 12px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .summary-table td {
        padding: 0;
        text-align: left !important;
        display: block;
        max-width: 100%;
    }

    /* LABEL слева */
    .summary-label {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
        padding: 0;
        margin: 0;
        border: none;
        color: #fff;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.4;
    }

    /* VALUE справа */
    .summary-value {
        flex: 1;
        min-width: 0;
        width: auto;
        padding: 0;
        color: #d3d3d3;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .tab {
        min-width: 120px;
        padding: 12px 16px;
        font-size: 13px;
    }

    .tab-menu {
        padding: 0 10px;
    }

    .tab-pane {
        padding: 15px;
    }

    .about-this-wrap {
        padding: 15px 0 0 0;
    }

    .about-this-main-title h3 {
        font-size: 18px;
    }

    .about-this-content {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .summary-block {
        padding: 12px;
        font-size: 13px;
    }

    .tab {
        min-width: 100px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .summary-table tr {
        gap: 10px;
        padding: 12px;
        margin-bottom: 10px;
    }

    .summary-label {
        width: 95px;
        min-width: 95px;
        max-width: 95px;
        font-size: 11px;
    }

    .summary-value {
        font-size: 13px;
    }

    .about-this-main-title h3 {
        font-size: 16px;
    }

    .about-this-content {
        font-size: 13px;
    }
}

/* Утилиты для длинных слов и ссылок */
.summary-value a,
.keyword-link,
.summary-link {
    display: inline;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Предотвращение горизонтального скролла */
.summary-block *,
.about-this-wrap *,
.tab-container * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Для списков тегов/ключевых слов */
.summary-value .keyword-link {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 2px 6px;
    background: rgba(92, 195, 255, 0.1);
    border-radius: 4px;
    font-size: 13px;
}

/* Адаптация для темной темы (d-lama) 
.d-lama .summary-block {
    background: rgba(20, 24, 28, 0.7);

}*/



.d-lama .tab.active {
background: rgb(18 22 27);
}



/* ПРОШЛЫЙ И СЛЕД ЕПИЗОД */
.episodes-preview-block {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    background: transparent; /* Если нужно, подкорректируй */
    justify-content: flex-start; /* Выравнивание слева; для центрирования — center */
}

.episode-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 calc(50% - 8px);
    min-width: 280px;
    transition: background-color 0.2s;
}

.episode-card.last-aired .episode-header,
.episode-card.next-aired .episode-header {
    padding: 8px 12px;
    background: #252535;
    color: #cacaca;
    font-size: 13px;
    font-weight: 500;
}

.episode-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.episode-link:hover {
    background-color: #222;
}

.episode-content {
    display: flex;
    gap: 12px;
    padding: 10px;
    position: relative;
}

.episode-image {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 4px;
}

.episode-info {
    flex: 1;
    min-width: 0;
}

.episode-date {
    font-size: 12px;
    color: #6ba8ff;
    font-weight: 500;
}

.episode-title {
    font-weight: 500;
    font-size: 14px;
    margin: 4px 0;
    color: #fff;
}

.episode-details {
    font-size: 13px;
    color: #888;
}

.mobile-click-indicator {
    position: absolute;
    top: 33%;
    right: 10px;
    width: 20px;
    height: 16px;
    opacity: 0.8;
    display: none;
}

.click-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Десктоп: одна строка без переноса, карточки всегда ~50% (даже если одна) */
@media (min-width: 769px) {
    .episodes-preview-block {
        flex-wrap: nowrap;
        justify-content: flex-start; /* Или center для центрирования одиночной карточки */
    }
    
    .episode-card {
        flex: 0 0 calc(50% - 8px); /* Фиксированная ширина ~50%, не растягивается */
        min-width: 0; /* Убираем min-width, чтобы не было overflow на узких десктопах */
    }
}

/* Мобильные: столбцом, каждая на своей строке */
@media (max-width: 768px) {
    .episodes-preview-block {
        flex-direction: column;
        gap: 16px;
    }
    
    .episode-card {
        flex: none;
        width: 100%;
        min-width: unset;
    }
    
    .mobile-click-indicator {
        display: block;
    }
}
/* КОНЕЦ ПРОШЛЫЙ И СЛЕД ЕПИЗОД */
.placeholder-svg {
    width: 60px;
    height: 60px;
    color: rgba(161, 170, 170, 0.48);
    transition: color 0.2s ease;
}

.episode-link:hover .placeholder-svg {
    color: rgba(161, 170, 170, 0.8);
}


.season-nav::-webkit-scrollbar { display: none; }
.season-arrow {
    transition: background-color .2s, transform .1s;
}
.season-arrow:hover { background-color: rgba(150,150,150,.8); }
.season-arrow:active { transform: translateY(-50%) scale(.95); }
.profit-positive { color: #4ade80; font-weight: 600; }
.profit-negative { color: #ef4444; font-weight: 600; }

/* Карусель доп рекомендаций и Популярных */
/* Твои родные стили — они уже работают везде на сайте */
.carousel-fade-left, .carousel-fade-right {
    position: absolute; top: 0; bottom: 0; width: 120px; pointer-events: none; z-index: 5;
}
.carousel-fade-left { left: -1px; background: linear-gradient(to right, #0c0f11, transparent); }
.carousel-fade-right { right: -1px; background: linear-gradient(to left, #0c0f11, transparent); }

.carousel-nav-btn {
    position: absolute;
    height: 3.5rem; width: 1.5rem;
    border-radius: 16rem;
    border: none;
    top: 50%; transform: translateY(-50%);
    background-color: rgba(128, 128, 128, 0.6);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.carousel-nav-btn:hover { background-color: rgba(200, 200, 200, 0.8); transform: translateY(-50%) scale(1.1); }
.carousel-nav-btn.left { left: 10px; }
.carousel-nav-btn.right { right: 10px; }
.glightbox-clean .gclose {
    width: 52px;
    height: 52px;
    top: 15px;
    right: 10px;
    position: absolute;
}
.glightbox-clean .gclose svg {
    width: 30px;
    height: auto;
}

/* конец Карусель доп рекомендаций и Популярных */
.div-table-row:hover{
    background:#222;
}

.summary-head{
    display:flex;
    
    justify-content:space-between;
    gap:20px;

    margin-bottom:20px;
}

.summary-main-logo{
    display:flex;
    align-items:flex-start;

    max-width:420px;

    text-decoration:none;
}


.summary-main-logo img{
    display:block;

    width:auto;
    height:auto;

    max-width:100%;
    max-height:60px;
    opacity:.5;
    padding: 10px 5px;

    object-fit:contain;
transition:opacity .2s ease;
    filter:drop-shadow(0 2px 10px rgba(0,0,0,.6));
}
.summary-main-logo img:hover {
    opacity: 1;
}

.summary-network-logo{
    flex-shrink:0;

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:.5;
    transition:opacity .2s ease;
}

.summary-network-logo:hover{
    opacity:1;
}

.summary-network-logo img{
    display:block;

    max-width:140px;
    max-height:60px;

    object-fit:contain;
    padding: 10px 5px;

    filter: brightness(0) invert(1);
        border-radius: 1px;
}
@media (max-width:768px){

    .summary-head{
        flex-direction:row;

    }

    .summary-network-logo{
        margin-top:5px;
    }

    .summary-main-logo img{
        max-height:60px;
    }

}
.d-lama .block-sidebar, .d-lama .sb_block:first-child {
    margin-top:0px;
}
.d-lama .sidebar:first-child {
     margin-top: 0px!important; 
}