
/* GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #080d18;
    --surface: #111a2a;
    --surface-light: #182438;
    --red: #e63946;
    --white: #f5f7fa;
    --gray: #929daf;
    --border: rgba(255,255,255,0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

body.fa-mode {
    font-family: 'Vazirmatn', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

.container {
    width: min(1180px, 90%);
    margin: auto;
}

.section {
    padding: 85px 0;
}


/* HEADER */

.header {
    width: 100%;
    height: 82px;
    background: rgba(8,13,24,0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
}

.navbar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.logo span {
    color: var(--red);
}

.logo .logo-dot {
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    color: var(--gray);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a.active {
    position: relative;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.language-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    color: white;
    border-radius: 7px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 700;
}

.search-btn {
    width: 37px;
    height: 37px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.search-btn svg {
    width: 18px;
    fill: none;
    stroke: white;
    stroke-width: 2;
}

.menu-btn {
    display: none;
    background: transparent;
    color: white;
    border: none;
    font-size: 24px;
}


/* HERO */

.hero {
    padding: 75px 0 85px;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(230,57,70,0.10), transparent 40%),
        var(--background);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 65px;
}

.section-tag {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
}

.red-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(37px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -2px;
    margin-bottom: 23px;
}

.highlight {
    color: var(--red);
    display: block;
}

.hero-text p {
    color: var(--gray);
    max-width: 470px;
    font-size: 15px;
    line-height: 2;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 13px;
}

.primary-btn,
.secondary-btn {
    padding: 13px 23px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.primary-btn {
    background: var(--red);
    color: white;
}

.primary-btn:hover {
    background: #c92c3b;
    transform: translateY(-3px);
}

.secondary-btn {
    background: var(--surface);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    background: var(--surface-light);
}

.hero-image {
    height: 430px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-image:
        linear-gradient(to top, rgba(0,0,0,0.9), transparent 65%),
        url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1100&q=85");
    background-position: center;
    background-size: cover;
    box-shadow: 0 20px 70px rgba(0,0,0,0.3);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: inherit;
}

.hero-image-label {
    position: absolute;
    bottom: 30px;
    left: 30px;
}

.hero-image-label span {
    font-size: 10px;
    color: var(--red);
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-image-label h3 {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 800;
}


/* SECTION HEADING */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 32px;
}

.section-heading .section-tag {
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 29px;
    font-weight: 800;
}

.view-all {
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    padding-bottom: 7px;
}

.view-all:hover {
    color: white;
}

body.fa-mode .section-tag {
    letter-spacing: 0;
}

body.fa-mode .hero h1 {
    letter-spacing: 0;
    line-height: 1.5;
}


/* NEWS */

.news-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 22px;
}

.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-7px);
    border-color: rgba(230,57,70,0.5);
}

.news-image {
    height: 190px;
    position: relative;
    background-position: center;
    background-size: cover;
}

.main-news .news-image {
    height: 230px;
}

.news-image-one {
    background-image: url("../images/news/photo-1522778119026-d647f0596c20.avif");
}

.news-image-two {
    background-image: url("../images/news/photo-1431324155629-1a6deb1dec8d.avif");
}

.news-image-three {
    background-image: url("../images/news/images.jpg");
}

.category {
    position: absolute;
    left: 15px;
    bottom: 15px;
    background: var(--red);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
}

.news-info {
    padding: 20px;
}

.news-date {
    color: var(--gray);
    font-size: 10px;
    font-weight: 600;
}

.news-info h3 {
    font-size: 17px;
    line-height: 1.7;
    margin: 10px 0;
}

.news-info p {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.9;
}


/* MATCHES */

.matches-section {
    background: #0c1320;
}

.sample-label {
    color: var(--gray);
    font-size: 10px;
    border: 1px solid var(--border);
    padding: 7px 12px;
    border-radius: 5px;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.match-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 16px;
    transition: 0.3s;
}

