* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Grunge Dark Theme */
    --bg-dark: #0a1628;
    --bg-gradient: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2137 100%);
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2a4d7a;
    --accent: #c41e3a;
    --accent-light: #e63950;
    --gold: #d4af37;
    --gold-light: #f0d060;
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-light: rgba(255,255,255,0.9);
    --text-muted: rgba(255,255,255,0.6);
    
    /* Card Colors */
    --card-bg: rgba(255,255,255,0.08);
    --card-bg-solid: #1a2d42;
    --card-border: rgba(255,255,255,0.1);
    
    /* Funktionale Farben */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Schatten */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow: 0 4px 15px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
    --glow-red: 0 0 30px rgba(196, 30, 58, 0.4);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>'),
        var(--bg-gradient);
    background-size: 50px 50px, 100% 100%;
    color: var(--text-white);
    min-height: 100vh;
    line-height: 1.5;
}

.app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* ==================== HERO HEADER ==================== */
.header {
    position: relative;
    margin: 0 -20px 25px;
    padding: 30px 20px 25px;
    background: 
        linear-gradient(180deg, rgba(10, 22, 40, 0.9) 0%, rgba(26, 58, 92, 0.8) 100%),
        url('assets/images/grunge-bg.jpg') center/cover;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(196, 30, 58, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(30, 58, 95, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-top {
    margin-bottom: 15px;
}

.header-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.header-title h1 {
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: 52px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--text-white);
    text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title .edition {
    color: var(--text-white);
}

.date-badge {
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: 36px;
    color: var(--text-white);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
    letter-spacing: 3px;
    opacity: 0.9;
}

.header-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.info-item {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 600;
}

.admin-toggle {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    display: none;
}

.admin-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.admin-toggle.active {
    background: var(--success);
    border-color: var(--success);
}

/* Admin Button in Footer */
.admin-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--card-border);
}

.admin-footer .admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==================== SPONSORS BAR ==================== */
.sponsors-bar {
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    margin: 0 -20px 25px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.sponsors-label {
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: 18px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.sponsors-logos {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.sponsor-slot {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-slot img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: opacity 0.3s, transform 0.3s;
}

.sponsor-slot img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.sponsor-slot span {
    color: var(--text-muted);
    font-size: 12px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 5px;
    background: var(--card-bg);
    padding: 6px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    flex-wrap: wrap;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.tab {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.tab:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.05);
}

.tab.active {
    background: var(--accent);
    color: var(--text-white);
    box-shadow: var(--glow-red);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Groups */
.groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
}

.group-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.group-header {
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--text-white);
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 2px;
}

.group-header::before {
    content: '⚽';
    font-size: 20px;
}

.group-card:nth-child(2) .group-header { border-color: var(--primary-light); }
.group-card:nth-child(3) .group-header { border-color: var(--gold); }

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th,
.standings-table td {
    padding: 12px 6px;
    text-align: center;
}

.standings-table th {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255,255,255,0.03);
}

.standings-table th:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.standings-table th:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.standings-table td {
    border-bottom: 1px solid var(--card-border);
    color: var(--text-light);
}

.standings-table tr:last-child td {
    border-bottom: none;
}

.standings-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

.standings-table .team-cell {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
    overflow: hidden;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    color: var(--text-light);
}

.rank-1 { 
    background: linear-gradient(135deg, #ffd700, #ffaa00); 
    color: #000; 
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}
.rank-2 { 
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0); 
    color: #000; 
}
.rank-3 { 
    background: linear-gradient(135deg, #cd7f32, #a0522d); 
    color: #fff; 
}

.points {
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
}

/* Schedule */
.schedule-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    color: var(--text-muted);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--text-white);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--text-white);
    border-color: var(--accent);
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 15px 20px;
    display: grid;
    grid-template-columns: 90px 1fr auto 1fr auto;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--card-border);
    transition: all 0.3s;
}

.match-card:hover {
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}

.match-card.finished {
    opacity: 0.8;
}

.match-card.clickable {
    cursor: pointer;
}

.match-card.clickable:hover {
    transform: translateX(5px);
    border-color: var(--success);
}

.match-time {
    font-weight: 700;
    color: var(--accent);
    font-size: 15px;
}

.match-group {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

.match-team.home {
    justify-content: flex-end;
    text-align: right;
}

.match-team.away {
    text-align: left;
}

.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 400;
    min-width: 80px;
    color: var(--text-white);
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
}

.match-score.pending {
    color: var(--text-muted);
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
}

.match-actions {
    display: none;
}

body.admin-mode .match-actions {
    display: flex;
}

.btn-edit {
    padding: 8px 15px;
    background: var(--success);
    border: none;
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-edit:hover {
    background: #218838;
    transform: scale(1.05);
}

/* Bracket */
.bracket-container {
    overflow-x: auto;
    padding: 20px 0;
}

.bracket {
    display: flex;
    gap: 30px;
    min-width: 1100px;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 280px;
}

.round-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 1px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}

.bracket-match {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.bracket-match.finale {
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, var(--white) 0%, #fffdf5 100%);
}

.bracket-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--gray-500);
}

