* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --sidebar-bg: #1e293b;
    --sidebar-text: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    padding: 0 20px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
}

.nav-menu {
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 14px 24px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.05);
}

.nav-menu a.active {
    background: rgba(255,255,255,0.1);
    border-left-color: var(--primary);
    color: white;
}

/* Content */
.content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.page-header h1 {
    flex: 1;
}

h1 {
    font-size: 28px;
    margin-bottom: 24px;
}

h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card .label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-top: 8px;
}

.stat-card .sub {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

/* Awards */
.award-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.award-icon {
    font-size: 24px;
    margin-right: 14px;
}

.award-info {
    flex: 1;
}

.award-title {
    font-weight: 600;
    color: var(--text);
}

.award-player {
    color: var(--text-light);
    font-size: 14px;
}

.award-value {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

/* Tournament Scorers */
.scorer-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.scorer-tournament {
    flex: 1;
}

.scorer-tournament .name {
    font-weight: 500;
}

.scorer-tournament .date {
    font-size: 12px;
    color: var(--text-light);
}

.scorer-player {
    text-align: right;
}

.scorer-player .name {
    font-weight: 600;
    color: var(--primary);
}

.scorer-player .goals {
    font-size: 12px;
    color: var(--text-light);
}

/* Tournaments Grid */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.tournament-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tournament-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tournament-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.tournament-card .meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.tournament-card .stats {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tournament-card .stat {
    text-align: center;
}

.tournament-card .stat-value {
    font-size: 20px;
    font-weight: 700;
}

.tournament-card .stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.tournament-card .actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Tournament Placement Badge */
.tournament-placement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.tournament-placement .placement-medal {
    font-size: 24px;
}

.tournament-placement .placement-text {
    font-size: 15px;
}

.tournament-placement.placement-gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.tournament-placement.placement-silver {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
}

.tournament-placement.placement-bronze {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #9a3412;
}

/* Planned Tournament Styles */
.tournament-card.planned {
    border: 2px dashed var(--primary);
    position: relative;
}

.planned-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.planned-squad {
    margin-top: 16px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
}

.planned-squad.empty {
    text-align: center;
    color: var(--text-light);
}

.planned-squad-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.planned-squad-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.squad-player {
    background: var(--card-bg);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    border: 1px solid var(--border);
}

/* Voting Section */
.voting-section {
    margin-top: 32px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.voting-header h2 {
    margin: 0 0 16px 0;
    font-size: 18px;
}

.voting-winner {
    margin-bottom: 20px;
}

.voting-winner .winner-card {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.voting-winner .winner-icon {
    font-size: 32px;
}

.voting-winner .winner-info .winner-name {
    font-weight: 700;
    font-size: 18px;
    color: #92400e;
}

.voting-winner .winner-info .winner-votes {
    font-size: 14px;
    color: #b45309;
}

.voting-form {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
}

.voting-form h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-light);
}

.voting-form .form-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.voter-input, .vote-select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
}

.vote-results h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-light);
}

.vote-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 8px;
}

.vote-item .player-name {
    font-weight: 600;
}

.vote-item .vote-count {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.vote-item .vote-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin: 0 12px;
    overflow: hidden;
}

.vote-item .vote-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

/* Vote Details */
.vote-details {
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.vote-details summary {
    padding: 12px 16px;
    background: var(--bg);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
}

.vote-details summary:hover {
    background: var(--border);
}

.vote-details[open] summary {
    border-bottom: 1px solid var(--border);
}

.vote-detail-list {
    padding: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.vote-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
}

.vote-detail-item:nth-child(odd) {
    background: var(--bg);
}

.vote-detail-item .voter-name {
    font-weight: 500;
    min-width: 100px;
}

.vote-detail-item .vote-arrow {
    color: var(--text-light);
}

.vote-detail-item .voted-for {
    color: var(--primary);
    font-weight: 600;
}

/* Tournament Detail */
.tournament-info {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.tournament-info .info-item {
    display: flex;
    flex-direction: column;
}

.tournament-info .label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
}

.tournament-info .value {
    font-size: 18px;
    font-weight: 600;
}

/* Team Image Section */
.team-image-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.team-image-container {
    max-width: 800px;
    margin: 0 auto 16px;
    border-radius: 8px;
    overflow: hidden;
}

.team-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.team-image-placeholder {
    background: var(--bg);
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 40px;
    color: var(--text-light);
}

.team-image-placeholder span {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.team-image-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Matches List */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.match-number {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
}

.match-phase {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--bg);
    color: var(--text-light);
    margin-left: 10px;
}

.match-phase.finale {
    background: #fef3c7;
    color: #92400e;
}

.match-phase.halbfinale {
    background: #dbeafe;
    color: #1e40af;
}

.match-phase.viertelfinale {
    background: #dcfce7;
    color: #166534;
}

.match-phase.achtelfinale {
    background: #f3e8ff;
    color: #6b21a8;
}

.match-actions {
    display: flex;
    gap: 8px;
}

.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.match-team {
    text-align: center;
    flex: 1;
}

.match-team.home {
    text-align: right;
}

.match-team.away {
    text-align: left;
}

.match-team .name {
    font-weight: 600;
    font-size: 16px;
}

.match-result {
    font-size: 32px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
}

.match-result.win {
    background: #dcfce7;
    color: #166534;
}

.match-result.loss {
    background: #fee2e2;
    color: #991b1b;
}

.match-result.draw {
    background: #fef3c7;
    color: #92400e;
}

.match-players {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.match-players h4 {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.player-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.player-tag {
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.player-tag .goals {
    color: var(--success);
    font-weight: 600;
    margin-left: 6px;
}

/* Players Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.player-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-card .name {
    font-weight: 600;
    font-size: 16px;
}

.player-card .player-actions {
    display: flex;
    gap: 8px;
}

/* Stats Table */
.table-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 14px 20px;
    text-align: left;
}

.stats-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-light);
}

.stats-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--border);
}