.match-card:hover {
    border-color: var(--red);
}

.match-league {
    color: var(--gray);
    font-size: 10px;
    text-align: center;
    letter-spacing: 1px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    gap: 8px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    min-width: 65px;
}

.team-logo {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 21px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.2);
}

.arsenal { background: #b62537; }
.chelsea { background: #1755a1; }
.madrid { background: #e9dfc3; color: #333; }
.barca { background: #8e1c44; }
.milan { background: #ae1f30; }
.inter { background: #1556a2; }

.score {
    font-size: 24px;
    font-weight: 800;
}

.score span {
    color: var(--red);
    margin: 0 4px;
}

.match-status {
    color: var(--red);
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}


/* COMPETITIONS */

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.competition-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    transition: 0.3s;
}

.competition-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
}

.competition-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.competition-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.competition-card span {
    color: var(--gray);
    font-size: 10px;
    letter-spacing: 2px;
}


/* TEAMS */

.teams-section {
    background: #0c1320;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.club-card {
    text-align: center;
    padding: 27px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: 0.3s;
}

.club-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
}

.club-symbol {
    width: 70px;
    height: 70px;
    margin: 0 auto 17px;
    display: grid;
    place-items: center;
    background: var(--surface-light);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--red);
    font-size: 30px;
    font-weight: 800;
}

.club-card h3 {
    font-size: 14px;
    margin-bottom: 7px;
}

.club-card span {
    color: var(--gray);
    font-size: 10px;
}


/* FOOTER */

.footer {
    background: #070b13;
    padding: 45px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-content p {
    color: var(--gray);
    font-size: 12px;
    margin-top: 10px;
}

.footer-bottom {
    display: flex;
    gap: 15px;
    color: var(--gray);
    font-size: 11px;
}


/* PERSIAN MODE */

body.fa-mode {
    direction: rtl;
}

body.fa-mode .navbar,
body.fa-mode .nav-actions,
body.fa-mode .hero-buttons,
body.fa-mode .section-heading,
body.fa-mode .footer-content {
    direction: rtl;
}

body.fa-mode .hero-image-label {
    left: auto;
    right: 30px;
}

body.fa-mode .category {
    left: auto;
    right: 15px;
}

body.fa-mode .news-info,
body.fa-mode .match-card,
body.fa-mode .competition-card,
body.fa-mode .club-card {
    text-align: right;
}

body.fa-mode .news-date {
    display: block;
}

body.fa-mode .nav-links {
    direction: rtl;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .nav-links {
        gap: 17px;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-image {
        height: 370px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-news {
        grid-column: span 2;
    }

    .matches-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 650px) {

    .header {
        height: 70px;
    }

    .logo {
        font-size: 25px;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #101a2b;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 5%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 14px 0;
    }

    .nav-links a.active::after {
        display: none;
    }

    .hero {
        padding: 55px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-image {
        height: 290px;
    }

    .section {
        padding: 60px 0;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .news-grid,
    .matches-grid,
    .competitions-grid {
        grid-template-columns: 1fr;
    }

    .main-news {
        grid-column: auto;
    }

    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-wrap: wrap;
    }

    body.fa-mode .footer-content {
        align-items: flex-start;
    }

}

/* =================================
   TOOPBALL - DESIGN UPGRADE
================================= */


/* NEWS TICKER */

.ticker {
    height: 46px;
    background: #111a2a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-label {
    background: #e63946;
    height: 100%;
    min-width: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    position: relative;
}

.ticker-content {
    overflow: hidden;
    flex: 1;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerMove 35s linear infinite;
}

.ticker-track span {
    padding: 0 35px;
    color: #c5ccda;
    font-size: 12px;
    white-space: nowrap;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes tickerMove {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* FOOTBALL STATS */

.stats-section {
    background: #0c1320;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 30px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    color: white;
    font-size: 32px;
    font-weight: 800;
    transition: 0.3s;
}

.stat-item:hover .stat-number {
    color: #e63946;
    transform: translateY(-3px);
}

.stat-title {
    color: #929daf;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}


/* NEWS CARD UPGRADE */

.news-image {
    overflow: hidden;
}

.news-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.45),
        transparent 65%
    );
    transition: 0.4s;
}

.news-card:hover .news-image::after {
    background: rgba(230,57,70,0.10);
}

.news-card:hover .news-image {
    filter: brightness(1.12);
}

.news-info h3 {
    transition: 0.3s;
}

.news-card:hover .news-info h3 {
    color: #e63946;
}


/* MATCH CARD UPGRADE */

.match-card {
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e63946;
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.3s;
}

.match-card:hover::before {
    transform: scaleX(1);
}

.team-logo {
    transition: 0.3s;
}

.match-card:hover .team-logo {
    transform: scale(1.1);
}


/* SECTION ANIMATIONS */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.hero-text {
    animation: fadeUp 0.8s ease both;
}

.hero-image {
    animation: fadeUp 1s ease both;
}


/* PERSIAN SUPPORT */

body.fa-mode .ticker {
    direction: rtl;
}

body.fa-mode .ticker-track {
    animation-name: tickerMoveRTL;
}

@keyframes tickerMoveRTL {

    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }

}

body.fa-mode .stat-item {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.08);
}

body.fa-mode .stat-item:last-child {
    border-left: none;
}

body.fa-mode .ticker-label {
    font-size: 12px;
    letter-spacing: 0;
}


/* MOBILE UPGRADE */

@media (max-width: 650px) {

    .ticker {
        height: 40px;
    }

    .ticker-label {
        min-width: 95px;
        font-size: 9px;
    }

    .ticker-track span {
        font-size: 10px;
        padding: 0 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        border-right: none;
        padding: 15px 5px;
    }

    .stat-number {
        font-size: 27px;
    }

    body.fa-mode .stat-item {
        border-left: none;
    }

}

/* League Logos */

.competition-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto 15px;
    transition: transform 0.3s ease;
}

/* Hover Effect */

.competition-card:hover img {
    transform: scale(1.08);
}

/* LEAGUE TABLE */

.table-container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
    overflow-x: auto;
    background: #101d35;
    border-radius: 12px;
}

.league-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    text-align: center;
}

.league-table th {
    background: #e63946;
    padding: 16px 12px;
    font-size: 14px;
}

.league-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #263752;
}

