:root {
    /* New color palette */
    --background: hsl(0 0% 7%);
    --foreground: hsl(0 0% 98%);
    --card: hsl(0 0% 9%);
    --card-hover: #1f1f23;
    --card-foreground: hsl(0 0% 98%);
    --popover: hsl(0 0% 9%);
    --popover-foreground: hsl(0 0% 98%);
    --primary: hsl(252 100% 69%);
    --primary-hover: #818cf8;
    --primary-foreground: hsl(0 0% 100%);
    --secondary: hsl(0 0% 13%);
    --secondary-foreground: hsl(0 0% 98%);
    --muted: hsl(0 0% 13%);
    --muted-foreground: hsl(0 0% 65%);
    --accent: hsl(252 100% 69%);
    --accent-hover: #16a34a;
    --accent-foreground: hsl(0 0% 98%);
    --destructive: #ef4444;
    --destructive-foreground: #fafafa;
    --border: hsl(0 0% 15%);
    --input: hsl(0 0% 15%);
    --ring: hsl(252 100% 69%);
    
    /* Map-specific colors */
    --map-haven: #498eff;
    --map-split: #b871e0;
    --map-bind: #ffa146;
    --map-ascent: #3bcc99;
    --map-icebox: #90e0ef;
    --map-breeze: #7ed957;
    --map-fracture: #fc6c85;
    --map-pearl: #12b0c5;
    --map-lotus: #de4daa;
    --map-abyss: #e23e57;
    --map-sunset: #ff9f1c;
    --map-corrode: #ff9f1c;
    
    /* Stats colors */
    --win: #10b981;
    --loss: #ef4444;
    --neutral: #6b7280;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    
    /* Layout */
    --radius: 0.5rem;
    --header-height: 4rem;
    
    /* Animations */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;

    /* Backward compatibility */
    --bg-primary: var(--background);
    --bg-secondary: var(--card);
    --text-primary: var(--foreground);
    --text-secondary: var(--muted-foreground);
    --color-accent: var(--primary);
    --border-color: var(--border);
    --card-bg: var(--card);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --border-radius: var(--radius);

    /* Detailed Patterns Table */
    --team-a: #3b82f6;
    --team-b: #f59e0b;
}

/* Base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.app-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Remove the underline */
header::after {
    display: none;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.attribution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.attribution a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.attribution a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.separator {
    color: var(--border);
}

.vlr-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.vlr-logo {
    height: 0.875rem;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
    vertical-align: middle;
    margin-top: -1px; /* Fine-tune vertical alignment */
}

.vlr-logo:hover {
    opacity: 1;
}

.version-tag {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--primary-foreground);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.subtitle {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

input, select {
    background-color: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    color: var(--foreground);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    width: 100%;
}

input:focus, select:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.25);
}

/* Active filter styling */
.active-filter {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
    background-color: rgba(109, 40, 217, 0.05);
}

.active-filter option {
    background-color: var(--input);
}

/* Input container - Make relative for suggestions positioning */
.input-container {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    position: relative;
}

.input-container input {
    flex: 1;
}

/* Team Suggestions Dropdown */
.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 0.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition-fast);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--card-hover);
}

.suggestion-fullname {
    font-weight: 500;
    color: var(--foreground);
}

.suggestion-abbr {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    background-color: var(--muted);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.date-range .date-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-range .date-inputs span {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.primary-button {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius);
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.primary-button:hover {
    background-color: var(--primary-hover);
}

/* Results Section */
.results-section {
    position: relative;
}

.results-empty {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.results-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stats-card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stats-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background-color: var(--card-hover);
}

.stats-card h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
}

/* Tabs */
.tabs {
    display: flex;
    padding: 0.25rem;
    background-color: var(--muted);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    position: relative;
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--muted-foreground);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: calc(var(--radius) - 0.25rem);
    cursor: pointer;
    transition: color var(--transition-fast);
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
}