.stats-table tbody tr:hover {
    background: var(--bg);
}

.stats-table .rank {
    font-weight: 700;
    color: var(--text-light);
}

.stats-table .rank-1 { color: #f59e0b; }
.stats-table .rank-2 { color: #9ca3af; }
.stats-table .rank-3 { color: #b45309; }

.stats-table .player-name {
    font-weight: 600;
}

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

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-icon {
    padding: 8px;
    background: transparent;
    color: var(--text-light);
}

.btn-icon:hover {
    background: var(--bg);
    color: var(--text);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content.modal-large {
    max-width: 700px;
}

.modal-content.modal-small {
    max-width: 400px;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}

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

.modal h2 {
    margin-bottom: 24px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: var(--card-bg);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.score-row {
    align-items: flex-end;
}

.score-separator {
    font-size: 24px;
    font-weight: 700;
    padding-bottom: 30px;
}

/* Players Selection */
.players-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg);
    border-radius: 8px;
}

.player-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.player-select-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.player-select-item .name {
    flex: 1;
    font-size: 14px;
}

.player-select-item input[type="number"] {
    width: 60px;
    padding: 6px;
    font-size: 13px;
}

.player-select-item.in-kader {
    border-color: var(--primary);
    background: #eff6ff;
}

.player-select-item.in-kader .name::after {
    content: ' ⭐';
    font-size: 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Placement Badge */
.placement-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg);
    color: var(--text);
}

.placement-badge.top-3 {
    background: linear-gradient(135deg, #fef3c7, #fcd34d);
    color: #92400e;
}

.placement-separator {
    padding: 0 8px;
    font-weight: 500;
    color: var(--text-light);
    align-self: center;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-download {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    color: var(--text);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 2001;
}

.lightbox-download:hover {
    background: white;
    transform: translateX(-50%) scale(1.05);
}

/* Clickable Team Image */
.team-image-container {
    max-width: 800px;
    margin: 0 auto 16px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.team-image-container:hover img {
    transform: scale(1.02);
}

.team-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.2s;
}

/* Gallery Section */
.gallery-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gallery-header h2 {
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.gallery-item:hover .delete-btn {
    opacity: 1;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: var(--sidebar-bg);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .content {
        margin-left: 0;
        padding: 70px 15px 15px;
    }
    
    .page-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .page-header h1 {
        order: -1;
        width: 100%;
        font-size: 22px;
        margin-bottom: 0;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card .value {
        font-size: 24px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .tournaments-grid {
        grid-template-columns: 1fr;
    }
    
    .tournament-card .stats {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .score-row {
        flex-direction: row !important;
        align-items: flex-end;
    }
    
    .score-row .form-group {
        flex: 1;
    }
    
    .match-score {
        flex-direction: row;
        gap: 10px;
    }
    
    .match-result {
        font-size: 24px;
        padding: 8px 12px;
        min-width: 90px;
    }
    
    .match-team .name {
        font-size: 14px;
    }
    
    .match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .match-actions {
        width: 100%;
    }
    
    .match-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .modal-content {
        margin: 10px;
        padding: 20px;
        max-height: 85vh;
    }
    
    .players-selection {
        grid-template-columns: 1fr;
    }
    
    .player-select-item {
        padding: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .team-image-section {
        padding: 15px;
    }
    
    .team-image-actions {
        flex-direction: column;
    }
    
    .team-image-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tournament-info {
        gap: 16px;
        padding: 16px;
    }
    
    .tournament-info .value {
        font-size: 16px;
    }
    
    /* Stats Table Mobile */
    .table-container {
        overflow-x: auto;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .stats-table th:first-child,
    .stats-table td:first-child {
        position: sticky;
        left: 0;
        background: var(--card-bg);
        z-index: 1;
    }
    
    .stats-table th:first-child {
        background: var(--bg);
    }
    
    .award-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .award-value {
        font-size: 16px;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
    }
}