.league-table tbody tr:nth-child(even) {
    background: #172640;
}

.league-table tbody tr:hover {
    background: #263b5c;
}

.league-table td:last-child {
    color: #36d399;
    font-weight: bold;
}

.competition-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* CHAMPIONS LEAGUE PAGE */

.ucl-page {
    background: #081426;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
}

/* HEADER */

.ucl-header {
    text-align: center;
    padding: 45px 15px 35px;
    background: linear-gradient(135deg, #101f46, #142d65);
    border-bottom: 3px solid #e63946;
}

.ucl-header h1 {
    font-size: 32px;
    margin: 20px 0 10px;
}

.ucl-header p {
    color: #b8c8e8;
    font-size: 16px;
}

.ucl-back {
    display: inline-block;
    color: white;
    text-decoration: none;
    background: #e63946;
    padding: 10px 20px;
    border-radius: 7px;
    transition: 0.3s;
}

.ucl-back:hover {
    background: #c62836;
}

.ucl-date {
    display: inline-block;
    margin-top: 12px;
    color: #a9c5ff;
    font-size: 13px;
}

/* TABLE CONTAINER */

.ucl-main {
    width: 95%;
    max-width: 1200px;
    margin: 40px auto;
}

.ucl-table-wrapper {
    overflow-x: auto;
    background: #111f35;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

/* TABLE */

.ucl-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
    text-align: center;
}

.ucl-table th {
    background: #192e50;
    color: #ffffff;
    padding: 17px 12px;
    font-size: 13px;
    border-bottom: 2px solid #e63946;
}

.ucl-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #263751;
    font-size: 14px;
}