.tab-button.active {
    color: var(--foreground);
}

.tabs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% / 2); /* Changed from 4 to 2 tabs */
    height: 3px;
    background: var(--accent);
    transition: transform 0.3s ease;
}

.tabs[data-state="0"]::before {
    transform: translateX(0%);
}

.tabs[data-state="1"]::before {
    transform: translateX(100%);
}

/* Remove all other tab states since we only have 2 tabs now */

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

/* Map Stats Grid */
.map-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.map-stat-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.map-stat-card.compact {
    padding: 1rem;
    margin-bottom: 1rem;
}

.map-name {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
    color: var(--text-primary);
}

.map-stat-group {
    margin-bottom: 1.25rem;
}

.map-stat-group.compact {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
}

.stat-group-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.map-stat {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.map-stat-group.compact .map-stat {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.map-stat-label {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.map-stat-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Progress bars */
.progress-bar {
    height: 8px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 4px;
}

/* Segmented progress bar for pick patterns */
.segmented-progress-bar {
    height: 10px;
    background-color: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.75rem;
    display: flex;
}

.progress-segment {
    height: 100%;
}

.progress-segment.self-pick {
    background-color: #9333ea; /* Purple */
}

.progress-segment.opp-pick {
    background-color: #f97316; /* Orange */
}

.progress-segment.decider {
    background-color: #3b82f6; /* Blue */
}

.progress-segment.team-ban {
    background-color: #dc2626; /* Red */
}

.progress-segment.opp-ban {
    background-color: #84cc16; /* Green */
}

.progress-legend {
    display: flex;
    margin-top: 0.5rem;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 4px;
}

.legend-color.self-pick {
    background-color: #9333ea;
}

.legend-color.opp-pick {
    background-color: #f97316;
}

.legend-color.decider {
    background-color: #3b82f6;
}

.legend-color.team-ban {
    background-color: #dc2626;
}

.legend-color.opp-ban {
    background-color: #84cc16;
}

.legend-label {
    color: var(--text-secondary);
}

.ban-position {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.ban-position-label {
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.ban-position-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Match table styles */
.match-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 14px;
}

.match-table th,
.match-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border);
    vertical-align: top;
}

.match-table th {
    background-color: var(--surface);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.map-cell {
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    min-width: 140px;
}

.map-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    height: 100%;
}

.map-name {
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000000;
}

.map-details {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.map-score {
    font-weight: bold;
    font-size: 13px;
}

.map-rounds {
    font-size: 11px;
    opacity: 0.9;
}

.map-veto {
    font-size: 11px;
    opacity: 0.8;
}

.side-indicator {
    display: inline-block;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    margin-right: 0.25rem;
}

.side-t {
    background: rgba(244, 63, 94, 0.2);
    color: rgb(244, 63, 94);
}

.side-ct {
    background: rgba(59, 130, 246, 0.2);
    color: rgb(59, 130, 246);
}

.winner {
    color: var(--win);
}

.loser {
    color: var(--loss);
}

.match-score {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
}

.match-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: color 0.2s;
}

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

/* Map Badges */
.map-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.map-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.map-badge.haven { background-color: rgba(73, 142, 255, 0.2); color: var(--map-haven); }
.map-badge.split { background-color: rgba(184, 113, 224, 0.2); color: var(--map-split); }
.map-badge.bind { background-color: rgba(255, 161, 70, 0.2); color: var(--map-bind); }
.map-badge.ascent { background-color: rgba(59, 204, 153, 0.2); color: var(--map-ascent); }
.map-badge.icebox { background-color: rgba(144, 224, 239, 0.2); color: var(--map-icebox); }
.map-badge.breeze { background-color: rgba(126, 217, 87, 0.2); color: var(--map-breeze); }
.map-badge.fracture { background-color: rgba(252, 108, 133, 0.2); color: var(--map-fracture); }
.map-badge.pearl { background-color: rgba(18, 176, 197, 0.2); color: var(--map-pearl); }
.map-badge.lotus { background-color: rgba(222, 77, 170, 0.2); color: var(--map-lotus); }
.map-badge.abyss { background-color: rgba(226, 62, 87, 0.2); color: var(--map-abyss); }
.map-badge.sunset { background-color: rgba(255, 159, 28, 0.2); color: var(--map-sunset); }
.map-badge.corrode { background-color: rgba(255, 159, 28, 0.2); color: var(--map-corrde); }

.ban-badge { border: 1px solid rgba(239, 68, 68, 0.2); }
.pick-badge { border: 1px solid rgba(34, 197, 94, 0.2); }
.decider-badge { border: 1px solid rgba(234, 179, 8, 0.2); }

/* Win rate indicators */
.win-rate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.win-rate-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.win-rate-high .win-rate-indicator { background-color: var(--win); }
.win-rate-medium .win-rate-indicator { background-color: var(--neutral); }
.win-rate-low .win-rate-indicator { background-color: var(--loss); }

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.loading-overlay.active {
    visibility: visible;
    opacity: 1;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--muted);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer */
footer {
    display: none;
}

/* Responsive styles */
@media (max-width: 1400px) {
    .match-table {
        font-size: 13px;
    }
    
    .map-cell {
        min-width: 120px;
    }
    
    .map-name {
        font-size: 13px;
    }
    
    .map-score {
        font-size: 12px;
    }
    
    .map-rounds,
    .map-veto {
        font-size: 10px;
    }
}

@media (max-width: 1024px) {
    .match-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .match-table {
        font-size: 12px;
    }
    
    .map-cell {
        min-width: 100px;
    }
    
    .map-name {
        font-size: 12px;
    }
    
    .map-score {
        font-size: 11px;
    }
    
    .map-rounds,
    .map-veto {
        font-size: 9px;
    }
    
    .side-indicator {
        font-size: 9px;
        padding: 0.1rem 0.2rem;
    }
}

@media (max-width: 768px) {
    .match-table th,
    .match-table td {
        padding: 0.5rem;
    }
    
    .map-cell {
        min-width: 90px;
    }
    
    .map-info {
        padding: 0.375rem;
    }
    
    .map-name {
        font-size: 11px;
    }
    
    .map-score {
        font-size: 10px;
    }
    
    .map-rounds,
    .map-veto {
        font-size: 8px;
    }
    
    .side-indicator {
        font-size: 8px;
        padding: 0.1rem 0.15rem;
    }
}

/* Utility classes */
.text-win { color: var(--win); }
.text-loss { color: var(--loss); }
.text-neutral { color: var(--neutral); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }

/* Position badges and order distribution sections */
.section-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
}

.positions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.position-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    min-width: 4rem;
}

