/**
 * Show info — mockup layout
 *
 * Grid:
 *   [ meta (wide)  | poster ]
 *   [ chars (wide) | story  ]
 */

.show-info {
    --show-bg: #0a1016;
    --show-bg-rgb: 10, 16, 22;
    --show-surface: #111821;
    --show-line: rgba(255, 255, 255, 0.08);
    --show-text: #eef2f8;
    --show-muted: #8a96a8;
    --show-accent: #00bcd4;
    --show-accent-dim: #0097a7;
    --show-accent-rgb: 0, 188, 212;
    --show-gold: #f0c14d;
    --show-poster-w: 272px;
    --show-radius: 12px;
    --show-gap: 16px;

    color: var(--show-text);
    background: var(--show-bg);
    font-family: NeoSansArabic, Arial, sans-serif;
    max-width: 100%;
    overflow-x: clip;
}

.show-info--section {
    background: var(--show-bg);
    padding-bottom: 40px;
}

.show-info__crumbs-bar {
    position: relative;
    z-index: 3;
    padding: 10px 0 9px;
    background: var(--show-bg);
    border-bottom: 1px solid var(--show-line);
}

.show-info__crumbs-inner {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.show-info__crumbs {
    margin: 0;
    min-width: 0;
}

.show-info__crumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.45;
    color: var(--show-muted);
    direction: rtl;
}

.show-info__crumbs-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex: 0 1 auto;
}

.show-info__crumbs-item:not(:last-child)::after {
    content: '/';
    flex-shrink: 0;
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.show-info__crumbs-link,
.show-info__crumbs-current {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.show-info__crumbs-link {
    color: var(--show-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.show-info__crumbs-link:hover {
    color: var(--show-accent);
}

.show-info__crumbs-current {
    color: var(--show-text);
    font-weight: 600;
}

.show-info__hero-wrap {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 460px;
}

.show-info__bg {
    display: none;
}

.show-info__hero-wrap--has-bg .show-info__bg {
    display: block;
    position: absolute;
    inset: 0;
    background-image: var(--show-info-bg);
    background-position: center 22%;
    background-size: cover;
}

.show-info__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left, rgba(10, 16, 22, 0.92) 0%, rgba(10, 16, 22, 0.55) 38%, transparent 68%),
        linear-gradient(to top, #0a1016 0%, rgba(10, 16, 22, 0.88) 38%, rgba(10, 16, 22, 0.35) 100%);
}

.show-info__hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: 460px;
    padding: 48px 15px 36px;
}

.show-info__hero-row {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
    direction: ltr;
}

.show-info__hero-row--has-poster {
    justify-content: space-between;
}

.show-info__hero {
    direction: rtl;
    flex: 1;
    min-width: 0;
    text-align: right;
}

.show-info__hero-row--has-poster .show-info__hero {
    max-width: none;
}

.show-info__poster--hero {
    flex: 0 0 var(--show-poster-w);
    margin: 0;
    position: relative;
    z-index: 3;
    overflow: hidden;
    border-radius: var(--show-radius);
}

.show-info__poster--hero .show-info__poster-img {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    border: 1px solid var(--show-line);
}

.show-info__container {
    padding: 20px 15px 40px;
    display: flex;
    flex-direction: column;
    gap: var(--show-gap);
    max-width: 100%;
    box-sizing: border-box;
}

.show-info__container--watch {
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: var(--show-gap);
    max-width: 100%;
    box-sizing: border-box;
}

.ap-single-wrap {
    max-width: 100%;
    overflow-x: clip;
}

.show-info__title-jp {
    margin: 0 0 4px;
    font-size: clamp(2.1rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.show-info__title-en {
    margin: 0 0 14px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.8);
}

.show-info__excerpt {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.85;
    color: #b2bcc8;
    max-height: 120px;
    overflow-y: auto;
    padding-left: 10px;
}

.show-info__excerpt::-webkit-scrollbar {
    width: 4px;
}

.show-info__excerpt::-webkit-scrollbar-track {
    background: var(--show-line);
    border-radius: 4px;
}

.show-info__excerpt::-webkit-scrollbar-thumb {
    background: var(--show-line);
    border-radius: 4px;
}

.show-info__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.show-info__stat {
    flex: 1 1 calc(25% - 8px);
    min-width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid var(--show-line);
    text-align: center;
}

.show-info__stat i {
    font-size: 13px;
    color: var(--show-accent);
}

.show-info__stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
}

.show-info__stat--rating i,
.show-info__stat--rating .show-info__stat-value {
    color: var(--show-gold);
}

.show-info__stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--show-muted);
}