.ucl-table tbody tr {
    transition: background 0.2s;
}

.ucl-table tbody tr:hover {
    background: #253b5c;
}

/* TEAM COLUMN */

.ucl-table .team-heading {
    text-align: left;
}

.team-name {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    min-width: 190px;
    font-weight: bold;
}

.team-name img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

/* QUALIFICATION COLORS */

.ucl-table tr.qualified td:first-child {
    border-left: 4px solid #2695e8;
}

.ucl-table tr.playoff td:first-child {
    border-left: 4px solid #f0a43c;
}

.ucl-table tr.eliminated td:first-child {
    border-left: 4px solid #e34b55;
}

/* POINTS */

.ucl-table td:last-child {
    color: #45d69a;
    font-weight: bold;
}

/* LEGEND */

.ucl-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    justify-content: center;
    color: #c4d0e3;
    font-size: 13px;
}

.ucl-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ucl-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-blue {
    background: #2695e8;
}

.legend-orange {
    background: #f0a43c;
}

.legend-red {
    background: #e34b55;
}

/* MOBILE */

@media (max-width: 600px) {

    .ucl-header h1 {
        font-size: 24px;
    }

    .ucl-main {
        width: 96%;
        margin: 25px auto;
    }

    .ucl-table td,
    .ucl-table th {
        padding: 12px 9px;
    }

    .ucl-legend {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* PREMIER LEAGUE PAGE */

.pl-page {
    background: #081426;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
}

/* HEADER */

.pl-header {
    text-align: center;
    padding: 35px 15px;
    background: linear-gradient(135deg, #32104f, #672b88);
    border-bottom: 3px solid #e90052;
}

.pl-header h1 {
    font-size: 34px;
    margin: 12px 0;
}

.pl-header p {
    color: #e0c8f2;
    font-size: 16px;
}

.pl-league-logo {
    display: block;
    width: 65px;
    height: 75px;
    object-fit: contain;
    margin: 25px auto 10px;
}

.pl-back {
    display: inline-block;
    color: white;
    text-decoration: none;
    background: #e90052;
    padding: 10px 20px;
    border-radius: 7px;
    transition: 0.3s;
}

.pl-back:hover {
    background: #bd0043;
}

.pl-date {
    display: inline-block;
    margin-top: 12px;
    color: #e0c8f2;
    font-size: 13px;
}

/* TABLE CONTAINER */

.pl-main {
    width: 95%;
    max-width: 1200px;
    margin: 40px auto;
}

.pl-table-wrapper {
    overflow-x: auto;
    background: #111f35;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

/* TABLE */

.pl-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: center;
}

.pl-table th {
    background: #32104f;
    color: white;
    padding: 17px 12px;
    font-size: 13px;
    border-bottom: 2px solid #e90052;
}

.pl-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #263751;
    font-size: 14px;
}

.pl-table tbody tr {
    transition: background 0.2s;
}

.pl-table tbody tr:hover {
    background: #293b57;
}

/* TEAM COLUMN */

.pl-team-heading {
    text-align: left;
}

.pl-team {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    min-width: 190px;
    font-weight: bold;
}

.pl-team img {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

/* POSITION COLORS */

.pl-table tr.pl-top td:first-child {
    border-left: 4px solid #2695e8;
}

.pl-table tr.pl-europe td:first-child {
    border-left: 4px solid #f0a43c;
}

.pl-table tr.pl-relegation td:first-child {
    border-left: 4px solid #e34b55;
}

/* POINTS */

.pl-table td:last-child {
    color: #45d69a;
    font-weight: bold;
}

/* LEGEND */

.pl-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    justify-content: center;
    color: #c4d0e3;
    font-size: 13px;
}

.pl-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pl-blue {
    background: #2695e8;
}

.pl-orange {
    background: #f0a43c;
}

.pl-red {
    background: #e34b55;
}

/* MOBILE */

@media (max-width: 600px) {

    .pl-header h1 {
        font-size: 25px;
    }

    .pl-main {
        width: 96%;
        margin: 25px auto;
    }

    .pl-table td,
    .pl-table th {
        padding: 12px 9px;
    }

    .pl-legend {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   LA LIGA PAGE
========================= */

.laliga-page {
    background: #081426;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
}

.laliga-header {
    text-align: center;
    padding: 35px 15px;
    background: linear-gradient(135deg, #6d071d, #a51e36);
    border-bottom: 3px solid #f5b335;
}

.laliga-logo {
    display: block;
    width: 75px;
    height: 75px;
    object-fit: contain;
    margin: 25px auto 10px;
}

.laliga-header h1 {
    font-size: 34px;
    margin: 12px 0;
}

.laliga-header p {
    color: #f2d5da;
}

.laliga-header span {
    display: inline-block;
    margin-top: 12px;
    color: #ffe0a0;
    font-size: 13px;
}

.laliga-back {
    display: inline-block;
    color: white;
    text-decoration: none;
    background: #e63946;
    padding: 10px 20px;
    border-radius: 7px;
}

.laliga-main {
    width: 95%;
    max-width: 1200px;
    margin: 40px auto;
}

.laliga-table-wrapper {
    overflow-x: auto;
    background: #111f35;
    border-radius: 12px;
}

.laliga-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: center;
}

.laliga-table th {
    background: #70152a;
    padding: 17px 12px;
    border-bottom: 2px solid #f5b335;
    font-size: 13px;
}

.laliga-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #263751;
    font-size: 14px;
}

.laliga-table tbody tr:hover {
    background: #293b57;
}

.laliga-team-heading {
    text-align: left;
}

.laliga-team {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    min-width: 190px;
    font-weight: bold;
}

.laliga-team img {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

.laliga-table td:last-child {
    color: #45d69a;
    font-weight: bold;
}


/* =========================
   BUNDESLIGA PAGE
========================= */

.bundesliga-page {
    background: #081426;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
}

.bundesliga-header {
    text-align: center;
    padding: 35px 15px;
    background: linear-gradient(135deg, #171717, #343434);
    border-bottom: 3px solid #e30613;
}

.bundesliga-logo {
    display: block;
    width: 75px;
    height: 75px;
    object-fit: contain;
    margin: 25px auto 10px;
}

.bundesliga-header h1 {
    font-size: 34px;
    margin: 12px 0;
}

.bundesliga-header p {
    color: #dddddd;
}

.bundesliga-header span {
    display: inline-block;
    margin-top: 12px;
    color: #ffb5b5;
    font-size: 13px;
}

.bundesliga-back {
    display: inline-block;
    color: white;
    text-decoration: none;
    background: #e30613;
    padding: 10px 20px;
    border-radius: 7px;
}

.bundesliga-main {
    width: 95%;
    max-width: 1200px;
    margin: 40px auto;
}

.bundesliga-table-wrapper {
    overflow-x: auto;
    background: #111f35;
    border-radius: 12px;
}

.bundesliga-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: center;
}

.bundesliga-table th {
    background: #242424;
    padding: 17px 12px;
    border-bottom: 2px solid #e30613;
    font-size: 13px;
}

.bundesliga-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #263751;
    font-size: 14px;
}

.bundesliga-table tbody tr:hover {
    background: #293b57;
}

.bundesliga-team-heading {
    text-align: left;
}

.bundesliga-team {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    min-width: 190px;
    font-weight: bold;
}

.bundesliga-team img {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

.bundesliga-table td:last-child {
    color: #45d69a;
    font-weight: bold;
}


/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 600px) {

    .laliga-header h1,
    .bundesliga-header h1 {
        font-size: 25px;
    }

    .laliga-main,
    .bundesliga-main {
        width: 96%;
        margin: 25px auto;
    }

    .laliga-table td,
    .laliga-table th,
    .bundesliga-table td,
    .bundesliga-table th {
        padding: 12px 9px;
    }
}
/* Shared League Page Styles */

.league-header {
    background: #101d35;
    color: white;
    text-align: center;
    padding: 45px 20px;
    position: relative;
}

.league-header h1 {
    font-size: 42px;
    margin: 15px 0 8px;
    letter-spacing: 3px;
}

.league-header p {
    color: #b9c5d8;
    font-size: 13px;
}

.league-back {
    color: white;
    text-decoration: none;
    position: absolute;
    top: 20px;
    left: 25px;
    font-weight: bold;
}

.league-container {
    max-width: 1150px;
    margin: 45px auto;
    padding: 0 20px;
}

.league-container h2 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 8px;
}

.league-subtitle {
    color: #9daabd;
    margin-bottom: 25px;
}

.league-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #111d31;
    border-radius: 10px;
}

.league-table {
    width: 100%;
    border-collapse: collapse;
    color: #e8edf5;
    min-width: 750px;
    text-align: center;
}

.league-table th {
    background: #20314d;
    padding: 16px 12px;
    color: #fff;
    font-size: 13px;
}

.league-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #293850;
    font-size: 14px;
}