/* Team picks - purple */
.position-badge.team {
    background-color: rgba(147, 51, 234, 0.1); /* Purple */
    border-color: rgba(147, 51, 234, 0.3);
}

/* Team bans - red */
#ban-patterns .position-badge.team {
    background-color: rgba(220, 38, 38, 0.1); /* Red */
    border-color: rgba(220, 38, 38, 0.3);
}

/* Opponent picks - orange */
.position-badge.opponent {
    background-color: rgba(249, 115, 22, 0.1); /* Orange */
    border-color: rgba(249, 115, 22, 0.3);
}

/* Opponent bans - green */
#ban-patterns .position-badge.opponent {
    background-color: rgba(132, 204, 22, 0.1); /* Green */
    border-color: rgba(132, 204, 22, 0.3);
}

.position-badge.decider {
    background-color: rgba(59, 130, 246, 0.1); /* Blue */
    border-color: rgba(59, 130, 246, 0.3);
}

.position-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}

.position-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.position-owner {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

.ban-positions-section,
.pick-positions-section {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

/* Floating Button */
.floating-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 100;
}

#options-button {
    bottom: 6rem;
    right: 2rem;
}

.floating-button:hover {
    transform: translateY(-2px);
    background: var(--card-hover);
    border-color: var(--border);
}

