#article-title {
    border-bottom: 1px solid #aaa;
    padding-bottom: 6px;
    margin-bottom: 20px;
}

#wiki-article {
    width: 90%;
    margin: 0 auto;
}

.article-intro {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

#article-intro-text {
    flex: 1;
}

#article-infobox {
    width: 260px;
    flex-shrink: 0;
}

.wiki-infobox {
    border: 1px solid #aaa;
    background: #f8f8f8;
    color: #222;
}

.wiki-infobox-title {
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #aaa;
    color: #222;
}

.wiki-infobox-row {
    display: grid;
    grid-template-columns: 45% 55%;
    border-bottom: 1px solid #ddd;
    padding: 7px;
    color: #222;
}

.wiki-infobox-row strong {
    font-weight: bold;
    color: #222;
}

.wiki-infobox-row ul {
    margin: 0;
    padding-left: 20px;
}

#article-sections {
    margin-top: 25px;
}

#article-sections h2 {
    border-bottom: 1px solid #aaa;
    padding-bottom: 4px;
}

.wiki-season-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.wiki-season-table th,
.wiki-season-table td {
    border: 1px solid #aaa;
    padding: 8px 10px;
    text-align: left;
}

.wiki-season-table th {
    font-weight: bold;
    background: rgba(128, 128, 128, 0.15);
}

.wiki-season-table tr:nth-child(even) {
    background: rgba(128, 128, 128, 0.08);
}

.wiki-character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0 25px;
}

.wiki-character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 120px;

    padding: 12px;

    border: 1px solid #aaa;
    background: rgba(128, 128, 128, 0.08);

    text-decoration: none;
    color: inherit;

    transition: transform 0.15s ease;
}

.wiki-character-card:hover {
    transform: translateY(-3px);
}

.wiki-character-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 8px;
}

.wiki-character-card span {
    font-weight: bold;
}


.wiki-infobox-image {
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #aaa;
}

.wiki-infobox-image img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

.wiki-episode-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.wiki-episode-list th,
.wiki-episode-list td {
    border: 1px solid #aaa;
    padding: 8px 10px;
    text-align: left;
}

.wiki-episode-list th {
    font-weight: bold;
    background: rgba(128, 128, 128, 0.15);
}

.wiki-episode-list tr:nth-child(even) {
    background: rgba(128, 128, 128, 0.08);
}


.wiki-episode-navigation {
    margin-top: 30px;
}


.wiki-episode-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}


.wiki-episode-nav a {
    text-decoration: none;
}

.wiki-text {
    white-space: pre-line;
}

.wiki-location-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 15px 0 25px;
}

.wiki-location-card {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 70px;

    padding: 12px;

    border: 1px solid #aaa;
    background: rgba(128, 128, 128, 0.08);

    text-decoration: none;
    color: inherit;

    font-weight: bold;

    transition: transform 0.15s ease;
}

.wiki-location-card:hover {
    transform: translateY(-3px);
}

.wiki-object-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 15px 0 25px;
}

.wiki-object-card {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 70px;

    padding: 12px;

    border: 1px solid #aaa;
    background: rgba(128, 128, 128, 0.08);

    text-decoration: none;
    color: inherit;

    font-weight: bold;

    transition: transform 0.15s ease;
}

.wiki-object-card:hover {
    transform: translateY(-3px);
}

.wiki-bottom-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    
    width: 100%;
    max-width: 1000px;
    margin: 30px auto 10px;
    padding: 15px 0;
    
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
}

.wiki-bottom-nav a {
    text-decoration: none;
    font-weight: bold;
}

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

.wiki-bottom-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;

    width: 100%;
    margin: 30px auto 10px;
    padding: 15px 0;

    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
}

.wiki-bottom-nav a {
    text-decoration: none;
    font-weight: bold;
}

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