.league-table tbody tr:hover {
    background: #20314d;
}

.league-table .team-column {
    text-align: left;
}

.league-table .team-name {
    text-align: left;
    font-weight: bold;
}

.serie-header {
    border-bottom: 4px solid #1689c9;
}

.serie-table tbody tr:nth-child(1) td:first-child,
.serie-table tbody tr:nth-child(2) td:first-child,
.serie-table tbody tr:nth-child(3) td:first-child,
.serie-table tbody tr:nth-child(4) td:first-child {
    border-left: 3px solid #1689c9;
}

.ligue-header {
    border-bottom: 4px solid #e34b65;
}

.ligue-table tbody tr:nth-child(1) td:first-child,
.ligue-table tbody tr:nth-child(2) td:first-child,
.ligue-table tbody tr:nth-child(3) td:first-child {
    border-left: 3px solid #e34b65;
}

@media (max-width: 600px) {
    .league-header h1 {
        font-size: 30px;
    }

    .league-container {
        padding: 0 10px;
    }

    .league-table th,
    .league-table td {
        padding: 12px 9px;
    }
}

/* =================================
   LEAGUE PAGES - SHARED STYLES
================================= */

.league-header {
    background: #101d35;
    color: white;
    text-align: center;
    padding: 45px 20px;
    position: relative;
}