.floating-button svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--card);
    z-index: 1;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--foreground);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin: 0 0 1rem 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
}

.modal-body p strong {
    color: var(--foreground);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal-list {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.modal-list li {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.modal-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0.25rem;
}

.data-range {
    background: var(--muted);
    padding: 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem !important;
}

.modal-footer {
    color: var(--muted-foreground);
    font-size: 0.75rem !important;
    text-align: center;
    margin-top: 1.5rem !important;
    opacity: 0.8;
}

.filter-info {
    font-size: 0.9em;
    color: var(--muted-foreground);
    font-weight: normal;
}

/* Patterns Table */
.patterns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.patterns-table th {
    background: var(--card);
    color: var(--muted-foreground);
    font-weight: 500;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.patterns-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--foreground);
}

.patterns-table tr:last-child td {
    border-bottom: none;
}

.patterns-table tbody tr {
    transition: background-color var(--transition-fast);
}

.patterns-table tbody tr:hover {
    background: var(--card-hover);
}

.patterns-table .map-badge {
    display: inline-flex;
    min-width: 80px;
    justify-content: center;
}

/* Map Stats Container for tables */
.map-stats-container {
    display: block;
    grid-template-columns: none;
    gap: 0;
    margin-bottom: 1.5rem;
}

.match-link-cell {
    width: 40px;
    text-align: center;
}

.match-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: color var(--transition-fast);
    padding: 0.25rem;
    border-radius: var(--radius);
}

.match-link:hover {
    color: var(--primary);
    background: var(--muted);
}

.match-link svg {
    width: 16px;
    height: 16px;
}

/* Match history table styles */
.veto-cell {
    padding: 8px 12px !important;
}

.team-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    padding: 0.5rem 1rem;
    background: var(--muted);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-name.searched-team {
    font-weight: 600;
    color: var(--accent-color);
}

