/* CS2 School Tournament - Style CSS */

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

/* Zmienne CSS */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #ff8c42;
    --accent-color: #ffa500;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #333333;
    --shadow: 0 4px 6px rgba(255, 107, 53, 0.1);
    --shadow-hover: 0 8px 12px rgba(255, 107, 53, 0.2);
}

/* Base styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    border-bottom: 2px solid var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    gap: 1rem;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main */
.main {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0;
    text-align: left;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(10, 10, 10, 0.86) 45%, rgba(10, 10, 10, 0.48) 100%);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), var(--shadow-hover);
    isolation: isolate;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.7;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, transparent 34%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 80px);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--text-primary);
    max-width: 820px;
    line-height: 1.08;
}

.hero p {
    font-size: 1.16rem;
    color: var(--text-secondary);
    max-width: 710px;
    margin: 0;
    line-height: 1.6;
}

.hero-kicker {
    color: var(--primary-color) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem !important;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1rem;
    background: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 24px rgba(255, 107, 53, 0.45);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.hero-actions .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero .btn-primary {
    margin-top: 0;
}

.btn.btn-ghost {
    background: rgba(10, 10, 10, 0.58);
    color: var(--text-primary);
    border: 1px solid rgba(255, 107, 53, 0.45);
}

.btn.btn-ghost:hover {
    color: var(--primary-color);
}

.hero-status-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    max-width: 840px;
    margin-top: 2.2rem;
}

.hero-status-item {
    min-height: 92px;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.78);
    border: 1px solid rgba(255, 107, 53, 0.22);
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.hero-status-item strong {
    display: block;
    color: var(--primary-color);
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.hero-status-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.35;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Cards */
.card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 2px solid var(--primary-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 4rem 0;
        text-align: center;
        background-position: center;
    }
    
    .hero h1 {
        font-size: 2.35rem;
    }

    .hero p {
        margin: 0 auto;
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 340px;
    }

    .hero-status-row {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .status-badge,
    .hero-kicker {
        font-size: 0.82rem;
    }
}

/* Animacje */
@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(255, 107, 53, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 107, 53, 0.8); }
    100% { text-shadow: 0 0 5px rgba(255, 107, 53, 0.5); }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-hover);
    text-align: center;
}

.login-header h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.login-header p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.success-message {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #51cf66;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.reset-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.back-to-site {
    margin-top: 2rem;
    text-align: center;
}

.back-to-site a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-to-site a:hover {
    color: var(--primary-color);
}

/* Admin Panel Styles */
.admin-panel {
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Oswald', sans-serif;
}

.admin-user {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    background: var(--bg-dark);
}

.admin-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Oswald', sans-serif;
}

