* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --theme-accent-a: #00ff8c;
    --theme-accent-b: #00ff8c;
    --theme-accent-c: #00ff8c;
    --theme-accent-gradient: linear-gradient(135deg, rgba(0, 255, 140, 0.94), rgba(0, 255, 140, 0.9));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    min-height: 100vh;
    padding: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #14182d;
    padding: 12px 20px;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 4px solid var(--theme-accent-a);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-home-link,
.topbar-home-link:hover {
    text-decoration: none;
    color: inherit;
}

.topbar-logo {
    width: 40px;
    height: 40px;
    background: var(--theme-accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e27;
    font-weight: 700;
    font-size: 0.85em;
}

.topbar-site-name {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: #14182d;
    color: var(--theme-accent-a);
    text-decoration: none;
    font-weight: 600;
}

.topbar-link:hover {
    background: #1f2539;
    color: var(--theme-accent-b);
}

a {
    color: var(--theme-accent-a);
    text-decoration: none;
}

a:hover {
    color: var(--theme-accent-b);
    text-decoration: underline;
}

.map-list-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.map-filter-section {
    margin-bottom: 20px;
}

.filter-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(20, 24, 45, 0.9);
}

.filter-panel.is-collapsed .filter-panel-content {
    display: none;
}

.filter-toggle {
    align-self: flex-start;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: #00ff8c;
    color: #0a0e27;
    font-weight: 700;
    cursor: pointer;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.filter-header h2 {
    color: #c7d2ff;
    font-size: 1rem;
    margin: 0;
}

.filter-mode-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-mode-label {
    color: #c7d2ff;
    font-size: 0.9rem;
}

.filter-mode-select {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #0a0e27;
    color: #ffffff;
    padding: 6px 8px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #dfe7ff;
    cursor: pointer;
}

.filter-option.is-active {
    background: rgba(0, 255, 140, 0.2);
    border-color: rgba(0, 255, 140, 0.45);
}

.empty-chart-message {
    color: #a7b2ff;
    font-size: 0.95rem;
}

.map-list-intro {
    margin-bottom: 28px;
}

.map-list-intro h1 {
    color: #00ff8c;
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.map-list-intro p {
    color: #c7d2ff;
    max-width: 760px;
    line-height: 1.6;
}

.map-mode-group {
    margin-bottom: 40px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
}

.map-mode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.map-mode-header h2 {
    color: #c7d2ff;
    font-size: 1.75rem;
    margin: 0;
}

.map-mode-header span {
    color: #a7b2ff;
    font-size: 0.95rem;
}

.map-card-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.map-card-link {
    display: block;
    text-decoration: none;
}

.map-list-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.map-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.map-card-group {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(20, 24, 45, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.map-card-meta {
    width: 100%;
}

.map-card-meta {
    width: 100%;
}

.map-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    height: 160px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.35s ease;
}

.map-card-list-card:hover .map-card-image img,
.map-card-image:hover img {
    transform: scale(1.04);
}

.map-card-label {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px 22px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.24s ease;
}

.map-list-card:hover .map-card-label {
    opacity: 1;
}

.map-card-label h2 {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
}

.map-card-label span {
    color: #a7b2ff;
    font-size: 0.8rem;
}

.map-detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    margin-top: 20px;
}

.map-detail-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
}

.map-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.map-detail-header h3 {
    color: #c7d2ff;
    font-size: 1.15rem;
    margin: 0;
}

.map-detail-header span {
    color: #a7b2ff;
    font-size: 0.9rem;
}

.ban-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.ban-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.ban-pill img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 10px;
    background: #0f1427;
}

.ban-pill span {
    color: #ffffff;
    font-weight: 600;
}

.ban-pill strong {
    color: #00ff8c;
    display: block;
    font-size: 0.95rem;
}

.map-team-table-wrap {
    overflow-x: auto;
}

.map-team-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 540px;
}

.map-team-table th,
.map-team-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.map-team-table th {
    color: #a7b2ff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.map-team-table td {
    color: #e5e7ff;
}

.team-table-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-page-button {
    border: 1px solid rgba(0, 255, 140, 0.4);
    background: rgba(0, 255, 140, 0.12);
    color: #00ff8c;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.team-page-button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(0, 255, 140, 0.2);
}

.team-page-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.team-page-status {
    color: #c7d2ff;
    font-size: 0.9rem;
    font-weight: 600;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-icon {
    max-width: 34px;
    max-height: 34px;
    object-fit: cover;
}

.error-message {
    color: #ff6b6b;
    font-size: 1rem;
}

.site-footer {
    background: #14182d;
    border-top: 4px solid #00ff8c;
    padding: 16px 20px;
    margin-top: 16px;
    color: #ffffff;
    width: 100%;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    background: #00ff8c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e27;
    font-weight: 700;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}