.bracket-match-label {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bracket-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 5px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.bracket-team:last-of-type {
    margin-bottom: 0;
}

.bracket-team.winner {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: var(--success);
}

.bracket-team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.bracket-team-info .team-logo {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.bracket-score {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
}

/* Admin */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.admin-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.admin-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
}

.admin-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-family: 'Oswald', sans-serif;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.team-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.team-card-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    overflow: hidden;
}

.team-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-card-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--gray-800);
}

.team-card-info p {
    font-size: 13px;
    color: var(--gray-500);
}

.matches-admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-type-header {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    color: var(--primary);
    margin: 25px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}

.match-type-header:first-child {
    margin-top: 0;
}

/* Settings */
.settings-form {
    max-width: 500px;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.settings-form h3 {
    color: var(--danger);
    margin-bottom: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-800);
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group input[type="color"] {
    height: 50px;
    cursor: pointer;
    padding: 5px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-large {
    max-width: 520px;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-family: 'Oswald', sans-serif;
    color: var(--primary);
    font-size: 24px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Result Form */
.result-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.result-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.result-team .team-name {
    font-size: 14px;
    text-align: center;
    color: var(--gray-600);
    font-weight: 600;
}

.result-team input {
    width: 80px;
    height: 70px;
    text-align: center;
    font-size: 32px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-800);
}

.result-team input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.result-vs {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-400);
}

/* Penalty Option */
.penalty-option {
    margin: 15px 0;
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.penalty-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.penalty-scores.hidden {
    display: none;
}

.penalty-input {
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
}

.penalty-input:focus {
    border-color: var(--primary);
    outline: none;
}

/* Penalty Badge */
.penalty-badge {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: white;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: var(--danger);
}

/* Hidden & Admin */
.hidden {
    display: none !important;
}

.admin-only {
    display: none !important;
}

body.admin-mode .admin-only {
    display: flex !important;
}

body.admin-mode .admin-only.tab {
    display: flex !important;
}

body.admin-mode .admin-only.tab-content {
    display: none !important;
}

body.admin-mode .admin-only.tab-content.active {
    display: block !important;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    color: var(--gray-500);
    font-size: 13px;
    border-top: 1px solid var(--gray-200);
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Logo Upload */
.logo-upload-area {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 2px dashed var(--gray-300);
}

.logo-preview {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 2px solid var(--gray-200);
    overflow: hidden;
    flex-shrink: 0;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    color: var(--gray-400);
}

.logo-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.upload-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

/* Emoji Grid */
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.emoji-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    background: var(--primary);
    transform: scale(1.15);
}

/* Responsive */
@media (max-width: 900px) {
    .groups-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 15px;
        margin: 0 -20px 0;
    }
    
    .header-logo {
        width: 70px;
        height: 70px;
    }
    
    .header-title h1 {
        font-size: 28px;
        letter-spacing: 2px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .date-badge {
        font-size: 24px;
    }
    
    .header-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-item {
        font-size: 14px;
    }
    
    /* Sponsors Mobile */
    .sponsors-bar {
        padding: 20px 15px;
        gap: 20px;
    }
    
    .sponsors-logos {
        gap: 30px;
    }
    
    .sponsor-slot {
        height: 60px;
    }
    
    .sponsor-slot img {
        max-height: 60px;
    }
    
    /* Match Cards Mobile */
    .match-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
        padding: 15px;
    }
    
    .match-card > div:first-child {
        border-bottom: 1px solid var(--card-border);
        padding-bottom: 10px;
    }
    
    .match-team {
        justify-content: center;
        font-size: 15px;
    }
    
    .match-team.home,
    .match-team.away {
        justify-content: center;
        text-align: center;
    }
    
    .match-score {
        font-size: 28px;
        padding: 12px 20px;
    }
    
    .match-actions {
        justify-content: center;
        padding-top: 10px;
        border-top: 1px solid var(--card-border);
    }
    
    /* Bracket Mobile */
    .bracket {
        min-width: 100%;
        flex-direction: column;
        gap: 25px;
    }
    
    .bracket-round {
        min-width: 100%;
    }
    
    .bracket-match {
        margin-bottom: 10px;
    }
    
    /* Tabs Mobile */
    .tabs {
        justify-content: center;
        padding: 4px;
    }
    
    .tab {
        flex: none;
        min-width: auto;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* Result Modal Mobile */
    .result-teams {
        flex-direction: column;
        gap: 10px;
    }
    
    .result-vs {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    
    .result-team input {
        width: 100px;
        height: 80px;
        font-size: 36px;
    }
    
    /* Settings Mobile */
    .settings-form {
        padding: 20px;
    }
    
    /* Logo Upload Mobile */
    .logo-upload-area {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-upload-controls {
        align-items: center;
    }
    
    /* Tables Mobile */
    .standings-table {
        font-size: 13px;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 10px 4px;
    }
    
    .team-logo {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .rank {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    /* Teams Grid Mobile */
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    /* Emoji Grid Mobile */
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    /* Modal Mobile */
    .modal-content {
        padding: 20px;
        margin: 10px;
        max-height: 85vh;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
    
    /* Admin Tabs Mobile */
    .admin-tabs {
        justify-content: center;
    }
    
    .admin-tab {
        padding: 8px 15px;
        font-size: 13px;
    }
}