/* CSS Variables - CS2 E-sports Theme */
:root {
    /* Colors */
    --background: #1f1f2e;
    --foreground: #f2f2f2;
    --card: #2d2d3d;
    --card-foreground: #f2f2f2;
    --primary: #262633;
    --primary-foreground: #f2f2f2;
    --secondary: #404050;
    --secondary-foreground: #f2f2f2;
    --muted: #4d4d5d;
    --muted-foreground: #a6a6a6;
    --accent: #7c3aed;
    --accent-foreground: #f2f2f2;
    --destructive: #dc2626;
    --border: #383848;
    --input: #383848;

    /* Spacing */
    --spacing: 1rem;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Space Grotesk', sans-serif;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background-color: rgba(38, 38, 51, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.1);
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-foreground);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.nav-links-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

.menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    padding: 0.5rem;
    transition: var(--transition);
}

.menu-button:hover {
    color: var(--accent);
    opacity: 0.8;
}

/* Responsive Header */
@media (max-width: 768px) {
    .nav-links-desktop {
        display: none;
        position: absolute;
        top: 100%;
        right: 1.5rem;
        background-color: rgba(38, 38, 51, 0.95);
        border: 1px solid var(--border);
        border-radius: 0.75rem;
        flex-direction: column;
        width: calc(100% - 3rem);
        max-width: 15rem;
        padding: 0.75rem 0;
        z-index: 100;
    }

    .nav-links-desktop.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 0.5rem 1rem;
        margin: 0;
    }

    .menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(124, 58, 237, 0.2), transparent, rgba(220, 38, 38, 0.1));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 80rem;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    background-color: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    width: fit-content;
}

.badge-pulse {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

.hero-title .accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 28rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: fit-content;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }
}

.hero-right {
    display: none;
}

@media (min-width: 1024px) {
    .hero-right {
        display: block;
    }
}

.hero-image {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(124, 58, 237, 0.2);
    border: 1px solid var(--border);
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--accent-foreground);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    border: 2px solid var(--accent);
    color: var(--accent);
    background-color: transparent;
}

.btn-secondary:hover {
    background-color: rgba(124, 58, 237, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in forwards;
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

/* Page Banner */
.page-banner {
    max-width: 80rem;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.page-banner img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Section Container */
.section-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--foreground);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 5rem 1.5rem;
    background-color: rgba(38, 38, 51, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background-color: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Form Styles */
.signup {
    padding: 5rem 1.5rem;
    background-color: var(--primary);
}

.form-wrapper {
    max-width: 42rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.registration-form {
    flex: 1;
    min-height: 500px;
}

.signup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.form-wrapper,
.banner-box {
    height: 100%;
}

.banner-box {
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: stretch;
}

.banner-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .signup-grid {
        grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
        align-items: stretch;
    }
}

.registration-form {
    padding: 2rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.registration-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
    background-color: var(--input);
    color: var(--foreground);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--destructive);
}

.error-message {
    display: block;
    font-size: 0.875rem;
    color: var(--destructive);
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.success-message {
    padding: 1rem;
    background-color: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--accent);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: var(--foreground);
}

.success-message svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* Teams List */
.teams-list-section {
    margin-top: 3rem;
}

.teams-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--foreground);
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.team-card {
    padding: 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--accent);
}

.team-card h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.team-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Rules Section */
.rules {
    padding: 5rem 1.5rem;
    background-color: rgba(38, 38, 51, 0.5);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.rules-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.rules-list {
    list-style: none;
}

.rules-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rule-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: rgba(124, 58, 237, 0.2);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.rules-list h4 {
    color: var(--foreground);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.rules-list p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.rules-note {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem 2rem;
    margin-top: 3rem;
}

.rules-note h4 {
    font-size: 1.125rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.rules-note p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.rules-note p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    background-color: var(--primary);
    margin-top: 6rem;
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-grid h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.footer-grid h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.footer-grid p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 0.5rem;
}

.footer-grid a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: var(--transition);
}

.footer-grid a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Section Margins */
section {
    scroll-margin-top: 80px;
}

@media (max-width: 640px) {
    section {
        scroll-margin-top: 60px;
    }

    .hero-buttons {
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* Utility Classes */
.animate-scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}


/* css dla stream.html */
/* GŁÓWNA SEKCJA */
.live-section {
    padding: 80px 0;
    background: var(--background);
}

/* POWIĘKSZENIE KONTENERA DLA CAŁEJ SEKCJI */
.live-section .section-container {
    max-width: 1500px !important; /* Zwiększona szerokość z domyślnych 1200px */
    width: 95%;
    margin: 0 auto;
}

.live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dwie RÓWNE kolumny */
    gap: 30px;
    margin-top: 40px;
}

.live-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Kluczowe przy używaniu overflow wewnątrz grida */
}

/* KONTENER 16:9 - Gwarantuje identyczny rozmiar obu bloków */
.media-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    background: #000;
}

#twitch-embed {
    width: 100%;
    height: 100%;
}

