/* Hirving Lozano "Chucky" Fan Site - PSV/San Diego Theme */
/* Color palette: PSV Red, Orange accents */

:root {
    --primary-color: #E31B23;
    --primary-dark: #B8151B;
    --primary-light: #FF3B42;
    --secondary-color: #FFFFFF;
    --accent-color: #FF6B00;
    --accent-light: #FF8C33;

    --bg-color: #0A0A0F;
    --bg-card: rgba(227, 27, 35, 0.1);
    --bg-gradient: linear-gradient(135deg, #0A0A0F 0%, #1A0A0C 50%, #1A1A2E 100%);

    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);

    --border-color: rgba(227, 27, 35, 0.3);
    --shadow-color: rgba(227, 27, 35, 0.3);
    --glow-color: rgba(255, 107, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip to content — accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Inline text links (SEO) */
.text-link {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: rgba(255, 107, 0, 0.5);
    transition: color 0.2s;
}

.text-link:hover {
    color: var(--primary-color);
    text-decoration-color: var(--primary-color);
}

/* SEO Content Section — Z-pattern */
.seo-content {
    padding: 60px 0 48px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
}

.seo-article {
    max-width: 860px;
    margin: 0 auto;
}

.seo-article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.seo-article h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 28px 0 14px;
}

.seo-article p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 20px;
}

/* News links block */
.seo-news-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(227, 27, 35, 0.06);
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.seo-news-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 4px 0;
}

.seo-news-links a:hover {
    color: var(--accent-color);
}