.league-header h1 {
    font-size: 42px;
    margin: 15px 0 8px;
    letter-spacing: 3px;
}

.league-header p {
    color: #b9c5d8;
    font-size: 13px;
}

.league-back {
    color: white;
    text-decoration: none;
    position: absolute;
    top: 20px;
    left: 25px;
    font-weight: bold;
}

.league-back:hover {
    color: #e63946;
}

.league-container {
    max-width: 1150px;
    margin: 45px auto;
    padding: 0 20px;
}

.league-container h2 {
    color: #ffffff;
    font-size: 26px;
    margin-bottom: 8px;
}

.league-subtitle {
    color: #9daabd;
    margin-bottom: 25px;
}

.league-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #111d31;
    border-radius: 10px;
}

.league-table {
    width: 100%;
    border-collapse: collapse;
    color: #e8edf5;
    min-width: 780px;
    text-align: center;
}

.league-table th {
    background: #20314d;
    padding: 16px 12px;
    color: #ffffff;
    font-size: 13px;
}

.league-table td {
    padding: 12px;
    border-bottom: 1px solid #293850;
    font-size: 14px;
}

.league-table tbody tr:hover {
    background: #20314d;
}

.league-table .team-column {
    text-align: left;
}

.league-table .team-name {
    text-align: left;
    font-weight: bold;
}