/* STYLIZACJA DRABINKI */
.bracket-content {
    display: flex;
    height: 100%;
    padding: 30px;
    align-items: center;
    /* Zmiana na flex-start + overflow-x, aby obsłużyć więcej drużyn */
    justify-content: flex-start; 
    position: relative;
    overflow-x: auto; 
    overflow-y: hidden;
    gap: 10px;

    /* Tło w klimacie CS2 */
    background-color: #161621; 
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.1) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(124, 58, 237, 0.15) 0%, rgba(22, 22, 33, 0) 75%),
        url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    background-size: 30px 30px, 30px 30px, cover, auto;
}

/* STYLIZACJA SCROLLBARA DLA DRABINKI */
.bracket-content::-webkit-scrollbar {
    height: 6px;
}
.bracket-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.bracket-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.bracket-col {
    display: flex;
    flex-direction: column;
    gap: 30px; 
    flex: 0 0 250px; /* Nie pozwala kolumnom się kurczyć poniżej 250px */
    z-index: 2;
    justify-content: center; /* Centruje mecze w pionie */
}

.match {
    background: rgba(31, 31, 46, 0.9) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.match:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--accent) !important;
}

.match.final { 
    border: 2px solid var(--accent) !important;
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.4);
}

.match-label {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    text-align: center;
    font-weight: 700;
    padding: 5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.team {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: #fff;
    font-family: var(--font-heading);
}

.team:first-of-type { 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
}

.team span:last-child {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    padding: 0 8px;
    border-radius: 4px;
}

.team.winner { 
    background: rgba(124, 58, 237, 0.05);
}

.team.winner span:first-child {
    color: var(--accent);
    font-weight: 700;
}

/* Łącznik - linia */
.bracket-spacer { 
    width: 40px; 
    flex: 0 0 40px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.line { 
    height: 2px; 
    width: 100%; 
    background: linear-gradient(90deg, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent);
}

/* DODATKI */
.card-header { padding: 15px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.live-indicator { color: #ff4444; font-weight: bold; font-size: 0.8rem; display: flex; align-items: center; gap: 8px; }
.pulse-dot { width: 8px; height: 8px; background: #ff4444; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* Match Selection Styles */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.map-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.map-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.map-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.map-card h3 {
    margin: 0.5rem 0;
    color: var(--foreground);
    font-size: 1rem;
}

.action-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-ban {
    background: var(--destructive);
    color: white;
}

.btn-ban:hover:not(:disabled) {
    background: #dc2626cc;
}

.btn-pick {
    background: var(--accent);
    color: var(--accent-foreground);
}

.btn-pick:hover:not(:disabled) {
    background: var(--accent-foreground);
    color: var(--accent);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--muted);
    color: var(--muted-foreground);
}

.lists-container {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.banned-list, .picked-list {
    flex: 1;
    margin: 0 1rem;
    padding: 1rem;
    background: var(--muted);
    border-radius: 0.5rem;
}

.banned-list ul, .picked-list ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.banned-list li, .picked-list li {
    background: var(--destructive);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.picked-list li {
    background: var(--accent);
    color: var(--accent-foreground);
}

.match-info {
    background: var(--card);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.match-info p {
    margin: 0.5rem 0;
}

/* Map Selection Viewer Styles */
#map-selection-viewer {
    padding: 1rem;
}

.viewer-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.viewer-controls input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    background: var(--input);
    color: var(--foreground);
}

.match-info-viewer {
    background: var(--card);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.match-info-viewer p {
    margin: 0.5rem 0;
}

.maps-grid-viewer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.map-card-viewer {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    position: relative;
}

.map-card-viewer img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.map-card-viewer h3 {
    margin: 0.5rem 0;
    color: var(--foreground);
    font-size: 1rem;
}

.map-status {
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.map-status.available {
    background: var(--muted);
    color: var(--muted-foreground);
}

.map-status.banned {
    background: var(--destructive);
    color: white;
}

.map-status.picked {
    background: var(--accent);
    color: var(--accent-foreground);
}

.lists-container-viewer {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.banned-list-viewer, .picked-list-viewer {
    flex: 1;
    margin: 0 1rem;
    padding: 1rem;
    background: var(--muted);
    border-radius: 0.5rem;
}

.banned-list-viewer ul, .picked-list-viewer ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.banned-list-viewer li, .picked-list-viewer li {
    background: var(--destructive);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.picked-list-viewer li {
    background: var(--accent);
    color: var(--accent-foreground);
}

/* Active Bans List */
.active-bans-list {
    padding: 1rem;
}

.active-ban-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.active-ban-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--foreground);
}

.active-ban-item p {
    margin: 0.25rem 0;
    color: var(--muted-foreground);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 992px) {
    .live-grid { grid-template-columns: 1fr; }
    .media-wrapper { aspect-ratio: 16 / 9; }
    .maps-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .maps-grid-viewer { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .lists-container {
        flex-direction: column;
    }
    .lists-container-viewer {
        flex-direction: column;
    }
}

/* Centered card for match selection */
.centered-card {
    max-width: 500px;
    margin: 0 auto;
}