* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0);
}

.icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.header {
    position: relative;
    overflow: hidden;
}

.header-background {
    position: absolute;
    inset: 0px;
    background-image: url("assets/HEADER.png");
    background-size: cover;
    object-fit: fill;
    background-position: center center;
}

.header-background::after {
    content: "";
    position: absolute;
    inset: 0px;
    opacity: 0.2;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.header-content {
    position: relative;
    max-width: 1400px;
    margin: 0px auto;
    padding: 2rem 1.5rem;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.trophy-icon {
    width: 48px;
    height: 48px;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trophy-icon svg {
    color: rgb(250, 204, 21);
}

.rotating {
    animation: 20s linear 0s infinite normal none running rotate;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
}

.main-content {
    max-width: 1440px;
    margin: 0px auto;
    padding: 0rem;
}

/* 
.section {
    margin-bottom: 1rem;
} */

.section-header {
    margin-bottom: 2rem;
    animation: 0.5s ease-out 0s 1 normal none running fadeInLeft;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: antiquewhite;
}

.section-underline {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, rgb(255, 193, 7) 0%, rgb(255, 193, 7) 100%);
    border-radius: 9999px;
}

.fixtures-container {
    position: relative;
}

.fixtures-section {
    background-image: url("assets/HERO SECTION.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 2rem 4rem;
}

.standings-section {
    padding: 2rem 3rem 1rem;
}

.nav-button {
    display: flex;
    position: absolute;
    top: 47%;
    transform: translateY(-50%);
    z-index: 10;
    width: 30px;
    height: 30px;
    background: rgb(255, 152, 0);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    opacity: 1;
    color: white;
}

.nav-button svg {
    position: absolute;
    top: 3px;
}

.nav-button:hover:not(.disabled) {
    background: rgb(249, 115, 22);
    transform: translateY(-50%) scale(1.1);
}

.nav-button.disabled {
    opacity: 0;
    cursor: not-allowed;
    background: rgb(75, 85, 99);
}

.nav-button-left {
    left: -1rem;
}

.nav-button-right {
    right: -1rem;
}

.fixtures-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    border-radius: 20px;
}

.fixtures-scroll::-webkit-scrollbar {
    display: none;
}

.match-card {
    position: relative;
    min-width: 55vw;
    background: linear-gradient(135deg, rgb(6, 9, 12) 0%, rgb(17, 24, 39) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 20px 25px -5px;
    border-width: 1px 1px 1px 4px;
    border-style: solid;
    border-color: rgba(75, 85, 99, 0.5) rgba(75, 85, 99, 0.5) rgba(75, 85, 99, 0.5) rgb(37, 99, 235);
    border-image: initial;
    transition: 0.3s;
    scroll-snap-align: start;
    animation: 0.5s ease-out 0s 1 normal backwards running fadeInUp;
}

.match-card:hover {
    border-color: rgba(249, 115, 22, 0.5);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

.match-card-header {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(rgba(0, 0, 0, 0.4) 0%, transparent 100%);
    z-index: 5;
}

.match-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(209, 213, 219);
    font-size: 0.875rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.match-card.live {
    border-left: 4px solid rgb(220, 38, 38);
}

.match-card.completed {
    border-left: 4px solid rgb(158, 158, 158);
}

.match-card.upcoming {
    border-left: 4px solid rgb(37, 99, 235);
}

.status-badge.live {
    background: rgb(220, 38, 38);
    animation: 1.5s ease-in-out 0s infinite normal none running pulse;
}

.status-badge.completed {
    background: rgb(158, 158, 158);
}

.status-badge.upcoming {
    background: rgb(37, 99, 235);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.match-body {
    padding: 3rem 1rem 1rem;
}

.match-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(156, 163, 175);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.teams-container {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 1rem;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    padding: 0px 0rem;
    transition: transform 0.3s;
}

.team-row:hover {
    transform: translateX(5px);
}

.team-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex: 1 1 0%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-score {
    color: rgb(251, 146, 60);
    font-weight: 700;
    font-size: 1.25rem;
    margin-left: 0.5rem;
    animation: 0.5s ease-out 0s 1 normal none running scaleIn;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.view-match-button {
    width: 100%;
    background: linear-gradient(90deg, rgb(197, 149, 6) 0%, rgb(197, 150, 8) 100%);
    color: white;
    font-weight: 700;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 6px -1px;
}

.view-match-button:hover {}

.chevron-icon {
    animation: 1.5s ease-in-out 0s infinite normal none running slideRight;
}

@keyframes slideRight {

    0%,
    100% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(5px);
    }
}

.decorative-corner {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, transparent 0%, rgba(234, 88, 12, 0.1) 100%);
    border-top-left-radius: 100%;
}

.standings-table {
    background: rgb(10, 10, 10);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 20px 25px -5px;
    border: 1px solid rgba(75, 85, 99, 0.3);
    animation: 0.5s ease-out 0.6s 1 normal backwards running fadeInUp;
}

.table-header {
    background: linear-gradient(135deg, rgb(107, 86, 66) 0%, rgb(74, 63, 51) 100%);
    padding: 1rem 2rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.5);
}

.grid-container {
    display: grid;
    grid-template-columns: 80px 1fr 100px 100px 100px 100px;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgb(209, 213, 219);
}

.text-center {
    text-align: center;
}

.table-body {
    background: rgb(10, 10, 10);
}

.table-row {
    padding: 1.25rem 2rem;
    background: rgb(26, 26, 26);
    transition: 0.3s;
    animation: 0.4s ease-out 0s 1 normal backwards running fadeInLeft;
}

.table-row.first-rank {
    background: linear-gradient(90deg, rgb(220, 38, 38) 0%, rgb(185, 28, 28) 100%);
}

.table-row.even-row:not(.first-rank) {
    background: rgb(15, 15, 15);
}

.table-row:not(.first-rank):hover {
    background: rgb(37, 37, 37);
}

.table-row.first-rank:hover {
    background: linear-gradient(90deg, rgb(239, 68, 68) 0%, rgb(220, 38, 38) 100%);
}

.rank-cell-number {
    text-align: center;
    color: rgb(255, 255, 255);
    font-weight: 700;
    font-size: 1rem;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(59, 130, 246) 0%, rgb(37, 99, 235) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(59, 130, 246, 0.4) 0px 2px 8px;
    flex-shrink: 0;
}

.team-logo svg {
    color: white;
}

.team-name-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.champion-trophy {
    color: rgb(250, 204, 21);
    animation: 1.5s ease-in-out 0s infinite normal none running scale-pulse;
}

@keyframes scale-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.stat-cell {
    text-align: center;
    color: rgb(255, 255, 255);
    font-weight: 600;
    font-size: 0.95rem;
}

.stat-won {
    color: rgb(74, 222, 128);
}

.stat-loss {
    color: rgb(248, 113, 113);
}

.points-value {
    color: rgb(255, 255, 255);
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s;
    display: inline-block;
}

.table-row:hover .points-value {
    transform: scale(1.15);
}

.mobile-team-card {
    background: rgb(26, 26, 26);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 15px -3px;
    border: 1px solid rgba(75, 85, 99, 0.3);
    transition: 0.3s;
    animation: 0.4s ease-out 0s 1 normal backwards running fadeInUp;
}

.mobile-team-card:first-child {
    background: linear-gradient(135deg, rgb(220, 38, 38) 0%, rgb(185, 28, 28) 100%);
    border: 1px solid rgb(220, 38, 38);
}

.mobile-team-card:nth-child(2n):not(:first-child) {
    background: rgb(15, 15, 15);
}

.mobile-team-card:hover {
    transform: scale(1.02);
}

.mobile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.mobile-rank-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-rank-number {
    color: rgb(255, 255, 255);
    font-weight: 700;
    font-size: 1.25rem;
    min-width: 32px;
    text-align: center;
}

.mobile-team-info {
    flex: 1 1 0%;
}

.mobile-team-name {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-points {
    color: rgb(255, 255, 255);
    font-weight: 700;
    font-size: 1.5rem;
}

.mobile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.mobile-stat {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
}

.mobile-stat-label {
    font-size: 0.75rem;
    color: rgb(156, 163, 175);
    margin-bottom: 0.25rem;
}

.mobile-stat-value {
    color: white;
    font-weight: 700;
}

@media (min-width: 640px) {
    .header-wrapper {
        justify-content: center;
        gap: 5rem;
    }

    .header-title {
        font-size: 1.875rem;
        text-align: left;
    }

    .main-content {
        padding: 0rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-underline {
        width: 96px;
    }

    .match-card {
        min-width: 40vw;
    }

    .grid-container {
        grid-template-columns: 80px 1fr 100px 100px 100px 100px;
    }
}

@media (min-width: 1024px) {
    .header-content {
        padding: 2rem 1rem;
    }

    .trophy-icon {
        width: 56px;
        height: 56px;
    }

    .trophy-icon svg {
        width: 32px;
        height: 32px;
    }

    .header-title {
        font-size: 2.25rem;
    }

    .main-content {
        padding: 0rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .match-card {
        min-width: 330px;
    }

    .nav-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .team-name {
        font-size: 1rem;
    }
}

@media (min-width: 1280px) {
    .header-title {
        font-size: 2.5rem;
    }

    .match-card {
        min-width: 350px;
    }
}

@media (max-width: 1280px) {
    .section {
        padding: 2rem;
    }
}

.table-responsive {
    overflow-x: auto;
    background: rgb(10, 10, 10);
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 10px 15px -3px;
    border: 1px solid rgba(75, 85, 99, 0.3);
    margin-bottom: 2rem;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    min-width: fit-content;
    font-size: 0.9rem;
    table-layout: auto;
}

.custom-table th,
.custom-table td {
    padding: 1rem;
    color: rgb(209, 213, 219);
    white-space: normal;
}

.custom-table th {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    color: rgb(158, 158, 158);
    letter-spacing: 0.05em;
    background: rgb(10, 10, 10);
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
}

.custom-table tbody tr {
    border-bottom: 1px solid rgba(75, 85, 99, 0.1);
    transition: background 0.2s;
}

.custom-table tbody tr:last-child {
    border-bottom: none;
}

.custom-table tbody tr:hover {
    background: rgb(26, 26, 26);
}

.custom-table tbody tr.rank-1 {
    background: linear-gradient(90deg, rgb(210 51 51) 0%, rgb(127, 29, 29) 25%, rgb(17, 17, 17) 100%);
    border-bottom: none;
}

.custom-table tbody tr.rank-1 td {
    color: white;
    font-weight: 600;
}

.custom-table tr:nth-child(2n) {
    background-color: rgba(158, 158, 158, 0.14) !important;
}

.custom-table tr:nth-child(2n+1) {
    background-color: rgb(17, 17, 17);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.font-bold {
    font-weight: 700;
    color: white;
}

.rank-cell {
    font-weight: 700;
    color: rgb(156, 163, 175);
}

.rank-1 .rank-cell {
    color: white;
}

.team-info,
.player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-icon-small,
.player-image {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    border: 1px solid #9E9E9E;
}

.rank-1 .team-icon-small,
.rank-1 .player-image {
    background: rgba(255, 255, 255, 0.2);
}

.team-icon-small svg,
.player-image svg {
    width: 16px;
    height: 16px;
}

.top-players-section {
    padding: 0rem 3.5rem;
}

@media (max-width: 1024px) {

    .standings-section,
    .top-players-section {
        padding: 1rem 2rem;
    }
}

@media (max-width: 640px) {

    .standings-section,
    .top-players-section {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .custom-table th,
    .custom-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }

    .team-info,
    .player-info {
        gap: 0.25rem;
    }

    .team-icon-small,
    .player-image {
        width: 18px;
        height: 18px;
        display: none;
    }

    .team-info img {
        width: 30px !important;
        height: 30px !important;
    }
    .bg-logo{
        width: 200px !important;
        height: 200px !important;
    }
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(156, 163, 175);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-top: 0rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: white;
}

.match-detail-hero {
    position: relative;
    background-image: url("assets/HERO SECTION.png");
    background-size: cover;
    background-position: center center;
    padding: 1rem 2rem;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0rem;
}

.bg-logo {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
}

.left-logo {
    left: 0px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
}

.right-logo {
    right: 0px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.2) 0%, transparent 70%);
}

.match-meta-top {
    font-size: 1rem;
    color: #9E9E9E;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.match-status-tag {
    display: inline-block;
    color: white;
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

.match-status-tag.completed {
    background: rgb(158, 158, 158);
}

.match-status-tag.upcoming {
    background: rgb(37, 99, 235);
}

.match-status-tag.live {
    background: rgb(220, 38, 38);
}

.score-board {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.team-side {
    text-align: center;
    flex: 1 1 0%;
}

.team-name-large {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.score-center {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 4rem;
    font-weight: 700;
    color: white;
}

.score-separator {
    color: rgb(107, 114, 128);
    font-weight: 300;
}

.match-meta-bottom {
    color: rgb(209, 213, 219);
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.toss-box {
    display: inline-block;
    border: 1px solid #9E9E9E;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    background: rgb(0 0 0 / 68%);
    color: rgb(251, 191, 36);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.toss-label {
    color: rgb(156, 163, 175);
    font-weight: 400;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .score-board {
        gap: 1rem;
        font-size: 1rem;
    }

    .team-name-large {
        font-size: 1.05rem !important;
    }

    .score-center {
        font-size: 2rem !important;
    }

    .match-card {
        min-width: 50vw;
    }

    .breakdown-section,
    .tie-breakdown-padding {
        padding: 1rem !important;
    }

    .breakdown-card {
        padding: 1rem 0.5rem !important;
    }
    .bg-logo{
        width: 200px !important;
        height: 200px !important;
    }
}

.breakdown-section {
    margin-top: 1rem;
    padding: 2rem 5rem 1rem;
}

.breakdown-card {
    background: rgba(25, 28, 29, 0.75);
    border-radius: 8px;
    margin-bottom: 2.5rem;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.tie-label {
    color: rgb(158, 158, 158);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.tie-result {
    color: #9E9E9E;
    font-size: 0.9rem;
}

.view-tie-btn {
    background: rgb(37, 99, 235);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.view-tie-btn:hover {
    background: rgb(29, 78, 216);
}

.card-body {
    display: flex;
    background-size: cover;
    background-position: center center;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 1rem 0.5rem;
    border-radius: 10px;
}

.breakdown-card:nth-of-type(2n+1) .card-body {
    background: linear-gradient(90deg, rgb(17, 55, 143) 0%, rgb(138, 11, 11) 0%, rgb(200, 8, 10) 0%, rgb(2, 5, 20) 50%);
    border-left: 4px solid rgb(149, 11, 11);
    border-right: 4px solid #9E9E9E;
}

.breakdown-card:nth-of-type(2n) .card-body {
    background: linear-gradient(90deg, rgb(6, 8, 18) 50%, rgb(200, 8, 10) 100%);
    border-right: 4px solid rgb(149, 11, 11);
    border-left: 4px solid #9E9E9E;
}

.player-side {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 0%;
}

.left-side {
    justify-content: flex-start;
}

.right-side {
    justify-content: flex-end;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgb(31, 41, 55);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.player-details {
    display: flex;
    flex-direction: column;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.justify-end {
    justify-content: flex-end;
}

.text-right {
    text-align: right;
}

.p-name {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.flag-icon {
    display: inline-flex;
    align-items: center;
}

.flag-img {
    width: 35px;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
}

.team-label {
    color: rgb(255, 255, 255);
    font-size: 0.85rem;
}

.score-display-tie {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 1.5rem;
    color: rgb(107, 114, 128);
    font-weight: 700;
    min-width: 150px;
    justify-content: center;
}

.score-val {
    color: rgb(156, 163, 175);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-val.winner-text {
    color: rgb(251, 191, 36);
    font-size: 1.75rem;
}

.win-badge {
    background: rgb(251, 191, 36);
    color: black;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .match-detail-hero {
        padding: 2rem 1rem;
    }

    .score-center {
        font-size: 3rem;
    }

    .team-name-large {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .card-header {
        gap: 0.3rem;
    }

    .view-tie-btn {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .tie-result {
        font-size: 0.8rem;
    }

    .card-body {
        padding: 1rem 0.25rem;
        gap: 0.5rem;
    }

    .player-side {
        gap: 0.5rem;
    }

    .player-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
        border-width: 1px;
    }

    .p-name {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
    }

    .team-label {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
    }

    .score-display-tie {
        min-width: auto;
        gap: 0.5rem;
        font-size: 1.2rem;
    }

    .score-val.winner-text {
        font-size: 1.4rem;
    }

    .vs-text {
        font-size: 0.8rem;
    }

    .breakdown-card.winner-left::before,
    .breakdown-card.winner-right::before {
        top: 90px;
        bottom: 10px;
    }

    .flag-img {
        width: 25px;
    }
}

@media (max-width: 480px) {
    .breakdown-card {
        padding: 0.75rem 0.5rem;
    }

    .p-name {
        max-width: 60px;
        font-size: 0.8rem;
    }

    .flag-icon {
        display: none;
    }

    .team-label {
        display: none;
    }

    .player-avatar {
        width: 32px;
        height: 32px;
    }

    .match-card {
        min-width: 100%;
    }

    .trophy-icon img {
        height: 60px !important;
    }

    .header-title {
        font-size: 1.2rem;
    }
    .bg-logo{
        width: 150px !important;
        height: 150px !important;
    }
}

.player-details {
    display: flex;
    flex-direction: column;
    row-gap: 2px;
    ;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.justify-end {
    justify-content: flex-end;
}

.text-right {
    text-align: right;
}

.p-name {
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.flag-icon {
    font-size: 1rem;
}

.team-label {
    color: rgb(255, 255, 255);
    font-size: 0.85rem;
}

.score-display-tie {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 1.5rem;
    color: rgb(135 135 135);
    font-weight: 700;
    min-width: 150px;
    justify-content: center;
}

.score-val {
    color: rgb(156, 163, 175);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-val.winner-text {
    color: rgb(251, 191, 36);
    font-size: 1.75rem;
}

.win-badge {
    background: rgb(251, 191, 36);
    color: black;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .match-detail-hero {
        padding: 1rem;
    }

    .score-center {
        font-size: 3rem;
    }

    .team-name-large {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .card-header {
        gap: 0.3rem;
    }

    .view-tie-btn {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .tie-result {
        font-size: 0.8rem;
    }

    .card-body {
        padding: 1rem 0.25rem;
        gap: 0.5rem;
    }

    .player-side {
        gap: 0.5rem;
    }

    .player-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
        border-width: 1px;
    }

    .p-name {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 115px;
    }

    .team-label {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
    }

    .score-display-tie {
        min-width: auto;
        gap: 0.5rem;
        font-size: 1.2rem;
    }

    .score-val.winner-text {
        font-size: 1.4rem;
    }

    .vs-text {
        font-size: 0.65rem;
    }

    .breakdown-card.winner-left::before,
    .breakdown-card.winner-right::before {
        top: 90px;
        bottom: 10px;
    }
}

@media (max-width: 570px) {
    .p-name {
        max-width: 85px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .breakdown-card {
        padding: 0.75rem 0.5rem;
    }



    .team-label {
        display: block;
        max-width: 85px;
        font-size: 0.65rem;
    }

    .player-avatar {
        width: 30px;
        height: 30px;
    }

    .score-display-tie {
        font-size: 0.9rem;
        gap: 0.25rem;
    }

    .score-val.winner-text {
        font-size: 0.85rem;
    }
}

.tie-detail-hero {
    /* padding-bottom: 2rem; */
}

.tie-teams-header {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgb(255, 255, 255);
    margin-bottom: 1rem;
}

.tie-hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tie-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 500px;
}

.tie-player.left {
    align-items: flex-end;
    text-align: right;
}

.tie-player.right {
    align-items: flex-start;
    text-align: left;
}

.tie-player-img-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid;
    margin-bottom: 0.5rem;
}

.tie-player.left .tie-player-img-wrapper {
    border-color: rgb(250, 204, 21);
}

.tie-player.right .tie-player-img-wrapper {
    border-color: rgb(239, 68, 68);
}

.tie-player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tie-player-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tie-flag-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tie-player.left .tie-flag-name {
    flex-direction: row;
}

.tie-player.right .tie-flag-name {
    flex-direction: row;
}

.flag-large img {
    padding-top: 10px;
}

.name-large {
    font-size: 2rem;
    font-weight: 700;
    color: rgb(255, 255, 255);
}

.team-small {
    font-size: 1rem;
    color: #9E9E9E;
}

.tie-score-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.tie-main-score {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgb(250, 204, 21);
    line-height: 1;
}

.tie-main-score.win-color {
    color: rgb(239, 68, 68);
}

.vs-large {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgb(209, 213, 219);
    font-style: italic;
}

.tie-result-banner {
    background: rgb(0 0 0 / 68%);
    border: 1px solid #9E9E9E;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: rgb(156, 163, 175);
    font-size: 1rem;
    max-width: 600px;
    margin: 0px auto;
}

.highlight-text {
    color: rgb(250, 204, 21);
    font-weight: 700;
}

.tie-breakdown-padding {
    padding: 2rem 5rem 1rem;
}

.period-card {
    background: rgb(25 27 33);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.period-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.period-title {
    color: rgb(250, 204, 21);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.period-score {
    color: rgb(255, 255, 255);
    font-size: 1.5rem;
    font-weight: 700;
}

.period-divider {
    height: 1px;
    background: rgba(75, 85, 99, 0.3);
    margin-bottom: 1.5rem;
}

.phase-item {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid rgb(37, 99, 235);
}

.phase-item:last-child {
    margin-bottom: 0px;
}

.phase-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.phase-name-time {
    color: rgb(255, 255, 255);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.phase-score {
    color: rgb(255, 255, 255);
    font-weight: 700;
    font-size: 1.2rem;
}

.phase-events {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-left: 1rem;
}

.event-line {
    color: rgb(158, 158, 158);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

.round-summary-card {
    background: linear-gradient(135deg, rgb(17, 17, 17) 0%, rgb(10, 10, 10) 100%);
    border: 1px solid rgb(239, 68, 68);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.summary-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(255, 255, 255);
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-align: center;
}

.summary-content {
    display: flex;
    gap: 6rem;
    justify-content: center;
}

.round-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.round-label {
    color: rgb(156, 163, 175);
    font-size: 1rem;
    font-weight: bold;
}

.round-score {
    font-size: 3rem;
    font-weight: 700;
    display: flex;
    gap: 0.5rem;
}

.score-p1 {
    color: rgb(250, 204, 21);
}

.score-p2 {
    color: rgb(239, 68, 68);
}

@media (max-width: 768px) {
    .tie-hero-content {
        gap: 1rem;
    }

    .tie-player {
        width: 245px;
    }

    .tie-player-img-wrapper {
        width: 80px;
        height: 80px;
    }

    .tie-main-score {
        font-size: 2.5rem;
    }

    .vs-large {
        font-size: 1rem;
    }

    .name-large {
        font-size: 1rem;
    }

    .tie-result-banner {
        font-size: 0.9rem;
        margin: 0px 1rem;
    }

    .phase-name-time {
        font-size: 0.85rem;
    }

    .event-line {
        font-size: 0.8rem;
    }

    .tie-breakdown-padding {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .tie-teams-header {
        font-size: 0.9rem;
    }

    .tie-hero-content {
        flex-direction: row;
        gap: 0.5rem;
    }

    .tie-player-img-wrapper {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }

    .tie-main-score {
        font-size: 1.8rem;
    }

    .flag-large img {
        width: 20px;
    }

    .summary-content {
        gap: 2rem;
    }

    .breakdown-section,
    .tie-breakdown-padding {
        padding: 1rem !important;
    }
}

/* Responsive Background Images Implementation */

/* Default / Desktop (min-width > 1024px implied, but applied as base) */

/* Matchcentre (HOME) */
.page-home .header-background {
    background-image: url('assets/DESKTOP/HOME/HEADER.png') !important;
}

.page-home .fixtures-section {
    background-image: url('assets/DESKTOP/HOME/HERO SECTION.png') !important;
    height: 390px;
}

/* Match Detail (MATCH VIEW LIVE) */
.page-match .header-background {
    background-image: url('assets/DESKTOP/MATCH VIEW LIVE/HEADER.png') !important;
}

.page-match .match-detail-hero {
    background-image: url('assets/DESKTOP/MATCH VIEW LIVE/HERO SECTION.png') !important;
}

/* Tie Detail (VIEW MATCH) */
.page-tie .header-background {
    background-image: url('assets/DESKTOP/VIEW MATCH/HEADER.png') !important;
}

.page-tie .match-detail-hero {
    background-image: url('assets/DESKTOP/VIEW MATCH/HERO SECTION.png') !important;
    /* height: 482px !important; */
}


/* Tablet View */
@media (max-width: 1024px) {

    /* Matchcentre */
    .page-home .header-background {
        background-image: url('assets/TAB/HOME/HEADER.png') !important;
    }

    .page-home .fixtures-section {
        background-image: url('assets/TAB/HOME/HERO SECTION.png') !important;
    }

    /* Match Detail */
    .page-match .header-background {
        background-image: url('assets/TAB/MATCH VIEW LIVE/HEADER.png') !important;
    }

    .page-match .match-detail-hero {
        background-image: url('assets/TAB/MATCH VIEW LIVE/HERO SECTION.png') !important;
        height: 381px !important;
    }

    /* Tie Detail */
    .page-tie .header-background {
        background-image: url('assets/TAB/VIEW MATCH/HEADER.png') !important;
    }

    .page-tie .match-detail-hero {
        background-image: url('assets/TAB/VIEW MATCH/HERO SECTION.png') !important;
        /* height: 381px !important; */
    }

    .breakdown-section,
    .tie-breakdown-padding {
        padding: 2rem 2rem 1rem;
    }
}

/* Mobile View */
@media (max-width: 768px) {

    /* Matchcentre */
    .page-home .header-background {
        background-image: url('assets/MOBILE/HOME/HEADER.png') !important;
    }

    .page-home .fixtures-section {
        background-image: url('assets/MOBILE/HOME/HERO SECTION.png') !important;
        height: auto !important;
    }

    /* Match Detail */
    .page-match .header-background {
        background-image: url('assets/MOBILE/MATCH VIEW LIVE/HEADER.png') !important;
    }

    .page-match .match-detail-hero {
        background-image: url('assets/MOBILE/MATCH VIEW LIVE/HERO SECTION.png') !important;
        height: auto !important;
    }

    /* Tie Detail */
    .page-tie .header-background {
        background-image: url('assets/MOBILE/VIEW MATCH/HEADER.png') !important;
    }

    .page-tie .match-detail-hero {
        background-image: url('assets/MOBILE/VIEW MATCH/HERO SECTION.png') !important;
        height: auto !important;
    }
}

/* Top Players Section */
.top-players-section {
    /* max-width: 1280px; */
    margin: 0 auto;
    padding: 1rem 3rem 1rem;
}

/* Section Header */
.section-header {
    margin-bottom: 2rem;
}

.section-title {
    color: #ffffff;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-underline {
    height: 4px;
    width: 5rem;
    background: linear-gradient(to right, #dc2626, #991b1b);
    border-radius: 9999px;
}

/* Filters Panel */
.filters-panel {
    background: linear-gradient(to bottom right, #1a1a1a, #141414);
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filters-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-icon {
    color: #dc2626;
}

.filters-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.filter-badge {
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.clear-filters-btn:hover {
    color: #dc2626;
}

/* Filters Grid */
.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .filters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.filter-group {
    position: relative;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.select-wrapper {
    position: relative;
}

.filter-select {
    width: 100%;
    background-color: #0a0a0a;
    color: #ffffff;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s;
}

.filter-select:hover {
    border-color: #4b5563;
}

.filter-select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 1px #dc2626;
}

.select-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
}

/* Results Count */
.results-count {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #374151;
}

.results-count p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

.count-number {
    color: #ffffff;
    font-weight: 600;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 2px solid transparent;
    border-top-color: #dc2626;
    border-bottom-color: #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Table Wrapper */
.table-wrapper {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid #374151;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Players Table */
.players-table {
    width: 100%;
    border-collapse: collapse;
}

.players-table thead tr {
    background: linear-gradient(to right, #1a1a1a, #141414);
}

.players-table th {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 1rem;
    text-transform: uppercase;
    border-bottom: 1px solid #374151;
}

.players-table .text-center {
    text-align: center;
}

.players-table .text-left {
    text-align: left;
}

.players-table tbody tr {
    border-bottom: 1px solid #374151;
    transition: all 0.3s;
}

.players-table tbody tr.rank-1 {
    background: linear-gradient(to right, rgba(220, 38, 38, 0.9), rgba(185, 28, 28, 0.9));
}

.players-table tbody tr.rank-1:hover {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}

.players-table tbody tr.even-row {
    background-color: #0a0a0a;
}

.players-table tbody tr.odd-row {
    background-color: #0f0f0f;
}

.players-table tbody tr.even-row:hover,
.players-table tbody tr.odd-row:hover {
    background-color: #1a1a1a;
}

.players-table td {
    color: #ffffff;
    padding: 1rem;
}

/* Rank Cell */
.rank-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rank-1-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.crown-icon {
    font-size: 1rem;
}

/* Player Cell */
.player-cell {
    padding: 1rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #374151, #1f2937);
    border: 2px solid #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-avatar svg {
    color: #9ca3af;
}

.player-details {
    display: flex;
    flex-direction: column;
}

.player-name {
    color: #ffffff;
    display: block;
}

.player-gender {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #1f2937;
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* Won Count */
.won-count {
    color: #4ade80;
    font-weight: 600;
}

/* PTS/M Value */
.ptsm-value {
    font-weight: 700;
    font-size: 1.125rem;
}

/* No Results */
.no-results {
    padding: 3rem;
    text-align: center;
    background-color: #0a0a0a;
}

.no-results-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.no-results-content svg {
    color: #374151;
}

.no-results-title {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

.no-results-subtitle {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .top-players-section {
        padding: 1rem 0.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .filters-panel {
        padding: 1rem;
    }

    .players-table {
        font-size: 0.875rem;
    }

    .players-table th,
    .players-table td {
        padding: 0.5rem;
    }

    .player-avatar {
        width: 2rem;
        height: 2rem;
    }

    .player-avatar svg {
        width: 1rem;
        height: 1rem;
    }

    .rank-1-text {
        font-size: 1.25rem;
    }

    .ptsm-value {
        font-size: 1rem;
    }
}
