/* wiki-styles.css - Aligned with style.css */

/* Define CSS variables for colors */
:root {
    --primary-color: #466eab;          /* Primary from style.css */
    --background-color: transparent;   /* Inherits body #40444b */
    --text-color: #FBFBFB;             /* Body text from style.css */
    --secondary-text-color: #9e9e9e;   /* Gray from style.css */
    --border-color: #666666;           /* Darker border for dark bg */
    --hover-background: #292b2f;       /* Masthead/vtabs hover bg */
    --card-background: #2f3136;        /* vtnews section bg */
    --link-color: #5197ED;             /* Link color from style.css */
    --link-hover-color: #a2c4ee;       /* Link hover from style.css */
}

/* Global link styles */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover,
a:focus,
a:active {
    color: var(--link-hover-color);
}

/* Base container styles */
.wiki-container {
    max-width: 1232px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: var(--background-color);
    color: var(--text-color);
	text-align: justify;
}

/* Header styles */
.wiki-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.wiki-title {
    font-size: 2.5em;
    font-weight: normal;
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.wiki-description-text {
    margin-bottom: 20px;
    padding: 10px 0;
    color: var(--secondary-text-color);
    font-size: 0.95em;
}

.wiki-description-text p {
    margin-bottom: 5px;
}

.wiki-tabs {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.wiki-tabs .tab {
    padding: 8px 16px;
    cursor: pointer;
    color: #aaa;  /* Matches main-navigation in style.css */
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.wiki-tabs .tab:hover {
    color: var(--text-color);
    border-bottom-color: var(--primary-color);
}

.wiki-tabs .tab.active {
    border-bottom-color: var(--primary-color);
    font-weight: bold;
    color: var(--text-color);
}

/* Gallery Section Styles */
.wiki-gallery-section {
    margin: 20px 0;
    padding: 20px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wiki-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.wiki-gallery-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.wiki-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.wiki-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: top;
    cursor: pointer;
}

.gallery-caption {
    padding: 10px;
    font-size: 0.9em;
    color: var(--secondary-text-color);
    text-align: center;
}

.no-gallery {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px;
}

/* Content wrapper */
.wiki-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.wiki-main-content {
    flex: 1;
    max-width: 70%;
}

.wiki-toc {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 15px;
    display: inline-block;
    min-width: 200px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wiki-toc h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-color);
}

.wiki-toc ol {
    margin: 0;
    padding-left: 20px;
}

.wiki-toc li {
    margin: 5px 0;
}

.wiki-toc a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.wiki-toc a.current {
    font-weight: bold;
    color: var(--primary-color);
}

.wiki-infobox {
    width: 300px;
    border: 1px solid var(--border-color);
    background: var(--card-background);
    padding: 0;
    margin-left: 20px;
    flex-shrink: 0;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.infobox-header {
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
}

.infobox-image {
    padding: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    min-height: 265px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.infobox-image img {
    max-width: 100%;
    max-height: 265px;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}

.infobox-tabs {
    display: block;
    background: var(--hover-background);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.infobox-tabs-row {
    display: flex;
    flex-wrap: wrap;
}

.infobox-tabs-zakladni {
    margin-bottom: 4px;
}

.infobox-tabs-zakladni .infobox-tab {
    flex: 1 0 calc(100% - 4px);
    margin: 2px 2px 0px 2px;
}

.infobox-tabs-others .infobox-tab {
    flex: 1 0 calc(33.33% - 4px);
    margin: 2px;
}

.infobox-tab {
    flex: 1 0 calc(33.33% - 4px);
    margin: 2px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #aaa;  /* Matches navigation in style.css */
    font-size: 0.85em;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.infobox-tab:hover {
    background: var(--hover-background);
    color: var(--text-color);
}

.infobox-tab.active {
    background: var(--primary-color);
    color: white;
}

.infobox-details {
    padding: 15px;
}

.infobox-details h4 {
    background: var(--primary-color);
    color: white;
    margin: 0 -15px 15px -15px;
    padding: 8px 15px;
    font-size: 1em;
}

.wiki-facts {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.wiki-facts th,
.wiki-facts td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
    color: var(--text-color);
}

.wiki-facts th {
    background: var(--hover-background);
    font-weight: bold;
    width: 40%;
}

.wiki-facts a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Wiki Tags Styles (for single page) */
.wiki-tags {
    padding-bottom: 15px;
}

.wiki-tags a {
    display: inline-block;
    background: var(--card-background);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    color: var(--secondary-text-color);
    text-decoration: none;
    margin-right: 5px;
    margin-bottom: 5px;
    line-height: 1.5;
    transition: background 0.2s ease, color 0.2s ease;
}

.wiki-tags a:hover {
    background: var(--primary-color);
    color: white;
}

/* Archive and taxonomy pages */
.page-header {
    padding: 20px;
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    border-radius: 3px;
}

.wiki-archive-container,
.wiki-taxonomy-container {
    max-width: 1232px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-color);
}

.wiki-archive-container h1,
.wiki-taxonomy-container h1 {
    color: var(--text-color);
}

.wiki-archive-filter {
    margin: 20px 0;
    text-align: center;
}

.wiki-archive-filter label {
    padding-right: 10px;
    color: var(--text-color);
}

.wiki-archive-filter select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--card-background);
    color: var(--text-color);
    border-radius: 3px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FBFBFB%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13%205.1L146.2%20202.7%2018.5%2074.5a17.6%2017.6%200%200%200-25.3%2023.7l137%20137.1a17.6%2017.6%200%200%200%2025.3%200l137-137.1c6.8-6.7%206.8-17.7-.1-24.5z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
    padding-right: 30px;
}

.wiki-archive-section {
    margin-top: 40px;
    border: none;
    background: none;
    padding: 0px;
    border-radius: 3px;
}

.wiki-archive-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.wiki-archive-section h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.wiki-card {
    border: 1px solid var(--border-color);
    background: var(--card-background);
    transition: all 0.2s ease;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wiki-card:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.wiki-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wiki-card-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}
.wiki-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.wiki-card:hover .wiki-card-image img {
    transform: scale(1.00);
}

.no-image {
    color: #888;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #333;
}

.wiki-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wiki-card-title {
    margin: 0 0 4px 10px;
    padding-top: 2px;
    font-size: 1.1em;
    color: var(--primary-color);
    flex-grow: 1;
}

.wiki-card-meta {
    margin-top: auto;
}

.wiki-card-meta .agency,
.wiki-card-meta .generation {
    background: var(--card-background);
    padding: 0px 8px 4px 11px;
    border-radius: 3px;
    font-size: 0.8em;
    color: var(--secondary-text-color);
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 3px;
}

.taxonomy-description {
    margin: 20px 0;
    padding: 15px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-color);
}

/* Scroll to top button */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 10px 15px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    font-weight: bold !important;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

#scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background: #294164 !important;  /* Hover effect from style.css */
}

/* Lore Section Styles */
.wiki-lore-section {
    margin: 20px auto;
    max-width: 800px;
    padding: 15px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wiki-lore-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.wiki-lore-content img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.wiki-lore-content img:hover {
    opacity: 0.9;
}

.no-lore {
    color: #888;
    font-style: italic;
}

/* Link back to main article */
.main-article-link {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    text-align: center;
}

.main-article-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.main-article-button:hover {
    background-color: #294164;  /* Hover effect from style.css */
}

/* Front Page Banner */
.wiki-front-banner {
    display: flex;
    align-items: center;
    background-color: #2a2c31;
    padding: 0;
    overflow: hidden;
    min-height: 300px;
    position: relative;
    border-radius: 3px;
    border-bottom: 1px solid var(--border-color);
}

.wiki-front-banner .banner-content {
    flex: 1;
    padding: 2rem 3rem;
    z-index: 2;
    position: relative;
    max-width: 42%;
}

.wiki-front-banner .banner-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
    mask-image: linear-gradient(to left, black 40%, transparent 100%);
}

.wiki-front-banner .page-title {
    font-size: 2.8em;
    margin-bottom: 0.5em;
    color: #fff;
    font-weight: 300;
}

.banner-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.75em;
    color: #333333;
    z-index: 3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.banner-credit a {
    color: rgba(51, 51, 51, 0.8);
    text-decoration: underline;
}

.banner-credit a:hover {
    color: #000000;
}

/* Event Calendar Styles */
.event-calendar-section {
    margin: 40px 0;
    padding: 0px;
    background: none;
    border: none;
    border-radius: 3px;
}

.event-calendar-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.event-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.event-image-container {
    width: 100%;
    aspect-ratio: 300 / 169;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 3px;
    background-color: #333;
}

.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.event-details {
    flex-grow: 1;
    width: 100%;
}

.event-item h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.event-item h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.event-item h3 a:hover {
    text-decoration: underline;
}

.event-item p {
    font-size: 0.9em;
    color: var(--secondary-text-color);
    margin-bottom: 8px;
}

.event-item .event-time {
    font-weight: bold;
    color: var(--text-color);
    margin-top: 0;
}

.event-related-article {
    margin-top: 10px;
}

.event-related-article .tag a {
    color: white;
    text-decoration: none;
    font-size: 0.8em;
}

.event-related-article .tag a:hover {
    text-decoration: underline;
}

.no-events {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
}

/* Diskografie table */
.table-vtuber {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.table-vtuber caption {
    caption-side: top;
    text-align: left;
    font-weight: bold;
    font-size: 1.2em;
    padding: 15px 0 10px 0;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.table-vtuber th {
    background: var(--primary-color);
    color: white;
    text-align: left;
    padding: 12px 15px;
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
}

.table-vtuber td {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 15px;
    color: var(--text-color);
    vertical-align: top;
}

.table-vtuber tr:nth-child(even) {
    background: var(--hover-background);
}

.table-vtuber tr:hover {
    background: var(--hover-background);
    transition: background-color 0.2s ease;
}

.table-vtuber small {
    color: var(--secondary-text-color);
    font-style: italic;
}

/* Tabbed Diskografie Section */
.wiki-diskografie {
    margin: 20px 0 0 0; 
    padding: 0;
    background: var(--background-color);
    border: none;
}
.wiki-diskografie .tab-container {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: var(--background-color);
    margin-bottom: 0; 
}
.wiki-diskografie .tab-buttons {
    display: flex;
    background: var(--hover-background);
    border-bottom: 1px solid var(--border-color);
}
.wiki-diskografie .tab-button {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--secondary-text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.wiki-diskografie .tab-button:hover {
    background: var(--hover-background);
    color: var(--text-color);
}
.wiki-diskografie .tab-button.active {
    background: var(--background-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
    color: var(--text-color);
}
.wiki-diskografie .tab-content {
    display: none;
    padding: 10px 0 0 0;
    margin-bottom: 0; 
}
.wiki-diskografie .tab-content.active {
    display: block;
}
.wiki-diskografie .jp-text {
    color: var(--secondary-text-color);
    font-size: 13px;
    font-style: italic;
}
.wiki-diskografie .simple-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0; 
}
.wiki-diskografie .simple-item {
    padding: 12px;
    border-left: 3px solid var(--primary-color);
    background: var(--hover-background);
    border-radius: 0;
    margin: 0;
}
.wiki-diskografie .simple-item:last-child {
    margin-bottom: 0; 
}
.wiki-diskografie .simple-item strong {
    color: var(--text-color);
    font-weight: bold;
    margin: 0; 
}
.wiki-diskografie .item-date,
.wiki-diskografie .item-details {
    color: var(--secondary-text-color);
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 0; 
}
/* Awards Section */
.wiki-awards {
    margin: 20px 0 0 0; 
    padding: 0;
    background: var(--background-color);
    border: none;
}
.wiki-awards .simple-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0; 
    padding: 0;
}
.wiki-awards .simple-item {
    padding: 12px;
    border-left: 3px solid var(--primary-color);
    background: var(--hover-background);
    border-radius: 0;
    margin: 0; 
}
.wiki-awards .simple-item:last-child {
    margin-bottom: 0; 
}
.wiki-awards .simple-item strong {
    color: var(--text-color);
    font-weight: bold;
    margin: 0; 
}
.wiki-awards .item-details {
    color: var(--secondary-text-color);
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 0; 
}

.wiki-diskografie p,
.wiki-awards p {
	margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.wiki-diskografie h2,
.wiki-awards h2 {
    margin-bottom: 10px;
}

/* Incorporated WordPress styles */
.intro-text {
    background: var(--card-background);
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.05em;
    color: var(--text-color);
    text-align: justify;
}

.stats-box {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 3px;
    color: var(--text-color);
}

.highlight {
    background-color: rgba(255, 243, 205, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--text-color);
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
}

.timeline-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin-left: 10px;
    margin-bottom: 15px;
}

.timeline-date {
    font-weight: bold;
    color: var(--text-color);
}

.emoji {
    font-size: 1.2em;
}

.section-divider {
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    margin: 30px 0 20px 0;
}

/* Zdroje na zaver */
.sources-section {
    margin: 20px 0;
    padding: 15px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-color);
    font-size: 0.85em;
    line-height: 1.5;
}

.sources-subheading {
    color: var(--primary-color);
    font-size: 1em;
    font-weight: 600;
    margin: 10px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

.sources-section ul {
    padding-left: 15px;
    margin: 8px 0;
}

.sources-section li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.sources-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sources-section a:hover {
    color: #294164;  /* Hover effect from style.css */
}

.sources-section strong {
    color: var(--text-color);
    font-weight: bold;
}

.sources-note {
    font-style: italic;
    color: var(--secondary-text-color);
    font-size: 0.8em;
    margin-top: 10px;
    text-align: right;
}

/* Related News in Infobox */
.wiki-related-news ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.wiki-related-news li {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.wiki-related-news li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wiki-related-news a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9em;
}

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

/* Mobile-friendly improvements */
@media (max-width: 768px) {
    .wiki-container,
    .wiki-archive-container,
    .wiki-taxonomy-container {
        padding: 0.25em;
    }
	.page-header {
    	padding: 0.25em 1rem;
	}
	.wiki-header {
    	padding: 0.25em 1rem;
    	border-bottom: none;
	}
    .wiki-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .wiki-content-wrapper {
        flex-direction: column-reverse;
    }
    .wiki-main-content {
        max-width: 100%;
        padding: 0 0.25em;
    }
    .wiki-infobox {
        width: 100%;
        margin-left: 0;
        margin-bottom: 0;
        margin-top: 0;
        padding: 0.25em;
    }
	.wiki-toc {
        margin-bottom: 20px;
    }
    .wiki-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 0.25em;
    }
    .wiki-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 0;
    }
    .event-list {
        grid-template-columns: 1fr;
        padding: 0.25em;
    }
    .infobox-tabs-others .infobox-tab {
        flex-basis: calc(50% - 4px);
    }
    .wiki-front-banner {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        position: relative;
        background-image: url('https://vtuber.konata.cz/wp-content/uploads/2025/06/uimama-1.jpg');
        background-size: cover;
        background-position: center center;
    }
    .wiki-front-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(
            ellipse at bottom left,
            rgba(20, 22, 25, 0.9) 40%,
            rgba(20, 22, 25, 0.8) 70%,
            rgba(20, 22, 25, 0.5) 90%,
            transparent 100%
        );
        z-index: 1;
    }
    .wiki-front-banner .banner-content {
        max-width: 100%;
        padding: 2rem 0rem;
        position: relative;
        z-index: 2;
    }
    .wiki-front-banner .banner-image,
    .banner-credit {
        display: none;
    }
    .wiki-diskografie .tab-buttons {
        flex-wrap: wrap;
    }
    .wiki-diskografie .tab-button {
        flex: 1 0 calc(50% - 4px);
        margin: 2px;
    }
	.wiki-archive-section {
        padding: 0 0.5em;
        margin-bottom: 1rem;
    }
	.event-calendar-section {
        padding: 0 0.5em;
        margin-bottom: 1rem;
    }
}