/* ── Wiki ───────────────────────────────────── */

.wiki-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.wiki-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 3px double var(--muted);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.wiki-header .left-side {
    display: flex;
    flex-direction: column;
}

.wiki-header .right-side {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    flex-wrap: wrap;
    width: 300px;
    gap: 0.5rem;
}

.wiki-header .right-side img {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    opacity: 0.6;
    transition: opacity 0.15s, transform 0.15s;
}

.wiki-header .right-side img:hover {
    opacity: 1;
    transform: scale(105%);
}

.wiki-title {
    font-family: Cabin;
    font-size: 3rem;
    font-weight: 700;
}

.wiki-tagline {
    color: var(--muted);
    font-style: italic;
}

.wiki-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.wiki-meta {
    flex: 0 0 220px;
    font-family: Outfit;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.wiki-meta img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--accent-light);
}

.wiki-content {
    flex: 1;
}

.wiki-section {
    margin-bottom: 2.5rem;
}

.wiki-section h2 {
    font-family: Cabin;
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.2rem;
}

.wiki-text p {
    margin-bottom: 1rem;
    text-align: justify;
    overflow-wrap: break-word;
    hyphens: auto;
}

.wiki-text a {
    color: var(--accent-light);
}

.wiki-text a:hover {
    text-decoration: underline;
}

.wiki-episodes {
    margin-top: 2rem;
}

.wiki-episodes h3 {
    font-family: Cabin;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.2rem;
}

.wiki-episodes ul {
    display: flex;
    flex-direction: column;
    row-gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.wiki-episodes li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: Cabin;
    line-height: 125%;
    column-gap: 1rem;
    transition: transform 0.15s
}

.wiki-episodes li a:hover {
    transform: scale(103%);
}

.wiki-episodes li div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 50px;
}

.wiki-episodes li .hihepisode-thumbnail {
    min-width: 50px;
    min-height: 50px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--accent-light);
    border-radius: 10px;
}

/* ── Wiki Mobile ───────────────────────────── */
@media (max-width: 700px) {

    .wiki-page {
        padding: 1.5rem 1rem 3rem;
    }

    .wiki-title {
        font-size: 28px;
    }

    .wiki-tagline {
        font-size: 14px;
    }

    .wiki-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .wiki-content {
        flex: unset;
    }

    .wiki-meta {
        flex: unset;
        width: 100%;
        font-size: 0.8rem;
    }

    .wiki-meta img {
        width: 50%;
        max-width: 150px;
        margin: 0 auto 1rem;
        display: block;
    }

    .wiki-episodes ul {
        row-gap: 0.25rem;
    }

    .wiki-episodes li a {
        column-gap: 0.4rem;
    }

    .wiki-episodes li .hihepisode-thumbnail {
        min-width: 40px;
        min-height: 40px;
    }

    .wiki-section h2 {
        font-size: 1.3rem;
    }

    .wiki-text p {
        font-size: 14px;
        line-height: 1.4;
    }

    .wiki-episodes li .hihepisode-thumbnail {
        border: 0;
    }
}