.show-info__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.show-info__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid var(--show-line);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.show-info__btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.show-info__btn--primary i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 9px;
}

.show-info__btn--primary {
    color: #fff;
    background: var(--show-accent);
    border-color: var(--show-accent);
}

.show-info__btn--primary:hover {
    background: var(--show-accent-dim);
    border-color: var(--show-accent-dim);
    color: #fff;
}

.show-info__btn--ghost i {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 10px;
}

.show-info__btn--ghost {
    color: var(--show-text, #fff);
    background: rgba(var(--show-bg-rgb), 0.25);
    border-color: var(--show-accent);
}

.show-info__btn--ghost:hover {
    background: rgba(0, 188, 212, 0.12);
    color: var(--show-text, #fff);
}

.show-info__poster-mal {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    padding: 14px 12px 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.82) 100%);
    pointer-events: none;
}

.show-info__mal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    direction: rtl;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.show-info__mal-link-text {
    flex: 0 1 auto;
}

.show-info__mal-link-icon {
    flex-shrink: 0;
    font-size: 14px;
    opacity: 0.95;
}

.show-info__mal-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
    transform: translateY(-1px);
}

.show-info__grid {
    direction: rtl;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "meta"
        "chars";
    gap: var(--show-gap);
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.show-info__card--meta,
.show-info__card--chars,
.show-info__card--story {
    direction: rtl;
}

.show-info__poster {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--show-radius);
}

.show-info__poster-img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--show-radius);
}

.show-info__card--meta {
    grid-area: meta;
}

.show-info__card--chars {
    grid-area: chars;
}

.show-info__card--story {
    grid-area: story;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.show-info__card {
    padding: 18px 20px;
    border-radius: var(--show-radius);
    background: var(--show-surface);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.show-info__card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--show-text, #fff);
}

.show-info__card-head--inline {
    margin-bottom: 0;
}

.show-info__card-head i {
    color: var(--show-accent);
    font-size: 14px;
}

/* Meta */
.show-info__meta-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    direction: rtl;
    min-width: 0;
    width: 100%;
}

.show-info__meta-col {
    margin: 0;
    min-width: 0;
}

.show-info__meta-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--show-line);
    direction: rtl;
    min-width: 0;
}

.show-info__meta-col .show-info__meta-item:last-child {
    border-bottom: 0;
}

.show-info__meta-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--show-muted);
    flex: 0 1 42%;
    min-width: 0;
}

.show-info__meta-label span {
    overflow-wrap: anywhere;
}

.show-info__meta-label i {
    width: 14px;
    text-align: center;
    font-size: 11px;
    color: var(--show-accent);
}

