/* Reset și variabile */
:root {
    /* Fundal site + hero (Cloudinary: calitate ridicată) */
    --site-bg-image: url('https://res.cloudinary.com/dk31bfwww/image/upload/f_auto,q_auto:best/v1778612924/fcrapidfundal_kslfp3.png');
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #16a34a;
    --accent-light: #e6fcf0;
    /* Culoarea mentă din imagine, aplicată fără a schimba formele */
    --draw: #eab308;
    --draw-light: #fef9c3;
    --loss: #dc2626;
    --loss-light: #fee2e2;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

/* Android-specific fixes */
@supports (-webkit-appearance: none) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Remove Android tap highlight globally */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Additional Android optimizations for interactive elements */
button, a, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

button,
input,
select,
textarea {
    font-family: inherit;
}

/* Accessibility Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus States for Accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
    color: var(--primary);
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    z-index: -1;
    background: #f5f5f5;
    pointer-events: none;
}

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

/* Header */
.header {
    background-color: var(--primary);
    color: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-logo:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Logo Styling - Container pătrat cu colțuri rotunjite pentru branding digital */
/* Logo principal (header) și logo secundar (footer) */

.shield-logo {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    overflow: hidden;

    /* Fundal alb + border gris — ca în poză */
    background: #ffffff;
    border: 2px solid #d1d5db;

    /* Centreaza logo-ul */
    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.shield-logo:hover {
    background: #f3f4f6;
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

/* Logo mare pentru hero section */
.shield-logo.large {
    width: 10rem;
    height: 10rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 3px solid #d1d5db;
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.32);
    animation: float 3s ease-in-out infinite;
}

.shield-logo.large:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Imaginea logo-ului - centrat în container fără decupare */
.logo-image {
    width: 92%;
    height: 92%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shield-logo:hover .logo-image {
    transform: scale(1.02);
}

/* Logo pentru footer - stil secundar */
.footer-logo .shield-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 2px solid #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.footer-logo .shield-logo:hover {
    background: #f3f4f6;
}

/* Compatibilitate SVG (dacă se folosește) */
.shield-logo svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    display: none;
}

.shield-logo.large .logo-text {
    font-size: 1.5rem;
}

.header-title .h1-style {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.header-title p {
    font-size: 0.875rem;
    color: var(--gray-300);
    opacity: 0.9;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--gray-700);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--secondary);
}

.scroll-top-btn:focus {
    outline: none;
}

.scroll-top-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* Navigation */
.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-btn {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1rem;
    font-family: 'Oswald', sans-serif;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    will-change: color;
}

.nav-btn:hover {
    color: var(--gray-300);
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width;
}

.nav-btn:hover::after {
    width: 100%;
}

.nav-btn.active {
    color: var(--gray-300);
}

.nav-btn.active::after {
    width: 100%;
}

.donate-btn {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: background-color, color;
}

.donate-btn:hover {
    background-color: var(--gray-200);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.donate-btn::after {
    display: none;
}

/* Mobile Menu */
.menu-toggle {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--primary);
    padding: 1rem;
    gap: 1rem;
    border-top: 1px solid var(--gray-700);
}

.mobile-menu.active {
    display: flex;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        height: 700px;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)),
        var(--site-bg-image);
    background-repeat: no-repeat;
    background-position: center center, center center;
    background-size: cover, cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 35%, rgba(0, 0, 0, 0.55));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--secondary);
    padding: 2rem 1rem;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.75),
        0 8px 32px rgba(0, 0, 0, 0.55),
        0 0 2px rgba(0, 0, 0, 0.9);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 48rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 500px;
    margin-top: 2.5rem;
}

/* Tabelul Ligii pe mijloc (full width) pe mobil */
.hero-buttons button[data-section="tabel"] {
    grid-column: span 2;
}

@media (min-width: 992px) {
    .hero-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        max-width: none;
    }
}

.hero-buttons button {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Oswald', sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    will-change: transform, box-shadow;
}

.hero-buttons button:hover {
    transform: translateY(-4px) scale(1.02);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 255, 255, 0.4);
    border-color: #ffffff;
}

.hero-buttons .btn-primary {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.5);
    border-color: #ffffff;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-galerie,