.admin-header p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.stats-section {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.stat-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.actions-section {
    margin-bottom: 3rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.action-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.action-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.action-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.recent-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
}

.recent-list {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.recent-time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.recent-action {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Form Styles */
.form-section {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.checkbox-group {
    padding: 0.9rem 1rem;
    background: rgba(255, 107, 53, 0.07);
    border: 1px solid rgba(255, 107, 53, 0.22);
    border-radius: 8px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem !important;
    color: var(--text-primary) !important;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.readonly-score {
    border-color: rgba(255, 107, 53, 0.45) !important;
    background: rgba(255, 107, 53, 0.08) !important;
    color: var(--primary-color) !important;
    font-weight: 800;
}

.team-form {
    max-width: 1000px;
}

.team-meta-fields {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) minmax(160px, 1fr);
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

/* Teams List */
.teams-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.team-info {
    margin-bottom: 1.5rem;
}

.team-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
}

.team-tag {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.team-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.team-players {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.team-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

.team-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Button Variants */
.btn-primary {
    margin-top: 1rem;
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Matches List */
.matches-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.match-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.match-info {
    margin-bottom: 1.5rem;
}

.match-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
}

.match-datetime {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.match-status {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.schedule-section {
    margin-bottom: 3rem;
}

.subsection-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.match-status.upcoming {
    color: var(--primary-color);
    font-weight: 600;
}

.match-status.in-progress {
    color: #ff9800;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.match-status.completed {
    color: #4caf50;
    font-weight: 600;
}

.match-card.upcoming {
    border-left: 4px solid var(--primary-color);
}

.match-card.in-progress {
    border-left: 4px solid #ff9800;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(255, 152, 0, 0.05) 100%);
}

.match-card.completed {
    border-left: 4px solid #4caf50;
}

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

.status-scheduled {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.status-completed {
    color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.match-score {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.match-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.match-actions {
    display: flex;
    gap: 0.5rem;
}

.match-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Form select styling */
select {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Tournament Section */
.tournament-section {
    width: 100%;
    padding: 0 20px 56px;
    margin-bottom: 2rem;
}

.tournament-layout {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
    gap: 1.25rem;
    align-items: stretch;
}

.tournament-poster {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.tournament-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    min-width: 0;
    padding: 28px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 18px;
    border: 1px solid rgba(255, 107, 53, 0.18);
}

.tournament-image {
    width: 38%;
    max-width: 420px;
    height: auto;
    margin-right: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.25);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.4);
}

.tournament-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tournament-title {
    margin-bottom: 16px;
}

.tournament-text {
    line-height: 1.5;
}

.tournament-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tournament-title h1,
.tournament-title h2 {
    text-align: left;
    color: var(--primary-color);
    font-size: 2.25rem;
    font-family: 'Oswald', sans-serif;
    line-height: 1.15;
    text-transform: uppercase;
}

.tournament-text p {
    text-align: left;
    color: var(--text-secondary);
    font-size: 1.08rem;
}

.tournament-text p strong {
    color: var(--text-primary);
}

.tournament-details-current {
    margin: 1.5rem 0;
}

.tournament-info-item {
    padding: 1.1rem;
    background: rgba(10, 10, 10, 0.62);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
}

.tournament-info-item span {
    display: block;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.tournament-info-item strong {
    display: block;
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.tournament-info-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.45;
}

.tournament-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1.4rem;
}

.tournament-actions .btn-primary {
    margin-top: 0;
}

.tournament-link {
    color: var(--primary-color, #ff7a00);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: 0.2s ease;
}

.tournament-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px color-mix(in srgb, var(--primary-color, #ff7a00) 70%, transparent);
}
.discord-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    min-width: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 18px;
    border: 1px solid rgba(255, 107, 53, 0.22);
    position: relative;
    overflow: hidden;
}

.discord-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.discord-left {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.discord-eyebrow {
    display: block;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.discord-left h2 {
    margin: 0;
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.discord-left p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0.75rem 0 1rem;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(255, 107, 53, 0.45);
    border-radius: 5px;
    background: rgba(10, 10, 10, 0.58);
    color: var(--primary-color, #ff7a00);
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.discord-link:hover {
    color: var(--text-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 18px rgba(255, 107, 53, 0.18);
}

.discord-right {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.16);
    background: rgba(10, 10, 10, 0.62);
}

.discord-right iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}

@media (max-width: 1100px) {
    .tournament-layout {
        grid-template-columns: 1fr;
    }

    .discord-card {
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
        align-items: stretch;
    }

    .discord-right iframe {
        height: 320px;
    }
}

/* Mobile responsive for tournament section */
@media (max-width: 768px) {
    .tournament-section {
        padding: 0 18px 36px;
    }

    .tournament-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 22px;
    }
    
    .tournament-image {
        width: 100%;
        max-width: 420px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .tournament-content {
        text-align: center;
    }

    .tournament-title h1,
    .tournament-title h2,
    .tournament-text p {
        text-align: center;
    }

    .tournament-details {
        grid-template-columns: 1fr;
    }

    .tournament-actions {
        justify-content: center;
    }

    .tournament-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* responsywność */
@media (max-width: 768px) {
    .discord-card {
        display: flex;
        flex-direction: column;
        padding: 20px;
        width: 100%;
    }

    .discord-right iframe {
        height: 300px;
    }
}

.tournament-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--primary-color, #ff7a00),
        transparent
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.tournament-link:hover::after {
    transform: scaleX(1);
}

.tournament-text h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.tournament-details .card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tournament-details .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.tournament-details .card h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.tournament-details .card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Schedule Page Styles */
.schedule-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.match-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.match-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.match-date {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    min-width: 96px;
}

.match-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.match-month {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
}

.match-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.match-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.teams {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team {
    text-align: center;
}

.team-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.vs {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.match-type {
    background: var(--bg-dark);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.match-stage {
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.24);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.match-result {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive design for schedule */
@media (max-width: 768px) {
    .match-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .match-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .teams {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .match-info {
        align-items: center;
    }
}

/* Results Page Styles */
.results-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.result-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.result-date {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    min-width: 96px;
}

.result-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.result-month {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
}

.result-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.result-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-result-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.team-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.team-result .team-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: color 0.3s ease;
}

.team-result .team-name.winner {
    color: var(--primary-color);
    font-weight: 700;
}

.team-score {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

.team-result.winner .team-score {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.vs-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.vs-text {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-format {
    background: var(--bg-dark);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.result-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.result-type {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.match-duration {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive design for results */
@media (max-width: 768px) {
    .result-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .result-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .match-result-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team-result {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        min-width: auto;
    }
    
    .result-info {
        align-items: center;
    }
}

/* Admin Teams Styles */
.team-players-list {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.team-players-list h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
}

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

.player-number {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.player-item.reserve .player-number {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.player-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Results Admin Styles */
.result-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-content {
    flex: 1;
}

.result-item strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.result-item small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.result-actions {
    margin-left: 1rem;
}

.btn-small {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.form-hint {
    display: block;
    margin-top: 0.3rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.walkover-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 24px;
    margin-left: 0.45rem;
    padding: 0.2rem 0.55rem;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.35);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-info .walkover-badge,
.match-info .walkover-badge {
    margin-left: 0;
}

.faceit-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.faceit-link:hover {
    text-decoration: underline;
}

.faceit-link-container {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.result-info .faceit-link-container {
    margin-left: 0;
    width: 100%;
    justify-content: center;
}

.results-section {
    display: grid;
    gap: 2rem;
}

.results-section .card {
    padding: 2rem;
}

/* Teams Grid for Main Page */
.teams-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.teams-grid .team-card {
    flex: 1 1 calc(33.333% - 0.67rem);
    min-width: 250px;
    margin-bottom: 0;
    padding: 1rem;
}

/* Player Number Badges */
.player-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.player-number-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.player-number-badge.captain {
    background: #ffc107;
    color: #000;
}

.player-number-badge.captain:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.player-number-badge.reserve {
    background: #6c757d;
}

.player-number-badge.reserve:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.player-simple {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    gap: 0.75rem;
}

.player-simple.reserve .player-info {
    opacity: 0.8;
}

.player-info {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive design for teams grid */
@media (max-width: 1024px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.2rem;
    }
    
    .player-number-badge {
        width: 1.2rem;
        height: 1.2rem;
        font-size: 0.7rem;
    }
    
    .player-info {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .team-card {
        padding: 1.2rem;
    }
    
    .team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .team-tag {
        align-self: flex-start;
    }
    
    .player-simple {
        flex-direction: row;
        align-items: center;
        padding: 0.4rem 0;
        gap: 0.6rem;
    }
    
    .player-info {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .teams-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Teams Page Styles */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.team-header h3 {
    color: var(--primary-color);
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.team-tag {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.team-content {
    margin-bottom: 1.5rem;
}

.team-description,
.team-players {
    margin-bottom: 1.5rem;
}

.team-description h4,
.team-players h4 {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-simple {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.6rem 0.4rem 0.6rem;
    background: var(--bg-dark);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.4rem;
}

.player-number {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    height: 1.2rem;
}

.player-info {
    color: var(--text-primary);
    font-size: 1rem;
    flex: 1;
    display: flex;
    align-items: center;
    height: 1.2rem;
}

.reserve-simple {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.4rem;
    display: flex;
    align-items: center;
    height: 1.2rem;
}

.player-section {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.player-section h4 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

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

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 0.6rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.player-number {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 25px;
    text-align: center;
    margin-bottom: 0.5rem;
}

.player-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.player-details {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

.reserve-badge {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.player-item.reserve {
    border: 2px solid var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.team-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.team-meta {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.team-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Premium Teams Page */
.teams-page {
    padding-top: 3.5rem;
}

.team-groups-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
    align-items: start;
    margin-top: 2rem;
}

.team-group {
    position: relative;
    overflow: hidden;
    padding: 1.15rem;
    background:
        linear-gradient(145deg, rgba(26, 26, 26, 0.96) 0%, rgba(10, 10, 10, 0.96) 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.team-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.team-group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.95rem;
    margin-bottom: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.team-group-kicker {
    display: block;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.team-group-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-family: 'Oswald', sans-serif;
    font-size: 1.65rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.team-count {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.7rem;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.team-group-list {
    display: grid;
    gap: 0.85rem;
}

.team-group-empty {
    margin: 0;
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    background: rgba(5, 5, 5, 0.38);
    border: 1px dashed rgba(255, 107, 53, 0.18);
    border-radius: 8px;
}

.teams-page .team-card {
    position: relative;
    overflow: hidden;
    min-height: auto;
    margin: 0;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.96), rgba(12, 12, 12, 0.98));
    border: 1px solid rgba(255, 107, 53, 0.17);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.teams-page .team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 107, 53, 0.08), transparent 38%);
    opacity: 0.75;
}

.teams-page .team-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 53, 0.55);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 18px rgba(255, 107, 53, 0.12);
}

.teams-page .team-header,
.teams-page .team-content {
    position: relative;
    z-index: 1;
}

.teams-page .team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.team-title-block {
    min-width: 0;
}

.teams-page .team-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    line-height: 1.15;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.teams-page .team-tag {
    flex-shrink: 0;
    margin: 0;
    padding: 0.42rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.teams-page .team-content,
.teams-page .team-players {
    margin-bottom: 0;
}

.team-roster-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.team-roster-heading span {
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.team-roster-heading small {
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.team-roster {
    display: grid;
    gap: 0.35rem;
}

.teams-page .player-simple {
    min-height: 38px;
    margin: 0;
    padding: 0.42rem 0.55rem;
    gap: 0.55rem;
    background: rgba(5, 5, 5, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
}

.teams-page .player-simple.reserve {
    background: rgba(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.28);
    border-style: dashed;
}

.teams-page .player-number-badge {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.72rem;
}

.teams-page .player-info {
    min-width: 0;
    height: auto;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.25;
}

.teams-page .player-info strong {
    color: var(--text-primary);
    font-size: 0.92rem;
}

.teams-page .player-info small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.teams-page .player-info em {
    margin-left: auto;
    padding: 0.12rem 0.38rem;
    color: var(--primary-color);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 5px;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .team-groups-grid {
        grid-template-columns: 1fr;
    }

    .team-meta-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .teams-page {
        padding-top: 2.5rem;
    }

    .team-group {
        padding: 1rem;
    }

    .team-group-header {
        align-items: center;
    }

    .team-meta-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .team-form .form-actions {
        flex-wrap: wrap;
    }

    .team-form .form-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .team-group-header,
    .teams-page .team-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-count {
        white-space: normal;
    }

    .teams-page .team-card {
        padding: 0.9rem;
    }

    .teams-page .player-info em {
        margin-left: 0;
    }
}

/* Premium Schedule and Results Pages */
.schedule-page,
.results-page {
    padding-top: 3.5rem;
}

.schedule-page .schedule-section,
.results-page .results-group {
    position: relative;
    overflow: hidden;
    padding: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 1.35rem;
    background:
        linear-gradient(145deg, rgba(26, 26, 26, 0.96) 0%, rgba(10, 10, 10, 0.96) 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.schedule-page .schedule-section::before,
.results-page .results-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.match-group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 1;
    padding-bottom: 0.95rem;
    margin-bottom: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.match-group-kicker {
    display: block;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.match-group-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-family: 'Oswald', sans-serif;
    font-size: 1.65rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.match-section-count {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.7rem;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.schedule-page .schedule-container,
.results-page .results-container {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.85rem;
    margin-top: 0;
}

.schedule-page .match-card,
.results-page .result-card {
    position: relative;
    overflow: hidden;
    min-height: auto;
    margin: 0;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.96), rgba(12, 12, 12, 0.98));
    border: 1px solid rgba(255, 107, 53, 0.17);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.schedule-page .match-card::after,
.results-page .result-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 107, 53, 0.08), transparent 38%);
    opacity: 0.75;
}

.schedule-page .match-card:hover,
.results-page .result-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 53, 0.55);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 18px rgba(255, 107, 53, 0.12);
}

.schedule-page .match-card.upcoming,
.schedule-page .match-card.in-progress,
.schedule-page .match-card.completed {
    border-left: 1px solid rgba(255, 107, 53, 0.17);
}

.schedule-page .match-card.in-progress {
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(12, 12, 12, 0.98)),
        linear-gradient(135deg, transparent, rgba(255, 152, 0, 0.08));
}

.schedule-page .match-header,
.schedule-page .match-content,
.results-page .result-header,
.results-page .result-content {
    position: relative;
    z-index: 1;
}

.schedule-page .match-header,
.results-page .result-header {
    min-width: 104px;
}

.schedule-page .match-date,
.results-page .result-date {
    min-width: 98px;
    margin-bottom: 0.45rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.28);
    border-radius: 7px;
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.1);
}

.schedule-page .match-day,
.results-page .result-day {
    color: var(--primary-color);
    font-family: 'Oswald', sans-serif;
    font-size: 1.55rem;
}

.schedule-page .match-month,
.results-page .result-month {
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.15;
}

.schedule-page .match-time,
.results-page .result-time {
    width: fit-content;
    min-height: 24px;
    padding: 0.2rem 0.55rem;
    background: rgba(5, 5, 5, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    color: var(--text-secondary);
}

.schedule-page .match-content,
.results-page .result-content {
    gap: 1rem;
    min-width: 0;
}

.schedule-page .teams,
.results-page .match-result-display {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 0.55rem;
    background: rgba(5, 5, 5, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
}

.schedule-page .team,
.results-page .team-result {
    min-width: 0;
    flex: 1;
}

.schedule-page .team-name,
.results-page .team-result .team-name {
    display: block;
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
    font-size: 1.08rem;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.schedule-page .team-name.winner,
.results-page .team-result .team-name.winner {
    color: var(--primary-color);
}

.schedule-page .team-score,
.results-page .team-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 34px;
    margin-top: 0.35rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.24);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.schedule-page .team-name.winner + .team-score,
.results-page .team-name.winner + .team-score {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.schedule-page .vs,
.schedule-page .vs-result,
.results-page .vs-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 54px;
    min-height: 46px;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.22);
    border-radius: 7px;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.1;
}

.schedule-page .vs-text,
.results-page .vs-text {
    color: var(--primary-color);
    display: block;
    width: 100%;
    text-align: center;
}

.schedule-page .vs .match-format {
    display: block;
    width: fit-content;
    margin-top: 0.3rem;
    text-align: center;
}

.schedule-page .match-info,
.results-page .result-info {
    flex-shrink: 0;
    min-width: 132px;
    margin-bottom: 0;
    align-items: center;
    text-align: center;
}

.schedule-page .match-type,
.schedule-page .match-status,
.schedule-page .match-stage,
.results-page .result-type,
.results-page .match-stage,
.results-page .match-format,
.walkover-badge {
    border-radius: 6px;
}

.schedule-page .match-type,
.results-page .match-format {
    background: rgba(5, 5, 5, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
}

.schedule-page .match-stage,
.results-page .match-stage {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.22);
    color: var(--primary-color);
}

.schedule-page .match-status,
.results-page .result-type {
    padding: 0.3rem 0.65rem;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.28);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.schedule-page .match-status.completed,
.results-page .result-type {
    color: var(--primary-color);
}

.schedule-page .match-status.in-progress {
    color: #ffb15c;
}

.schedule-page .faceit-link-container,
.results-page .faceit-link-container {
    width: 100%;
    margin-left: 0;
    justify-content: center;
}

.schedule-page .faceit-link,
.results-page .faceit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.28);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.schedule-page .faceit-link:hover,
.results-page .faceit-link:hover {
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: 0 0 14px rgba(255, 107, 53, 0.14);
}

@media (max-width: 900px) {
    .schedule-page .match-card,
    .results-page .result-card {
        align-items: stretch;
        gap: 1rem;
    }

    .schedule-page .match-content,
    .results-page .result-content {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-page .match-info,
    .results-page .result-info {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .schedule-page,
    .results-page {
        padding-top: 2.5rem;
    }

    .schedule-page .schedule-section,
    .results-page .results-group {
        padding: 1rem;
    }

    .match-group-header {
        align-items: center;
    }

    .schedule-page .match-card,
    .results-page .result-card {
        flex-direction: column;
        text-align: center;
    }

    .schedule-page .match-header,
    .results-page .result-header {
        align-items: center;
    }

    .schedule-page .teams,
    .results-page .match-result-display {
        flex-direction: column;
        gap: 0.55rem;
    }

    .schedule-page .team,
    .results-page .team-result {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .match-group-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .match-section-count {
        white-space: normal;
    }

    .schedule-page .match-card,
    .results-page .result-card {
        padding: 0.9rem;
    }
}

/* Premium Admin Dashboard */
body.admin-panel {
    --admin-accent: #ff6a2a;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 106, 42, 0.12), transparent 34%),
        linear-gradient(145deg, #050505 0%, #080808 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

body.admin-panel .admin-container {
    display: flex;
    min-height: 100vh;
    background: transparent;
}

body.admin-panel .admin-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 100vh;
    min-height: 0;
    padding: 1.75rem 1.15rem;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(5, 5, 5, 0.98));
    border-right: 1px solid rgba(255, 106, 42, 0.22);
    box-shadow: 14px 0 38px rgba(0, 0, 0, 0.42);
}

body.admin-panel .sidebar-nav {
    flex: 1;
}

body.admin-panel .sidebar-header {
    padding: 0.2rem 0.35rem 1.2rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.admin-panel .sidebar-header h2 {
    margin: 0 0 0.8rem;
    color: var(--admin-accent);
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
    text-shadow: 0 0 18px rgba(255, 106, 42, 0.25);
}

body.admin-panel .admin-user {
    display: inline-flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.8rem;
    background: rgba(255, 106, 42, 0.08);
    border: 1px solid rgba(255, 106, 42, 0.23);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.35;
}

body.admin-panel .sidebar-nav ul {
    display: grid;
    gap: 0.45rem;
}

body.admin-panel .sidebar-nav li {
    margin: 0;
}

body.admin-panel .sidebar-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.78rem 0.95rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.86rem;
    letter-spacing: 0.3px;
}

body.admin-panel .sidebar-nav a::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-right: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
    transition: all 0.25s ease;
}

body.admin-panel .sidebar-nav a:hover,
body.admin-panel .sidebar-nav a.active {
    background: rgba(255, 106, 42, 0.11);
    border-color: rgba(255, 106, 42, 0.28);
    color: var(--text-primary);
    box-shadow: 0 0 18px rgba(255, 106, 42, 0.08);
}

body.admin-panel .sidebar-nav a:hover::before,
body.admin-panel .sidebar-nav a.active::before {
    background: var(--admin-accent);
    box-shadow: 0 0 14px rgba(255, 106, 42, 0.7);
}

body.admin-panel .sidebar-footer {
    display: grid;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.admin-panel .sidebar-footer .btn {
    margin: 0;
    min-height: 42px;
}

body.admin-panel .admin-main {
    flex: 1;
    min-width: 0;
    padding: 2.5rem;
    background:
        linear-gradient(135deg, rgba(255, 106, 42, 0.035), transparent 30%),
        transparent;
}

body.admin-panel .admin-main > * {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

body.admin-panel .admin-header {
    position: relative;
    overflow: hidden;
    padding: 1.45rem 1.55rem;
    margin-bottom: 1.8rem;
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.96), rgba(8, 8, 8, 0.98));
    border: 1px solid rgba(255, 106, 42, 0.2);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

body.admin-panel .admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--admin-accent), transparent);
}

body.admin-panel .admin-header h1 {
    margin: 0 0 0.45rem;
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(255, 106, 42, 0.18);
}

body.admin-panel .admin-header p {
    max-width: 760px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

body.admin-panel .stats-section,
body.admin-panel .actions-section,
body.admin-panel .recent-section {
    margin-bottom: 1.6rem;
}

body.admin-panel .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0;
}

body.admin-panel .stat-card,
body.admin-panel .action-card,
body.admin-panel .form-section,
body.admin-panel .recent-list,
body.admin-panel .results-section .card,
body.admin-panel .card,
body.admin-panel .team-card,
body.admin-panel .match-card,
body.admin-panel .result-item {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.96), rgba(12, 12, 12, 0.98));
    border: 1px solid rgba(255, 106, 42, 0.17);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

body.admin-panel .stat-card::before,
body.admin-panel .action-card::before,
body.admin-panel .form-section::before,
body.admin-panel .recent-list::before,
body.admin-panel .results-section .card::before,
body.admin-panel .team-card::before,
body.admin-panel .match-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 106, 42, 0.08), transparent 38%);
    opacity: 0.75;
}

body.admin-panel .stat-card:hover,
body.admin-panel .action-card:hover,
body.admin-panel .team-card:hover,
body.admin-panel .match-card:hover,
body.admin-panel .result-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 106, 42, 0.5);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36), 0 0 18px rgba(255, 106, 42, 0.12);
}

body.admin-panel .stat-card {
    min-height: 190px;
    padding: 1.25rem;
    text-align: left;
}

body.admin-panel .stat-card > * {
    position: relative;
    z-index: 1;
}

body.admin-panel .stat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

body.admin-panel .stat-card h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.15;
    letter-spacing: 0.4px;
}

body.admin-panel .stat-icon,
body.admin-panel .action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.45rem;
    background: rgba(255, 106, 42, 0.12);
    border: 1px solid rgba(255, 106, 42, 0.28);
    border-radius: 7px;
    color: var(--admin-accent);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.admin-panel .stat-number {
    margin-bottom: 0.35rem;
    color: var(--admin-accent);
    font-family: 'Oswald', sans-serif;
    font-size: 3.6rem;
    line-height: 1;
    text-shadow: 0 0 18px rgba(255, 106, 42, 0.16);
}

body.admin-panel .stat-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

body.admin-panel .admin-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

body.admin-panel .admin-section-heading span {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.admin-panel .admin-section-heading h2,
body.admin-panel .recent-section h2 {
    margin: 0;
    color: var(--admin-accent);
    font-family: 'Oswald', sans-serif;
    font-size: 1.7rem;
    line-height: 1;
    text-transform: uppercase;
}

body.admin-panel .actions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0;
}

body.admin-panel .action-card {
    min-height: 160px;
    padding: 1.15rem;
}

body.admin-panel .action-card > * {
    position: relative;
    z-index: 1;
}

body.admin-panel .action-icon {
    margin-bottom: 1rem;
}

body.admin-panel .action-card h3 {
    margin-bottom: 0.55rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

body.admin-panel .action-card p {
    color: var(--text-secondary);
    line-height: 1.45;
}

body.admin-panel .recent-list {
    padding: 0.7rem;
}

body.admin-panel .recent-item {
    gap: 1rem;
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease;
}

body.admin-panel .recent-item:hover {
    background: rgba(255, 106, 42, 0.05);
}

body.admin-panel .recent-time {
    min-width: 96px;
    color: var(--admin-accent);
    font-weight: 800;
    text-transform: uppercase;
}

body.admin-panel .recent-action {
    color: var(--text-secondary);
}

body.admin-panel .btn {
    border-radius: 7px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

body.admin-panel .btn-primary {
    margin-top: 0;
    background: linear-gradient(135deg, var(--admin-accent), var(--secondary-color));
    color: #050505;
    box-shadow: 0 8px 18px rgba(255, 106, 42, 0.14);
}

body.admin-panel .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 106, 42, 0.24);
    color: var(--text-primary);
}

body.admin-panel .btn-danger {
    background: linear-gradient(135deg, #7b1d23, #dc3545);
    border: 1px solid rgba(255, 93, 93, 0.28);
    color: var(--text-primary);
    box-shadow: 0 8px 18px rgba(220, 53, 69, 0.12);
}

body.admin-panel .form-section,
body.admin-panel .results-section .card {
    padding: 1.4rem;
}

body.admin-panel .admin-form {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

body.admin-panel .form-group label,
body.admin-panel .input-group label {
    color: var(--text-secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.78rem;
}

body.admin-panel .form-group input,
body.admin-panel .form-group textarea,
body.admin-panel .form-group select,
body.admin-panel .input-group input,
body.admin-panel select {
    background: rgba(5, 5, 5, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    color: var(--text-primary);
}

body.admin-panel .form-group input:focus,
body.admin-panel .form-group textarea:focus,
body.admin-panel .form-group select:focus,
body.admin-panel .input-group input:focus,
body.admin-panel select:focus {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(255, 106, 42, 0.12);
}

body.admin-panel .player-section {
    background: rgba(5, 5, 5, 0.32);
    border: 1px solid rgba(255, 106, 42, 0.14);
    border-radius: 8px;
}

body.admin-panel .player-section h4 {
    color: var(--admin-accent);
}

body.admin-panel .teams-list,
body.admin-panel .matches-list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

body.admin-panel .admin-team-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

body.admin-panel .admin-team-group {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    background:
        linear-gradient(145deg, rgba(26, 26, 26, 0.96), rgba(10, 10, 10, 0.98));
    border: 1px solid rgba(255, 106, 42, 0.2);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

body.admin-panel .admin-team-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--admin-accent), transparent);
}

body.admin-panel .admin-team-group-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.admin-panel .admin-team-group-header span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

body.admin-panel .admin-team-group-header h2 {
    margin: 0;
    color: var(--admin-accent);
    font-family: 'Oswald', sans-serif;
    font-size: 1.55rem;
    line-height: 1.1;
    text-transform: uppercase;
}

body.admin-panel .admin-team-group-header strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.7rem;
    background: rgba(255, 106, 42, 0.12);
    border: 1px solid rgba(255, 106, 42, 0.25);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    white-space: nowrap;
}

body.admin-panel .admin-team-group-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.85rem;
}

body.admin-panel .admin-team-empty {
    margin: 0;
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    background: rgba(5, 5, 5, 0.38);
    border: 1px dashed rgba(255, 106, 42, 0.18);
    border-radius: 8px;
}

body.admin-panel .admin-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

body.admin-panel .admin-toolbar .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.admin-panel .admin-schedule-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

body.admin-panel .match-card.admin-schedule-card {
    display: grid;
    grid-template-columns: 104px minmax(280px, 1fr) minmax(225px, 270px);
    align-items: center;
    gap: 0.85rem;
    min-height: 132px;
    padding: 0.9rem;
}

body.admin-panel .admin-schedule-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 160px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 106, 42, 0.06));
}

body.admin-panel .admin-schedule-list .card {
    width: 100%;
}

body.admin-panel .admin-match-date {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 104px;
    gap: 0.22rem;
    padding: 0.72rem 0.55rem;
    background:
        linear-gradient(160deg, rgba(255, 106, 42, 0.14), rgba(5, 5, 5, 0.78));
    border: 1px solid rgba(255, 106, 42, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 16px rgba(255, 106, 42, 0.08);
}

body.admin-panel .admin-match-day {
    color: var(--admin-accent);
    font-family: 'Oswald', sans-serif;
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1;
}

body.admin-panel .admin-match-month {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

body.admin-panel .admin-match-time {
    margin-top: 0.15rem;
    padding: 0.24rem 0.58rem;
    background: rgba(5, 5, 5, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 800;
}

body.admin-panel .admin-schedule-card .match-info,
body.admin-panel .admin-match-side {
    position: relative;
    z-index: 1;
    min-width: 0;
    margin-bottom: 0;
}

body.admin-panel .admin-match-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

body.admin-panel .admin-match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    justify-items: stretch;
    gap: 18px;
    width: 100%;
    min-height: 86px;
    padding: 0.75rem;
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.54), rgba(26, 26, 26, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

body.admin-panel .admin-match-teams:hover {
    background:
        linear-gradient(135deg, rgba(12, 12, 12, 0.78), rgba(30, 30, 30, 0.66));
    border-color: rgba(255, 106, 42, 0.24);
    box-shadow: inset 0 0 20px rgba(255, 106, 42, 0.04);
}

body.admin-panel .admin-match-teams span {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
    font-size: 1.14rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    text-align: center;
    overflow-wrap: anywhere;
}

body.admin-panel .admin-match-team {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

body.admin-panel .admin-match-team-left {
    justify-content: flex-end;
    text-align: right;
}

body.admin-panel .admin-match-team-right {
    justify-content: flex-start;
    text-align: left;
}

body.admin-panel .admin-vs-badge,
body.admin-panel .admin-match-teams strong {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 42px;
    height: 32px;
    flex-shrink: 0;
    padding: 0;
    background: rgba(255, 106, 42, 0.12);
    border: 1px solid rgba(255, 106, 42, 0.25);
    border-radius: 7px;
    color: var(--admin-accent);
    font-size: 0.76rem;
    letter-spacing: 0.6px;
}

body.admin-panel .admin-match-side {
    display: grid;
    align-content: center;
    gap: 0.55rem;
    min-height: 104px;
    padding: 0.7rem;
    background: rgba(5, 5, 5, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
}

body.admin-panel .admin-match-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.42rem;
    margin-top: 0;
}

body.admin-panel .admin-match-format,
body.admin-panel .admin-match-stage,
body.admin-panel .admin-match-score,
body.admin-panel .admin-match-meta .status-scheduled,
body.admin-panel .admin-match-meta .status-completed {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.25rem 0.56rem;
    background: rgba(255, 106, 42, 0.09);
    border: 1px solid rgba(255, 106, 42, 0.22);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.admin-panel .admin-match-score {
    color: var(--admin-accent);
}

body.admin-panel .admin-match-stage {
    background: rgba(255, 106, 42, 0.12);
    border-color: rgba(255, 106, 42, 0.28);
    color: var(--admin-accent);
}

body.admin-panel .admin-match-meta .status-scheduled {
    background: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.2);
    color: #e6c65d;
}

body.admin-panel .admin-match-meta .status-completed {
    background: rgba(81, 207, 102, 0.09);
    border-color: rgba(81, 207, 102, 0.24);
    color: #7fdc91;
}

body.admin-panel .admin-schedule-card .match-date {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    width: fit-content;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.2rem 0.5rem;
    background: rgba(5, 5, 5, 0.35);
    border-left: 2px solid rgba(255, 106, 42, 0.44);
    border-radius: 5px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

body.admin-panel .admin-schedule-card .match-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    min-width: 0;
    gap: 0.48rem;
}

body.admin-panel .admin-schedule-card .match-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 36px;
    padding: 0.42rem 0.6rem;
    border-radius: 7px;
    box-shadow: none;
}

body.admin-panel .admin-schedule-card .match-actions .btn-secondary {
    background: rgba(5, 5, 5, 0.42);
    border: 1px solid rgba(255, 106, 42, 0.32);
    color: var(--text-primary);
}

body.admin-panel .admin-schedule-card .match-actions .btn-secondary:hover {
    background: rgba(255, 106, 42, 0.18);
    border-color: rgba(255, 106, 42, 0.58);
    color: var(--text-primary);
    box-shadow: 0 0 14px rgba(255, 106, 42, 0.14);
}

body.admin-panel .admin-schedule-card .match-actions .btn-danger {
    background: rgba(92, 16, 22, 0.58);
    border: 1px solid rgba(220, 53, 69, 0.28);
    color: #ffd6da;
}

body.admin-panel .admin-schedule-card .match-actions .btn-danger:hover {
    background: rgba(139, 28, 39, 0.72);
    border-color: rgba(255, 92, 108, 0.48);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(220, 53, 69, 0.14);
}

body.admin-panel .team-card,
body.admin-panel .match-card {
    padding: 1.15rem;
}

body.admin-panel .team-card > *,
body.admin-panel .match-card > * {
    position: relative;
    z-index: 1;
}

body.admin-panel .team-info h3,
body.admin-panel .match-info h3,
body.admin-panel .results-section .card h3 {
    color: var(--admin-accent);
    font-size: 1.35rem;
    line-height: 1.15;
}

body.admin-panel .team-tag,
body.admin-panel .match-type,
body.admin-panel .result-type,
body.admin-panel .status-scheduled,
body.admin-panel .status-completed,
body.admin-panel .walkover-badge {
    border-radius: 6px;
}

body.admin-panel .team-tag {
    margin-right: 0.4rem;
    background: rgba(255, 106, 42, 0.14);
    border: 1px solid rgba(255, 106, 42, 0.3);
    color: var(--admin-accent);
}

body.admin-panel .team-players-list {
    background: rgba(5, 5, 5, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.admin-panel .player-simple {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

body.admin-panel .team-actions,
body.admin-panel .match-actions,
body.admin-panel .result-actions,
body.admin-panel .form-actions {
    flex-wrap: wrap;
    gap: 0.65rem;
}

body.admin-panel .result-item {
    padding: 1rem;
    border-color: rgba(255, 106, 42, 0.17);
}

body.admin-panel .result-item strong {
    color: var(--text-primary);
}

body.admin-panel .result-item small,
body.admin-panel .match-datetime,
body.admin-panel .match-score,
body.admin-panel .match-date,
body.admin-panel .team-description {
    color: var(--text-secondary);
}

body.admin-panel .admin-result-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 250px 285px;
    align-items: center;
    gap: 1.25rem;
    min-height: 92px;
    padding: 0.9rem 1rem;
    background:
        linear-gradient(135deg, rgba(20, 20, 20, 0.96), rgba(8, 8, 8, 0.98));
    border-color: rgba(255, 106, 42, 0.2);
}

body.admin-panel .admin-result-match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.68rem 0.75rem;
    background: rgba(5, 5, 5, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
}

body.admin-panel .admin-result-team {
    min-width: 0;
    color: var(--text-secondary);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

body.admin-panel .admin-result-team:first-child {
    text-align: right;
}

body.admin-panel .admin-result-team:last-child {
    text-align: left;
}

body.admin-panel .admin-result-team-winner {
    color: var(--text-primary);
    text-shadow: 0 0 12px rgba(255, 106, 42, 0.16);
}

body.admin-panel .result-item .admin-result-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 42px;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 106, 42, 0.12);
    border: 1px solid rgba(255, 106, 42, 0.3);
    border-radius: 8px;
    color: var(--admin-accent);
    font-family: 'Oswald', sans-serif;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 0 16px rgba(255, 106, 42, 0.08);
}

body.admin-panel .admin-result-meta {
    display: grid;
    align-content: center;
    gap: 0.35rem;
    min-height: 64px;
    padding: 0.58rem 0.68rem;
    background: rgba(5, 5, 5, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 2px solid rgba(255, 106, 42, 0.44);
    border-radius: 8px;
}

body.admin-panel .admin-result-date {
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.1;
}

body.admin-panel .admin-result-time,
body.admin-panel .admin-result-format,
body.admin-panel .admin-result-stage {
    width: fit-content;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.admin-panel .admin-result-format,
body.admin-panel .admin-result-stage {
    padding: 0.18rem 0.48rem;
    background: rgba(255, 106, 42, 0.09);
    border: 1px solid rgba(255, 106, 42, 0.2);
    border-radius: 6px;
    color: var(--admin-accent);
}

body.admin-panel .admin-result-tools {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: end;
    gap: 0.65rem;
    min-width: 0;
}

body.admin-panel .admin-result-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

body.admin-panel .admin-result-links .walkover-badge {
    order: 1;
    margin-left: 0;
    white-space: nowrap;
}

body.admin-panel .admin-result-links .faceit-link,
body.admin-panel .admin-result-muted {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.28rem 0.62rem;
    background: rgba(5, 5, 5, 0.38);
    border: 1px solid rgba(255, 106, 42, 0.22);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

body.admin-panel .admin-result-links .faceit-link {
    color: var(--admin-accent);
}

body.admin-panel .admin-result-links .faceit-link:hover {
    background: rgba(255, 106, 42, 0.16);
    border-color: rgba(255, 106, 42, 0.45);
    color: var(--text-primary);
    text-decoration: none;
}

body.admin-panel .admin-result-muted {
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

body.admin-panel .admin-result-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

body.admin-panel .admin-result-tools .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.42rem 0.75rem;
    border-radius: 7px;
    white-space: nowrap;
}

body.admin-panel .admin-result-actions .btn-secondary {
    background: rgba(5, 5, 5, 0.42);
    border: 1px solid rgba(255, 106, 42, 0.32);
    color: var(--text-primary);
}

body.admin-panel .admin-result-actions .btn-secondary:hover {
    background: rgba(255, 106, 42, 0.18);
    border-color: rgba(255, 106, 42, 0.58);
    box-shadow: 0 0 14px rgba(255, 106, 42, 0.14);
}

body.admin-panel .admin-result-actions .btn-danger {
    background: rgba(92, 16, 22, 0.58);
    border: 1px solid rgba(220, 53, 69, 0.28);
    color: #ffd6da;
}

body.admin-panel .admin-result-actions .btn-danger:hover {
    background: rgba(139, 28, 39, 0.72);
    border-color: rgba(255, 92, 108, 0.48);
    color: #ffffff;
}

body.admin-panel .error-message,
body.admin-panel .success-message {
    border-radius: 8px;
}

body.admin-panel .error-message {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.35);
}

body.admin-panel .success-message {
    background: rgba(81, 207, 102, 0.1);
    border-color: rgba(81, 207, 102, 0.3);
}

@media (max-width: 1180px) {
    body.admin-panel .stats-grid,
    body.admin-panel .actions-grid,
    body.admin-panel .admin-team-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-panel .admin-result-row {
        grid-template-columns: minmax(0, 1fr) 190px 250px;
        gap: 0.85rem;
    }
}

@media (max-width: 900px) {
    body.admin-panel .admin-container {
        flex-direction: column;
    }

    body.admin-panel .admin-sidebar {
        position: relative;
        align-self: stretch;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 1rem;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid rgba(255, 106, 42, 0.22);
    }

    body.admin-panel .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding-bottom: 0.9rem;
    }

    body.admin-panel .sidebar-header h2 {
        margin-bottom: 0;
        font-size: 1.55rem;
    }

    body.admin-panel .admin-user {
        width: auto;
        max-width: 320px;
    }

    body.admin-panel .sidebar-nav ul {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    body.admin-panel .sidebar-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 1rem;
    }

    body.admin-panel .admin-main {
        padding: 1.4rem;
    }

    body.admin-panel .match-card.admin-schedule-card {
        grid-template-columns: 96px minmax(0, 1fr);
        align-items: start;
        min-height: auto;
    }

    body.admin-panel .admin-match-side {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        min-height: auto;
    }

    body.admin-panel .admin-schedule-card .match-actions {
        grid-column: auto;
        justify-content: flex-end;
        min-width: 0;
    }

    body.admin-panel .admin-result-row {
        grid-template-columns: minmax(0, 1fr) 190px;
    }

    body.admin-panel .admin-result-tools {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    body.admin-panel .admin-header h1 {
        font-size: 2.2rem;
    }

    body.admin-panel .stats-grid,
    body.admin-panel .actions-grid,
    body.admin-panel .admin-team-groups,
    body.admin-panel .team-meta-fields {
        grid-template-columns: 1fr;
    }

    body.admin-panel .sidebar-header,
    body.admin-panel .admin-team-group-header,
    body.admin-panel .recent-item,
    body.admin-panel .result-item {
        flex-direction: column;
        align-items: flex-start;
    }

    body.admin-panel .admin-user {
        width: 100%;
        max-width: none;
    }

    body.admin-panel .sidebar-footer {
        grid-template-columns: 1fr;
    }

    body.admin-panel .form-actions .btn,
    body.admin-panel .team-actions .btn,
    body.admin-panel .match-actions .btn {
        width: 100%;
        text-align: center;
    }

    body.admin-panel .admin-toolbar,
    body.admin-panel .admin-toolbar .btn {
        width: 100%;
    }

    body.admin-panel .admin-result-row,
    body.admin-panel .admin-result-match,
    body.admin-panel .admin-result-tools {
        grid-template-columns: 1fr;
    }

    body.admin-panel .admin-result-row {
        align-items: stretch;
    }

    body.admin-panel .admin-result-match {
        justify-items: center;
        text-align: center;
    }

    body.admin-panel .admin-result-team,
    body.admin-panel .admin-result-team:first-child,
    body.admin-panel .admin-result-team:last-child {
        text-align: center;
    }

    body.admin-panel .admin-result-meta {
        justify-items: center;
        text-align: center;
    }

    body.admin-panel .admin-result-links {
        justify-content: center;
    }

    body.admin-panel .admin-result-actions {
        width: 100%;
        flex-direction: column;
    }

    body.admin-panel .admin-result-tools .btn {
        width: 100%;
    }

    body.admin-panel .match-card.admin-schedule-card {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    body.admin-panel .admin-match-date {
        grid-template-columns: auto auto 1fr;
        justify-items: start;
        align-items: center;
        width: 100%;
        padding: 0.65rem 0.75rem;
    }

    body.admin-panel .admin-match-day {
        font-size: 1.55rem;
    }

    body.admin-panel .admin-match-month {
        text-align: left;
    }

    body.admin-panel .admin-match-time {
        justify-self: end;
        margin-top: 0;
    }

    body.admin-panel .admin-match-teams {
        grid-template-columns: 1fr;
        gap: 0.45rem;
        justify-items: center;
        text-align: center;
    }

    body.admin-panel .admin-match-teams span {
        justify-content: center;
        font-size: 1.05rem;
        text-align: center;
    }

    body.admin-panel .admin-match-team-left,
    body.admin-panel .admin-match-team-right {
        justify-content: center;
        text-align: center;
    }

    body.admin-panel .admin-vs-badge,
    body.admin-panel .admin-match-teams strong {
        width: 42px;
        height: 32px;
    }

    body.admin-panel .admin-match-side {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    body.admin-panel .admin-match-meta {
        justify-content: center;
    }

    body.admin-panel .admin-schedule-card .match-date {
        width: 100%;
        justify-content: center;
    }
}