.show-info__meta-value {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--show-text, #eef2f8);
    text-align: right;
    direction: rtl;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    flex: 1 1 50%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.show-info__link {
    text-decoration: none;
    color: var(--show-text, #eef2f8);
    transition: color 0.2s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.show-info__link:hover {
    color: var(--show-accent);
}

.show-info__sep {
    color: var(--show-muted);
}

/* Story */
.show-info__story {
    flex: 1;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.9;
    color: var(--show-muted, #a8b2c2);
    text-align: justify;
    max-height: 280px;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: var(--show-accent) transparent;
}

.show-info__story p {
    margin: 0 0 10px;
}

.show-info__story p:last-child {
    margin-bottom: 0;
}

/* Characters — shared */
.show-info__chars-track-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.show-info__chars-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--show-line);
    border-radius: 50%;
    background: rgba(var(--show-bg-rgb), 0.92);
    color: var(--show-text);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.show-info__chars-btn:hover {
    background: var(--show-accent);
    border-color: var(--show-accent);
    color: #fff;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 6px 16px rgba(var(--show-accent-rgb), 0.35);
}

.show-info__chars-btn--prev {
    right: 0;
}

.show-info__chars-btn--next {
    left: 0;
}

.ap-chars-track {
    display: flex;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    scrollbar-width: none;
}

.ap-chars-track::-webkit-scrollbar {
    display: none;
}

.ap-chars-track img,
.ap-chars-track a {
    user-select: none;
    -webkit-user-drag: none;
}

.ap-char-mini {
    display: flex;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ap-char-avatar-link {
    display: block;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}

.ap-char-avatar-link:hover {
    border-color: var(--show-accent, #00bcd4);
}

.ap-char-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ap-char-placeholder-circle {
    width: 100%;
    height: 100%;
    background: var(--show-surface, #222);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--show-muted, #555);
}

.ap-va-badge {
    border-radius: 50%;
    border: 2px solid var(--show-surface, #111821);
    background: var(--show-surface, #222);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.ap-va-badge:hover {
    transform: scale(1.15);
}

.ap-va-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ap-va-placeholder-badge {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--show-muted, #777);
    font-size: 10px;
}

.ap-text-group {
    min-width: 0;
}

.ap-char-name,
.ap-va-name {
    display: block;
    max-width: 100%;
    text-decoration: none;
}

.ap-char-name {
    font-weight: 700;
    color: var(--show-text, #e8edf5);
    transition: color 0.2s ease;
}

.ap-char-name:hover {
    color: var(--show-accent, #00bcd4);
}

.ap-va-name {
    color: var(--show-muted, #8a96a8);
    transition: color 0.2s ease;
}

.ap-va-name:hover {
    color: var(--show-text, #fff);
}

.ap-char-role {
    display: block;
    font-size: 10px;
    color: var(--show-muted, #8a96a8);
}

/* Characters — desktop carousel */
@media (min-width: 768px) {
    .show-info__chars-track-wrap {
        overflow: hidden;
        padding-inline: 38px;
    }

    .ap-chars-track {
        flex-direction: row;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        padding: 12px 2px 8px;
        flex: 1;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        direction: rtl;
    }

    .ap-char-mini {
        flex-direction: column;
        align-items: center;
        width: 78px;
        flex: 0 0 78px;
        scroll-snap-align: start;
    }

    .ap-char-mini:hover {
        transform: translateY(-5px);
    }

    .ap-avatar-group {
        position: relative;
        width: 70px;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 8px;
    }

    .ap-char-avatar-link {
        width: 70px;
        height: 70px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    .ap-char-placeholder-circle {
        font-size: 24px;
    }

    .ap-va-row {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin-top: -12px;
        z-index: 2;
        flex-wrap: wrap;
        width: 100%;
    }

    .ap-va-badge {
        width: 26px;
        height: 26px;
    }

    .ap-text-group {
        text-align: center;
        width: 100%;
    }

    .ap-char-name,
    .ap-va-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ap-char-name {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .ap-va-name {
        font-size: 10px;
    }
}

/* Characters — mobile list */
@media (max-width: 767px) {
    .show-info__card--chars .show-info__card-head {
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--show-line);
    }

    .show-info__chars-track-wrap {
        position: relative;
        overflow: hidden;
        padding-inline: 0;
    }

    .show-info__chars-track-wrap::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 32px;
        pointer-events: none;
        z-index: 2;
        background: linear-gradient(to top, var(--show-surface) 0%, transparent 100%);
    }

    .show-info__chars-btn {
        display: none;
    }

    .ap-chars-track {
        flex-direction: column;
        gap: 8px;
        max-height: min(340px, 48vh);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        padding: 0 2px 8px;
        direction: rtl;
        scrollbar-width: thin;
        scrollbar-color: var(--show-accent) transparent;
    }

    .ap-chars-track::-webkit-scrollbar {
        display: block;
        width: 4px;
    }

    .ap-chars-track::-webkit-scrollbar-track {
        background: transparent;
    }

    .ap-chars-track::-webkit-scrollbar-thumb {
        background: rgba(var(--show-accent-rgb), 0.55);
        border-radius: 4px;
    }

    .ap-char-mini {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: 100%;
        flex: 0 0 auto;
        padding: 10px 12px;
        border: 1px solid var(--show-line);
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.18);
        text-align: right;
    }

    .ap-char-mini:hover {
        transform: none;
        border-color: rgba(var(--show-accent-rgb), 0.35);
        background: rgba(var(--show-accent-rgb), 0.06);
    }

    .ap-avatar-group {
        width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .ap-char-avatar-link {
        width: 56px;
        height: 56px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    }

    .ap-char-placeholder-circle {
        font-size: 20px;
    }

    .ap-va-row {
        display: none;
    }

    .ap-text-group {
        flex: 1;
        text-align: right;
    }

    .ap-char-name,
    .ap-va-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.45;
    }

    .ap-char-name {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .ap-va-name {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .ap-va-name:last-child {
        margin-bottom: 0;
    }

    .ap-char-role {
        font-size: 11px;
    }
}

/* Episodes Chunk Navigation */
.show-info__episodes {
    padding: 18px 20px;
    border-radius: var(--show-radius);
    background: var(--show-surface);
    border: 1px solid var(--show-line);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.show-info__episodes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--show-line);
    direction: rtl;
}

.show-info__episodes-all {
    font-size: 11px;
    font-weight: 700;
    color: var(--show-accent);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(var(--show-bg-rgb), 0.35);
    border: 1px solid var(--show-line);
}

.show-info__tabs-nav {
    display: flex;
    gap: 8px;
    padding: 10px 15px;
    background: var(--sec-title-panel-bg, rgba(0, 0, 0, 0.05));
    border-bottom: 1px solid var(--show-line);
}

.show-info__episodes-all:hover {
    color: var(--show-text, #fff);
    border-color: var(--show-accent);
}

.show-info__episodes-search {
    margin-bottom: 10px;
}

.show-info__episodes-input {
    width: 100%;
    max-width: 280px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--show-line);
    background: var(--show-bg, #0c1218);
    color: var(--show-text, #fff);
    font-family: inherit;
    font-size: 13px;
}

.show-info__episodes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 0 32px;
    direction: rtl;
}

.show-info__episodes--preview .show-info__ep--extra {
    display: none;
}

.show-info__episodes--preview:target .show-info__ep--extra {
    display: grid;
}

.show-info__episodes--preview:target .show-info__episodes-grid--preview {
    grid-auto-flow: row;
    grid-template-rows: none;
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* Custom scrollbar for targeted preview grid */
.show-info__episodes--preview:target .show-info__episodes-grid--preview::-webkit-scrollbar {
    width: 6px;
}
.show-info__episodes--preview:target .show-info__episodes-grid--preview::-webkit-scrollbar-track {
    background: rgba(var(--show-line-rgb), 0.5);
    border-radius: 10px;
}
.show-info__episodes--preview:target .show-info__episodes-grid--preview::-webkit-scrollbar-thumb {
    background: var(--show-accent);
    border-radius: 10px;
}

.show-info__episodes--preview .show-info__episodes-search {
    display: none;
}

.show-info__episodes--preview:target .show-info__episodes-search {
    display: block;
}

.show-info__episodes--preview:target .show-info__episodes-all {
    display: none;
}

.show-info__episodes-grid--all {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-template-rows: none !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    column-gap: 20px !important;
    row-gap: 10px !important;
    max-height: min(420px, 60vh) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 5px 10px !important;
    flex: 0 1 auto;
    min-height: 0;
}

/* Custom scrollbar for episodes grid */
.show-info__episodes-grid--all::-webkit-scrollbar {
    width: 6px;
}
.show-info__episodes-grid--all::-webkit-scrollbar-track {
    background: rgba(var(--show-line-rgb), 0.5);
    border-radius: 10px;
}
.show-info__episodes-grid--all::-webkit-scrollbar-thumb {
    background: var(--show-accent);
    border-radius: 10px;
}

.show-info__ep {
    display: grid;
    grid-template-columns: auto 1px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--show-line);
    direction: rtl;
}

.show-info__ep:hover {
    background: rgba(var(--show-accent-rgb, 0, 188, 212), 0.04);
}

.show-info__ep--current {
    background: rgba(var(--show-accent-rgb, 0, 188, 212), 0.1);
    border-right: 3px solid var(--show-accent);
    border-radius: 4px;
}

.show-info__ep--current .show-info__ep-num {
    color: var(--show-text);
}

.show-info__ep--current .show-info__ep-title {
    color: var(--show-accent);
}

.show-info__ep-num {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--show-accent);
    line-height: 1;
    min-width: 34px;
    text-align: center;
}

.show-info__ep-sep {
    width: 1px;
    height: 28px;
    background: var(--show-line);
    justify-self: center;
}

.show-info__ep-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--show-text, #e8edf5);
    text-decoration: none;
    margin-bottom: 2px;
    line-height: 1.4;
}

.show-info__ep-title:hover {
    color: var(--show-accent);
}

.show-info__ep-dur {
    display: block;
    font-size: 11px;
    color: var(--show-muted);
}

.show-info__ep-actions {
    display: flex;
    gap: 6px;
    direction: ltr;
}

.show-info__ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--show-line);
    background: rgba(var(--show-bg-rgb), 0.2);
    color: var(--show-muted);
    font-size: 10px;
    text-decoration: none;
}

.show-info__ep-btn:hover {
    color: var(--show-accent);
    border-color: rgba(0, 188, 212, 0.45);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 992px) {
    .show-info__hero-row {
        flex-direction: column-reverse;
        align-items: center;
        direction: rtl;
    }

    .show-info__hero-row--has-poster .show-info__hero {
        width: 100%;
        text-align: center;
    }

    .show-info__stats {
        justify-content: center;
    }

    .show-info__actions {
        justify-content: center;
    }

    .show-info__poster--hero {
        flex: 0 0 auto;
        width: min(var(--show-poster-w), 58vw);
    }

    .show-info__grid {
        direction: rtl;
        grid-template-columns: 1fr;
        grid-template-areas:
            "meta"
            "chars";
    }

    .show-info__episodes-grid {
        grid-auto-flow: row;
        grid-template-rows: none;
    }
}

/* Meta — mobile tile grid */
@media (max-width: 767px) {
    .show-info__card--meta {
        padding: 14px 12px;
    }

    .show-info__card--meta .show-info__card-head {
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--show-line);
    }

    .show-info__meta-cols {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .show-info__meta-col {
        display: contents;
    }

    .show-info__meta-item {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        min-height: 92px;
        padding: 12px 10px;
        margin: 0;
        border: 1px solid var(--show-line);
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.24);
        text-align: center;
    }

    .show-info__meta-col .show-info__meta-item:last-child {
        border-bottom: 1px solid var(--show-line);
    }

    .show-info__meta-item--wide,
    .show-info__meta-item:has(.show-info__sep) {
        grid-column: 1 / -1;
        min-height: auto;
        align-items: center;
    }

    .show-info__meta-label {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        max-width: 100%;
        font-size: 10px;
        font-weight: 600;
        line-height: 1.35;
        letter-spacing: 0.01em;
        color: var(--show-muted);
    }

    .show-info__meta-label i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 13px;
        background: rgba(var(--show-accent-rgb), 0.12);
        border: 1px solid rgba(var(--show-accent-rgb), 0.22);
        color: var(--show-accent);
    }

    .show-info__meta-value {
        flex: 1 1 auto;
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

    .show-info__meta-item--wide .show-info__meta-value,
    .show-info__meta-item:has(.show-info__sep) .show-info__meta-value {
        justify-content: center;
        gap: 6px;
    }

    .show-info__sep {
        display: none;
    }

    .show-info__meta-value .show-info__link {
        display: inline-flex;
        align-items: center;
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(var(--show-accent-rgb), 0.1);
        border: 1px solid rgba(var(--show-accent-rgb), 0.22);
        font-size: 11px;
        font-weight: 600;
        line-height: 1.3;
    }

    .show-info__meta-value .show-info__link:hover {
        background: rgba(var(--show-accent-rgb), 0.2);
        border-color: var(--show-accent);
    }
}

@media (max-width: 640px) {
    .show-info__crumbs-bar {
        padding: 8px 0 7px;
    }

    .show-info__crumbs-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .show-info__crumbs-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-padding-inline: 12px;
        padding-inline: 2px;
        padding-bottom: 2px;
        font-size: 12px;
    }

    .show-info__crumbs-list::-webkit-scrollbar {
        display: none;
    }

    .show-info__crumbs-item {
        flex: 0 0 auto;
        max-width: none;
    }

    .show-info__crumbs-item:not(:last-child) .show-info__crumbs-link {
        max-width: 34vw;
    }

    .show-info__crumbs-item:last-child .show-info__crumbs-current {
        max-width: 52vw;
    }

    .show-info__crumbs-item:not(:last-child)::after {
        margin: 0 6px;
    }

    .show-info__episodes-grid {
        grid-template-columns: 1fr;
    }

    .show-info__stat {
        flex: 1 1 calc(50% - 8px);
    }

    .show-info__actions .show-info__btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .show-info__video-wrap {
        padding: 14px 12px;
    }

    .show-info__video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .show-info__servers .servList li {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .show-info__ep-nav {
        flex-direction: column;
        gap: 10px;
    }

    .show-info__ep-nav .show-info__btn,
    .show-info__ep-nav > div {
        width: 100%;
    }

    .show-info__ep-nav .show-info__btn {
        justify-content: center;
    }

    .show-info__container,
    .show-info__container--watch {
        padding-left: 12px;
        padding-right: 12px;
    }

    .show-info__hero-container {
        padding-left: 12px;
        padding-right: 12px;
        min-height: 380px;
    }

    .show-info__hero-wrap {
        min-height: 380px;
    }

    .show-info__card {
        padding: 14px 12px;
    }

    .show-info__title-jp {
        font-size: clamp(1.35rem, 6vw, 2rem);
        overflow-wrap: anywhere;
    }
}

/* Episodes Chunk Navigation */
.show-info__episodes-chunks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--sec-title-border, rgba(255, 255, 255, 0.08));
}

.show-info__episodes-chunk-btn {
	background: var(--sec-title-panel-bg, rgba(255, 255, 255, 0.03));
	color: var(--sec-title-muted, rgba(255, 255, 255, 0.55));
	border: 1px solid var(--sec-title-panel-border, rgba(255, 255, 255, 0.07));
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	outline: none;
}

.show-info__episodes-chunk-btn:hover {
	color: var(--sec-title-color, #fff);
	border-color: var(--sec-title-accent, #029dbc);
}

.show-info__episodes-chunk-btn.active {
	background: var(--sec-title-accent, #029dbc);
	color: #fff;
	border-color: var(--sec-title-accent, #029dbc);
	box-shadow: 0 4px 15px rgba(2, 157, 188, 0.3);
}

.show-info__episodes-loader {
	width: 100%;
	padding: 40px;
	text-align: center;
	color: var(--sec-title-muted, rgba(255, 255, 255, 0.55));
	font-size: 16px;
	grid-column: 1 / -1;
}

.show-info__episodes-loader i {
	margin-left: 8px;
	color: var(--sec-title-accent, #029dbc);
}

.show-info__episodes-error {
	width: 100%;
	padding: 20px;
	text-align: center;
	color: var(--red-color, #d41616);
	background: rgba(212, 22, 22, 0.1);
	border-radius: 8px;
	grid-column: 1 / -1;
}

.show-info__episodes-grid.loading {
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Watch page */
.show-info__video-wrap {
    background: var(--show-surface);
    border: 1px solid var(--show-line);
    border-radius: var(--show-radius);
    padding: 18px 20px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.show-info__video-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--show-muted);
}

.show-info__video-report {
    color: inherit;
    text-decoration: none;
}

.show-info__video-report:hover {
    color: var(--show-accent);
}

.show-info__servers {
    margin-bottom: 20px;
}

.show-info__servers .servList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.show-info__servers .servList li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(50% - 5px);
    min-width: calc(50% - 5px);
    padding: 8px 12px;
    background: var(--show-surface);
    color: var(--show-text);
    border-radius: var(--show-radius);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--show-line);
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
}

.show-info__servers .servList li.active,
.show-info__servers .servList li:hover {
    background: var(--show-accent);
    color: #fff;
    border-color: var(--show-accent);
}

.show-info__player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: calc(var(--show-radius) - 4px);
    background: #000;
}

.show-info__player iframe,
.show-info__player object,
.show-info__player embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.show-info__ep-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--show-line);
}

.show-info__ep-nav .show-info__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--show-radius);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.show-info__ep-nav .show-info__btn--primary {
    background: var(--show-accent);
    color: #fff;
}

.show-info__ep-nav .show-info__btn--primary:hover {
    filter: brightness(1.1);
}

.show-info__ep-nav .show-info__btn--secondary {
    background: var(--show-surface);
    color: var(--show-text);
    border: 1px solid var(--show-line);
}

.show-info__ep-nav .show-info__btn--secondary:hover {
    background: var(--show-line);
}

.show-info__downloads-wrap {
    padding: 18px 20px;
    border-radius: var(--show-radius);
    background: var(--show-surface);
    border: 1px solid var(--show-line);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.show-info__downloads-head {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--show-line);
}

.show-info__downloads-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .show-info__downloads-cols {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

.show-info__downloads-col {
    margin: 0;
}

.show-info__downloads-wrap .witanime-quality-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
}

.show-info__downloads-wrap .witanime-quality-list li.quality-name {
    flex: 0 0 100%;
    font-size: 13px;
    font-weight: 700;
    color: var(--show-accent);
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--show-line);
    border-radius: 999px;
    background: rgba(var(--show-bg-rgb), 0.35);
}

.show-info__downloads-wrap .witanime-quality-list li:not(.quality-name) {
    display: block;
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
    margin: 0;
}

.show-info__downloads-wrap .witanime-quality-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    color: var(--show-text);
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid var(--show-line);
    transition: all 0.2s ease;
}

.show-info__downloads-wrap .witanime-quality-list li a:hover {
    background: var(--show-accent);
    color: #fff;
    border-color: var(--show-accent);
}

/* Episodes + comments — unified stack inside .show-info__container */
.show-info__episodes-wrap {
    display: block;
}

.show-info__comments-wrap {
    padding: 18px 20px;
    border-radius: var(--show-radius);
    background: var(--show-surface);
    border: 1px solid var(--show-line);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.show-info__comments-wrap .secComments {
    overflow: visible;
    margin: 0;
}

.show-info__comments-wrap .comment-respond {
    margin-bottom: 0;
}

/* Trailer popup (bPopup) */
#trailerPopUp.show-info-trailer-popup {
    display: none;
    position: relative;
    width: min(94vw, 900px);
    max-width: 900px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    color: var(--show-text, #eef2f8);
}

#trailerPopUp.show-info-trailer-popup .show-info-trailer-popup__shell {
    border-radius: var(--show-radius, 12px);
    overflow: hidden;
    background: var(--show-surface, #111821);
    border: 1px solid var(--show-line, rgba(255, 255, 255, 0.08));
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
}

#trailerPopUp.show-info-trailer-popup .show-info-trailer-popup__head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 10px 14px 10px 12px;
    background: rgba(var(--show-bg-rgb, 10, 16, 22), 0.92);
    border-bottom: 1px solid var(--show-line, rgba(255, 255, 255, 0.08));
}

#trailerPopUp.show-info-trailer-popup .show-info-trailer-popup__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--show-text, #eef2f8);
    text-align: right;
}

#trailerPopUp.show-info-trailer-popup .show-info-trailer-popup__close.b-close {
    position: static;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--show-line, rgba(255, 255, 255, 0.12));
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--show-text, #eef2f8);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    opacity: 1;
    z-index: 2;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

#trailerPopUp.show-info-trailer-popup .show-info-trailer-popup__close.b-close:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: none;
}

#trailerPopUp.show-info-trailer-popup .show-info-trailer-popup__close.b-close:focus-visible {
    outline: 2px solid var(--show-accent, #00bcd4);
    outline-offset: 2px;
}

#trailerPopUp.show-info-trailer-popup .show-info-trailer-popup__video.popupContentVideo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 200px;
    padding: 0;
    background: #000;
}

#trailerPopUp.show-info-trailer-popup .show-info-trailer-popup__video iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: 0;
}

@media (max-width: 575px) {
    #trailerPopUp.show-info-trailer-popup {
        width: 96vw;
    }

    #trailerPopUp.show-info-trailer-popup .show-info-trailer-popup__head {
        min-height: 48px;
        padding: 8px 10px 8px 8px;
    }

    #trailerPopUp.show-info-trailer-popup .show-info-trailer-popup__title {
        font-size: 14px;
    }

    #trailerPopUp.show-info-trailer-popup .show-info-trailer-popup__close.b-close {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
}

.show-info__actions .trailerBtn {
    cursor: pointer;
    font: inherit;
}

.show-info__comments-head {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--show-line);
}