.map-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.map-badge {
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Match History Enhancements */
.maps-container {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-result {
    width: 120px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 2px solid var(--border) !important;
    transition: all var(--transition-fast);
}

.map-result[data-side="atk"] {
    border: 2px solid rgba(239, 68, 68, 0.5) !important;
}

.map-result[data-side="def"] {
    border: 2px solid rgba(34, 197, 94, 0.5) !important;
}

.map-result.win {
    border: 1px solid var(--win);
}

.map-result.loss {
    border: 1px solid var(--loss);
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Highlight effect */
.map-result.highlight {
    box-shadow: 0 0 0 2px var(--primary);
    transform: scale(1.02);
    transition: all 0.2s ease;
    filter: grayscale(0%);
    opacity: 1;
}

.map-result.highlight .map-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.map-result.highlight .map-content {
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .veto-row {
        flex-wrap: wrap;
    }
    
    .veto-info {
        min-width: 100px;
    }
    
    .map-cell {
        width: 100px;
        height: 50px;
    }
    
    .map-name {
        font-size: 14px;
    }
    
    .round-details {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .veto-info {
        min-width: 80px;
    }
    
    .map-cell {
        width: 80px;
        height: 40px;
    }
    
    .map-name {
        font-size: 12px;
    }
    
    .veto-type {
        font-size: 0.75rem;
    }
    
    .veto-team {
        font-size: 0.7rem;
    }
    
    .round-details {
        font-size: 0.65rem;
    }
}

/* Match Cards Layout */
.match-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    padding: 1.5rem 0;
}

.match-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.match-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(
        to bottom,
        var(--card-hover) 0%,
        var(--card) 100%
    );
}

.match-meta {
    margin-bottom: 1rem;
}

.tournament-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.match-date {
    color: var(--muted-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    background: var(--muted);
}

.match-format {
    color: var(--primary);
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    background: rgba(99, 102, 241, 0.1);
}

.team-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    padding: 0.5rem 1rem;
    background: var(--muted);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Remove the right alignment for last team name since we want everything centered */
.team-name:last-child {
    text-align: center;
    justify-content: center;
}

.match-score {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: var(--radius);
    background: var(--muted);
    min-width: 5rem;
    text-align: center;
}

.match-score.winner {
    color: var(--win);
    background: rgba(34, 197, 94, 0.1);
}

.match-score.loser {
    color: var(--loss);
    background: rgba(239, 68, 68, 0.1);
}

.team-indicator {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius);
    background: var(--muted);
    color: var(--muted-foreground);
}

/* No Veto Message */
.no-veto-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: inherit; /* Inherit minimum height from parent */
    text-align: center;
    color: var(--muted-foreground);
}

.no-veto-message svg {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-veto-message p {
    font-size: 0.875rem;
    margin: 0;
}

/* Maps List */
.maps-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    flex: 1;
    min-height: 200px; /* Ensure consistent minimum height */
}

/* Map backgrounds */
.map-result[data-map="bind"] { background-image: url("../assets/bind_thumb.png"); }
.map-result[data-map="haven"] { background-image: url("../assets/haven_thumb.png"); }
.map-result[data-map="split"] { background-image: url("../assets/split_thumb.png"); }
.map-result[data-map="ascent"] { background-image: url("../assets/ascent_thumb.png"); }
.map-result[data-map="icebox"] { background-image: url("../assets/icebox_thumb.png"); }
.map-result[data-map="breeze"] { background-image: url("../assets/breeze_thumb.png"); }
.map-result[data-map="fracture"] { background-image: url("../assets/fracture_thumb.png"); }
.map-result[data-map="pearl"] { background-image: url("../assets/pearl_thumb.png"); }
.map-result[data-map="lotus"] { background-image: url("../assets/lotus_thumb.png"); }
.map-result[data-map="abyss"] { background-image: url("../assets/abyss_thumb.png"); }
.map-result[data-map="sunset"] { background-image: url("../assets/sunset_thumb.png"); }
.map-result[data-map="corrode"] { background-image: url("../assets/corrode_thumb.png"); }

.maps-section {
    margin-bottom: 1rem;
}

.maps-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.map-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 60px;
    position: relative;
    margin-bottom: 0.5rem;
}

.map-item:last-child {
    margin-bottom: 0;
}

.map-action {
    width: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-action-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Color-code the action types */
.map-item.ban .map-action-type {
    color: hsl(0 84% 60%);
}

.map-item.pick .map-action-type {
    color: hsl(142 72% 29%);
}

.map-item.decider .map-action-type {
    color: var(--accent);
}

.map-action-team {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    display: block;
    margin-top: 0.125rem;
}

.map-result {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    border-radius: 0px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: all var(--transition-fast);
}

/* Ban styles */
.map-item.ban .map-result {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.map-item.ban .map-result:hover,
.map-item.ban .map-result.highlight {
    filter: grayscale(0%);
    opacity: 1;
}

/* Hover effects */
.map-result:hover {
    transform: translateX(4px);
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.map-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: white;
}

.map-name {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-score {
    font-size: 1.125rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.5);
}

.map-item.win .map-score {
    color: var(--win);
}

.map-item.loss .map-score {
    color: var(--loss);
}

/* Card Footer */
.match-card-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.match-link,
.opponent-veto-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    background: var(--muted);
    min-width: 160px;
    white-space: nowrap;
}

.match-link:hover,
.opponent-veto-button:hover {
    color: var(--primary);
    background: var(--card-hover);
}

.match-link svg,
.opponent-veto-button svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.opponent-veto-button {
    border: none;
    cursor: pointer;
}

.opponent-veto-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--muted);
    border-radius: var(--radius);
}

.opponent-veto-item .map-result {
    width: 100px;
    height: 50px;
    flex-shrink: 0;
}

.opponent-veto-date {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    min-width: 60px;
}

.opponent-veto-vs {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-left: auto;
}