.btn-urmatorul-meci {
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: 'Oswald', sans-serif;
    background-color: var(--secondary);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    will-change: transform, box-shadow;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-galerie:hover,
.btn-urmatorul-meci:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-primary[data-section="donatii"] {
    background-color: var(--secondary);
    color: var(--primary);
}

/* Sections */
section {
    padding: 3rem 0;
    scroll-margin-top: 6rem;
}

@media (min-width: 768px) {
    section {
        padding: 5rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 3rem;
    }
}

.section-header p {
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

.heart-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: var(--secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* League Table */
.league-table {
    background-color: var(--gray-50);
    padding: 5rem 0;
}

.table-container {
    overflow-x: auto;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    background: var(--secondary);
    -webkit-overflow-scrolling: touch;
}

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

.league-table-content thead {
    background: var(--primary);
    color: var(--secondary);
}

.league-table-content thead th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: bold;
    font-size: 0.875rem;
    white-space: nowrap;
}

.league-table-content tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.2s ease;
}

.league-table-content tbody tr:hover {
    background-color: var(--gray-50);
}

.league-table .league-table-content tbody tr:nth-child(1) {
    background-color: #f0fdf4;
}

.league-table .league-table-content tbody tr:nth-child(2) {
    background-color: #f0f9ff;
}

.league-table .league-table-content tbody tr:nth-child(3) {
    background-color: #fef3c7;
}

.league-table-content tbody tr:last-child {
    border-bottom: none;
}

.league-table-content tbody td {
    padding: 1rem;
    font-size: 0.875rem;
}

.position-column {
    width: 80px;
    text-align: center !important;
    font-size: 1.125rem !important;
}

.team-column {
    min-width: 200px;
    font-weight: 500;
}

.games-column,
.wins-column,
.draws-column,
.losses-column,
.goals-column,
.points-column {
    width: 100px;
    text-align: center !important;
}

.league-table-content tbody .points-column {
    font-size: 0.875rem;
    color: var(--primary);
    min-width: 70px;
}

.tooltip {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 0.25rem;
}

/* Highlight FC Rapid Marinesti - Text Only */
.league-table-content tbody tr.fc-rapid {
    font-weight: bold;
}

.league-table-content tbody tr.fc-rapid .team-column {
    color: #800020;
    font-weight: bold;
}

/* Game Summaries */
/* Game Summaries */
.game-summaries {
    background-color: var(--gray-50);
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .game-cards {
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .game-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .game-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.game-card {
    background-color: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    box-shadow: var(--shadow-lg);
}

.game-card-header {
    padding: 0.5rem 0.75rem;
    text-align: center;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    font-size: 0.65rem;
}

@media (min-width: 480px) {
    .game-card-header {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
}

@media (min-width: 768px) {
    .game-card-header {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

.victory-header {
    background-color: var(--accent);
}

.draw-header {
    background-color: var(--draw);
}

.loss-header {
    background-color: var(--loss);
}

.game-card-content {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 480px) {
    .game-card-content {
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    .game-card-content {
        padding: 1.5rem;
    }
}

.game-card-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 0.65rem;
}

@media (min-width: 480px) {
    .game-card-date {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .game-card-date {
        font-size: 0.875rem;
    }
}

.game-card-date svg {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .game-card-date svg {
        width: 1rem;
        height: 1rem;
    }
}

.game-card-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

@media (min-width: 480px) {
    .game-card-title {
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .game-card-title {
        font-size: 1rem;
    }
}

.game-card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 0.6rem;
}

@media (min-width: 480px) {
    .game-card-location {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .game-card-location {
        margin-bottom: 1rem;
        font-size: 0.875rem;
    }
}

.game-card-location svg {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .game-card-location svg {
        width: 1rem;
        height: 1rem;
    }
}

.game-card-score {
    text-align: center;
    padding: 0.5rem;
    background-color: var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

@media (min-width: 480px) {
    .game-card-score {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 768px) {
    .game-card-score {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

.game-card-score span {
    font-size: 1.25rem;
    font-weight: bold;
}

@media (min-width: 480px) {
    .game-card-score span {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .game-card-score span {
        font-size: 1.875rem;
    }
}

.game-card-description {
    color: var(--gray-600);
    font-size: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
}

@media (min-width: 480px) {
    .game-card-description {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

@media (min-width: 768px) {
    .game-card-description {
        font-size: 0.875rem;
        line-height: 1.5;
        -webkit-line-clamp: none;
        line-clamp: none;
        display: block;
    }
}

.game-card-footer {
    padding: 0.5rem 0.75rem;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

@media (min-width: 480px) {
    .game-card-footer {
        padding: 0.75rem 1rem;
    }
}

@media (min-width: 768px) {
    .game-card-footer {
        padding: 0.75rem 1.5rem;
    }
}

.game-card-footer svg {
    width: 1rem;
    height: 1rem;
    color: var(--secondary);
}

@media (min-width: 480px) {
    .game-card-footer svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Scores */
.scores {
    background-color: var(--secondary);
}

/* Table Styles */
.scores-table.desktop {
    display: none;
    overflow-x: auto;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

@media (min-width: 768px) {
    .scores-table.desktop {
        display: block;
    }
}

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

.scores-table thead {
    background-color: var(--primary);
    color: var(--secondary);
}

.scores-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 500;
}

.scores-table th.text-right {
    text-align: right;
}

.scores-table th.text-center {
    text-align: center;
}

.scores-table tbody tr {
    transition: background-color 0.3s ease;
}

.scores-table tbody tr:nth-child(even) {
    background-color: var(--gray-50);
}

.scores-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.scores-table td {
    padding: 1rem 1.5rem;
    color: var(--gray-700);
}

.scores-table td.text-center {
    text-align: center;
}

.scores-table td.text-right {
    text-align: right;
}

.score-cell {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.result-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.result-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.victory-icon {
    color: var(--accent);
}

.draw-icon {
    color: var(--draw);
}

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

.result-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary);
}

.victory-badge {
    background-color: var(--accent);
}

.draw-badge {
    background-color: var(--draw);
}

.loss-badge {
    background-color: var(--loss);
}

/* Mobile Score Cards */
.scores-cards.mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .scores-cards.mobile {
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .scores-cards.mobile {
        display: none;
    }
}

.score-card {
    background-color: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.score-card-header {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 0.4rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-card-header span:first-child {
    font-size: 0.6rem;
}

@media (min-width: 480px) {
    .score-card-header span:first-child {
        font-size: 0.75rem;
    }
}

.score-card-header span:last-child {
    font-size: 0.55rem;
    opacity: 0.75;
}

.score-card-content {
    padding: 0.5rem;
}

@media (min-width: 480px) {
    .score-card-content {
        padding: 0.75rem;
    }
}

.score-card-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.team-home {
    flex: 1;
    text-align: right;
    padding-right: 0.25rem;
}

.team-away {
    flex: 1;
    text-align: left;
    padding-left: 0.25rem;
}

.team-home p,
.team-away p {
    font-weight: 500;
    font-size: 0.65rem;
    line-height: 1.1;
}

@media (min-width: 480px) {

    .team-home p,
    .team-away p {
        font-size: 0.8rem;
    }
}

.score-display {
    background-color: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}

.score-display span {
    font-size: 0.875rem;
    font-weight: bold;
}

@media (min-width: 480px) {
    .score-display span {
        font-size: 1.125rem;
    }
}

.score-card-scorers {
    border-top: 1px solid var(--gray-100);
    padding-top: 0.4rem;
}

@media (min-width: 480px) {
    .score-card-scorers {
        display: block;
    }
}

.score-card-scorers p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.score-card-scorers span {
    color: var(--primary);
    font-weight: 500;
}

.score-card-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .stats {
        gap: 1.5rem;
        margin-top: 3.5rem;
    }
}

.stat-card {
    border-radius: var(--radius);
    padding: 0.75rem 0.5rem;
    text-align: center;
    border: 2px solid;
}

@media (min-width: 768px) {
    .stat-card {
        padding: 1.5rem;
    }
}

.stat-card:first-child {
    background-color: var(--accent-light);
    border-color: var(--accent);
}

.stat-card:nth-child(2) {
    background-color: var(--draw-light);
    border-color: var(--draw);
}

.stat-card:last-child {
    background-color: var(--loss-light);
    border-color: var(--loss);
}

.stat-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 auto 0.4rem;
}

@media (min-width: 768px) {
    .stat-icon {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 0.75rem;
    }
}

.stat-number {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.1rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 2.25rem;
        margin-bottom: 0.25rem;
    }
}

.stat-label {
    font-size: 0.7rem;
    color: var(--gray-600);
}

@media (min-width: 768px) {
    .stat-label {
        font-size: 1rem;
    }
}

.scores-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 500;
}

.scores-table th.text-right {
    text-align: right;
}

.scores-table th.text-center {
    text-align: center;
}

.scores-table tbody tr {
    transition: background-color 0.3s ease;
}

.scores-table tbody tr:nth-child(even) {
    background-color: var(--gray-50);
}

.scores-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.scores-table td {
    padding: 1rem 1.5rem;
    color: var(--gray-700);
}

.scores-table td.text-center {
    text-align: center;
}

.scores-table td.text-right {
    text-align: right;
}

.score-cell {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.result-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.result-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.victory-icon {
    color: var(--accent);
}

.draw-icon {
    color: var(--draw);
}

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

.result-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary);
}

.victory-badge {
    background-color: var(--accent);
}

.draw-badge {
    background-color: var(--draw);
}

.loss-badge {
    background-color: var(--loss);
}

/* Mobile Score Cards */
.scores-cards.mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .scores-cards.mobile {
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .scores-cards.mobile {
        display: none;
    }
}

.score-card {
    background-color: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.score-card-header {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 0.4rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

@media (min-width: 480px) {
    .score-card-header {
        padding: 0.5rem 0.75rem;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
}

.score-card-header span:first-child {
    font-size: 0.6rem;
}

@media (min-width: 480px) {
    .score-card-header span:first-child {
        font-size: 0.75rem;
    }
}

.score-card-header span:last-child {
    font-size: 0.55rem;
    opacity: 0.75;
}

@media (min-width: 480px) {
    .score-card-header span:last-child {
        font-size: 0.65rem;
    }
}

.score-card-content {
    padding: 0.5rem;
}

@media (min-width: 480px) {
    .score-card-content {
        padding: 0.75rem;
    }
}

.score-card-teams {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.25rem;
}

@media (min-width: 480px) {
    .score-card-teams {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 0.75rem;
        gap: 0;
    }
}

.team-home {
    flex: 1;
    text-align: center;
    padding: 0;
}

@media (min-width: 480px) {
    .team-home {
        text-align: right;
        padding-right: 0.5rem;
    }
}

.team-away {
    flex: 1;
    text-align: center;
    padding: 0;
}

@media (min-width: 480px) {
    .team-away {
        text-align: left;
        padding-left: 0.5rem;
    }
}

.team-home p,
.team-away p {
    font-weight: 500;
    font-size: 0.6rem;
    line-height: 1.2;
}

@media (min-width: 480px) {

    .team-home p,
    .team-away p {
        font-size: 0.75rem;
    }
}

.score-display {
    background-color: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}

@media (min-width: 480px) {
    .score-display {
        padding: 0.4rem 0.75rem;
    }
}

.score-display span {
    font-size: 1rem;
    font-weight: bold;
}

@media (min-width: 480px) {
    .score-display span {
        font-size: 1.25rem;
    }
}

.score-card-scorers {
    border-top: 1px solid var(--gray-200);
    padding-top: 0.5rem;
}

.score-card-scorers p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

@media (min-width: 480px) {
    .score-card-scorers p {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
}

.score-card-scorers span {
    color: var(--primary);
    font-weight: 500;
}

.score-card-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

@media (min-width: 480px) {
    .score-card-result {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
}

.score-card-result .result-badge {
    font-size: 0.5rem;
    padding: 0.15rem 0.4rem;
}

@media (min-width: 480px) {
    .score-card-result .result-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    border: 2px solid;
}

.stat-card:first-child {
    background-color: var(--accent-light);
    border-color: var(--accent);
}

.stat-card:nth-child(2) {
    background-color: var(--draw-light);
    border-color: var(--draw);
}

.stat-card:last-child {
    background-color: var(--loss-light);
    border-color: var(--loss);
}

.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.75rem;
}

.stat-card:first-child .stat-icon {
    color: var(--accent);
}

.stat-card:nth-child(2) .stat-icon {
    color: var(--draw);
}

.stat-card:last-child .stat-icon {
    color: var(--loss);
}

.stat-number {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-card:first-child .stat-number {
    color: var(--accent);
}

.stat-card:nth-child(2) .stat-number {
    color: var(--draw);
}

.stat-card:last-child .stat-number {
    color: var(--loss);
}

.stat-label {
    color: var(--gray-600);
}

/* Donations */
/* Statistici Button */
.stats-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.btn-statistica {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--primary);
    color: var(--secondary);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-statistica:hover {
    background-color: var(--gray-700);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-statistica svg {
    transition: transform 0.3s ease;
}

.btn-statistica:hover svg {
    transform: scale(1.05);
}

/* Stats Modal Content */
.stats-modal-content {
    max-width: 550px !important;
    width: 95% !important;
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px !important;
    animation: modalAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

/* Scrollbar styling for Chrome/Safari */
.stats-modal-content::-webkit-scrollbar {
    width: 6px;
}

.stats-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.stats-modal-content::-webkit-scrollbar-thumb {
    background-color: var(--gray-300);
    border-radius: 20px;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Cascading Animation for Children */
.stats-modal-content>* {
    opacity: 0;
    transform: translateY(15px);
    animation: itemAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes itemAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-modal-content h2 {
    animation-delay: 0.1s;
}

.top-scorer-feature {
    animation-delay: 0.2s;
    width: 100%;
}

.other-scorers-list {
    animation-delay: 0.3s;
    width: 100%;
}

.stats-summary-grid {
    animation-delay: 0.4s;
    width: 100%;
}

.modal-note {
    animation-delay: 0.5s;
}

/* Universal Premium Close Button */
.modal-close,
.image-modal-close,
.video-modal-close,
.arhiva-image-modal-close,
#statsModalClose {
    position: fixed !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    background-color: var(--primary) !important;
    color: var(--secondary) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.75rem !important;
    padding: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    font-weight: 800 !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 99999 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
}

.modal-close:hover,
.image-modal-close:hover,
.video-modal-close:hover,
.arhiva-image-modal-close:hover,
#statsModalClose:hover {
    background-color: var(--loss) !important;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4) !important;
    border-color: var(--loss) !important;
}


.stats-modal-content h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 2rem !important;
    text-transform: uppercase;
    margin-bottom: 2rem !important;
    color: var(--primary);
    letter-spacing: 1px;
}

.top-scorer-feature {
    background: linear-gradient(145deg, #1a1a1a 0%, #000000 100%);
    border-radius: 24px;
    padding: 1.5rem;
    color: white;
    margin: 1rem 0 2.5rem;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(22, 163, 74, 0.3);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    text-align: left;
}

.top-scorer-feature::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.feature-badge {
    background: var(--accent);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

.feature-photo {
    width: 130px;
    height: 160px;
    border-radius: 16px;
    border: 2px solid var(--accent);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    background: #222;
}

.feature-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-scorer-feature h3 {
    font-size: 1.85rem;
    margin-bottom: 0.25rem;
    color: white;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.feature-count {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.other-scorers-list {
    background-color: #f8f9fa;
    border-radius: 16px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.other-scorer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.05rem;
    font-family: 'Oswald', sans-serif;
    transition: all 0.2s ease;
}

.other-scorer-item:hover {
    padding-left: 5px;
    color: var(--accent);
}

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

.other-scorer-item span {
    color: var(--gray-700);
    font-weight: 500;
}

.other-scorer-item strong {
    color: var(--primary);
    font-weight: 700;
    background: var(--gray-100);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-item {
    background-color: var(--primary);
    color: #ffffff;
    padding: 1.75rem 0.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.summary-item:nth-child(1) {
    background: linear-gradient(135deg, #1f2937 0%, #000000 100%);
    border-bottom: 4px solid var(--accent);
}

.summary-item:nth-child(2) {
    background: linear-gradient(135deg, #1f2937 0%, #000000 100%);
    border-bottom: 4px solid var(--loss);
}

.summary-item:nth-child(3) {
    background: linear-gradient(135deg, #1f2937 0%, #000000 100%);
    border-bottom: 4px solid var(--draw);
}

.summary-val {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Oswald', sans-serif;
}

.summary-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.modal-note {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 1.5rem;
    font-style: italic;
}

/* Mobile Optimization for Stats Modal */
@media (max-width: 480px) {
    .stats-modal-content {
        padding: 3rem 1.25rem 2rem !important;
        border-radius: 20px !important;
        width: 92% !important;
        box-sizing: border-box !important;
    }

    .stats-modal-content h2 {
        font-size: 1.4rem !important;
        margin-bottom: 1.25rem !important;
        padding: 0;
        width: 100%;
    }

    .top-scorer-feature {
        padding: 2.25rem 1rem 1.25rem;
        margin-top: 0.5rem;
        margin-bottom: 1.25rem;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .feature-badge {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }

    .top-scorer-feature {
        padding: 1rem;
        gap: 1rem;
    }

    .feature-photo {
        width: 90px;
        height: 110px;
    }

    .top-scorer-feature h3 {
        font-size: 1.25rem;
        margin-bottom: 0.1rem;
    }

    .feature-badge {
        padding: 0.25rem 0.6rem;
        font-size: 0.6rem;
        margin-bottom: 0.4rem;
    }

    .feature-count {
        font-size: 0.85rem;
    }

    .feature-count {
        font-size: 0.9rem;
    }

    .other-scorers-list {
        padding: 0.25rem 1rem;
        margin-bottom: 1.25rem;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .other-scorer-item {
        font-size: 0.9rem;
        padding: 0.75rem 0;
    }

    .other-scorer-item strong {
        flex-shrink: 0;
        white-space: nowrap;
        margin-left: 0.5rem;
    }

    .stats-summary-grid {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
        width: 100% !important;
    }

    .summary-item {
        padding: 1rem 0.25rem;
        border-radius: 12px;
    }

    .summary-val {
        font-size: 1.4rem;
    }

    .summary-lbl {
        font-size: 0.45rem;
        letter-spacing: 0.5px;
    }

    .summary-item svg {
        width: 16px;
        height: 16px;
        margin-bottom: 0.2rem !important;
    }

    .modal-close,
    .image-modal-close,
    .video-modal-close,
    .arhiva-image-modal-close,
    #statsModalClose {
        width: 2.8rem !important;
        height: 2.8rem !important;
        top: 1rem !important;
        right: 1rem !important;
        font-size: 1.4rem !important;
        border-width: 1px !important;
    }
}

.donations {
    background: linear-gradient(135deg, #000000, #052e16);
    padding: 2rem 0;
    color: var(--secondary);
    position: relative;
}

.donation-summary-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.donation-card-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .donation-card-content-wrap {
        gap: 2rem;
    }
}


.donation-text-content {
    width: 100%;
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    padding: 4px;
    transition: transform 0.3s ease;
}

.icon-badge:hover {
    transform: scale(1.03);
    background: #f3f4f6;
}

.donation-text-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .donation-text-content h2 {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .donation-text-content h2 {
        font-size: 2.25rem;
    }
    
    .donation-text-content p {
        font-size: 1.125rem;
    }
}

.donation-text-content p {
    font-size: 1rem;
    color: var(--secondary);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.donation-features-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .donation-features-compact {
        gap: 1.25rem;
    }
}

.donation-features-compact span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    transition: all 0.3s ease;
}

.donation-features-compact span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.donation-features-compact svg {
    color: var(--accent);
    flex-shrink: 0;
}

.donation-action-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 280px;
}

@media (min-width: 768px) {
    .donation-action-content {
        max-width: 320px;
    }
}

.donation-contact-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.8;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .donation-contact-quick {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.875rem;
        justify-content: center;
        max-width: none;
        margin: 0;
    }
}

.donation-contact-quick a {
    color: var(--secondary);
    text-decoration: none;
    transition: opacity 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* Android touch optimization */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.donation-contact-quick a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.sep {
    display: none;
}

@media (min-width: 768px) {
    .sep {
        display: inline;
        color: var(--secondary);
        opacity: 0.6;
    }
    
    .donation-contact-quick a {
        background: transparent;
        border: none;
        padding: 0;
        min-height: auto;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .donation-contact-quick a:hover {
        background: transparent;
        opacity: 1;
        text-decoration: underline;
    }
}

.donation-footer-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.6;
    font-style: italic;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.footer-title p {
    font-size: 0.875rem;
    opacity: 0.75;
}

.footer-description {
    font-size: 0.875rem;
    opacity: 0.75;
    line-height: 1.6;
}

.footer-slogan {
    font-size: 0.875rem;
    color: var(--gray-300);
    font-style: italic;
}

.footer-contact h4,
.footer-social h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-item svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-item p {
    font-size: 0.875rem;
}

.contact-item div p:last-child {
    opacity: 0.75;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--gray-300);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 9999px;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.social-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--gray-300);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.75;
}

.footer-heart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-heart svg {
    width: 1rem;
    height: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    /* Maximize z-index to be above everything */
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--secondary);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

/* Removed old modal-close styles - now handled by universal block */

.modal-content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content>p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .donation-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

.donation-option {
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donation-option:hover {
    border-color: var(--primary);
    background-color: var(--gray-50);
}

.donation-option.active {
    border-color: var(--accent);
    background-color: var(--accent-light);
    color: var(--accent);
    font-weight: 500;
}

.custom-donation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .custom-donation {
        flex-direction: row;
    }
}

#customAmount {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
}

#customAmount:focus {
    outline: none;
    border-color: var(--primary);
}

.custom-donation .btn-primary {
    white-space: nowrap;
}

.donation-methods {
    margin-bottom: 1.5rem;
}

/* Donation CTA Styling */
.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem;
}

#donateBtn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Oswald', sans-serif;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    will-change: transform, box-shadow;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#donateBtn:hover {
    transform: translateY(-4px) scale(1.02);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 255, 255, 0.4);
    border-color: #ffffff;
}

#donateBtn:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    #donateBtn {
        font-size: 1.125rem;
        padding: 1.25rem 2.5rem;
        min-height: 64px;
    }
}

.cta-subtext {
    color: var(--gray-300);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.donation-methods h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.payment-method {
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.875rem;
    background-color: var(--gray-50);
    transition: all 0.3s ease;
}

.payment-method strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.payment-method p {
    margin: 0.25rem 0;
    color: var(--gray-600);
    font-size: 0.8rem;
}

.payment-method a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.payment-method a:hover {
    color: var(--gray-700);
    text-decoration: underline;
}



.modal-note {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-align: center;
}

/* Modal pentru imagini */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-modal.active .image-modal-content img {
    transform: scale(1);
}

@media (max-width: 768px) {
    .image-modal {
        padding: 0;
        background-color: #000;
    }

    .image-modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }

    .image-modal-content img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        object-fit: contain;
    }

    /* image-modal-close mobile handled by universal block */
}

/* image-modal-close hover handled by universal block */

/* Responsive Logo Adjustments */
@media (max-width: 768px) {
    .shield-logo {
        width: 2.5rem;
        height: 2.5rem;
    }

    .shield-logo.large {
        width: 7.5rem;
        height: 7.5rem;
    }
}

@media (max-width: 480px) {
    .shield-logo {
        width: 2.25rem;
        height: 2.25rem;
    }

    .shield-logo.large {
        width: 6rem;
        height: 6rem;
    }
}

/* Galerie */
.galerie {
    background-color: var(--gray-50);
    padding: 5rem 0;
}

/* Galerie Expandabilă */
.gallery-expand-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.gallery-expand-wrapper.collapsed {
    max-height: 250px;
    /* Exact un rând pe mobil (2 coloane) */
}

@media (min-width: 768px) {
    .gallery-expand-wrapper.collapsed {
        max-height: 380px;
        /* Exact un rând pe desktop (3-4 coloane) */
    }
}

.gallery-expand-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, var(--gray-50), transparent);
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.gallery-expand-wrapper.collapsed .gallery-expand-overlay {
    opacity: 1;
}

.gallery-toggle-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
    z-index: 20;
}

.gallery-toggle-btn {
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
}

.gallery-toggle-btn:hover {
    background-color: var(--gray-700);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.toggle-icon {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20px;
    height: 20px;
}

.gallery-toggle-btn[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}



.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.gallery-grid img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
    min-height: 150px;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Video Card Styling */
.video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #111;
    min-height: 150px;
}

.video-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1.5rem;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 1.5rem;
    transition: background 0.3s ease;
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.55);
}

.play-btn-circle {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.video-card:hover .play-btn-circle {
    transform: scale(1.05);
}

.play-btn-circle svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #111;
    margin-left: 3px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-inner {
    position: relative;
    width: min(90vw, 420px);
}

.video-modal-frame {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.video-modal-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Removed old video-modal-close styles */

/* video-modal-close hover handled by universal block */

/* Gallery Arhiva Button */
.gallery-arhiva-btn {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn-arhiva {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--primary);
    color: var(--secondary);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-arhiva:hover {
    background-color: var(--gray-700);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-arhiva svg {
    transition: transform 0.3s ease;
}

.btn-arhiva:hover svg {
    transform: scale(1.05);
}

/* Anthem Section */
.anthem-section {
    background: #ffffff;
    padding: 4rem 0;
    text-align: center;
}

.anthem-section .section-header h2 {
    color: var(--primary);
}

.anthem-section .section-header p {
    color: var(--gray-600);
}

.anthem-player {
    max-width: 600px;
    margin: 0 auto;
    background: #1a1a1a;
    border: 1px solid rgba(22, 163, 74, 0.3);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.anthem-player:hover {
    border-color: rgba(22, 163, 74, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.anthem-icon {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

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

.anthem-play-btn {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.anthem-play-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(22, 163, 74, 0.3);
}

.anthem-play-btn .play-icon {
    margin-left: 3px;
}

.anthem-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.anthem-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-300);
    font-variant-numeric: tabular-nums;
}

.anthem-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.2s ease;
}

.anthem-progress-bar:hover {
    height: 8px;
}

.anthem-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #22c55e);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.anthem-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.anthem-progress-bar:hover .anthem-progress-fill::after {
    opacity: 1;
}

.anthem-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.anthem-volume-btn {
    background: none;
    border: none;
    color: var(--gray-300);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.anthem-volume-btn:hover {
    color: var(--accent);
}

.anthem-volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.anthem-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}

.anthem-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
    .anthem-player {
        padding: 1.25rem;
    }

    .anthem-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .anthem-play-btn {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .anthem-progress-container {
        width: 100%;
        order: 3;
    }

    .anthem-volume {
        order: 2;
    }

    .anthem-volume-slider {
        width: 60px;
    }
}

/* Next Match Countdown */
.next-match {
    background-color: var(--gray-100);
    padding: 3rem 0;
    text-align: center;
}

.match-info-teams {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .match-info-teams {
        font-size: 1.4rem;
    }
}

.match-info-details {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    /* Redus de la 1rem */
    margin-top: 1.5rem;
    /* Redus de la 2rem */
    flex-wrap: wrap;
}

.countdown-item {
    background-color: var(--accent-light);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 0.5rem 0.5rem;
    text-align: center;
    min-width: 60px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .countdown-item {
        min-width: 80px;
        padding: 1rem 0.75rem;
    }
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-item span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1;
}

@media (min-width: 768px) {
    .countdown-item span {
        font-size: 2rem;
    }
}

.countdown-item p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

@media (min-width: 768px) {
    .countdown-item p {
        font-size: 0.875rem;
    }
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    padding: 0 0.25rem;
}

/* ===== ARHIVA PAGE STYLES ===== */

/* Arhiva Hero */
.arhiva-hero {
    height: 400px;
}

@media (min-width: 768px) {
    .arhiva-hero {
        height: 500px;
    }
}

/* Arhiva Section */
.arhiva-section {
    background-color: var(--gray-50);
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .arhiva-section {
        padding: 5rem 0;
    }
}

/* Arhiva Grid */
.arhiva-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
}

@media (min-width: 768px) {
    .arhiva-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .arhiva-card {
        max-width: 1000px;
    }
}

/* Arhiva Card */
.arhiva-card {
    background-color: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.arhiva-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.arhiva-card.coming-soon {
    border-top-color: var(--gray-300);
    opacity: 0.85;
}

.arhiva-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--secondary);
}

@media (min-width: 768px) {
    .arhiva-card-header {
        padding: 1.5rem;
    }
}

.arhiva-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .arhiva-card-header h3 {
        font-size: 1.25rem;
    }
}

.arhiva-badge {
    background-color: var(--accent);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.arhiva-badge.future {
    background-color: var(--gray-600);
}

.arhiva-badge.present {
    background-color: #22c55e;
}

.arhiva-badge.finished {
    background-color: #2563eb;
}

.arhiva-card-content {
    padding: 1rem;
}

@media (min-width: 768px) {
    .arhiva-card-content {
        padding: 1.5rem;
    }
}

/* Arhiva Stats */
.arhiva-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
    .arhiva-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.arhiva-stat {
    text-align: center;
    padding: 1rem 0.5rem;
    background-color: var(--gray-50);
    border-radius: var(--radius);
}

.arhiva-stat .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.arhiva-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.arhiva-description {
    color: var(--gray-600);
    line-height: 1.6;
}

.arhiva-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    color: var(--gray-300);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background-color: var(--secondary);
    border: 4px solid var(--primary);
    border-radius: 50%;
    transform: translateX(-8px);
    z-index: 1;
}

.timeline-date {
    display: inline-block;
    background-color: var(--primary);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-content {
    background-color: var(--secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Navigation link styles for anchor tags */
a.nav-btn {
    text-decoration: none;
    display: inline-block;
}

/* Arhiva Galerie */
.arhiva-galerie {
    margin-top: 3rem;
    background-color: var(--secondary);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    /* Align width with archive card */
}

@media (min-width: 768px) {
    .arhiva-galerie {
        max-width: 1000px;
        margin-top: 2rem;
    }
}

.arhiva-galerie h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.arhiva-galerie .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .arhiva-galerie .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .arhiva-galerie .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.arhiva-galerie .gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arhiva-galerie .gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
    margin-top: 1.5rem;
}

.show-more-btn:hover {
    background-color: var(--gray-700);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.show-more-btn .toggle-icon {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20px;
    height: 20px;
}

.show-more-btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

.show-more-wrapper {
    display: flex;
    justify-content: center;
}

/* Arhiva Image Modal */
.arhiva-image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.arhiva-image-modal.active {
    display: flex;
}

.arhiva-image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.arhiva-image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.arhiva-image-modal-close {
    position: absolute;
    top: -3rem;
    right: -3rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary);
    font-size: 1.75rem;
    cursor: pointer;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease;
}

.arhiva-image-modal-close:hover {
    background-color: white;
}

@media (max-width: 768px) {
    .arhiva-image-modal {
        padding: 0;
        background-color: #000;
    }

    .arhiva-image-modal-close {
        top: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 2.25rem;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 10001;
    }

    .arhiva-image-modal-content {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .arhiva-image-modal-content img {
        width: 100%;
        height: 100%;
        max-width: 100vw;
        max-height: 100vh;
        object-fit: contain;
        border-radius: 0;
    }

    .arhiva-galerie {
        padding: 1rem;
        margin-top: 1rem;
    }

    .arhiva-galerie h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .arhiva-image-modal {
        padding: 0;
    }
}

/* Empty Section Placeholder Message */
.empty-section-message {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    /* Adăugat margin-bottom pentru a nu se tăia */
    color: var(--gray-600);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    grid-column: 1 / -1;
    width: 100%;
    /* Asigură lățimea completă în grid */
}

.empty-section-message .icon-container {
    background-color: var(--accent-light);
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.2);
    animation: pulseIcon 3s ease-in-out infinite;
}

.empty-section-message svg {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--accent);
    animation: rotateClock 15s linear infinite;
}

.empty-section-message h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.empty-section-message p {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 400px;
    margin: 0 auto;
}

/* --- Animatii Usoare --- */

/* 1. Scroll Reveal (Fade In + Slide Up) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Hover Effects (Carduri, Butoane) */
.game-card,
.score-card,
.donation-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover,
.score-card:hover,
.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 3. Butoane cu efect subtil de "apasare" */
button:active,
.btn-primary:active,
.btn-secondary:active,
.nav-btn:active {
    transform: scale(0.98);
}

/* 4. Imagine Hero - Parallax subtil sau zoom incet */
.hero-background {
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* 5. Fade In general pentru pagina la incarcare */
body {
    animation: fadeInPage 0.5s ease-out;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}




/* 6. --- Glassmorphism Effect --- */
.game-card,
.score-card {
    background: #ffffff;
    box-shadow: var(--shadow);
    color: var(--primary) !important;
}

.game-card .game-card-date,
.game-card .game-card-location,
.game-card .game-card-description,
.score-card .date,
.score-card .competition,
.score-card .team-name,
.score-card .scorers {
    color: var(--gray-600) !important;
}

.game-card .game-card-title,
.score-card .team-score,
.score-card .score-display span {
    color: var(--primary) !important;
}

/* Revert pentru donation-card la stilul original (transparent) ca în FCRAPID */
.donation-card {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary) !important;
    text-align: center;
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* Fix specific pentru textul din donații */
.donation-card h3,
.donation-card p {
    color: var(--secondary) !important;
    text-shadow: none !important;
}

/* Textul mic din descrierea donației să fie un pic mai gri pentru ierarhie */
.donation-card p:not(:first-child) {
    color: rgba(255, 255, 255, 0.8) !important;
}

.donation-card .donation-icon {
    color: var(--secondary) !important;
}




/* 8. --- Pulsating Stats --- */
.stat-card:hover .stat-icon {
    animation: pulseIcon 1.5s infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Team Section Placeholder --- */
.team-section {
    padding: 4rem 0;
    position: relative;
    z-index: 20;
    background-color: #ffffff !important;
    /* Fundal Alb Pur */
    background-image: none !important;
    color: var(--primary);
    /* Text Negru */
}

.team-section::before,
.team-section::after {
    display: none !important;
    content: none !important;
}

/* Forțare text negru pentru titluri în această secțiune */
.team-section .section-header h2,
.team-section .section-header p {
    color: var(--primary) !important;
}

.team-placeholder {
    background: var(--gray-50);
    /* Gri foarte deschis */
    backdrop-filter: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow);
    /* Umbră fină pentru profunzime */
}

.placeholder-icon {
    background-color: var(--accent-light);
    border: 2px solid var(--accent);
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.2);
    animation: pulseIcon 3s ease-in-out infinite;
}

.placeholder-icon svg {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--accent);
    animation: rotateClock 15s linear infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0px rgba(22, 163, 74, 0);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(22, 163, 74, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0px rgba(22, 163, 74, 0);
    }
}

.team-placeholder h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.team-placeholder h3 span {
    color: var(--accent);
}

.team-placeholder p {
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 450px;
    font-size: 1.05rem;
}

/* ===== SQUAD / PLAYER CARDS ===== */

/* Filter buttons */
.squad-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.squad-filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: transparent;
    color: var(--primary);
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.squad-filter-btn:hover,
.squad-filter-btn.active {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* Grid */
.squad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .squad-grid {
        gap: 1.25rem;
    }
}

@media (min-width: 640px) {
    .squad-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 900px) {
    .squad-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .squad-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Card */
.player-card {
    perspective: 1000px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.player-card.hidden {
    display: none;
}

.player-card-inner {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    cursor: pointer;
}

.player-card-inner:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Jersey number badge */
.player-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Photo wrapper */
.player-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(160deg, #e8e8e8, #c9c9c9);
}

.player-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.45s ease;
    display: block;
}

.player-card-inner:hover .player-photo-wrap img {
    transform: scale(1.04);
}

/* Overlay on hover */
.player-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.0) 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.75rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.player-card-inner:hover .player-overlay {
    opacity: 1;
}

/* Position badge colours */
.player-pos-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    color: #fff;
    background: var(--accent);
}

[data-pos="portar"] .player-pos-badge {
    background: #1d4ed8;
}

[data-pos="fundas"] .player-pos-badge {
    background: #0f766e;
}

[data-pos="mijlocas"] .player-pos-badge {
    background: #7c3aed;
}

[data-pos="atacant"] .player-pos-badge {
    background: #dc2626;
}

/* Info bar */
.player-info {
    padding: 0.75rem 0.9rem 0.9rem;
    text-align: center;
    background: #fff;
}

.player-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captain-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    font-size: 0.73rem;
    font-weight: 900;
    margin-left: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    padding-bottom: 1px;
    /* Optical adjustment for C letter centering */
}

.player-role {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600);
}

/* ===== END SQUAD ===== */





@keyframes rotateClock {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0px rgba(22, 163, 74, 0);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(22, 163, 74, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0px rgba(22, 163, 74, 0);
    }

}

/* Navigation Arrows in Modal */
.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.8rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 100;
    transition: all 0.3s ease;
    opacity: 0.7;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.modal-prev {
    left: 1rem;
}

.modal-next {
    right: 1rem;
}

/* Adjust close button z-index */
.image-modal-close {
    z-index: 200;
}

@media (max-width: 768px) {

    .modal-prev,
    .modal-next {
        font-size: 1.5rem;
        padding: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
        background: rgba(0, 0, 0, 0.2);
    }

    .modal-prev {
        left: 0.5rem;
    }

    .modal-next {
        right: 0.5rem;
    }
}

/* ===== CALENDAR PAGE STYLES ===== */

/* Calendar Section */
.calendar-section {
    position: relative;
    padding: 5rem 0 6rem;
    background-color: var(--gray-50);
    overflow: hidden;
}

@media (min-width: 768px) {
    .calendar-section {
        padding: 6rem 0 7rem;
    }
}

/* Calendar Table Wrapper */
.calendar-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Scroll hint shadow on mobile */
.calendar-table-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.06), transparent);
    border-radius: 0 var(--radius) var(--radius) 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 767px) {
    .calendar-table-wrapper {
        position: relative;
    }

    .calendar-table-wrapper::after {
        opacity: 1;
    }
}

/* Calendar Table */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table thead {
    background: var(--primary);
    color: var(--secondary);
}

.calendar-table thead th {
    padding: 1.1rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.calendar-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.calendar-table tbody tr:last-child {
    border-bottom: none;
}

.calendar-table tbody tr:hover {
    background-color: var(--gray-50);
}

.calendar-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.calendar-table tbody tr:nth-child(even):hover {
    background-color: #eef0f2;
}

.calendar-table tbody td {
    padding: 1rem;
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Calendar Table Columns */
.calendar-etapa {
    width: 70px;
    text-align: center !important;
    font-size: 1.1rem !important;
    font-weight: 700;
    color: var(--primary);
}

.calendar-date {
    white-space: nowrap;
    min-width: 180px;
    font-weight: 500;
    color: var(--gray-700);
}

.calendar-match {
    min-width: 220px;
    font-weight: 600;
    color: var(--primary);
}

.calendar-location {
    min-width: 180px;
    color: var(--gray-600);
}

/* Calendar Badge */
.calendar-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.calendar-badge.upcoming {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

.calendar-badge.played {
    background: var(--gray-300);
    color: var(--gray-700);
}

.calendar-badge.live {
    background: #ef4444;
    color: white;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* Calendar Mobile Responsive */
@media (max-width: 600px) {
    .calendar-table-wrapper {
        overflow-x: visible;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
    }

    .calendar-table-wrapper::after {
        display: none;
    }

    .calendar-table,
    .calendar-table thead,
    .calendar-table tbody,
    .calendar-table tr,
    .calendar-table td,
    .calendar-table th {
        display: block;
    }

    .calendar-table thead {
        display: none;
    }

    .calendar-table tbody tr {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: var(--radius);
        margin-bottom: 1rem;
        padding: 1.25rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-left: 4px solid var(--primary);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .calendar-table tbody tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .calendar-table tbody td {
        padding: 0.35rem 0;
        text-align: left !important;
        position: relative;
    }

    .calendar-etapa {
        text-align: left !important;
        font-size: 0.8rem !important;
        font-weight: 700;
        color: var(--gray-500);
        margin-bottom: 0.25rem;
    }

    .calendar-etapa::before {
        content: 'Etapa ';
    }

    .calendar-date {
        font-size: 0.85rem;
        color: var(--gray-600);
    }

    
    .calendar-match {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--primary);
        padding: 0.3rem 0;
    }

    .calendar-location {
        font-size: 0.85rem;
        color: var(--gray-500);
    }

    
    .calendar-table tbody td.text-center {
        text-align: left !important;
        padding-top: 0.5rem;
    }
}

/* Calendar Section Styles */
.calendar-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Next Match Highlight Styles */
.next-match-highlight {
    background: linear-gradient(135deg, var(--accent), #22c55e);
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
    position: relative;
    overflow: hidden;
}

.next-match-highlight::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.next-match-highlight-content {
    position: relative;
    z-index: 1;
}

.next-match-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.next-match-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.next-match-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.next-match-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
}

/* Utility Classes for Tables and Text */
.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-black {
    color: #000 !important;
}