/* TEAM LOGOS */

.team-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.team-info img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-info span {
    white-space: nowrap;
}

/* SERIE A */

.serie-header {
    border-bottom: 4px solid #1689c9;
}

.serie-table tbody tr:nth-child(-n+4) td:first-child {
    border-left: 3px solid #1689c9;
}

/* LIGUE 1 */

.ligue-header {
    border-bottom: 4px solid #e34b65;
}

.ligue-table tbody tr:nth-child(-n+3) td:first-child {
    border-left: 3px solid #e34b65;
}

/* RESPONSIVE */

@media (max-width: 600px) {
    .league-header h1 {
        font-size: 30px;
    }

    .league-container {
        padding: 0 10px;
        margin: 30px auto;
    }

    .league-table th,
    .league-table td {
        padding: 11px 9px;
    }

    .team-info img {
        width: 30px;
        height: 30px;
    }

    .league-back {
        left: 15px;
    }
}

/* NEWS IMAGES - NEW CARDS */

.news-image-four {
    background-image: url("../images/news/stades_foot_monde.webp");
}

.news-image-five {
    background-image: url("../images/news/photo-1529900748604-07564a03e7a6.jpg");
}

.news-image-six {
    background-image: url("../images/news/photo-1518604666860-9ed391f76460.jpg");
}

.news-image-seven {
    background-image: url("../images/news/photo-1517466787929-bc90951d0974.jpg");
}

.news-image-eight {
    background-image: url("../images/news/photo-1509062522246-3755977927d7.jpg");
}

.news-image-nine {
    background-image: url("../images/news/Tottenham-Hotspur-Stadium_1-1.jpg");
}

/* NEW MATCH CARDS */

.match-card {
    background: #111d31;
    border: 1px solid #293850;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    color: white;
    transition: 0.3s;
}

.match-card:hover {
    background: #1a2b46;
    transform: translateY(-3px);
}

.match-league {
    color: #e63946;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.match-date {
    color: #9daabd;
    font-size: 12px;
    margin-bottom: 18px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
}

.match-team img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.match-team span {
    font-size: 13px;
    font-weight: bold;
}

.match-time {
    background: #20314d;
    border-radius: 7px;
    padding: 9px 14px;
    font-weight: bold;
    white-space: nowrap;
}

.match-status {
    text-align: center;
    margin-top: 17px;
    color: #24c78b;
    font-size: 12px;
    font-weight: bold;
}

@media (max-width: 500px) {
    .match-card {
        padding: 13px;
    }

    .match-team img {
        width: 38px;
        height: 38px;
    }

    .match-team span {
        font-size: 11px;
    }

    .match-time {
        padding: 7px 9px;
        font-size: 12px;
    }
}
/* POPULAR TEAMS */

.teams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.club-card {
    background: #111d31;
    border: 1px solid #293850;
    border-radius: 15px;
    padding: 30px 15px;
    text-align: center;
    transition: 0.3s ease;
}

.club-card:hover {
    transform: translateY(-7px);
    background: #1a2b46;
    border-color: #e63946;
}

.club-card .club-logo {
    width: 95px;
    height: 95px;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
    transition: transform 0.3s ease;
}

.club-card:hover .club-logo {
    transform: scale(1.12);
}

.club-card h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 8px;
}

.club-card span {
    color: #9daabd;
    font-size: 12px;
    letter-spacing: 1px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .club-card .club-logo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 450px) {
    .club-card {
        padding: 20px 10px;
    }

    .club-card .club-logo {
        width: 70px;
        height: 70px;
    }

    .club-card h3 {
        font-size: 13px;
    }
}

/* PAGE ENTRY ANIMATION */

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-animation {
    animation: pageEnter 0.8s ease-out;
}