@media (max-width: 1600px) {
    .match-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

@media (max-width: 1200px) {
    .match-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
    
    .map-name {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .match-cards-container {
        grid-template-columns: 1fr;
    }
    
    .map-name {
        font-size: 0.875rem;
    }
    
    .map-action {
        width: 100px;
    }
}

.team-a-indicator {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius);
    margin-left: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

.side-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius);
    margin-left: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

.side-atk {
    background: hsl(0 84% 60% / 0.1);
    color: hsl(0 84% 60%);
}

.side-def {
    background: hsl(252 100% 69% / 0.1);
    color: var(--accent);
}

/* Update map name container to handle the side indicator */
.map-name {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .team-a-indicator {
        font-size: 0.65rem;
        padding: 0.1rem 0.25rem;
    }
    
    .side-indicator {
        font-size: 0.7rem;
        padding: 0.1rem 0.25rem;
    }
}

@media (max-width: 768px) {
    .team-a-indicator {
        font-size: 0.6rem;
        margin-left: 0.25rem;
    }
    
    .side-indicator {
        font-size: 0.65rem;
        margin-left: 0.25rem;
    }
}

.team-indicator {
    font-size: 0.8em;
    color: var(--accent);
    margin-left: 0.5rem;
    font-weight: normal;
    opacity: 0.8;
    background: hsl(252 100% 69% / 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}

/* Match Cards Horizontal Scroll Layout */
.match-cards-scroll-container {
    position: relative;
    width: 100%;
    padding: 1.5rem 0;
}

.match-cards-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.match-cards-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.match-card {
    flex: 0 0 calc(25% - 1.5rem); /* Show 4 cards, accounting for gap */
    min-width: 340px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Navigation Controls */
.scroll-controls {
    position: absolute;
    top: 50%;
    left: -4rem;
    right: -4rem;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.scroll-button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-button:hover {
    background: var(--card-hover);
    transform: scale(1.05);
    border-color: var(--primary);
}

.scroll-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.scroll-button svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
}

.progress-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--muted);
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.progress-dot:hover {
    transform: scale(1.4);
    background: var(--primary-hover);
}

/* Make adjacent dots slightly bigger when hovering a dot */
.progress-dot:hover + .progress-dot,
.progress-dot:has(+ .progress-dot:hover) {
    transform: scale(1.2);
    background: var(--primary-hover);
}

.progress-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.progress-dot.active:hover {
    transform: scale(1.4);
}

@media (max-width: 1600px) {
    .match-card {
        flex: 0 0 calc(33.333% - 1.33rem); /* Show 3 cards */
    }
}

@media (max-width: 1200px) {
    .match-card {
        flex: 0 0 calc(50% - 1rem); /* Show 2 cards */
    }
}

@media (max-width: 768px) {
    .match-card {
        flex: 0 0 calc(100% - 1rem); /* Show 1 card */
    }
    
    .scroll-controls {
        left: -3rem;
        right: -3rem;
    }
    
    .scroll-button {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Map highlight effect */
.map-result.highlight {
    box-shadow: 0 0 0 2px var(--primary);
    transform: scale(1.02);
    transition: all 0.2s ease;
    filter: grayscale(0%);
    opacity: 1;
}

.map-result.highlight .map-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.map-result.highlight .map-content {
    transform: scale(1.02);
}

/* Options Modal Styles */
.option-group {
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--foreground);
    cursor: pointer;
}

.option-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 4px;
    border: 2px solid var(--border);
    appearance: none;
    cursor: pointer;
    position: relative;
    background: var(--card);
}

.option-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.option-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-description {
    margin-top: 0.5rem;
    margin-left: 2rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Detailed Patterns Table */
.patterns-container {
    width: 100%;
    overflow-x: auto;
    padding: 1rem;
}

.detailed-patterns {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.detailed-patterns th,
.detailed-patterns td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.detailed-patterns thead th {
    background: var(--bg-secondary);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.detailed-patterns thead tr:first-child th {
    border-bottom: none;
}

.detailed-patterns tbody tr:hover {
    background: var(--bg-hover);
}

.detailed-patterns .map-thumb {
    width: 120px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.detailed-patterns .stat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.detailed-patterns .stat-percentage {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.detailed-patterns .stat-value {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.detailed-patterns .team-a,
.detailed-patterns .team-b {
    font-weight: 500;
}

.detailed-patterns .team-a {
    color: var(--team-a);
}

.detailed-patterns .team-b {
    color: var(--team-b);
}

.opponent-veto-button {
    background: none;
    border: none;
    padding: 0.25rem;
    margin-left: 0.25rem;
    cursor: pointer;
    color: var(--muted-foreground);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.opponent-veto-button:hover {
    color: var(--primary);
    background: var(--muted);
}

.opponent-veto-button svg {
    width: 1rem;
    height: 1rem;
}

.match-card.show-opponent-veto .maps-list {
    display: none;
}

.match-card.show-opponent-veto .opponent-veto-view {
    display: block;
}

.opponent-veto-view {
    display: none;
    padding: 0.75rem;
    flex: 1;
    min-height: 200px;
}

.opponent-veto-title {
    margin-bottom: 0.75rem;
}

.opponent-veto-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
    padding-right: 0.5rem;
}

.opponent-veto-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.opponent-veto-item:hover {
    background: var(--card-hover);
    transform: translateY(-1px);
}

.opponent-veto-item .map-result {
    width: 80px;
    height: 40px;
    flex-shrink: 0;
}

.opponent-veto-date {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    min-width: 45px;
    font-weight: 500;
}

.opponent-veto-vs {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-left: auto;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.opponent-veto-item .map-content {
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .opponent-veto-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .opponent-veto-list {
        grid-template-columns: 1fr;
    }
    
    .opponent-veto-item .map-result {
        width: 70px;
        height: 35px;
    }
    
    .opponent-veto-vs {
        max-width: 60px;
    }
}

/* Side badges and score badges for map hover */
.map-result .map-content .score-display,
.map-result .map-content .side-badge {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.map-result .map-content .score-display {
    background: rgba(0, 0, 0, 0.75);
    display: none; /* Hide by default */
}

/* Only show score display if there's a result */
.map-result[data-has-result="true"] .map-content .score-display {
    display: block;
}

.map-result .map-content .score-display.win {
    background: rgba(16, 185, 129, 0.25);
    color: var(--win);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.map-result .map-content .score-display.loss {
    background: rgba(239, 68, 68, 0.25);
    color: var(--loss);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.map-result .map-content .side-badge {
    display: none;
}

.map-result .map-content .side-badge.atk {
    background: rgba(239, 68, 68, 0.25);
    color: rgb(244, 63, 94);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.map-result .map-content .side-badge.def {
    background: rgba(34, 197, 94, 0.25);
    color: rgb(34, 197, 94);
    border: 1px solid rgba(34, 197, 94, 0.5);
}

/* Show/hide based on preference */
.show-sides .map-result[data-has-result="true"] .map-content .score-display {
    display: none;
}

.show-sides .map-result[data-has-result="true"][data-side] .map-content .side-badge {
    display: block;
}

.show-sides .map-result[data-has-result="true"]:hover .map-content .score-display {
    display: block;
}

.show-sides .map-result[data-has-result="true"][data-side]:hover .map-content .side-badge {
    display: none;
}

/* Default behavior (show scores first) */
.show-scores .map-result[data-has-result="true"] .map-content .score-display {
    display: block;
}

.show-scores .map-result[data-has-result="true"][data-side] .map-content .side-badge {
    display: none;
}

.show-scores .map-result[data-has-result="true"]:hover .map-content .score-display {
    display: none;
}

.show-scores .map-result[data-has-result="true"][data-side]:hover .map-content .side-badge {
    display: block;
} 