/* Related pages grid — Premium card design */
.related-sports {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.sport-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 22px 20px 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Иконка в кружке */
.sport-link::before {
    content: attr(data-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    font-size: 1.4rem;
    margin-bottom: 14px;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Градиентная линия снизу */
.sport-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.sport-link:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 107, 0, 0.1);
}

.sport-link:hover::before {
    transform: scale(1.12) rotate(-5deg);
    background: rgba(227, 27, 35, 0.15);
}

.sport-link:hover::after {
    transform: scaleX(1);
}

.sport-link span {
    display: block;
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: -0.2px;
    line-height: 1.2;
    margin-bottom: 4px;
}

/* Стрелка в правом верхнем углу */
.sport-link .link-arrow {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.sport-link:hover .link-arrow {
    opacity: 1;
    transform: translate(0, 0);
}


/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 4px 30px var(--shadow-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px var(--accent-color));
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(227, 27, 35, 0.2);
}

.nav-link.active {
    color: var(--accent-color);
    background: rgba(227, 27, 35, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 1010;
    position: relative;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.6) 0%, rgba(10, 10, 15, 0.4) 30%, rgba(10, 10, 15, 0.7) 70%, rgba(10, 10, 15, 1) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(227, 27, 35, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 107, 0, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, rgba(10, 10, 15, 0.8) 50%, var(--bg-color) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 60px 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s infinite;
}

@keyframes shine {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    min-width: 140px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px var(--shadow-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-color);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Sections */
.hero-page {
    min-height: 50vh;
    padding-top: 80px;
    background: radial-gradient(ellipse at center, rgba(227, 27, 35, 0.2) 0%, transparent 70%), var(--bg-gradient);
}

.hero-page .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 4px;
}

/* Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 10px var(--shadow-color));
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.stat-big-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
}

/* Bio */
.bio-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.bio-card h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bio-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.bio-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.quick-facts {
    list-style: none;
}

.quick-facts li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.quick-facts li:last-child {
    border-bottom: none;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.data-item {
    background: rgba(227, 27, 35, 0.15);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.data-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.data-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(227, 27, 35, 0.15);
    border-color: var(--primary-color);
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 28px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

.timeline-item.featured .timeline-marker {
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--glow-color);
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Career Timeline */
.career-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.career-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.career-item:hover {
    background: rgba(227, 27, 35, 0.1);
    border-color: var(--primary-color);
}

.career-item.featured {
    border-color: var(--accent-color);
    background: rgba(255, 107, 0, 0.05);
}

.career-year {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    padding: 10px;
    background: rgba(227, 27, 35, 0.2);
    border-radius: 8px;
    height: fit-content;
}

.career-club h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.career-club p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Stats Table */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.stats-table th,
.stats-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.stats-table th {
    background: rgba(227, 27, 35, 0.2);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.stats-table tr:hover {
    background: rgba(227, 27, 35, 0.1);
}

.stats-table .stats-highlight {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.stats-table .stats-total {
    background: rgba(227, 27, 35, 0.15);
    font-weight: 700;
}

/* Gallery */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: rgba(227, 27, 35, 0.15);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.highlight-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.highlight-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(227, 27, 35, 0.4);
}

.highlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    /* No pointer-events block — just a gradient overlay, not a popup */
    pointer-events: none;
}

/* На тач-устройствах оверлей всегда виден (нет hover) */
@media (hover: none) {
    .highlight-overlay {
        opacity: 1;
    }

    .highlight-card .play-btn {
        opacity: 0.9;
    }
}

.highlight-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(227, 27, 35, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.highlight-card:hover .play-btn {
    background: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.1);
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--primary-color);
    border-radius: 24px;
    z-index: -1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Matches Widget */
.matches-widget {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(26, 10, 12, 0.95) 100%);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.matches-widget-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
}

.matches-widget-divider {
    width: 2px;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(180deg, transparent, var(--primary-color), var(--accent-color), var(--primary-color), transparent);
    border-radius: 2px;
}

.matches-widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.matches-widget-icon {
    font-size: 1.5rem;
}

.matches-widget-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
}

.matches-widget-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-match-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.widget-match-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    background: rgba(227, 27, 35, 0.1);
}

.widget-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.widget-match-vs {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0 8px;
}

.widget-match-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.widget-match-date {
    color: var(--text-muted);
}

.widget-match-competition {
    color: var(--primary-light);
    font-weight: 500;
}

.widget-match-result {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 8px;
}

.widget-match-result.win {
    background: linear-gradient(135deg, #00c853, #00a844);
}

.widget-match-result.draw {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1a1a;
}

.widget-match-result.loss {
    background: linear-gradient(135deg, #f44336, #c62828);
}

.widget-match-goal {
    color: var(--accent-color);
    margin-left: 6px;
}

.widget-match-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease infinite;
    border-radius: 12px;
    height: 85px;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ─── Result badges ──────────────────── */
.result-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-badge.win {
    background: rgba(0, 200, 100, 0.15);
    color: #00C864;
    border: 1px solid rgba(0, 200, 100, 0.3);
}

.result-badge.draw {
    background: rgba(255, 200, 0, 0.12);
    color: #FFC800;
    border: 1px solid rgba(255, 200, 0, 0.3);
}

.result-badge.loss {
    background: rgba(227, 27, 35, 0.12);
    color: #E31B23;
    border: 1px solid rgba(227, 27, 35, 0.3);
}

.result-badge.upcoming {
    background: rgba(100, 100, 255, 0.1);
    color: #8888ff;
    border: 1px solid rgba(100, 100, 255, 0.2);
}

/* ─── Match venue ────────────────────── */
.match-venue {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 6px;
    opacity: 0.7;
}

/* ─── Next match highlight ───────────── */
.match-card.match-next {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 20px rgba(255, 168, 0, 0.15);
}

.match-next-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── Season stats boxes ─────────────── */
.stat-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 24px;
    text-align: center;
    min-width: 100px;
    flex: 1;
    transition: transform 0.2s;
}

.stat-box:hover {
    transform: translateY(-3px);
}

.stat-box .stat-val {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-box .stat-lbl {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-box.win .stat-val {
    color: #00C864;
}

.stat-box.draw .stat-val {
    color: #FFC800;
}

.stat-box.loss .stat-val {
    color: #E31B23;
}

.stat-box.goal .stat-val {
    color: var(--accent-color);
}

/* ─── All matches table rows ─────────── */
.match-row td {
    padding: 10px 12px;
    vertical-align: middle;
}

.match-row.win td {
    border-left: 3px solid #00C864;
}

.match-row.draw td {
    border-left: 3px solid #FFC800;
}

.match-row.loss td {
    border-left: 3px solid #E31B23;
}

.match-row.upcoming td {
    border-left: 3px solid rgba(100, 100, 255, 0.4);
    opacity: 0.8;
}

.match-h,
.match-a {
    font-weight: 600;
}

/* ─── News excerpt ───────────────────── */
.news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.matches-widget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.matches-widget-update {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-item {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.news-item .news-content {
    padding: 24px;
}

.news-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.news-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

.section-cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links-vertical a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.social-links-vertical a:hover {
    color: var(--accent-color);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '⚽';
    position: absolute;
    left: 0;
    top: 12px;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Match cards for partidos page */
.match-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.match-card:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.match-card.win {
    border-left: 4px solid #00c853;
}

.match-card.loss {
    border-left: 4px solid #f44336;
}

.match-card.draw {
    border-left: 4px solid #ffc107;
}

.match-card.upcoming {
    border-left: 4px solid var(--accent-color);
}

.match-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.match-score,
.match-time {
    color: var(--accent-color);
    font-size: 1.4rem;
    padding: 0 16px;
}

.match-competition {
    font-size: 0.85rem;
    color: var(--primary-light);
}

.santi-goal {
    display: inline-block;
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 10px;
}

.matches-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Responsive */
@media (max-width: 1024px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bio-grid {
        grid-template-columns: 1fr;
    }

    .bio-sidebar {
        position: static;
    }

    .career-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-item {
        min-width: 120px;
        padding: 16px;
    }

    .matches-widget-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .matches-widget-divider {
        width: 100%;
        height: 2px;
        min-height: auto;
        background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), var(--primary-color), transparent);
    }

    .matches-widget {
        padding: 20px;
    }

    .matches-widget-footer {
        justify-content: center;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .matches-columns {
        grid-template-columns: 1fr;
    }

    .stats-table {
        font-size: 0.85rem;
    }

    .stats-table th,
    .stats-table td {
        padding: 10px 8px;
    }
}

/* ==================== MATCHES WIDGET ==================== */
.matches-widget {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(26, 10, 12, 0.95) 100%);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.matches-widget-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
    overflow: hidden;
}

.matches-widget-divider {
    width: 2px;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(180deg, transparent, var(--primary-color), var(--accent-color), var(--primary-color), transparent);
    border-radius: 2px;
}

.matches-widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.matches-widget-icon {
    font-size: 1.5rem;
}

.matches-widget-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.matches-widget-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.matches-widget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.matches-widget-update {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.widget-match-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.widget-match-item:hover {
    border-color: var(--primary-color);
    background: rgba(227, 27, 35, 0.08);
}

.widget-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    gap: 4px;
    flex-wrap: wrap;
    min-width: 0;
}

.widget-match-teams span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 45%;
}

.widget-match-vs {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0 6px;
    max-width: none;
    white-space: nowrap;
}

.widget-match-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.widget-match-date {
    color: var(--text-muted);
}

.widget-match-competition {
    color: var(--primary-light);
    font-weight: 500;
}

.widget-match-result {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-top: 8px;
}

.widget-match-result.win {
    background: linear-gradient(135deg, #00c853, #00a844);
}

.widget-match-result.draw {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1a1a;
}

.widget-match-result.loss {
    background: linear-gradient(135deg, #f44336, #c62828);
}

.widget-match-goal {
    color: var(--accent-color);
    margin-left: 6px;
}

.widget-match-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease infinite;
    border-radius: 12px;
    height: 85px;
    margin-bottom: 12px;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}