/* ================================================
   HOME PAGE - DASHBOARD REDESIGN
   Mobile-first styles aligned with redesign_core
   ================================================ */

/* Header */
.dashboard-wrapper,
.main-content-dashboard {
    background: linear-gradient(180deg, #eaf6ff 0%, #dff1ff 45%, #f4fbff 100%);
}

.dashboard-header-home {
    background:
        linear-gradient(135deg, rgba(10, 22, 40, 0.72) 0%, rgba(15, 39, 68, 0.62) 55%, rgba(10, 22, 40, 0.78) 100%),
        url("../images/Stadion.png"),
        linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 45%, var(--blue-primary) 100%);
    background-size: cover, cover, cover;
    background-position: center, 30% 56%, center;
    background-repeat: no-repeat;
    padding: 44px 16px 64px;
    min-height: 360px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    will-change: auto;
}

.dashboard-header-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 36%),
        linear-gradient(180deg, rgba(10, 22, 40, 0.28) 0%, rgba(10, 22, 40, 0.46) 100%),
        linear-gradient(110deg, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0.46) 50%, rgba(255, 255, 255, 0) 67%);
    background-size: auto, auto, 220% 100%;
    background-position: center, center, -160% 0;
    opacity: 1;
    pointer-events: none;
    animation: barelangReveal 4.4s ease-in-out infinite alternate, barelangShimmer 6.2s linear infinite;
}


.dashboard-header-home::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.dashboard-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: headerFloatIn 0.9s ease-out both;
}

.header-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 2px 10px rgba(10, 22, 40, 0.55);
}

.dashboard-header-home h1 {
    color: white;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 6px 22px rgba(10, 22, 40, 0.55);
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.93);
    font-size: 14px;
    max-width: 560px;
    line-height: 1.6;
    text-shadow: 0 3px 14px rgba(10, 22, 40, 0.5);
}

.header-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    border: none;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.dashboard-header-home .btn-secondary {
    background: rgba(10, 22, 40, 0.38);
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
}

.dashboard-header-home .btn-primary {
    background: rgba(10, 22, 40, 0.38);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
    backdrop-filter: blur(2px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-header-home .btn-secondary:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.dashboard-header-home .btn-primary:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

/* Body */
.dashboard-body {
    padding: 0 16px 40px;
}

/* Section shell */
.section-container {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #cfe5ff;
    box-shadow: var(--shadow-lg);
    margin-bottom: 22px;
    min-width: 0;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    /* Prevent flex overflow */
}

.section-container.section-elevated {
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

.section-container:hover {
    transform: translateY(-2px);
    border-color: #9fcbff;
    box-shadow: 0 16px 34px rgba(30, 64, 175, 0.14);
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    border-bottom: 2px solid #b9dcff;
    padding-bottom: 10px;
}

/* Keep first section line a bit stronger */
.section-container.section-elevated .section-header {
    border-bottom-color: #9fcbff;
}

.section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--navy);
    font-weight: 800;
}

.section-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-button {
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue-primary) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(15, 39, 68, 0.2);
}

/* Keep tab controls readable after green -> black override from legacy stylesheet */
.dashboard-wrapper .tab-button:hover,
.dashboard-wrapper .tab-button.active {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue-primary) 100%);
    border-color: var(--blue-primary);
    color: #ffffff;
}

.tab-content {
    display: none;
    margin-top: 12px;
}

.tab-content.active {
    display: block;
}

.scroll-controls {
    display: flex;
    gap: 8px;
}

.scroll-btn {
    background: var(--white);
    border: 1px solid var(--gray-200);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.scroll-btn:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* Match summary cards */
.match-cards-container {
    margin-top: 12px;
    min-width: 0;
    max-width: 100%;
}

.match-cards-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    padding-left: 6px;
    padding-right: 6px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    max-width: 100%;
}

.match-cards-scroll .empty-state {
    flex: 1 1 100%;
    min-width: 100%;
}

.match-cards-scroll::-webkit-scrollbar {
    height: 6px;
}

.match-cards-scroll::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 99px;
}

.match-card-wrapper {
    min-width: 78%;
    scroll-snap-align: start;
    padding: 2px 1px;
}

.match-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.match-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--blue-primary);
    box-shadow: 0 18px 34px rgba(30, 64, 175, 0.18);
}

/* In horizontal slider, avoid scale clipping/collision on left edge */
.match-cards-scroll .match-card:hover {
    transform: translateY(-6px);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.match-date {
    color: var(--navy);
    font-weight: 700;
}

.match-status {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--navy);
    font-weight: 800;
    font-size: 10px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.team-logo-container {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.team-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--gray-100);
    color: var(--gray-400);
    border: 1px dashed var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo.team-logo-placeholder {
    font-size: 18px;
}

.team-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.vs {
    font-weight: 900;
    color: var(--red);
    letter-spacing: 1px;
    font-size: 12px;
}

.match-score {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-dark);
    text-align: center;
    letter-spacing: 1px;
}

.match-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.match-venue {
    font-size: 11px;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-details {
    border: none;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
}

/* News */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.news-item-large,
.news-item-small {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.news-item-large:hover,
.news-item-small:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 36px rgba(30, 64, 175, 0.16);
    border-color: var(--blue-primary-light, var(--blue-primary));
}

.news-item-large:hover .news-title,
.news-item-small:hover .news-title {
    color: var(--blue-primary);
}

.news-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.news-image-placeholder {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5ff 0%, #e6ecfb 100%);
    color: var(--blue-primary);
    font-size: 40px;
}

.news-content {
    padding: 16px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--gray-500);
    font-weight: 700;
}

.news-date {
    color: var(--navy);
}

.news-popular-badge {
    background: var(--gold);
    color: var(--navy-dark);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.news-title {
    font-size: 16px;
    color: var(--navy);
    margin-top: 8px;
    line-height: 1.4;
}

.news-link {
    color: inherit;
    text-decoration: none;
}

.news-link:hover {
    color: var(--blue-primary);
}

.news-excerpt {
    margin-top: 8px;
    color: var(--gray-600);
    font-size: 13px;
}

.news-author {
    margin-top: 10px;
    color: var(--gray-500);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

.news-item-small {
    display: flex;
    gap: 12px;
    padding: 12px;
    align-items: center;
}

.news-thumbnail {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--gray-200);
}

.news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5ff 0%, #e6ecfb 100%);
    color: var(--blue-primary);
    font-size: 22px;
}

.news-content-small .news-title {
    font-size: 13px;
}

.news-info,
.sorting-info {
    margin-top: 12px;
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Match Section Redesign (Cards) */
.match-grid-redesign {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}

.match-item-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.match-item-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 34px rgba(30, 64, 175, 0.15);
    border-color: var(--blue-primary-light, #3b82f6);
}

.match-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m-sport-badge {
    background: var(--white-blue);
    color: var(--blue-primary);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.m-match-code,
.m-match-status {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.m-match-status {
    background: var(--blue-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.match-card-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.m-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.m-team-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.m-team-logo .team-logo-placeholder {
    font-size: 22px;
}

.m-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.m-team-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.m-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-label {
    font-size: 14px;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 1px;
}

.m-score-container {
    background: var(--navy-dark);
    padding: 6px 14px;
    border-radius: 12px;
    color: white;
}

.m-score {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
}

.match-card-bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.m-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--navy);
    font-weight: 600;
}

.m-info-item i {
    color: var(--blue-primary);
}

.match-card-venue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--navy);
    text-align: center;
}

.match-card-venue i {
    color: #f59e0b;
}

.btn-view-premium {
    width: 100%;
    border: none;
    background: var(--navy);
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-view-premium:hover {
    background: var(--blue-primary);
    transform: scale(1.02);
}

.btn-see-more-premium {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--navy);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(15, 39, 68, 0.2);
    transition: all var(--transition-normal);
}

.btn-see-more-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(15, 39, 68, 0.3);
    background: var(--blue-primary);
}

/* See more */
.see-more-section {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.btn-see-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--navy);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: var(--shadow-md);
}

/* Players */
.players-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 12px;
}

.player-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.player-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--blue-primary);
    box-shadow: 0 16px 30px rgba(30, 64, 175, 0.15);
}

.player-card:hover .player-photo-container {
    border-color: var(--blue-primary);
}

.player-photo-container {
    width: 86px;
    height: 86px;
    margin: 0 auto 12px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--gray-100);
    background: var(--gray-50);
}

.player-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-400);
    font-size: 28px;
}

.player-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
}

.player-team {
    margin-top: 4px;
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 600;
}

.player-info {
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray-500);
}

/* Transfers */
.transfers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 12px 0 0;
}

.transfer-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.transfer-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--blue-primary);
    box-shadow: 0 16px 32px rgba(30, 64, 175, 0.16);
}

.transfer-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.transfer-player-photo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    flex: 0 0 64px;
}

.transfer-player-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transfer-player-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 6px;
}

.transfer-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--white-blue);
    border-radius: 8px;
    color: var(--navy);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.transfer-flow {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 12px;
}

.transfer-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    min-width: 0;
}

.transfer-team-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--gray-400);
    letter-spacing: 1px;
    font-weight: 700;
}

.transfer-team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    border: 1px solid var(--gray-200);
    padding: 4px;
}

.transfer-team-logo.team-logo-placeholder {
    font-size: 16px;
}

.transfer-team-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.transfer-arrow-container {
    color: var(--gold);
    font-size: 16px;
}

.transfer-footer {
    display: flex;
    justify-content: center;
}

.transfer-status {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--navy-dark);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    padding: 4px 12px;
    border-radius: 99px;
    letter-spacing: 1px;
}

/* Teams */
.winners-grid,
.teams-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 12px;
}

.winner-premium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--white) 0%, var(--white-blue) 100%);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 18px;
    color: var(--navy);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.winner-premium-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue-primary);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, var(--white) 0%, #e8f0fe 100%);
}

.winner-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.2), transparent 60%);
    opacity: 0.6;
}

.winner-premium-card:hover .winner-bg-glow {
    opacity: 1;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.3), transparent 65%);
}

.winner-trophy-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--navy);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.winner-premium-card:hover .winner-trophy-icon {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3);
    background: var(--gold);
    color: var(--navy-dark);
}

.team-logo-premium {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 6px;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-logo-premium.team-logo-placeholder {
    font-size: 28px;
}

.winner-premium-card:hover .team-logo-premium {
    transform: scale(1.08);
    border-color: var(--blue-primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.winner-info {
    text-align: center;
    position: relative;
    z-index: 1;
}

.winner-info .team-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    transition: color 0.3s ease;
}

.winner-premium-card:hover .winner-info .team-name {
    color: var(--blue-primary);
}

.achievement-badge {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--navy);
    color: white;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.winner-premium-card:hover .achievement-badge {
    background: var(--blue-primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.winner-footer {
    position: relative;
    z-index: 1;
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.3s ease;
}

.winner-premium-card:hover .winner-footer {
    color: var(--blue-primary);
}

.view-profile i {
    transition: transform 0.3s ease;
}

.winner-premium-card:hover .view-profile i {
    transform: translateX(4px);
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    text-decoration: none;
    color: var(--navy);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue-primary);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.team-logo-lg {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-logo-lg.team-logo-placeholder {
    font-size: 24px;
}

.team-card:hover .team-logo-lg {
    transform: scale(1.08);
    border-color: var(--blue-primary);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

.team-card:hover .team-name {
    color: var(--blue-primary);
}

.team-label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 28px 16px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 32px;
    color: var(--gray-300);
    margin-bottom: 12px;
}

.empty-state h4 {
    color: var(--gray-600);
    font-weight: 700;
    margin-bottom: 6px;
}

/* Footer */
.dashboard-footer {
    text-align: center;
    padding: 28px 16px;
    color: var(--gray-500);
    font-size: 12px;
    border-top: 1px solid var(--gray-100);
    margin-top: 24px;
    background: var(--white);
}

.dashboard-footer p {
    margin: 6px 0;
}

.dashboard-footer a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}

.dashboard-footer a:hover {
    color: var(--blue-accent);
}

/* Premium Match Detail Modal */
.premium-modal {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.premium-header {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    padding: 20px 24px;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    color: var(--gold);
    font-size: 20px;
}

.premium-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.match-modal-close:hover {
    background: var(--red);
    transform: rotate(90deg);
}

.match-modal-body {
    padding: 0;
}

/* Premium Tabs */
.match-tabs-premium {
    display: flex;
    background: var(--gray-50);
    padding: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.match-tabs-premium .match-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    font-weight: 700;
    font-size: 13px;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.match-tabs-premium .match-tab i {
    font-size: 14px;
}

.match-tabs-premium .match-tab.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
    font-weight: 900;
    font-size: 14px;
}

.match-tabs-premium .match-tab[data-tab="goals"].active {
    background: #ecfdf5;
    color: #059669;
    box-shadow: 0 10px 22px rgba(5, 150, 105, .14);
}

.match-tabs-premium .match-tab[data-tab="cards"].active {
    background: #fef2f2;
    color: #dc2626;
    box-shadow: 0 10px 22px rgba(220, 38, 38, .14);
}

.match-tabs-premium .match-tab[data-tab="lineups"].active {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .14);
}

.match-tabs-premium .match-tab[data-tab="staffLineups"].active {
    background: #f5f3ff;
    color: #7c3aed;
    box-shadow: 0 10px 22px rgba(124, 58, 237, .14);
}

.match-tabs-premium .match-tab[data-tab="statistics"].active {
    background: #fff7ed;
    color: #ea580c;
    box-shadow: 0 10px 22px rgba(234, 88, 12, .16);
}

.match-tabs-premium .match-tab[data-tab="standings"].active {
    background: #ecfeff;
    color: #0891b2;
    box-shadow: 0 10px 22px rgba(8, 145, 178, .14);
}

.match-tabs-premium .match-tab[data-tab="moments"].active {
    background: #fdf2f8;
    color: #db2777;
    box-shadow: 0 10px 22px rgba(219, 39, 119, .14);
}

/* Premium Match Header Section */
.match-detail-header-premium {
    padding: 40px 24px;
    background: linear-gradient(180deg, var(--white) 0%, var(--white-blue) 100%);
    border-bottom: 1px solid var(--gray-100);
}

.match-teams-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.team-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 140px;
}

.team-logo-glow {
    position: relative;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--blue-primary), transparent, var(--gold));
    border-radius: 26px;
    z-index: -1;
    opacity: 0.3;
}

.team-logo-large-p {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-logo-large-p.team-logo-placeholder {
    font-size: 42px;
}

.p-team-name {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
}

.p-team-uniform {
    margin: -4px 0 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    text-align: center;
    line-height: 1.35;
}

.vs-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.vs-badge {
    background: var(--red);
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
}

.score-display-premium {
    font-size: 42px;
    font-weight: 900;
    color: var(--navy-dark);
    letter-spacing: 4px;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.match-meta-info {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 600;
}

.meta-item i {
    color: var(--blue-primary);
}

.match-video-link {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: min(100%, 240px);
    min-width: 0;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #fff;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 42%),
        linear-gradient(135deg, #b91c1c 0%, #dc2626 46%, #ef4444 100%);
    border: 1px solid rgba(185, 28, 28, 0.34);
    box-shadow:
        0 12px 24px rgba(220, 38, 38, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, border-color 0.22s ease;
    animation: matchVideoGlow 3.4s ease-in-out infinite, matchVideoPopIn 0.45s ease both;
    animation-delay: 0s, calc(var(--video-index, 0) * 70ms);
}

.match-video-link i {
    flex: 0 0 auto;
    font-size: 13px;
    transform: translateY(-0.5px);
}

.match-video-link::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.38) 49%, transparent 64%);
    transform: translateX(-155%) skewX(-18deg);
    animation: matchVideoShine 3.8s ease-in-out infinite;
    pointer-events: none;
}

.match-video-link::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 48%);
    pointer-events: none;
}

.match-video-link:hover {
    transform: translateY(-2px) scale(1.045);
    box-shadow:
        0 18px 32px rgba(220, 38, 38, 0.3),
        0 0 0 4px rgba(248, 113, 113, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
    filter: saturate(1.12) brightness(1.02);
    border-color: rgba(254, 202, 202, 0.55);
}

.match-video-link:active {
    transform: translateY(0) scale(0.985);
}

@keyframes matchVideoShine {
    0%, 18% {
        transform: translateX(-155%) skewX(-18deg);
        opacity: 0;
    }
    28% {
        opacity: 1;
    }
    48%, 100% {
        transform: translateX(155%) skewX(-18deg);
        opacity: 0;
    }
}

@keyframes matchVideoGlow {
    0%, 100% {
        box-shadow:
            0 12px 24px rgba(220, 38, 38, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.28);
    }
    50% {
        box-shadow:
            0 16px 28px rgba(220, 38, 38, 0.3),
            0 0 0 3px rgba(248, 113, 113, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.28);
    }
}

@keyframes matchVideoPopIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Tab Contents */
.match-tab-content {
    padding: 24px;
    display: none;
}

.match-tab-content.active {
    display: block;
}

.match-tab-content h4 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#goalsContent h4 {
    color: #059669; /* emerald-600 / hijau pekat */
    font-size: 18px;
    font-weight: 900;
}

.match-tab-content h4::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--gray-100);
}

/* Goals timeline (match page + modal) */
.goals-list.pro-goals-container,
.pro-goals-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    padding: 12px 0;
    max-width: 640px;
    margin: 0 auto;
}

.pro-goals-container::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 50%;
    width: 2px;
    background: var(--gray-100);
    transform: translateX(-50%);
    z-index: 1;
}

.pro-goals-container .goals-half-title {
    font-size: 15px;
    font-weight: 900;
    margin: 8px 0 2px;
    padding-left: 10px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-goals-container .goals-half-title.half-1,
.pro-goals-container .goals-half-title.half-2 {
    color: #ea580c; /* oren tua */
}

.pro-goals-container .goal-row {
    display: grid !important;
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr) !important;
    align-items: start !important;
    position: relative;
    z-index: 2;
    margin-bottom: 8px; /* tighter spacing */
}

.pro-goals-container .goal-side {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 8px !important; /* space between multiple events on same row */
    min-width: 0 !important;
    padding: 4px 10px !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.pro-goals-container .goal-side.active {
    opacity: 1;
    visibility: visible;
}

.pro-goals-container .team-1-side {
    align-items: flex-start;
    text-align: left;
}

.pro-goals-container .team-2-side {
    align-items: flex-end;
    text-align: right;
}

.pro-goals-container .team-2-side .goal-details {
    justify-content: flex-end !important;
}

.pro-goals-container .team-2-side .goal-player-name {
    text-align: right;
}

.pro-goals-container .goal-time-pill {
    display: none;
}

.pro-goals-container .goal-time-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--blue-primary);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

/* Allow long names to wrap inside each side column */
.pro-goals-container .goal-details {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 4px 5px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.pro-goals-container .team-1-side .goal-details {
    flex-direction: row;
    justify-content: flex-start;
}

.pro-goals-container .team-1-side .goal-player-name {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
}

.pro-goals-container .team-1-side .goal-icon,
.pro-goals-container .team-1-side .card-icon {
    flex-shrink: 0;
}

.pro-goals-container .team-1-side .goal-player-number {
    flex-shrink: 0;
}

.pro-goals-container .team-2-side .goal-details {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.pro-goals-container .team-2-side .goal-player-number {
    flex-shrink: 0;
}

.pro-goals-container .team-2-side .goal-icon,
.pro-goals-container .team-2-side .card-icon {
    flex-shrink: 0;
}

.pro-goals-container .team-2-side .goal-player-name {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

.pro-goals-container .goal-icon,
.pro-goals-container .card-icon {
    font-size: 13px;
    color: #475569;
}

.pro-goals-container .goal-player-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #e0e7ff;
    color: var(--blue-primary);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pro-goals-container .goal-player-profile-link {
    cursor: pointer;
    text-decoration: none;
}

.pro-goals-container .goal-player-profile-link:hover,
.pro-goals-container .goal-player-profile-link:focus-visible {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pro-goals-container .switch-details {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.pro-goals-container .switch-player {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
    max-width: 42% !important;
    white-space: normal !important;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    flex: 0 1 42% !important;
}

.pro-goals-container .switch-details .goal-player-name,
.pro-goals-container .switch-details .goal-player-profile-link {
    display: inline-flex !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
}

.pro-goals-container .switch-arrow,
.pro-goals-container .switch-clock {
    flex: 0 0 auto !important;
}

.pro-goals-container .switch-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.pro-goals-container .switch-tag.out {
    background: #dc2626;
}

.pro-goals-container .switch-tag.in {
    background: #f59e0b;
    color: #111827;
}

.pro-goals-container .switch-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 11px;
    flex-shrink: 0;
}

.pro-goals-container .switch-number {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    background: #eff6ff;
    color: #1d4ed8;
}

.pro-goals-container .switch-clock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.pro-goals-container .goal-player-number {
    font-size: 10px;
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    flex-shrink: 0;
    box-sizing: border-box;
}

.pro-goals-container .goal-icon {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .goals-list.pro-goals-container,
    .pro-goals-container {
        gap: 8px;
        padding: 8px 0;
        max-width: 100%;
    }

    .pro-goals-container::before {
        display: block; /* Keep line on mobile */
    }

    .pro-goals-container .goals-half-title {
        font-size: 12px;
        padding-left: 6px;
        margin: 6px 0 0;
    }
    
    .pro-goals-container .goal-side {
        padding: 4px 6px;
    }
    
    .pro-goals-container .goal-time-pill {
        width: 32px;
        height: 20px;
        font-size: 9px;
    }
    
    .pro-goals-container .team-1-side .goal-details {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px 4px;
    }
    
    .pro-goals-container .team-2-side .goal-details {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px 4px;
    }
    
    /* Place the name on its own dedicated visual line below the badge/icon */
    .pro-goals-container .team-1-side .goal-player-name,
    .pro-goals-container .team-2-side .goal-player-name {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        font-size: 11px !important;
        line-height: 1.3;
        white-space: normal;
        word-break: break-word;
    }
    
    .pro-goals-container .team-1-side .goal-player-name {
        text-align: right;
    }

    .pro-goals-container .team-2-side .goal-player-name {
        text-align: left;
    }
    
    /* Order the Icon and Badge correctly for each side */
    .pro-goals-container .team-1-side .goal-icon,
    .pro-goals-container .team-1-side .card-icon {
        order: 1;
    }
    
    .pro-goals-container .team-1-side .goal-player-number {
        order: 2;
    }
    
    .pro-goals-container .team-2-side .goal-player-number {
        order: 1;
    }
    
    .pro-goals-container .team-2-side .goal-icon,
    .pro-goals-container .team-2-side .card-icon {
        order: 2;
    }
    
    .pro-goals-container .goal-player-number {
        width: 18px;
        height: 18px;
        font-size: 9px;
        min-width: 18px;
        min-height: 18px;
    }
    
    .pro-goals-container .goal-icon,
    .pro-goals-container .card-icon {
        font-size: 13px;
    }

    .pro-goals-container .switch-details {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .pro-goals-container .team-1-side .switch-details,
    .pro-goals-container .team-2-side .switch-details {
        justify-content: space-between !important;
    }

    .pro-goals-container .switch-details .goal-player-name,
    .pro-goals-container .switch-details .goal-player-profile-link {
        order: initial !important;
        width: auto !important;
        flex: 1 1 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        font-size: 11px !important;
        text-align: left !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: break-word !important;
        display: inline-flex !important;
    }

    .pro-goals-container .switch-player {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 42% !important;
        white-space: normal !important;
        overflow: hidden !important;
        flex-wrap: wrap !important;
        flex: 0 1 42% !important;
    }

    .pro-goals-container .switch-arrow,
    .pro-goals-container .switch-clock {
        flex: 0 0 auto !important;
    }

    .pro-goals-container .switch-player.switch-out,
    .pro-goals-container .switch-player.switch-in {
        flex: 0 1 auto !important;
    }

    .pro-goals-container .switch-arrow {
        align-self: center;
        margin: 0 4px;
    }

    .pro-goals-container .switch-clock {
        align-self: center;
        margin-left: auto;
        white-space: nowrap !important;
    }

    .match-modal-content.premium-modal .goals-list.pro-goals-container {
        padding: 10px 6px;
    }
}

/* Mobile Optimizations for Modal */
@media (max-width: 768px) {
    .match-teams-comparison {
        gap: 10px;
    }

    .team-logo-glow {
        width: 70px;
        height: 70px;
        padding: 8px;
        border-radius: 16px;
    }

    .p-team-name {
        font-size: 14px;
    }

    .score-display-premium {
        font-size: 32px;
    }

    .match-meta-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Lineups Section */
.lineups-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.team-lineup {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 16px;
}

.team-lineup h5 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-lineup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.player-lineup-item:hover {
    background: var(--white-blue);
    border-color: var(--blue-primary);
    transform: translateX(4px);
}

.player-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
}

.player-info-lineup {
    flex: 1;
}

.player-name-lineup {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.player-number-lineup {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 600;
}

.player-meta-lineup {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lineup-main-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff7cc;
    border: 1px solid #ffe28a;
    color: #8a5b00;
    font-size: 10px;
    font-weight: 700;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: var(--gray-400);
    font-size: 13px;
}

.player-search {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.player-search input {
    flex: 1;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
}

.player-search button {
    border: none;
    background: var(--navy);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-search button:hover {
    background: var(--blue-primary);
}

/* Schedule Modal Styles */
.schedule-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1300;
    padding: 16px;
    overflow-y: auto;
}

.schedule-modal-content {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 720px;
    margin: 36px auto;
    overflow: hidden;
}

.schedule-modal-header {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    padding: 20px 24px;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.schedule-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.schedule-modal-close:hover {
    background: var(--red);
    transform: rotate(90deg);
}

.schedule-modal-body {
    padding: 24px;
}

.schedule-detail-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-event-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
}

.schedule-round {
    margin: 0;
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 600;
}

.schedule-date-venue {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 16px;
}

.schedule-date-venue p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-date-venue p:last-child {
    margin-bottom: 0;
}

.schedule-date-venue i {
    color: var(--blue-primary);
}

.schedule-teams-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(180deg, var(--white) 0%, var(--white-blue) 100%);
    border-radius: 16px;
}

.schedule-team-large {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.team-logo-large-modal {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 8px;
}

.schedule-team-large h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
}

.schedule-vs-large {
    font-size: 16px;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 2px;
}

.schedule-share h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
}

.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.share-btn-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn-modal.whatsapp {
    background: #25D366;
    color: white;
}

.transfer-date-badge,
.transfer-date-badge i {
    color: var(--navy);
}

.share-btn-modal.facebook {
    background: #1877F2;
    color: white;
}

.share-btn-modal.telegram {
    background: #0088cc;
    color: white;
}

.share-btn-modal.twitter {
    background: #000000;
    color: white;
}

.share-btn-modal.copy {
    background: var(--navy);
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.share-btn-modal.copy.copied {
    background: var(--blue-primary);
}

.share-btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ================================================
   TEAM PAGE
   ================================================ */
.dashboard-header-team .header-subtitle {
    max-width: 560px;
}

.team-status-pill,
.team-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--navy);
}

.team-status-pill i,
.team-count-pill i {
    color: var(--blue-primary);
}

.team-profile-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 20px;
}

.team-profile-identity {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
}

.team-logo-shell {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: var(--white-blue);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.team-logo-profile {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.team-name-display {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-subtitle {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--gray-500);
}

.team-tagline {
    margin-top: 10px;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

.team-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.team-meta-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 72px;
}

.team-meta-item.team-meta-empty {
    background: var(--white-blue);
    border-style: dashed;
}

.team-meta-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
}

.team-meta-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.team-roster-section .team-roster-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.team-roster-section .player-list {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    max-height: 520px;
    overflow-y: auto;
}

.team-roster-section .player-list::-webkit-scrollbar {
    width: 6px;
}

.team-roster-section .player-list::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 999px;
}

.team-roster-section .player-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--white);
}

.team-roster-section .player-item:last-child {
    border-bottom: none;
}

.team-roster-section .player-item:hover {
    background: var(--white-blue);
}

.team-roster-section .player-item.active {
    background: var(--white-blue);
    border-left: 3px solid var(--blue-primary);
}

.team-roster-section .position-badge {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
}

.team-roster-section .position-badge.keeper {
    background: var(--gold);
    color: var(--navy-dark);
}

.team-roster-section .position-badge.staff {
    background: var(--blue-primary);
}

.team-roster-section .player-item-info {
    flex: 1;
    min-width: 0;
}

.team-roster-section .player-number {
    font-weight: 800;
    color: var(--blue-primary);
    margin-right: 6px;
}

.team-roster-section .player-name {
    font-weight: 700;
    color: var(--navy);
}

.team-roster-section .staff-position {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 2px;
    font-weight: 600;
}

.team-roster-section .player-detail-panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 20px;
}

.team-roster-section .player-photo-container {
    width: 170px;
    height: 170px;
    margin: 0 auto 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--gray-100);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-roster-section .player-photo-large {
    width: 170px;
    height: 170px;
    border-radius: 16px;
    object-fit: contain;
    border: 2px solid var(--gray-100);
    background: var(--gray-50);
}

.team-roster-section .detail-name {
    margin: 10px 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
}

.team-roster-section .detail-role {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.6px;
}

.team-roster-section .info-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.team-roster-section .info-row:last-child {
    border-bottom: none;
}

.team-roster-section .info-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-400);
}

.team-roster-section .info-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    text-align: right;
}

.team-filter-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-filter-card.all-filter-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px 36px;
    margin-top: 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
    isolation: isolate;
}

.team-filter-card.all-filter-card:hover {
    transform: translateY(-3px);
    border-color: #9fcbff;
    box-shadow: 0 16px 34px rgba(30, 64, 175, 0.14);
}

.team-filter-card.all-filter-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(147, 197, 253, 0.22));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: -1;
}

.team-filter-card.all-filter-card:hover::after {
    opacity: 1;
}

.section-container.all-section-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    isolation: isolate;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

/* Hover disabled for parent section as requested */
/* .section-container.all-section-card:hover {
    transform: translateY(-3px);
    border-color: #9fcbff;
    box-shadow: 0 16px 34px rgba(30, 64, 175, 0.14);
} */

.section-container.all-section-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(147, 197, 253, 0.22));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: -1;
}

/* Hover glow disabled for parent section as requested */
/* .section-container.all-section-card:hover::after {
    opacity: 1;
} */

/* Apply hover effects specifically to the filter card within this section */
.all-section-card .team-filter-card {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
    isolation: isolate;
}

.all-section-card .team-filter-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(147, 197, 253, 0.22));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: -1;
}

.all-section-card .team-filter-card:hover {
    transform: translateY(-3px);
    border-color: #9fcbff;
    box-shadow: 0 16px 34px rgba(30, 64, 175, 0.14);
}

.all-section-card .team-filter-card:hover::after {
    opacity: 1;
}

.team-filter-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    color: var(--gray-500);
}

.team-selector select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    font-size: 13px;
    font-weight: 600;
    background: var(--white);
    color: var(--navy);
    transition: all var(--transition-fast);
}

.team-selector select:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.team-directory-grid {
    margin-top: 6px;
}

.team-directory-card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.team-directory-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-logo-frame {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo-frame .team-logo-lg {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* Responsive enhancements */
@media (min-width: 768px) {
    .dashboard-header-home {
        padding: 60px 30px 80px;
        background-size: cover, cover, cover;
        background-position: center, 28% 56%, center;
    }

    .dashboard-header-home h1 {
        font-size: 38px;
        letter-spacing: 2px;
    }

    .header-actions {
        flex-direction: row;
    }

    .dashboard-body {
        padding: 0 30px 50px;
    }

    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .match-card-wrapper {
        min-width: 320px;
    }

    .news-grid {
        display: grid;
        grid-template-columns: 1.3fr 0.7fr;
        gap: 18px;
    }

    .news-sidebar {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .match-grid-redesign {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .btn-view-premium {
        width: auto;
        padding: 10px 20px;
    }

    .players-grid,
    .transfers-grid,
    .winners-grid,
    .teams-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lineups-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .dashboard-header-home {
        padding: 72px 50px 96px;
        background-size: cover, cover, cover;
        background-position: center, 26% 54%, center;
    }

    .dashboard-body {
        padding: 0 50px 60px;
    }

    .section-container {
        padding: 24px 26px;
        border-radius: 20px;
    }

    .match-cards-scroll {
        padding-bottom: 10px;
    }

    .match-grid-redesign {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .players-grid,
    .transfers-grid,
    .winners-grid,
    .teams-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {

    .players-grid,
    .transfers-grid,
    .winners-grid,
    .teams-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .match-cards-scroll {
        padding-left: 10px;
        padding-right: 10px;
        scroll-padding-left: 10px;
        scroll-padding-right: 10px;
    }

    .match-card-wrapper {
        flex: 0 0 calc(100% - 12px);
        min-width: calc(100% - 12px);
    }

    .dashboard-header-home {
        background-size: cover, 146%, cover;
        background-position: center, 34% 62%, center;
    }

    .team-roster-section .player-list {
        max-height: none;
    }

    .team-roster-section .player-detail-panel {
        position: static;
    }

    .team-roster-section .info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-roster-section .info-value {
        text-align: left;
    }
}

@media (max-width: 992px) {
    body.page-home .mobile-dashboard-header {
        background: linear-gradient(180deg, rgba(10, 22, 40, 0.86) 0%, rgba(10, 22, 40, 0.58) 100%);
        box-shadow: none;
        border-bottom: 0;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    body.page-home .main-content-dashboard {
        padding-top: 0;
    }

    body.page-home .dashboard-header-home {
        padding-top: 100px;
        min-height: 412px;
    }
}

@media (max-width: 480px) {
    body.page-home .dashboard-header-home {
        padding-top: 96px;
        min-height: 408px;
    }
}

@media (min-width: 768px) {
    .team-profile-identity {
        grid-template-columns: 140px 1fr;
        gap: 20px;
    }

    .team-logo-shell {
        width: 140px;
        height: 140px;
    }

    .team-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-roster-section .team-roster-grid {
        grid-template-columns: 1fr 320px;
    }

    .team-roster-section .player-photo-large {
        width: 180px;
        height: 180px;
    }

    .team-roster-section .player-photo-container {
        width: 180px;
        height: 180px;
    }
}

@media (min-width: 992px) {
    .team-profile-card {
        padding: 26px;
    }

    .team-name-display {
        font-size: 28px;
    }

    .team-meta-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .team-roster-section .team-roster-grid {
        grid-template-columns: 1fr 360px;
    }

    .team-roster-section .player-photo-large {
        width: 190px;
        height: 190px;
    }

    .team-roster-section .player-photo-container {
        width: 190px;
        height: 190px;
    }
}

.team-roster-section .player-detail-panel .player-photo-large {
    object-fit: contain;
    object-position: center;
    background: var(--gray-50);
}

/* ================================================
   MATCH DETAIL MODAL REDESIGN (PREMIUM GLASS)
        flex-direction: column;
        gap: 12px;
    }

    .match-grid-redesign {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .btn-view-premium {
        width: auto;
        padding: 10px 20px;
    }

    .players-grid,
    .transfers-grid,
    .winners-grid,
    .teams-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lineups-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.match-moments {
    display: grid;
    gap: 20px;
    padding-top: 14px;
}

.match-moment-section {
    display: grid;
    gap: 14px;
}

.match-moment-section + .match-moment-section {
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.match-moment-section h5 {
    margin: 0;
    color: #0f172a;
    font-size: .92rem;
    font-weight: 900;
    letter-spacing: 0;
}

.match-moment-videos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.match-moment-video {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 18px 34px rgba(15, 23, 42, .12);
}

.match-moment-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.match-moment-video-label {
    display: none;
    padding: 11px 14px;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
}

.match-moment-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.match-moment-photo {
    display: block;
    flex: 0 0 128px;
    width: 128px;
    height: 92px;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.match-moment-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.match-moment-photo:hover img {
    transform: scale(1.04);
}

.match-moments-empty {
    padding: 28px 16px;
    color: #64748b;
    text-align: center;
}

.match-moments-empty.is-compact {
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: rgba(255, 255, 255, .65);
    font-size: .88rem;
}

.match-modal-content .match-tabs-premium {
    flex-wrap: wrap;
    gap: 6px;
}

.match-modal-content .match-tabs-premium .match-tab {
    flex: 1 1 135px;
    min-width: 120px;
}

.match-staff-lineups,
.match-standings-compact {
    display: grid;
    gap: 14px;
}

.staff-lineup-half {
    display: grid;
    gap: 10px;
}

.staff-lineup-half h5,
.standing-compact-group h5 {
    margin: 0;
    color: #0f172a;
    font-size: .92rem;
    font-weight: 900;
}

.staff-lineup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.staff-lineup-team-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-width: 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.staff-lineup-team-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.staff-lineup-team-head strong {
    color: #0f172a;
    font-size: .88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-lineup-team-head span,
.standing-category-pill {
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: .72rem;
    font-weight: 900;
}

.staff-lineup-list {
    display: grid;
    gap: 9px;
}

.staff-lineup-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.staff-lineup-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #e2e8f0;
    color: #475569;
    overflow: hidden;
}

.staff-lineup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-lineup-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-lineup-item strong {
    color: #0f172a;
    font-size: .86rem;
}

.staff-lineup-item small {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    color: #64748b;
    font-size: .74rem;
    font-weight: 700;
}

.staff-lineup-item small em {
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-style: normal;
    font-size: .66rem;
    font-weight: 900;
}

.standing-compact-group {
    display: grid;
    gap: 8px;
}

.match-modal-content #matchStandings .standing-compact-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}

.match-modal-content #matchStandings .standing-compact-table {
    display: table !important;
    width: max-content !important;
    min-width: 820px !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
}

.match-modal-content #matchStandings .standing-compact-table thead {
    display: table-header-group !important;
}

.match-modal-content #matchStandings .standing-compact-table tbody {
    display: table-row-group !important;
}

.match-modal-content #matchStandings .standing-compact-table tr {
    display: table-row !important;
}

.match-modal-content #matchStandings .standing-compact-table th,
.match-modal-content #matchStandings .standing-compact-table td {
    display: table-cell !important;
    padding: 9px 11px !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a;
    font-size: .78rem;
    line-height: 1.25;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap !important;
}

.match-modal-content #matchStandings .standing-compact-table th {
    background: #f8fafc;
    color: #475569;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.match-modal-content #matchStandings .standing-compact-table th:nth-child(2),
.match-modal-content #matchStandings .standing-compact-table td:nth-child(2) {
    min-width: 52px;
    text-align: center;
}

.match-modal-content #matchStandings .standing-compact-table th:first-child,
.match-modal-content #matchStandings .standing-compact-table td:first-child {
    min-width: 230px;
    text-align: left;
}

.match-modal-content #matchStandings .standing-compact-table td:nth-child(12) {
    font-weight: 900;
}

.standing-history-list {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.standing-history-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.standing-history-badge.win {
    background: #dcfce7;
    color: #166534;
}

.standing-history-badge.loss {
    background: #fee2e2;
    color: #991b1b;
}

.standing-history-badge.draw {
    background: #e0f2fe;
    color: #075985;
}

.standing-history-badge.other,
.standing-history-empty {
    background: #f1f5f9;
    color: #475569;
}

@media (max-width: 600px) {
    .staff-lineup-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #matchStaffLineups .staff-lineup-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .dashboard-header-home::before,
    .stats-overview-section::after,
    .stat-card,
    .stat-card__icon,
    .stat-card__floating-icon,
    .match-video-link,
    .match-video-link::before,
    .home-match-card::before,
    .section-container::before {
        animation: none !important;
    }

    .stat-card {
        opacity: 1 !important;
        transform: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
    }

    .stat-card--visible,
    .stat-card:hover,
    .match-card:hover,
    .match-item-card:hover,
    .news-item-large:hover,
    .news-item-small:hover,
    .winner-premium-card:hover,
    .home-match-card:hover {
        transform: none !important;
    }

    .stat-card__glow {
        filter: blur(8px) !important;
        opacity: 0.72 !important;
    }

    .stat-card__floating-icon {
        filter: none !important;
        opacity: 0.16 !important;
    }

    .match-video-link::before {
        display: none !important;
    }
}

/* Mobile performance: keep the same look, remove the expensive looping work. */
@media (max-width: 640px) {
    .dashboard-header-home::before,
    .stats-overview-section::after,
    .stat-card,
    .stat-card__icon,
    .stat-card__floating-icon,
    .match-video-link,
    .match-video-link::before,
    .home-match-card::before,
    .section-container::before {
        animation: none !important;
    }

    .stat-card {
        opacity: 1 !important;
        transform: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
    }

    .stat-card--visible,
    .stat-card:hover,
    .match-card:hover,
    .match-item-card:hover,
    .news-item-large:hover,
    .news-item-small:hover,
    .winner-premium-card:hover,
    .home-match-card:hover {
        transform: none !important;
    }

    .stat-card__glow {
        filter: blur(8px) !important;
        opacity: 0.72 !important;
    }

    .stat-card__floating-icon {
        filter: none !important;
        opacity: 0.16 !important;
    }

    .match-video-link::before {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .match-modal-content #matchStaffLineups,
    .match-modal-content #matchStandings {
        min-width: 0;
        max-width: 100%;
    }

    .match-modal-content #matchStaffLineups .staff-lineup-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .match-modal-content #matchStaffLineups .staff-lineup-team-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 10px !important;
    }

    .match-modal-content #matchStaffLineups .staff-lineup-team-head {
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .match-modal-content #matchStaffLineups .staff-lineup-team-head strong {
        white-space: normal !important;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .match-modal-content #matchStaffLineups .staff-lineup-team-head span {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .match-modal-content #matchStaffLineups .staff-lineup-item {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    .match-modal-content #matchStaffLineups .staff-lineup-avatar {
        width: 38px !important;
        height: 38px !important;
    }

    .match-modal-content #matchStaffLineups .staff-lineup-info {
        min-width: 0;
    }

    .match-modal-content #matchStaffLineups .staff-lineup-item strong {
        white-space: normal !important;
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    .match-modal-content #matchStaffLineups .staff-lineup-item small {
        font-size: .68rem !important;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .match-modal-content #matchStandings .standing-compact-wrap {
        max-width: 100% !important;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
    }

    .match-modal-content #matchStandings .standing-compact-table {
        width: max-content !important;
        min-width: 820px !important;
    }

}

@media (max-width: 600px) {
    .match-moment-photo {
        flex-basis: calc(50% - 5px);
        width: calc(50% - 5px);
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

@media (min-width: 992px) {
    .dashboard-header-home {
        padding: 72px 50px 96px;
        background-size: cover, cover, cover;
        background-position: center, 26% 54%, center;
    }

    .dashboard-body {
        padding: 0 50px 60px;
    }

    .section-container {
        padding: 24px 26px;
        border-radius: 20px;
    }

    .match-cards-scroll {
        padding-bottom: 10px;
    }

    .match-grid-redesign {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .players-grid,
    .transfers-grid,
    .winners-grid,
    .teams-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {

    .players-grid,
    .transfers-grid,
    .winners-grid,
    .teams-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .match-cards-scroll {
        padding-left: 10px;
        padding-right: 10px;
        scroll-padding-left: 10px;
        scroll-padding-right: 10px;
    }

    .match-card-wrapper {
        flex: 0 0 calc(100% - 12px);
        min-width: calc(100% - 12px);
    }

    .dashboard-header-home {
        background-size: cover, 146%, cover;
        background-position: center, 34% 62%, center;
    }

    .team-roster-section .player-list {
        max-height: none;
    }

    .team-roster-section .player-detail-panel {
        position: static;
    }

    .team-roster-section .info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-roster-section .info-value {
        text-align: left;
    }
}

@media (max-width: 992px) {
    body.page-home .mobile-dashboard-header {
        background: linear-gradient(180deg, rgba(10, 22, 40, 0.86) 0%, rgba(10, 22, 40, 0.58) 100%);
        box-shadow: none;
        border-bottom: 0;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    body.page-home .main-content-dashboard {
        padding-top: 0;
    }

    body.page-home .dashboard-header-home {
        padding-top: 100px;
        min-height: 412px;
    }
}

@media (max-width: 480px) {
    body.page-home .dashboard-header-home {
        padding-top: 96px;
        min-height: 408px;
    }
}

@media (min-width: 768px) {
    .team-profile-identity {
        grid-template-columns: 140px 1fr;
        gap: 20px;
    }

    .team-logo-shell {
        width: 140px;
        height: 140px;
    }

    .team-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-roster-section .team-roster-grid {
        grid-template-columns: 1fr 320px;
    }

    .team-roster-section .player-photo-large {
        width: 180px;
        height: 180px;
    }

    .team-roster-section .player-photo-container {
        width: 180px;
        height: 180px;
    }
}

@media (min-width: 992px) {
    .team-profile-card {
        padding: 26px;
    }

    .team-name-display {
        font-size: 28px;
    }

    .team-meta-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .team-roster-section .team-roster-grid {
        grid-template-columns: 1fr 360px;
    }

    .team-roster-section .player-photo-large {
        width: 190px;
        height: 190px;
    }

    .team-roster-section .player-photo-container {
        width: 190px;
        height: 190px;
    }
}

.team-roster-section .player-detail-panel .player-photo-large {
    object-fit: contain;
    object-position: center;
    background: var(--gray-50);
}

/* ================================================
   MATCH DETAIL MODAL REDESIGN (PREMIUM GLASS)
   ================================================ */

/* Modal Overlay & Container */
.match-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 22, 40, 0.85);
    /* Deep Navy Overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
    padding: 0 !important; /* Override style.css 20px padding */
}

.match-modal-content.premium-modal {
    background: rgba(255, 255, 255, 0.92);
    margin: 4vh auto !important; /* absolute centering */
    width: 90% !important;
    max-width: 720px;
    border-radius: 24px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Header */
.match-modal-header.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.premium-header .header-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.premium-header .header-icon {
    font-size: 18px;
    color: var(--gold);
    background: rgba(245, 158, 11, 0.1);
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Match detail statistics */
.match-tabs-premium .match-tab[data-tab="goals"].active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.22);
}

.match-tabs-premium .match-tab[data-tab="lineups"].active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.match-tabs-premium .match-tab[data-tab="staffLineups"].active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}

.match-tabs-premium .match-tab[data-tab="statistics"].active {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    color: #fff;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.24);
}

.match-tabs-premium .match-tab[data-tab="standings"].active {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.22);
}

.match-tabs-premium .match-tab[data-tab="moments"].active {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: #fff;
    box-shadow: 0 10px 24px rgba(219, 39, 119, 0.22);
}

.match-statistics {
    width: min(760px, 100%);
    margin: 0 auto;
}

.match-stat-team-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 0 8px;
    color: #0f172a;
    font-weight: 900;
    text-align: center;
}

.match-stat-team-head small {
    color: #94a3b8;
    font-size: 0.67rem;
    letter-spacing: 0.12em;
}

.match-stat-list { display: grid; gap: 9px; }

.match-stat-row {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(55px, 1fr) minmax(170px, 1.5fr) minmax(55px, 1fr);
    align-items: center;
    min-height: 48px;
    overflow: hidden;
    border-radius: 13px;
    background: #334155;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.match-stat-fill {
    position: absolute;
    inset-block: 0;
    z-index: -1;
}

.match-stat-fill.team-one {
    left: 0;
    width: var(--team-one-width);
    background: linear-gradient(90deg, #f97316, #dc2626);
}

.match-stat-fill.team-two {
    right: 0;
    width: calc(100% - var(--team-one-width));
    background: linear-gradient(90deg, #475569, #1e293b);
}

.match-stat-value,
.match-stat-label {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0,0,0,0.32);
}

.match-stat-value { padding: 0 14px; font-size: 1rem; }
.match-stat-value.team-two-value { text-align: right; }
.match-stat-label { text-align: center; font-size: 0.84rem; }

@media (max-width: 600px) {
    .match-tabs-premium { overflow-x: auto; justify-content: flex-start; }
    .match-tabs-premium .match-tab { flex: 0 0 auto; white-space: nowrap; }
    .match-stat-team-head { gap: 7px; font-size: 0.75rem; }
    .match-stat-team-head small { font-size: 0.55rem; }
    .match-stat-row { grid-template-columns: 52px minmax(125px, 1fr) 52px; min-height: 44px; border-radius: 11px; }
    .match-stat-value { padding: 0 9px; font-size: 0.88rem; }
    .match-stat-label { font-size: 0.7rem; }
}

.premium-header .match-event-branding {
    flex: 0 0 36px;
    overflow: hidden;
}

.premium-header .match-event-branding.has-event-logo {
    padding: 3px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.premium-header .match-event-logo {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 7px;
    object-fit: contain;
}

.premium-header .match-event-logo[hidden],
.premium-header .match-event-branding i[hidden] {
    display: none !important;
}

.premium-header h3 {
    margin: 0;
    color: var(--navy-dark);
    text-transform: uppercase;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.premium-header .match-title-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.premium-header .match-title-badges {
    display: none;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.premium-header .match-title-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.02em;
    width: fit-content;
}

.premium-header .match-title-badge.event {
    max-width: 100%;
    padding: 10px 14px;
    color: #075985;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    font-size: 16px;
}

.premium-header .match-title-badge.week {
    min-height: 36px;
    padding: 9px 16px;
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fed7aa;
    font-size: 16px;
}

.match-modal-close {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
}

.match-modal-close:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
    transform: rotate(90deg);
}

.match-modal-body {
    padding: 8px 28px 32px;
}

/* Match Header (Logos & Score) */
.match-detail-header-premium {
    margin-bottom: 24px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    padding: 20px 0;
    border-radius: 20px;
}

.match-teams-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    padding: 0 10px;
}

.team-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-basis: 0;
    min-width: 0;
    z-index: 2;
}

.team-logo-glow {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    filter: blur(10px);
    z-index: -1;
    opacity: 0.8;
}

.team-logo-large-p {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.team-side:hover .team-logo-large-p {
    transform: scale(1.1);
}

.p-team-name {
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    color: var(--navy);
    max-width: 140px;
    line-height: 1.3;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.p-team-uniform {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: var(--gray-500);
    max-width: 160px;
    line-height: 1.35;
}

.vs-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.vs-badge {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--gray-200);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 900;
    color: var(--gray-400);
    letter-spacing: 1px;
}

.score-display-premium {
    font-size: 42px;
    font-weight: 800;
    color: var(--navy-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(15, 39, 68, 0.1);
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.score-display-premium .score-main {
    display: block;
    line-height: 1;
}

.score-display-premium .scoreboard-final {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
    align-items: start;
    column-gap: 36px;
    min-width: 300px;
    -webkit-text-fill-color: initial;
}

.score-display-premium .score-side {
    display: flex;
    position: relative;
    min-height: 74px;
    min-width: 72px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.score-display-premium .scoreboard-final .score-main {
    color: #020617;
    font-size: 64px;
    font-weight: 900;
    line-height: 0.92;
    text-shadow: none;
}

.score-display-premium .score-vs {
    align-self: center;
    color: #020617;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.score-display-premium .score-penalty {
    display: block;
    position: absolute;
    top: 44px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0;
    color: #d97706;
    -webkit-text-fill-color: initial;
    white-space: nowrap;
}

.score-display-premium .score-side:first-child .score-penalty {
    right: 6px;
}

.score-display-premium .score-side:last-child .score-penalty {
    left: 6px;
}

.match-meta-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 16px;
    border-radius: 99px;
    width: fit-content;
    margin: 0 auto;
    backdrop-filter: blur(4px);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
}

.meta-item i {
    color: var(--blue-primary);
}

/* Tabs */
.match-tabs-premium {
    display: flex;
    padding: 4px;
    background: var(--gray-100);
    border-radius: 12px;
    margin-bottom: 24px;
}

.match-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.match-tab:hover {
    color: var(--navy);
}

.match-tab.active {
    background: var(--white);
    color: var(--blue-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Tab Content & Goals Timeline */
.match-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.match-tab-content.active {
    display: block;
}

.match-tab-content h4 {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--gray-400);
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

.match-tab-content h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gray-200);
    margin: 8px auto 0;
}

/* Goals Timeline (legacy modal layout without pro-goals-container) */
.goals-list:not(.pro-goals-container) {
    position: relative;
    padding: 10px 0;
}

.goals-list:not(.pro-goals-container)::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--gray-100);
    transform: translateX(-50%);
}

.goals-list:not(.pro-goals-container) .goal-row {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
}

.goals-list:not(.pro-goals-container) .goal-side {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.goals-list:not(.pro-goals-container) .goal-side.active {
    opacity: 1;
}

.goals-list:not(.pro-goals-container) .team-1-side {
    justify-content: flex-end;
    text-align: right;
}

.goals-list:not(.pro-goals-container) .team-2-side {
    justify-content: flex-start;
    text-align: left;
}

.goals-list:not(.pro-goals-container) .goal-time-pill {
    width: 40px;
    height: 24px;
    background: var(--white);
    border: 1px solid var(--blue-primary);
    color: var(--blue-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}

.goals-list:not(.pro-goals-container) .goal-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.goals-list:not(.pro-goals-container) .team-1-side .goal-details {
    flex-direction: row-reverse;
}

.goals-list:not(.pro-goals-container) .goal-player-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--navy);
}

.goals-list:not(.pro-goals-container) .goal-player-number {
    font-size: 11px;
    color: #020617;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.goals-list:not(.pro-goals-container) .goal-icon {
    font-size: 14px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Lineups */
.lineups-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.team-lineup h5 {
    font-size: 13px;
    color: var(--navy);
    margin-bottom: 12px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-100);
    font-weight: 700;
}

.player-lineup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    margin-bottom: 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.player-lineup-item:hover {
    transform: translateX(2px);
    border-color: var(--blue-light);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.player-photo-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--gray-100);
}

.player-info-lineup {
    display: flex;
    flex-direction: column;
}

.player-name-lineup {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
}

.player-number-lineup {
    font-size: 10px;
    color: var(--gray-500);
    font-weight: 600;
}

.player-meta-lineup {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lineup-main-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fff7cc;
    border: 1px solid #ffe28a;
    color: #8a5b00;
    font-size: 9px;
    font-weight: 700;
}

.modal-lineup-board {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-lineup-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px;
}

.modal-lineup-board-head strong {
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
}

.modal-lineup-board-head span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 11px;
    font-weight: 900;
}

.modal-futsal-pitch {
    position: relative;
    min-height: 440px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255,255,255,0.24) 1px, transparent 1px) 0 0 / 100% 25%,
        linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px) 0 0 / 25% 100%,
        #74ca8f;
    border: 2px solid rgba(255,255,255,0.7);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.modal-pitch-line,
.modal-pitch-circle,
.modal-pitch-goal {
    position: absolute;
    pointer-events: none;
    border-color: rgba(255,255,255,0.62);
}

.modal-pitch-line {
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid rgba(255,255,255,0.62);
}

.modal-pitch-circle {
    width: 92px;
    height: 92px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,0.62);
    border-radius: 50%;
}

.modal-pitch-goal {
    left: 50%;
    width: 44%;
    height: 52px;
    transform: translateX(-50%);
    border: 2px solid rgba(255,255,255,0.62);
}

.modal-pitch-goal.top {
    top: -2px;
    border-top: 0;
    border-radius: 0 0 12px 12px;
}

.modal-pitch-goal.bottom {
    bottom: -2px;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.modal-pitch-player {
    position: absolute;
    width: 94px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: center;
    z-index: 2;
}

.modal-pitch-player:hover {
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: none;
}

.modal-pitch-photo-wrap {
    position: relative;
    width: 48px;
    height: 48px;
}

.modal-pitch-photo-wrap img {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    object-fit: cover;
    background: #e2e8f0;
    border: 2px solid #fff;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.22);
}

.modal-pitch-photo-wrap span {
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    min-width: 29px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #facc15;
    border: 2px solid #fff;
    color: #422006;
    font-size: 10px;
    font-weight: 900;
    line-height: 15px;
}

.modal-pitch-player strong,
.modal-pitch-player em {
    max-width: 94px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255,255,255,0.62);
}

.modal-pitch-player strong {
    margin-top: 8px;
    color: #082f1c;
    font-size: 11px;
    font-weight: 900;
}

.modal-pitch-player em {
    color: #14532d;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.modal-bench-panel {
    margin-top: 4px;
    padding: 12px;
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    background: #f8fafc;
}

.modal-bench-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--navy);
    font-weight: 900;
}

.modal-bench-title strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
}

.modal-bench-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.modal-bench-list .player-lineup-item {
    margin-bottom: 0;
    background: #fff;
}

.lineup-role-badge,
.lineup-rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.lineup-role-badge {
    padding: 2px 7px;
    background: #e0f2fe;
    color: #075985;
}

.lineup-rating-badge {
    min-width: 30px;
    padding: 3px 6px;
    background: #fef3c7;
    color: #92400e;
}

.match-full-time-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.match-full-time-label[hidden] {
    display: none !important;
}

.combined-lineup-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.combined-lineup-board {
    padding: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.combined-lineup-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.combined-team-summary {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.combined-team-summary strong {
    max-width: 100%;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.combined-team-summary span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.combined-team-summary em {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.combined-team-summary em.is-complete {
    background: #dcfce7;
    color: #166534;
}

.combined-team-summary em.is-incomplete {
    background: #fff1f2;
    color: #be123c;
}

.combined-lineup-versus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8a00, #ff1f2e);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(255, 80, 0, 0.24);
}

.combined-futsal-pitch {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    background: #159900 url("../images/LAPANGAN VETRANTRIX POTRAIT.png") center / 100% 100% no-repeat;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 14px 30px rgba(15, 23, 42, 0.12);
}

.combined-futsal-pitch > .modal-pitch-line,
.combined-futsal-pitch > .modal-pitch-circle,
.combined-futsal-pitch > .modal-pitch-goal,
.combined-futsal-pitch > .pitch-center-line,
.combined-futsal-pitch > .pitch-center-circle,
.combined-futsal-pitch > .pitch-goal {
    display: none;
}

.combined-pitch-team-label {
    position: absolute;
    left: 14px;
    z-index: 1;
    max-width: 42%;
    overflow: hidden;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,0.56);
    border-radius: 999px;
    background: rgba(7, 64, 35, 0.44);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(5px);
}

.combined-pitch-team-label.top { top: 12px; }
.combined-pitch-team-label.bottom { top: auto; bottom: 12px; }

.combined-futsal-pitch .modal-pitch-goal {
    width: 34%;
    height: 54px;
}

.combined-futsal-pitch .modal-pitch-player {
    width: 96px;
    gap: 1px;
}

.combined-futsal-pitch .modal-pitch-photo-wrap,
.combined-futsal-pitch .modal-pitch-photo-wrap img {
    width: 32px;
    height: 32px;
}

.combined-futsal-pitch .modal-pitch-photo-wrap span {
    min-width: 26px;
    height: 17px;
    padding: 0 4px;
    font-size: 9px;
    line-height: 13px;
}

.combined-futsal-pitch .modal-pitch-player strong,
.combined-futsal-pitch .modal-pitch-player em {
    display: block;
    width: max-content;
    max-width: 96px;
    overflow: visible;
    padding: 2px 5px;
    border-radius: 6px;
    text-overflow: clip;
    text-shadow: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

.combined-futsal-pitch .modal-pitch-player strong {
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-size: 7px;
    line-height: 1.05;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.16);
}

.combined-futsal-pitch .modal-pitch-player em {
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 6.5px;
    line-height: 1.05;
}

.combined-futsal-pitch .modal-pitch-photo-wrap img,
.combined-bench-player img {
    object-fit: contain;
    padding: 2px;
    background: rgba(255,255,255,0.92);
}

.combined-bench-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.combined-bench-panel {
    margin: 0;
}

.combined-bench-panel .modal-bench-list {
    grid-template-columns: minmax(0, 1fr);
}

.combined-bench-player {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
}

.combined-bench-player img {
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.combined-bench-player strong,
.combined-bench-player span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.combined-bench-player strong {
    color: #0f172a;
    font-size: 11px;
    font-weight: 900;
}

.combined-bench-player span {
    margin-top: 2px;
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
}

.combined-bench-player em {
    min-width: 30px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

@media (max-width: 680px) {
    .combined-lineup-board { padding: 10px; }
    .combined-futsal-pitch { min-height: 800px; }
    .combined-bench-grid { grid-template-columns: minmax(0, 1fr); }
    .combined-futsal-pitch .modal-pitch-player { width: 68px; }
    .combined-futsal-pitch .modal-pitch-photo-wrap,
    .combined-futsal-pitch .modal-pitch-photo-wrap img { width: 24px; height: 24px; }
    .combined-futsal-pitch .modal-pitch-player strong,
    .combined-futsal-pitch .modal-pitch-player em { max-width: 68px; font-size: 6px; }
    .combined-team-summary strong { font-size: 11px; }
    .combined-team-summary span { font-size: 9px; }
}

.no-data.compact {
    padding: 10px;
    font-size: 12px;
}

/* Player Search */
.player-search {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.player-search input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    background: var(--gray-50);
    transition: all 0.2s ease;
    font-family: inherit;
}

.player-search input:focus {
    outline: none;
    border-color: var(--blue-primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.player-search button {
    background: var(--navy);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-search button:hover {
    background: var(--blue-primary);
}

/* Decorative hover ring for major cards */
.match-card,
.news-item-large,
.news-item-small,
.match-item-card,
.player-card,
.transfer-card,
.winner-premium-card,
.team-card {
    position: relative;
    isolation: isolate;
}

.match-card::after,
.news-item-large::after,
.news-item-small::after,
.match-item-card::after,
.player-card::after,
.transfer-card::after,
.winner-premium-card::after,
.team-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(147, 197, 253, 0.22));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: -1;
}

.match-card:hover::after,
.news-item-large:hover::after,
.news-item-small:hover::after,
.match-item-card:hover::after,
.player-card:hover::after,
.transfer-card:hover::after,
.winner-premium-card:hover::after,
.team-card:hover::after {
    opacity: 1;
}

/* Match detail modal content tone (avoid flat white on Goals/Lineups panels) */
.match-modal-content.premium-modal .match-tab-content.active {
    background: linear-gradient(155deg, #f7fbff 0%, #edf5ff 100%);
    border: 1px solid #d5e4f8;
    border-radius: 14px;
    padding: 14px;
}

.match-modal-content.premium-modal .goals-list {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid #deebfa;
    border-radius: 12px;
    padding: 14px 10px;
}

.match-modal-content.premium-modal .team-lineup {
    background: linear-gradient(150deg, #f9fcff 0%, #eef5ff 100%);
    border: 1px solid #d9e7f8;
}

.match-modal-content.premium-modal .player-lineup-item {
    background: #f2f8ff;
    border-color: #d6e4f5;
}

/* Animations */
@keyframes barelangReveal {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.10;
    }
}

@keyframes barelangShimmer {
    0% {
        background-position: center, center, -130% 0;
    }

    100% {
        background-position: center, center, 145% 0;
    }
}

@keyframes headerFloatIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness for Modal */
@media (max-width: 576px) {
    .match-modal-header.premium-header {
        padding: 18px 18px 14px;
        align-items: flex-start;
    }

    .premium-header .header-content {
        gap: 16px;
    }

    .premium-header .header-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        flex: 0 0 32px;
    }

    .premium-header .match-title-badge {
        min-height: 30px;
        padding: 7px 10px;
    }

    .premium-header .match-title-badge.event {
        font-size: 13px;
    }

    .premium-header .match-title-badge.week {
        min-height: 34px;
        padding: 8px 14px;
        font-size: 14px;
    }

    .match-modal-close {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .match-modal-content.premium-modal {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .match-modal-body {
        flex: 1;
        overflow-y: auto;
    }

    .score-display-premium {
        font-size: 32px;
    }

    .score-display-premium .scoreboard-final {
        grid-template-columns: minmax(52px, 1fr) auto minmax(52px, 1fr);
        min-width: 190px;
        column-gap: 22px;
    }

    .score-display-premium .score-side {
        min-height: 56px;
        min-width: 52px;
    }

    .score-display-premium .scoreboard-final .score-main {
        font-size: 44px;
    }

    .score-display-premium .score-vs {
        font-size: 24px;
    }

    .score-display-premium .score-penalty {
        top: 32px;
        font-size: 22px;
    }

    .score-display-premium .score-side:first-child .score-penalty {
        right: 4px;
    }

    .score-display-premium .score-side:last-child .score-penalty {
        left: 4px;
    }

    .team-logo-glow {
        width: 60px;
        height: 60px;
    }

    .team-logo-large-p {
        width: 50px;
        height: 50px;
    }

    .lineups-container {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-header-home {
        animation: none !important;
        background-size: cover, cover, cover;
        background-position: center, 30% 56%, center;
    }

    .dashboard-header-home::before {
        animation: none !important;
        opacity: 0.1;
    }

    .dashboard-header-inner {
        animation: none !important;
    }

    .section-container,
    .match-card,
    .news-item-large,
    .news-item-small,
    .match-item-card,
    .player-card,
    .transfer-card {
        transition: none !important;
        transform: none !important;
    }
}


/* Override legacy green accents from css/style.css on home/dashboard cards */
.dashboard-wrapper .match-details i,
.dashboard-wrapper .news-views i,
.dashboard-wrapper .view-profile,
.dashboard-wrapper .view-profile i,
.dashboard-wrapper .winner-premium-card:hover .view-profile,
.dashboard-wrapper .winner-premium-card:hover .view-profile i {
    color: var(--navy) !important;
}

.dashboard-wrapper .achievement-badge,
.dashboard-wrapper .winner-premium-card:hover .achievement-badge {
    background: #fff3e7 !important;
    border: 1px solid #ffd8b0 !important;
    color: #d64b12 !important;
}

.dashboard-wrapper .player-photo {
    border-color: var(--navy) !important;
}

/* ================================================
   HOME CLEAN DASHBOARD OVERRIDE
   Inspired by the provided VetranTrix dashboard mockup
   ================================================ */
:root {
    --vt-red: #ff1f2e;
    --vt-orange: #ff8a00;
    --vt-ink: #121827;
    --vt-muted: #718096;
    --vt-line: #e7edf5;
    --vt-soft: #f4f8fc;
    --vt-card: #ffffff;
    --vt-shadow: 0 14px 34px rgba(20, 35, 64, 0.08);
    --vt-shadow-soft: 0 8px 22px rgba(20, 35, 64, 0.06);
}

body {
    background: #f4f8fc;
    color: var(--vt-ink);
}

.dashboard-wrapper,
.main-content-dashboard {
    background:
        linear-gradient(180deg, #f8fbff 0%, #f4f8fc 42%, #eef4fb 100%);
}

.main-content-dashboard {
    position: relative;
    padding: 0 34px 34px;
}

.main-content-dashboard::before {
    content: "";
    position: sticky;
    top: 0;
    display: block;
    height: 74px;
    margin: 0 -34px 18px;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid #e8eef6;
    box-shadow: 0 1px 0 rgba(20, 35, 64, 0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 20;
}

.main-content-dashboard::after {
    content: "Cari pertandingan, tim, atau pemain...";
    position: absolute;
    top: 16px;
    left: max(34px, calc(50% - 260px));
    width: min(520px, calc(100% - 360px));
    height: 42px;
    border: 1px solid #dce5f1;
    border-radius: 999px;
    color: #8a98ad;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    padding: 0 18px 0 46px;
    font-size: 13px;
    font-weight: 500;
    z-index: 21;
    pointer-events: none;
}

.dashboard-body {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0 24px;
}

.dashboard-body > .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
}

.dashboard-body > .section-container {
    grid-column: span 12;
}

.dashboard-body > .section-container:nth-of-type(2) {
    grid-column: span 7;
}

.dashboard-body > .section-container:nth-of-type(3) {
    grid-column: span 5;
}

.dashboard-body > .section-container:nth-of-type(4),
.dashboard-body > .section-container:nth-of-type(5) {
    grid-column: span 6;
}

.dashboard-header-home {
    max-width: 1280px;
    min-height: 260px;
    margin: 0 auto 16px;
    padding: 42px 42px 38px;
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(7, 13, 25, 0.9) 0%, rgba(7, 13, 25, 0.74) 36%, rgba(7, 13, 25, 0.18) 72%),
        radial-gradient(circle at 74% 30%, rgba(255, 138, 0, 0.34), transparent 30%),
        url("../images/Stadion.png");
    background-size: cover, auto, cover;
    background-position: center, center, center;
    background-repeat: no-repeat;
    box-shadow: var(--vt-shadow);
}

.dashboard-header-home::before {
    background:
        linear-gradient(120deg, rgba(255, 31, 46, 0.24), rgba(255, 138, 0, 0.08) 38%, transparent 72%),
        radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.28), transparent 22%);
    opacity: 1;
    animation: none;
}

.dashboard-header-home::after {
    display: none;
}

.dashboard-header-inner {
    max-width: 560px;
    gap: 16px;
    animation: none;
}

.header-eyebrow {
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
}

.dashboard-header-home h1 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 0.98;
    letter-spacing: 0;
    text-transform: none;
    color: #ffffff;
}

.dashboard-header-home h1::first-letter {
    color: #ffffff;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.94);
    font-size: 16px;
    line-height: 1.45;
    max-width: 520px;
}

.header-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-primary,
.btn-secondary,
.btn-details,
.btn-view-premium,
.btn-see-more,
.btn-see-more-premium {
    border-radius: 8px;
    letter-spacing: 0;
    text-transform: none;
}

.dashboard-header-home .btn-primary,
.dashboard-header-home .btn-secondary,
.btn-details,
.btn-view-premium,
.btn-see-more,
.btn-see-more-premium {
    background: linear-gradient(135deg, var(--vt-orange) 0%, var(--vt-red) 100%);
    color: #fff;
    border: 0;
    box-shadow: 0 10px 20px rgba(255, 63, 24, 0.24);
}

.dashboard-header-home .btn-primary:hover,
.dashboard-header-home .btn-secondary:hover,
.btn-details:hover,
.btn-view-premium:hover,
.btn-see-more:hover,
.btn-see-more-premium:hover {
    background: linear-gradient(135deg, #ff9a11 0%, #ff2635 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 63, 24, 0.28);
}

.section-container {
    background: var(--vt-card);
    border: 1px solid var(--vt-line);
    border-radius: 10px;
    box-shadow: var(--vt-shadow-soft);
    padding: 18px;
    margin-bottom: 0;
}

.section-container.section-elevated {
    margin-top: 0;
}

.section-container:hover {
    transform: none;
    border-color: #dce5f1;
    box-shadow: var(--vt-shadow);
}

.section-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 0;
    border-bottom: 0;
}

.section-container.section-elevated .section-header {
    border-bottom: 0;
}

.section-title {
    color: var(--vt-ink);
    font-size: 14px;
    letter-spacing: 0;
    line-height: 1.2;
}

.section-tabs {
    gap: 6px;
}

.tab-button {
    border-color: #e2eaf5;
    background: #f8fafc;
    color: #6b778c;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}

.dashboard-wrapper .tab-button:hover,
.dashboard-wrapper .tab-button.active,
.tab-button.active {
    background: linear-gradient(135deg, var(--vt-orange) 0%, var(--vt-red) 100%);
    border-color: transparent;
    color: #fff;
}

.scroll-controls {
    gap: 8px;
}

.scroll-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border-color: #e2eaf5;
    color: #182033;
    background: #fff;
    box-shadow: 0 8px 18px rgba(20, 35, 64, 0.08);
}

.scroll-btn:hover {
    background: #182033;
    border-color: #182033;
    color: #fff;
}

.match-card,
.match-item-card,
.news-item-large,
.news-item-small,
.player-card,
.transfer-card,
.winner-premium-card,
.team-card {
    border: 1px solid var(--vt-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
}

.match-card:hover,
.match-item-card:hover,
.news-item-large:hover,
.news-item-small:hover,
.player-card:hover,
.transfer-card:hover,
.winner-premium-card:hover,
.team-card:hover {
    transform: translateY(-3px);
    border-color: #d7e1ef;
    box-shadow: 0 14px 26px rgba(20, 35, 64, 0.09);
}

.match-card::after,
.news-item-large::after,
.news-item-small::after,
.match-item-card::after,
.player-card::after,
.transfer-card::after,
.winner-premium-card::after,
.team-card::after {
    display: none;
}

.match-cards-container {
    margin-top: 0;
}

.match-cards-scroll {
    gap: 10px;
    padding: 2px 4px 8px;
}

.match-card-wrapper {
    min-width: min(340px, calc(100vw - 64px));
}

.match-card {
    min-height: 208px;
    padding: 14px;
    gap: 12px;
}

.match-header,
.match-card-top {
    font-size: 10px;
    letter-spacing: 0;
}

.match-date,
.m-match-code {
    color: #172033;
    font-weight: 800;
}

.match-status,
.m-match-status,
.m-sport-badge {
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #d9eafe;
    color: #1d74d8;
    font-size: 9px;
    line-height: 1;
}

.match-teams,
.match-card-main {
    gap: 10px;
}

.team-logo-container,
.m-team-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f7f9fc;
    border: 1px solid #e2eaf5;
}

.team-logo,
.m-team-logo img {
    width: 42px;
    height: 42px;
}

.team-name,
.m-team-name {
    color: #192234;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.vs,
.vs-label,
.match-score {
    color: var(--vt-red);
}

.match-score {
    font-size: 22px;
    letter-spacing: 0;
}

.match-details,
.match-card-bottom {
    border-color: #edf2f7;
}

.match-venue,
.m-info-item,
.match-card-venue,
.news-excerpt,
.player-info,
.player-team,
.team-label,
.transfer-team-label,
.transfer-date-badge {
    color: var(--vt-muted);
}

.match-details {
    gap: 8px;
}

.btn-details {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 800;
}

.news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 12px;
}

.news-main,
.news-sidebar {
    min-width: 0;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item-large {
    height: 100%;
}

.news-image {
    height: 210px;
}

.news-content {
    padding: 14px;
}

.news-item-small {
    padding: 9px;
    gap: 10px;
}

.news-thumbnail {
    width: 110px;
    height: 74px;
    border-radius: 7px;
}

.news-meta {
    color: #7a8799;
    font-size: 10px;
    letter-spacing: 0;
    text-transform: none;
}

.news-date {
    color: #758298;
}

.news-title {
    color: #172033;
    font-size: 15px;
    line-height: 1.35;
}

.news-item-small .news-title,
.news-content-small .news-title {
    font-size: 12px;
}

.news-author,
.news-info,
.sorting-info {
    display: none;
}

.match-grid-redesign,
.players-grid,
.transfers-grid,
.winners-grid,
.teams-grid {
    gap: 12px;
}

.match-grid-redesign {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-item-card {
    padding: 14px;
    gap: 12px;
}

.m-score-container {
    background: linear-gradient(135deg, #172033 0%, #2b3547 100%);
    border-radius: 8px;
}

.match-card-bottom {
    gap: 10px;
    padding: 9px 0;
}

.btn-view-premium {
    padding: 10px 12px;
    font-size: 11px;
}

.btn-see-more-premium,
.btn-see-more {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 12px;
}

.players-grid,
.transfers-grid,
.winners-grid,
.teams-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-card,
.transfer-card,
.winner-premium-card,
.team-card {
    padding: 14px;
}

.player-photo-container,
.transfer-player-photo,
.team-logo-premium,
.team-logo-lg {
    border-radius: 50%;
}

.player-photo-container {
    width: 74px;
    height: 74px;
    margin-bottom: 10px;
    border-color: #e2eaf5;
}

.player-name,
.transfer-player-name,
.winner-info .team-name,
.team-card .team-name {
    color: #172033;
    font-size: 14px;
    line-height: 1.25;
}

.achievement-badge,
.transfer-status {
    background: #fff3e7;
    border: 1px solid #ffd8b0;
    color: #d64b12;
    border-radius: 999px;
}

.winner-premium-card {
    color: inherit;
}

.winner-bg-glow {
    background: radial-gradient(circle at center, rgba(255, 138, 0, 0.16), transparent 62%);
}

.winner-trophy-icon {
    background: linear-gradient(135deg, var(--vt-orange) 0%, var(--vt-red) 100%);
    color: #fff;
}

.view-profile {
    color: var(--vt-red) !important;
}

.empty-state {
    background: #f8fafc;
    border: 1px dashed #d8e2ef;
    border-radius: 8px;
    color: #718096;
    padding: 26px 18px;
}

.empty-state i {
    color: #a4b1c4;
}

.empty-state h4 {
    color: #172033;
}

.sidebar {
    width: 228px;
    background: rgba(255, 255, 255, 0.96);
    color: #172033;
    border-right: 1px solid #e8eef6;
    box-shadow: 8px 0 26px rgba(20, 35, 64, 0.05);
}

.main-content-dashboard {
    margin-left: 228px;
}

.sidebar::before {
    display: none;
}

.sidebar-logo {
    min-height: 118px;
    margin-bottom: 4px;
    padding: 22px 16px 16px;
    border-bottom: 1px solid #eef2f7;
}

.sidebar-logo img {
    max-width: 178px;
    filter: none;
}

.sidebar-nav {
    padding: 10px 14px 18px;
}

.sidebar-nav>a,
.sidebar-nav .nav-item-dropdown>a.nav-has-dropdown {
    min-height: 42px;
    margin: 4px 0;
    padding: 11px 12px;
    border-radius: 8px;
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.sidebar-nav>a::before,
.sidebar-nav .nav-item-dropdown>a.nav-has-dropdown::before {
    display: none;
}

.sidebar-nav>a:hover,
.sidebar-nav .nav-item-dropdown>a.nav-has-dropdown:hover {
    color: #172033;
    background: #fff4ed;
}

.sidebar-nav>a.active,
.sidebar-nav .nav-item-dropdown>a.nav-has-dropdown.active {
    background: linear-gradient(135deg, var(--vt-red) 0%, var(--vt-orange) 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(255, 79, 18, 0.22);
}

.sidebar-nav a i {
    color: #738198;
}

.sidebar-nav>a.active i,
.sidebar-nav .nav-item-dropdown>a.nav-has-dropdown.active i {
    color: #fff;
}

.sidebar-dropdown {
    background: #f8fafc;
    border: 1px solid #e8eef6;
    margin: 4px 0 8px;
}

.sidebar-dropdown a {
    color: #66748a;
    padding: 10px 16px 10px 42px;
}

.sidebar-dropdown a:hover,
.sidebar-dropdown a.active {
    color: var(--vt-red);
    background: #fff4ed;
    padding-left: 44px;
}

.sidebar-divider {
    border-top-color: #e6edf6 !important;
}

.btn-login-sidebar {
    background: #fff4ed !important;
    color: var(--vt-red) !important;
}

/* Final laptop polish: remove fake search, keep logo readable, avoid cropped hero image */
.main-content-dashboard::before,
.main-content-dashboard::after {
    display: none;
}

.main-content-dashboard {
    padding-top: 24px;
}

.dashboard-header-home {
    background:
        linear-gradient(90deg, rgba(9, 14, 24, 0.94) 0%, rgba(9, 14, 24, 0.84) 42%, rgba(9, 14, 24, 0.24) 72%, rgba(9, 14, 24, 0.04) 100%),
        radial-gradient(circle at 76% 40%, rgba(255, 138, 0, 0.28), transparent 30%),
        url("../images/Stadion.png");
    background-size: 100% 100%, auto, cover;
    background-position: center, center, center;
    background-repeat: no-repeat;
}

.sidebar {
    background:
        linear-gradient(180deg, #111827 0%, #172033 46%, #0b101a 100%);
    color: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 8px 0 28px rgba(6, 10, 18, 0.24);
}

.sidebar-logo {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.sidebar-logo img {
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.sidebar-partner-logo img {
    width: 168px;
    max-width: 100%;
    height: auto;
    filter: none;
}

.sidebar-partner-logo img:hover {
    transform: none;
}

.sidebar-nav>a,
.sidebar-nav .nav-item-dropdown>a.nav-has-dropdown {
    color: rgba(255, 255, 255, 0.86);
}

.sidebar-nav>a:hover,
.sidebar-nav .nav-item-dropdown>a.nav-has-dropdown:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav a i {
    color: rgba(226, 232, 240, 0.72);
}

.sidebar-nav>a.active,
.sidebar-nav .nav-item-dropdown>a.nav-has-dropdown.active {
    color: #ffffff;
}

.sidebar-nav>a.active i,
.sidebar-nav .nav-item-dropdown>a.nav-has-dropdown.active i {
    color: #ffffff;
}

.sidebar-dropdown {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-dropdown a {
    color: rgba(226, 232, 240, 0.72);
}

.sidebar-dropdown a:hover,
.sidebar-dropdown a.active {
    color: #ffffff;
    background: rgba(255, 138, 0, 0.14);
}

.sidebar-divider {
    border-top-color: rgba(255, 255, 255, 0.09) !important;
}

.btn-login-sidebar {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

@media (min-width: 1200px) {
    .match-card-wrapper {
        flex: 0 0 calc((100% - 20px) / 3);
        min-width: calc((100% - 20px) / 3);
    }
}

@media (max-width: 1180px) {
    .dashboard-body > .section-container:nth-of-type(n) {
        grid-column: span 12;
    }

    .match-grid-redesign,
    .players-grid,
    .transfers-grid,
    .winners-grid,
    .teams-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 993px) {
    .main-content-dashboard {
        align-items: stretch;
        padding: 24px 28px 34px;
    }

    .dashboard-header-home {
        display: flex;
        width: 100% !important;
        max-width: none !important;
        min-height: 310px;
        margin: 0 0 20px;
        padding: 50px 54px 46px;
        background:
            linear-gradient(90deg, rgba(7, 13, 25, 0.92) 0%, rgba(7, 13, 25, 0.78) 38%, rgba(7, 13, 25, 0.22) 72%),
            radial-gradient(circle at 72% 34%, rgba(255, 138, 0, 0.34), transparent 32%),
            url("../images/Stadion.png");
        background-size: 100% 100%, auto, cover;
        background-position: center, center, center;
        background-repeat: no-repeat;
    }

    .dashboard-header-inner {
        justify-content: center;
        max-width: min(720px, 58%);
    }

    .header-eyebrow {
        font-size: 17px;
        font-weight: 800;
    }

    .dashboard-header-home h1 {
        font-size: clamp(68px, 5.6vw, 92px);
        line-height: 0.92;
    }

    .header-subtitle {
        max-width: 620px;
        font-size: 18px;
    }

    .dashboard-header-home .btn-primary,
    .dashboard-header-home .btn-secondary {
        min-width: 150px;
        justify-content: center;
        padding: 14px 18px;
        font-size: 13px;
    }

    .dashboard-body {
        max-width: none;
        gap: 16px;
    }

    .dashboard-body > .container {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (min-width: 993px) and (max-width: 1366px) {
    .main-content-dashboard {
        padding-left: 24px;
        padding-right: 24px;
    }

    .dashboard-header-home {
        min-height: 286px;
        padding: 44px 44px 40px;
        background-size: 100% 100%, auto, cover;
        background-position: center, center, center;
    }

    .dashboard-header-inner {
        max-width: 64%;
    }

    .dashboard-header-home h1 {
        font-size: clamp(60px, 5.2vw, 76px);
    }

    .header-subtitle {
        font-size: 17px;
        max-width: 560px;
    }

    .dashboard-header-home .btn-primary,
    .dashboard-header-home .btn-secondary {
        min-width: 142px;
    }
}

@media (max-width: 992px) {
    .main-content-dashboard {
        margin-left: 0;
        padding: 0 16px 28px;
    }

    .main-content-dashboard::before,
    .main-content-dashboard::after {
        display: none;
    }

    body.page-home .mobile-dashboard-header,
    .mobile-dashboard-header {
        background: rgba(255, 255, 255, 0.94);
        border-bottom: 1px solid #e8eef6;
        box-shadow: 0 6px 18px rgba(20, 35, 64, 0.06);
    }

    .sidebar-toggle {
        color: #172033;
    }

    body.page-home .dashboard-header-home,
    .dashboard-header-home {
        margin-top: 14px;
        padding: 86px 22px 30px;
        min-height: 360px;
        background-size: cover, auto, cover;
        background-position: center, center, center;
    }

    .dashboard-body {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .dashboard-header-home {
        border-radius: 8px;
        background:
            linear-gradient(180deg, rgba(7, 13, 25, 0.92) 0%, rgba(7, 13, 25, 0.72) 58%, rgba(7, 13, 25, 0.42) 100%),
            url("../images/Stadion.png");
        background-size: cover, cover;
        background-position: center, center;
    }

    .dashboard-header-home h1 {
        font-size: 40px;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-header-home .btn-primary,
    .dashboard-header-home .btn-secondary {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .section-tabs,
    .scroll-controls {
        justify-content: flex-start;
    }

    .news-grid,
    .match-grid-redesign,
    .players-grid,
    .transfers-grid,
    .winners-grid,
    .teams-grid {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 190px;
    }
}

@media (max-width: 480px) {
    .main-content-dashboard {
        padding-left: 12px;
        padding-right: 12px;
    }

    body.page-home .dashboard-header-home,
    .dashboard-header-home {
        min-height: 332px;
        padding: 78px 18px 24px;
    }

    .header-subtitle {
        font-size: 14px;
    }

    .section-container {
        padding: 14px;
    }

    .match-card-wrapper {
        min-width: calc(100vw - 56px);
    }

    .news-item-small {
        align-items: flex-start;
    }

    .news-thumbnail {
        width: 88px;
        height: 64px;
    }

    .match-details {
        align-items: flex-start;
        flex-direction: column;
    }

    .btn-details {
        width: 100%;
    }
}

@media (max-width: 992px) {
    body.page-home .mobile-dashboard-header,
    .mobile-dashboard-header {
        background: linear-gradient(180deg, #111827 0%, #172033 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 22px rgba(6, 10, 18, 0.22);
    }

    .sidebar-toggle {
        color: #ffffff;
    }

    .sidebar-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-logo img {
        filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
    }
}

/* Home hover polish for dashboard columns/cards */
.dashboard-body > .section-container,
.match-card,
.match-item-card,
.news-item-large,
.news-item-small,
.player-card,
.transfer-card,
.winner-premium-card,
.team-card {
    transition:
        transform .24s ease,
        box-shadow .24s ease,
        border-color .24s ease,
        background .24s ease;
}

.dashboard-body > .section-container:hover {
    transform: translateY(-4px);
    border-color: #ffcf9f;
    box-shadow: 0 20px 42px rgba(20, 35, 64, 0.12);
}

.match-card,
.match-item-card,
.news-item-large,
.news-item-small,
.player-card,
.transfer-card,
.winner-premium-card,
.team-card {
    isolation: isolate;
}

.match-card::before,
.match-item-card::before,
.news-item-large::before,
.news-item-small::before,
.player-card::before,
.transfer-card::before,
.winner-premium-card::before,
.team-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.62) 45%, transparent 70%);
    transform: translateX(-130%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.match-card:hover,
.match-item-card:hover,
.news-item-large:hover,
.news-item-small:hover,
.player-card:hover,
.transfer-card:hover,
.winner-premium-card:hover,
.team-card:hover {
    transform: translateY(-7px);
    border-color: #ffbd82;
    box-shadow: 0 20px 38px rgba(20, 35, 64, 0.14);
}

.match-card:hover::before,
.match-item-card:hover::before,
.news-item-large:hover::before,
.news-item-small:hover::before,
.player-card:hover::before,
.transfer-card:hover::before,
.winner-premium-card:hover::before,
.team-card:hover::before {
    opacity: 1;
    animation: homeCardShine .72s ease;
}

.news-item-large:hover .news-image,
.news-item-small:hover .news-thumb,
.player-card:hover .player-photo,
.transfer-card:hover .transfer-player-img,
.winner-premium-card:hover .team-logo-premium,
.team-card:hover .team-logo-lg,
.match-card:hover .team-logo,
.match-item-card:hover .m-team-logo img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.02);
}

.news-image,
.news-thumb,
.player-photo,
.transfer-player-img,
.team-logo-premium,
.team-logo-lg,
.team-logo,
.m-team-logo img {
    transition: transform .24s ease, filter .24s ease;
}

.match-card:hover .team-name,
.match-item-card:hover .m-team-name,
.news-item-large:hover .news-title,
.news-item-small:hover .news-title,
.player-card:hover .player-name,
.transfer-card:hover .transfer-player-name,
.winner-premium-card:hover .team-name,
.team-card:hover .team-name {
    color: var(--vt-red);
}

@keyframes homeCardShine {
    from {
        transform: translateX(-130%);
    }

    to {
        transform: translateX(130%);
    }
}

@media (max-width: 768px) {
    .dashboard-body > .section-container:hover,
    .match-card:hover,
    .match-item-card:hover,
    .news-item-large:hover,
    .news-item-small:hover,
    .player-card:hover,
    .transfer-card:hover,
    .winner-premium-card:hover,
    .team-card:hover {
        transform: none;
    }
}

/* Home news column symmetry */
.dashboard-wrapper .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

.dashboard-wrapper .news-main,
.dashboard-wrapper .news-sidebar {
    min-width: 0;
    display: flex;
}

.dashboard-wrapper .news-sidebar {
    flex-direction: column;
    gap: 10px;
}

.dashboard-wrapper .news-item-large {
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-wrapper .news-image,
.dashboard-wrapper .news-image-placeholder {
    height: 180px;
    flex: 0 0 180px;
}

.dashboard-wrapper .news-content {
    min-height: 0;
    padding: 14px 15px;
    display: flex;
    flex-direction: column;
}

.dashboard-wrapper .news-item-large .news-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dashboard-wrapper .news-excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dashboard-wrapper .news-item-small {
    flex: 1 1 0;
    min-height: 0;
    align-items: stretch;
    padding: 10px;
}

.dashboard-wrapper .news-thumbnail {
    width: 96px;
    height: auto;
    min-height: 70px;
    align-self: stretch;
}

.dashboard-wrapper .news-content-small {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-wrapper .news-item-small .news-title,
.dashboard-wrapper .news-content-small .news-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 767px) {
    .dashboard-wrapper .news-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-wrapper .news-main {
        display: block;
    }

    .dashboard-wrapper .news-sidebar {
        display: flex;
    }

    .dashboard-wrapper .news-item-large {
        display: block;
    }

    .dashboard-wrapper .news-image,
    .dashboard-wrapper .news-image-placeholder {
        height: 190px;
        flex-basis: auto;
    }

    .dashboard-wrapper .news-item-small {
        min-height: 86px;
    }

    .dashboard-wrapper .news-thumbnail {
        width: 88px;
        height: 64px;
        min-height: 64px;
        align-self: flex-start;
    }
}

/* Match news cards to the player/team card grid rhythm */
.dashboard-wrapper .news-grid,
.dashboard-wrapper .match-grid-redesign {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-wrapper .news-main,
.dashboard-wrapper .news-sidebar {
    display: contents;
}

.dashboard-wrapper .news-item-large,
.dashboard-wrapper .news-item-small {
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.dashboard-wrapper .news-image,
.dashboard-wrapper .news-image-placeholder,
.dashboard-wrapper .news-thumbnail {
    width: 100%;
    height: 132px;
    min-height: 132px;
    flex: 0 0 132px;
    align-self: auto;
    border: 0;
    border-radius: 0;
}

.dashboard-wrapper .news-content,
.dashboard-wrapper .news-content-small {
    min-width: 0;
    padding: 12px 13px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dashboard-wrapper .news-item-large .news-title,
.dashboard-wrapper .news-item-small .news-title,
.dashboard-wrapper .news-content-small .news-title {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.35;
}

.dashboard-wrapper .news-excerpt {
    font-size: 12px;
    line-height: 1.45;
}

.dashboard-wrapper .match-item-card {
    min-height: 0;
    padding: 14px;
}

@media (min-width: 1200px) {
    .dashboard-wrapper .news-grid,
    .dashboard-wrapper .match-grid-redesign {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-wrapper .match-card-wrapper {
        flex: 0 0 calc((100% - 36px) / 4);
        min-width: calc((100% - 36px) / 4);
    }
}

@media (max-width: 767px) {
    .dashboard-wrapper .news-grid,
    .dashboard-wrapper .match-grid-redesign {
        grid-template-columns: 1fr;
    }

    .dashboard-wrapper .news-main {
        display: block;
    }

    .dashboard-wrapper .news-sidebar {
        display: flex;
    }

    .dashboard-wrapper .news-item-small {
        flex-direction: row;
        gap: 10px;
        padding: 10px;
    }

    .dashboard-wrapper .news-thumbnail {
        width: 88px;
        height: 64px;
        min-height: 64px;
        flex: 0 0 88px;
        border-radius: 7px;
    }
}

/* Keep news and match sections the same width rhythm as players and teams */
.dashboard-body > .section-container:nth-of-type(2),
.dashboard-body > .section-container:nth-of-type(3),
.dashboard-body > .section-container:nth-of-type(4),
.dashboard-body > .section-container:nth-of-type(5) {
    grid-column: span 6;
}

.dashboard-wrapper .news-grid,
.dashboard-wrapper .match-grid-redesign {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1200px) {
    .dashboard-wrapper .news-grid,
    .dashboard-wrapper .match-grid-redesign {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-wrapper .match-card-wrapper {
        flex: 0 0 calc((100% - 20px) / 3);
        min-width: calc((100% - 20px) / 3);
    }
}

@media (max-width: 1180px) {
    .dashboard-body > .section-container:nth-of-type(2),
    .dashboard-body > .section-container:nth-of-type(3),
    .dashboard-body > .section-container:nth-of-type(4),
    .dashboard-body > .section-container:nth-of-type(5) {
        grid-column: span 12;
    }
}

@media (max-width: 767px) {
    .dashboard-wrapper .news-grid,
    .dashboard-wrapper .match-grid-redesign {
        grid-template-columns: 1fr;
    }
}

/* Compact match-event timeline inside the home-page detail modal */
.match-modal-content #goalsList.pro-goals-container {
    gap: 14px;
    width: 100%;
    max-width: 720px;
    padding: 10px 4px;
}

.match-modal-content #goalsList.pro-goals-container::before {
    display: none;
}

.match-modal-content #goalsList .goals-half-section {
    position: relative;
    min-width: 0;
}

.match-modal-content #goalsList .goals-half-section::after {
    content: '';
    position: absolute;
    top: 39px;
    bottom: 2px;
    left: 50%;
    width: 1px;
    background: #cbd5e1;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
    transform: translateX(-50%);
    pointer-events: none;
}

.match-modal-content #goalsList .goals-half-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    width: fit-content;
    margin: 0 auto 7px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff7ed;
    font-size: 12px;
    line-height: 1;
}

.match-modal-content #goalsList .event-category {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.match-modal-content #goalsList .event-category + .event-category {
    margin-top: 8px;
}

.match-modal-content #goalsList .event-category-title {
    position: relative;
    z-index: 2;
    width: fit-content;
    margin: 0 auto 5px;
    padding: 3px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.65px;
    text-align: center;
    text-transform: uppercase;
}

.match-modal-content #goalsList .goal-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    margin: 0 !important;
}

.match-modal-content #goalsList .goal-side {
    gap: 5px !important;
    padding: 0 12px !important;
}

.match-modal-content #goalsList .goal-details.event-details {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    min-height: 24px;
    overflow: hidden;
}

.match-modal-content #goalsList .event-details .goal-player-name,
.match-modal-content #goalsList .event-details .goal-player-profile-link {
    order: initial !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    word-break: normal !important;
}

.match-modal-content #goalsList .event-details .goal-icon,
.match-modal-content #goalsList .event-details .card-icon,
.match-modal-content #goalsList .event-details .goal-player-number,
.match-modal-content #goalsList .event-details .goal-time-inline {
    order: initial !important;
    flex: 0 0 auto !important;
}

.match-modal-content #goalsList .goal-time-inline {
    min-width: 0;
    height: 20px;
    padding: 0 6px;
    font-size: 9px;
}

.match-modal-content #goalsList .goal-player-number {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    font-size: 9px;
}

.match-modal-content #goalsList .switch-details {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 3px 5px !important;
    width: 100% !important;
    overflow: visible !important;
}

.match-modal-content #goalsList .switch-player {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
}

.match-modal-content #goalsList .switch-player.switch-out {
    grid-column: 1;
    grid-row: 1;
}

.match-modal-content #goalsList .switch-player.switch-in {
    grid-column: 1;
    grid-row: 2;
}

.match-modal-content #goalsList .switch-player .goal-player-name,
.match-modal-content #goalsList .switch-player .goal-player-profile-link {
    order: initial !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.match-modal-content #goalsList .switch-tag {
    min-width: 28px;
    height: 18px;
    padding: 0 5px;
    font-size: 8px;
}

.match-modal-content #goalsList .switch-number {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
}

.match-modal-content #goalsList .switch-arrow {
    display: none !important;
}

.match-modal-content #goalsList .switch-clock {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
    margin: 0 !important;
}

.match-modal-content #goalsList .team-1-side .event-details,
.match-modal-content #goalsList .team-1-side .switch-details {
    box-sizing: border-box;
    border-left: 3px solid #fb923c;
}

.match-modal-content #goalsList .team-2-side .event-details,
.match-modal-content #goalsList .team-2-side .switch-details {
    box-sizing: border-box;
    border-left: 3px solid #3b82f6;
}

@media (max-width: 576px) {
    .match-modal-content #goalsList.pro-goals-container {
        padding-inline: 0;
    }

    .match-modal-content #goalsList .goals-half-title {
        padding-inline: 10px;
    }

    .match-modal-content #goalsList .goal-side {
        padding-inline: 7px !important;
    }

    .match-modal-content #goalsList .event-category .goal-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 0;
    }

    .match-modal-content #goalsList .event-category .goal-side {
        width: 100%;
        padding-inline: 4px !important;
    }

    .match-modal-content #goalsList .event-category .team-1-side {
        grid-column: 1;
        grid-row: 1;
    }

    .match-modal-content #goalsList .event-category .team-2-side {
        grid-column: 2;
        grid-row: 1;
    }

    .match-modal-content #goalsList .event-category .goal-side:not(.active) {
        display: flex !important;
    }

    .match-modal-content #goalsList .event-details {
        display: grid !important;
        grid-template-columns: auto auto minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        min-height: 45px;
        padding: 5px 8px !important;
    }

    .match-modal-content #goalsList .team-1-side .event-details {
        border-left: 3px solid #fb923c;
    }

    .match-modal-content #goalsList .team-2-side .event-details {
        border-left: 3px solid #3b82f6;
    }

    .match-modal-content #goalsList .event-details .goal-player-name,
    .match-modal-content #goalsList .event-details .goal-player-profile-link {
        grid-column: 1 / -1;
        grid-row: 1;
        order: initial !important;
        display: block !important;
        overflow: visible !important;
        font-size: 9.5px !important;
        line-height: 1.15 !important;
        text-align: left !important;
        text-overflow: clip !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
    }

    .match-modal-content #goalsList .event-details .goal-icon {
        display: inline-block !important;
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        margin-right: 2px;
    }

    .match-modal-content #goalsList .event-details .goal-player-number {
        display: inline-flex !important;
        grid-column: 2;
        grid-row: 2;
        align-self: center;
    }

    .match-modal-content #goalsList .event-details .card-icon {
        display: inline-block !important;
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        margin: 0 2px 0 0 !important;
    }

    .match-modal-content #goalsList .event-details .goal-time-inline {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
        order: initial !important;
    }

    .match-modal-content #goalsList .event-details .goal-time-inline {
        padding-inline: 4px;
    }

    .match-modal-content #goalsList .switch-details {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        gap: 3px !important;
    }

    .match-modal-content #goalsList .event-category-switches .goal-side {
        width: 100%;
        padding-inline: 4px !important;
    }

    .match-modal-content #goalsList .event-category-switches .switch-player .goal-player-name,
    .match-modal-content #goalsList .event-category-switches .switch-player .goal-player-profile-link {
        font-size: 10px !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
    }

    .match-modal-content #goalsList .event-category-switches .switch-clock {
        grid-column: 1;
        grid-row: 3;
        justify-self: center;
    }

    .match-modal-content #goalsList .event-category-switches .team-1-side .switch-details {
        border-left: 3px solid #fb923c;
    }

    .match-modal-content #goalsList .event-category-switches .team-2-side .switch-details {
        border-left: 3px solid #3b82f6;
    }

    .match-modal-content #goalsList .switch-player .switch-number {
        display: none;
    }
}

@media (max-width: 350px) {
    .match-modal-content #goalsList .event-details {
        min-height: 36px;
        height: auto;
    }

    .match-modal-content #goalsList .event-details .goal-player-name,
    .match-modal-content #goalsList .event-details .goal-player-profile-link {
        display: block !important;
        overflow: visible !important;
        line-height: 1.15 !important;
        text-overflow: clip !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
    }

    .match-modal-content #goalsList .event-details .goal-player-name,
    .match-modal-content #goalsList .event-details .goal-player-profile-link,
    .match-modal-content #goalsList .event-category-switches .switch-player .goal-player-name,
    .match-modal-content #goalsList .event-category-switches .switch-player .goal-player-profile-link {
        font-size: 8.5px !important;
    }
}

/* Compact cards so news and match boxes feel aligned with player/team cards */
.dashboard-wrapper .news-image,
.dashboard-wrapper .news-image-placeholder,
.dashboard-wrapper .news-thumbnail {
    height: 74px;
    min-height: 74px;
    flex-basis: 74px;
}

.dashboard-wrapper .news-content,
.dashboard-wrapper .news-content-small {
    padding: 11px 12px;
}

.dashboard-wrapper .news-meta {
    font-size: 9px;
    gap: 7px;
}

.dashboard-wrapper .news-item-large .news-title,
.dashboard-wrapper .news-item-small .news-title,
.dashboard-wrapper .news-content-small .news-title {
    font-size: 12px;
    line-height: 1.3;
}

.dashboard-wrapper .news-excerpt {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
}

.dashboard-wrapper .match-item-card {
    padding: 12px;
    gap: 8px;
}

.dashboard-wrapper .match-card-top {
    gap: 8px;
}

.dashboard-wrapper .m-sport-badge {
    padding: 3px 8px;
    font-size: 9px;
}

.dashboard-wrapper .m-match-code,
.dashboard-wrapper .m-match-status {
    font-size: 9px;
}

.dashboard-wrapper .match-card-main {
    gap: 8px;
    padding: 2px 0;
}

.dashboard-wrapper .m-team {
    gap: 5px;
}

.dashboard-wrapper .m-team-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    padding: 4px;
}

.dashboard-wrapper .m-team-name {
    font-size: 11px;
}

.dashboard-wrapper .vs-label {
    font-size: 12px;
}

.dashboard-wrapper .match-card-bottom {
    gap: 8px;
    padding: 6px 0;
}

.dashboard-wrapper .m-info-item,
.dashboard-wrapper .match-card-venue {
    font-size: 10px;
}

.dashboard-wrapper .btn-view-premium {
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 10px;
}

/* Latest match cards: keep them colorful instead of plain white */
.dashboard-wrapper .match-card {
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 214, 153, 0.34), transparent 32%),
        radial-gradient(circle at 96% 100%, rgba(190, 75, 45, 0.18), transparent 36%),
        linear-gradient(135deg, #fff8ef 0%, #ffe8d4 52%, #ffd8c4 100%);
    border-color: #f4c7ac;
    box-shadow: 0 14px 28px rgba(127, 29, 18, 0.12);
    min-height: 168px;
    padding: 12px;
    gap: 8px;
}

.dashboard-wrapper .match-card:hover {
    border-color: #e8a17d;
    box-shadow: 0 18px 34px rgba(127, 29, 18, 0.16);
}

.dashboard-wrapper .match-card .match-header,
.dashboard-wrapper .match-card .match-details {
    position: relative;
    z-index: 1;
}

.dashboard-wrapper .match-card .match-status {
    background: linear-gradient(135deg, #182033 0%, #b23b20 100%);
    border-color: rgba(255, 255, 255, 0.38);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(178, 59, 32, 0.2);
}

.dashboard-wrapper .match-card .team-logo-container {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(232, 161, 125, 0.44);
    box-shadow: 0 8px 18px rgba(127, 29, 18, 0.08);
}

.dashboard-wrapper .match-card .team-logo {
    width: 38px;
    height: 38px;
}

.dashboard-wrapper .match-card .match-score {
    font-size: 20px;
    color: #7f1d12;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
}

.dashboard-wrapper .match-card .live-match-score {
    gap: 3px;
    line-height: 1.08;
}

.dashboard-wrapper .match-card .live-match-scoreline {
    font-size: 18px;
}

.dashboard-wrapper .match-card .live-match-half {
    font-size: 11px;
}

.dashboard-wrapper .match-card .live-match-time {
    font-size: 30px;
}

.dashboard-wrapper .match-card .btn-details {
    background: linear-gradient(135deg, #182033 0%, #b23b20 100%);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(178, 59, 32, 0.18);
}

.dashboard-wrapper .match-cards-scroll {
    gap: 8px;
    padding-left: 14px;
    scroll-padding-left: 14px;
}

.dashboard-wrapper .match-card-wrapper {
    flex: 0 0 260px;
    min-width: 260px;
    max-width: 260px;
}

@media (max-width: 767px) {
    .dashboard-wrapper .match-card-wrapper {
        flex-basis: min(260px, calc(100vw - 56px));
        min-width: min(260px, calc(100vw - 56px));
        max-width: min(260px, calc(100vw - 56px));
    }
}


@media (max-width: 767px) {
    .dashboard-wrapper .news-image,
    .dashboard-wrapper .news-image-placeholder {
        height: 170px;
        min-height: 170px;
        flex-basis: 170px;
    }

    .dashboard-wrapper .news-thumbnail {
        width: 88px;
        height: 64px;
        min-height: 64px;
        flex-basis: 88px;
    }
}

/* ================================================
   STATISTICS OVERVIEW CARDS
   ================================================ */

.stats-overview-section {
    position: relative;
    grid-column: span 12;
    z-index: 10;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 50px;
    padding: 18px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.08) 100%);
    box-shadow: 0 24px 76px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.stats-overview-section::before,
.stats-overview-section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.stats-overview-section::before {
    background-image:
        radial-gradient(circle at 14% 18%, rgba(251, 191, 36, 0.28), transparent 22%),
        radial-gradient(circle at 80% 14%, rgba(16, 185, 129, 0.24), transparent 20%),
        radial-gradient(circle at 52% 82%, rgba(59, 130, 246, 0.2), transparent 22%);
}

.stats-overview-section::after {
    background-image:
        radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.08), transparent 24%),
        repeating-radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.06) 0 2px, transparent 3px 12px);
    mix-blend-mode: screen;
    filter: blur(0.5px);
    animation: sectionGlow 14s ease-in-out infinite alternate;
}

@keyframes sectionGlow {
    from { transform: translateY(0) scale(1); opacity: 0.95; }
    to { transform: translateY(-6px) scale(1.02); opacity: 1; }
}

.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

/* --- Base Stat Card --- */
.stat-card {
    position: relative;
    border-radius: 20px;
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    min-height: 122px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    transition: box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
    opacity: 0;
    transform: translateY(0) scale(0.98);
    animation: statCardEntrance 0.82s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stat-card[data-stat-index="0"] { animation-delay: 0.08s; }
.stat-card[data-stat-index="1"] { animation-delay: 0.18s; }
.stat-card[data-stat-index="2"] { animation-delay: 0.26s; }
.stat-card[data-stat-index="3"] { animation-delay: 0.34s; }

.stat-card--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.stat-card:hover .stat-card__glow {
    opacity: 0.95;
}

.stat-card:hover .stat-card__floating-icon {
    animation: floatingIconShine 1.8s ease-in-out infinite;
}

.stat-card:hover::after {
    transform: translateX(-2px) translateY(-1px) scale(1.01);
    opacity: 0.55;
}

/* --- Glow Background Layer --- */
.stat-card__glow {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 1;
    transition: opacity 0.4s ease;
    filter: blur(18px);
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.54), transparent 26%),
                radial-gradient(circle at 80% 70%, rgba(255,255,255,0.36), transparent 24%);
}
.stat-card:hover .stat-card__glow {
    opacity: 1;
}

/* --- Icon Container --- */
.stat-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 245, 0.88));
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48), inset 0 0 0 2px rgba(255, 255, 255, 0.18);
    animation: iconPulse 3.2s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.stat-card__icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    position: relative;
    z-index: 1;
    font-size: 1.2em;
    text-shadow: 0 8px 34px rgba(0, 0, 0, 0.68), 0 0 22px rgba(255, 255, 255, 0.44);
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.55));
    -webkit-text-fill-color: currentColor;
    text-fill-color: currentColor;
    background: none;
}

.stat-card__icon::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    opacity: 0.92;
}

.stat-card__icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
    opacity: 0.75;
}

@keyframes iconPulse {
    0% { transform: scale(1); box-shadow: 0 10px 26px rgba(0,0,0,0.22); }
    100% { transform: scale(1.08); box-shadow: 0 16px 36px rgba(255,255,255,0.42); }
}

@keyframes statCardFloat {
    0%, 100% { transform: translateY(0) scale(0.98); }
    25% { transform: translateY(-4px) scale(0.99); }
    50% { transform: translateY(-2px) scale(0.985); }
    75% { transform: translateY(-5px) scale(0.99); }
}

/* --- Body --- */
.stat-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
    margin-top: 4px;
}

.stat-number {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 0px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
    font-variant-numeric: tabular-nums;
}

.stat-card__label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

/* --- Floating Background Icon --- */
.stat-card__floating-icon {
    position: absolute;
    right: -10px;
    bottom: -14px;
    font-size: 102px;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 48px rgba(255, 255, 255, 0.82), 0 0 32px rgba(255, 255, 255, 0.52);
    z-index: 0;
    pointer-events: none;
    animation: statIconFloat 5.2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.36));
}

@keyframes floatingIconShine {
    0% { transform: translateY(0) rotate(-4deg); opacity: 0.42; filter: brightness(1); }
    30% { opacity: 0.68; filter: brightness(1.35); }
    60% { transform: translateY(-6px) rotate(4deg); opacity: 0.58; filter: brightness(1.25); }
    100% { transform: translateY(0) rotate(-4deg); opacity: 0.42; filter: brightness(1); }
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: -18px;
    z-index: -3;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.34), transparent 24%),
                radial-gradient(circle at center right, rgba(255,255,255,0.28), transparent 24%);
    opacity: 0.82;
    transform: translateX(-6px) translateY(-4px);
    filter: blur(16px);
}

.stat-card--events::after {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 18%);
}
.stat-card--teams::after {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 18%);
}
.stat-card--players::after {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 18%);
}
.stat-card--matches::after {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 18%);
}

@keyframes statCardEntrance {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes statIconFloat {
    0%, 100% { transform: translateY(0) rotate(-4deg); opacity: 0.12; }
    50% { transform: translateY(-8px) rotate(4deg); opacity: 0.2; }
}

/* ================================================
   CARD THEME VARIANTS
   ================================================ */

/* 1. Events — Amber / Fire */
.stat-card--events {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #dc2626 100%);
    background-image: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #dc2626 100%),
                      radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 26%),
                      radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1), transparent 18%);
}
.stat-card--events .stat-card__glow {
    background: radial-gradient(circle at 18% 24%, rgba(254, 215, 170, 0.54), transparent 40%),
                radial-gradient(circle at 70% 65%, rgba(253, 186, 116, 0.32), transparent 40%);
}
.stat-card--events .stat-card__icon {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.55);
}
.stat-card--events .stat-card__icon i {
    color: #ffffff;
    filter: drop-shadow(0 2px 18px rgba(255, 165, 0, 0.55));
}
.stat-card--events:hover {
    border-color: rgba(251, 191, 36, 0.55);
}

/* 2. Teams — Emerald / Teal */
.stat-card--teams {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 45%, #0ea5e9 100%);
    background-image: linear-gradient(135deg, #10b981 0%, #14b8a6 45%, #0ea5e9 100%),
                      radial-gradient(circle at 18% 18%, rgba(208, 251, 255, 0.16), transparent 28%),
                      radial-gradient(circle at 85% 70%, rgba(34, 211, 238, 0.14), transparent 20%);
}
.stat-card--teams .stat-card__glow {
    background: radial-gradient(circle at 22% 24%, rgba(127, 211, 255, 0.54), transparent 38%),
                radial-gradient(circle at 78% 78%, rgba(56, 189, 248, 0.34), transparent 38%);
}
.stat-card--teams .stat-card__icon {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.55);
}
.stat-card--teams .stat-card__icon i {
    color: #ffffff;
    filter: drop-shadow(0 2px 18px rgba(16, 185, 129, 0.55));
}
.stat-card--teams:hover {
    border-color: rgba(16, 185, 129, 0.55);
}

/* 3. Players — Violet / Pink */
.stat-card--players {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 48%, #ec4899 100%);
    background-image: linear-gradient(135deg, #8b5cf6 0%, #a855f7 48%, #ec4899 100%),
                      radial-gradient(circle at 20% 18%, rgba(236, 72, 153, 0.18), transparent 28%),
                      radial-gradient(circle at 75% 80%, rgba(168, 85, 247, 0.12), transparent 18%);
}
.stat-card--players .stat-card__glow {
    background: radial-gradient(circle at 22% 22%, rgba(236, 72, 153, 0.54), transparent 38%),
                radial-gradient(circle at 82% 72%, rgba(168, 85, 247, 0.36), transparent 40%);
}
.stat-card--players .stat-card__icon {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.55);
}
.stat-card--players .stat-card__icon i {
    color: #ffffff;
    filter: drop-shadow(0 2px 18px rgba(168, 85, 247, 0.55));
}
.stat-card--players:hover {
    border-color: rgba(168, 85, 247, 0.55);
}

/* 4. Matches — Indigo / Sapphire */
.stat-card--matches {
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 48%, #1e40af 100%);
    background-image: linear-gradient(135deg, #2563eb 0%, #4338ca 48%, #1e40af 100%),
                      radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.16), transparent 28%),
                      radial-gradient(circle at 80% 78%, rgba(147, 197, 253, 0.12), transparent 18%);
}
.stat-card--matches .stat-card__glow {
    background: radial-gradient(circle at 22% 22%, rgba(59, 130, 246, 0.54), transparent 38%),
                radial-gradient(circle at 78% 78%, rgba(147, 197, 253, 0.34), transparent 38%);
}
.stat-card--matches .stat-card__icon {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.55);
}
.stat-card--matches .stat-card__icon i {
    color: #ffffff;
    filter: drop-shadow(0 2px 18px rgba(59, 130, 246, 0.55));
}
.stat-card--matches:hover {
    border-color: rgba(59, 130, 246, 0.55);
}

/* ================================================
   RESPONSIVE — Statistics Cards
   ================================================ */

/* Tablet: 2x2 */
@media (max-width: 992px) {
    .stats-overview-section {
        margin-bottom: 44px;
    }
    .stats-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card {
        padding: 14px 12px 14px;
        min-height: 132px;
    }
    .stat-number {
        font-size: 26px;
    }
    .stat-card__icon {
        width: 60px;
        height: 60px;
        font-size: 34px;
    }
    .stat-card__floating-icon {
        font-size: 52px;
    }
}

/* Mobile: 2x2 compact */
@media (max-width: 600px) {
    .stats-overview-section {
        margin-bottom: 32px;
    }
    .stats-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .stat-card {
        padding: 12px 10px 12px;
        border-radius: 14px;
        gap: 8px;
        min-height: 112px;
    }
    .stat-card__icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 16px;
    }
    .stat-number {
        font-size: 22px;
    }
    .stat-card__label {
        font-size: 9px;
        letter-spacing: 0.7px;
    }
    .stat-card__floating-icon {
        font-size: 38px;
        right: -3px;
        bottom: -5px;
    }
}

@media (max-width: 640px) {
    .dashboard-header-home::before,
    .stats-overview-section::after,
    .stat-card,
    .stat-card__icon,
    .stat-card__floating-icon,
    .match-video-link,
    .match-video-link::before,
    .section-container::before {
        animation: none !important;
    }

    .stat-card {
        opacity: 1 !important;
        transform: none !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow:
            0 8px 22px rgba(15, 23, 42, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.14);
        transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .stat-card--visible,
    .stat-card:hover,
    .match-card:hover,
    .match-item-card:hover,
    .news-item-large:hover,
    .news-item-small:hover,
    .winner-premium-card:hover {
        transform: none !important;
    }

    .stat-card__glow {
        filter: blur(8px);
        opacity: 0.72;
    }

    .stat-card__icon {
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    }

    .stat-card__floating-icon {
        filter: none;
        opacity: 0.16;
    }

    .match-video-link::before {
        display: none;
    }
}

.match-modal-content #goalsList .event-category-penalty .event-category-title {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.match-modal-content #goalsList .penalty-event-icon {
    color: #f97316;
}

/* Match detail modal: keep mobile layout inside the viewport. */
@media (max-width: 576px) {
    .match-modal-header.premium-header {
        padding: 18px 18px 14px;
        align-items: flex-start;
        gap: 16px;
    }
    .match-modal {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .match-modal-content.premium-modal {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        margin: 10px auto;
        border-radius: 16px;
    }

    .match-modal-content.premium-modal,
    .match-modal-content.premium-modal * {
        box-sizing: border-box;
    }

    .match-modal-header.premium-header,
    .match-modal-body {
        min-width: 0;
    }

    .match-tabs-premium,
    .combined-lineup-shell,
    .combined-lineup-board,
    .combined-futsal-pitch,
    .combined-bench-grid,
    .match-statistics,
    .match-stat-list,
    .match-modal-content #goalsList.pro-goals-container {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .combined-lineup-board {
        padding: 8px;
    }

    .combined-lineup-head {
        gap: 6px;
        grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
    }

    .combined-lineup-versus {
        width: 30px;
        height: 30px;
        font-size: 9px;
    }

    .combined-futsal-pitch {
        min-height: min(720px, calc(100vw * 1.95));
        border-radius: 14px;
    }

    .combined-futsal-pitch .modal-pitch-player {
        width: 58px;
        transform: translate(-50%, -50%);
    }

    .combined-futsal-pitch .modal-pitch-player strong,
    .combined-futsal-pitch .modal-pitch-player em {
        max-width: 58px;
        padding-inline: 3px;
    }

    .combined-bench-player {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 7px;
    }

    .combined-bench-player img {
        width: 34px;
        height: 34px;
    }

    .match-modal-body {
        overflow-x: hidden;
    }

    .match-modal-content.premium-modal {
        height: auto;
        min-height: calc(100vh - 20px);
    }

    .match-tabs-premium {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        padding: 6px;
    }

    .match-tabs-premium .match-tab,
    .match-tabs-premium .match-tab.active,
    .match-tabs-premium .match-tab[data-tab="goals"].active,
    .match-tabs-premium .match-tab[data-tab="lineups"].active,
    .match-tabs-premium .match-tab[data-tab="statistics"].active {
        min-width: 0;
        padding: 8px 4px;
        gap: 4px;
        border-radius: 9px;
        font-size: 9px;
        line-height: 1.1;
        white-space: normal;
    }

    .match-tabs-premium .match-tab i {
        flex: 0 0 auto;
        font-size: 11px;
    }

    .match-detail-header-premium {
        padding: 26px 8px 24px;
    }

    .match-teams-comparison {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: start;
        gap: 6px;
        width: 100%;
        margin-bottom: 20px;
    }

    .team-side {
        width: 100%;
        max-width: none;
        min-width: 0;
        gap: 6px;
    }

    .team-logo-glow {
        width: 52px;
        height: 52px;
        padding: 7px;
        border-radius: 14px;
    }

    .team-logo-glow::after {
        border-radius: 16px;
    }

    .team-logo-large-p.team-logo-placeholder {
        font-size: 25px;
    }

    .p-team-name {
        display: -webkit-box;
        max-width: 100%;
        overflow: hidden;
        font-size: 10px;
        line-height: 1.15;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        word-break: break-word;
    }

    .p-team-uniform {
        display: -webkit-box;
        max-width: 100%;
        overflow: hidden;
        margin-top: -2px;
        font-size: 8px;
        line-height: 1.15;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        word-break: break-word;
    }

    .vs-score-center {
        min-width: 104px;
        gap: 6px;
    }

    .match-full-time-label {
        padding: 4px 8px;
        font-size: 8px;
        letter-spacing: 0.04em;
    }

    .score-display-premium .scoreboard-final {
        grid-template-columns: 28px 28px 28px;
        min-width: 84px;
        column-gap: 4px;
    }

    .score-display-premium .score-side {
        min-width: 28px;
        min-height: 44px;
    }

    .score-display-premium .scoreboard-final .score-main {
        font-size: 36px;
    }

    .score-display-premium .score-vs {
        font-size: 20px;
    }

    .score-display-premium .score-penalty {
        top: 29px;
        font-size: 16px;
    }

    .score-display-premium .score-side:first-child .score-penalty {
        right: 0;
    }

    .score-display-premium .score-side:last-child .score-penalty {
        left: 0;
    }

    .match-meta-info {
        width: min(190px, 100%);
        margin-inline: auto;
        gap: 8px;
    }

    .meta-item {
        max-width: 100%;
        gap: 5px;
        font-size: 9px;
        line-height: 1.25;
    }

    .meta-item span {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

/* Compact lineup badges on phones (match detail loaded via get_match_detail.php). */
@media (max-width: 680px) {
    .combined-futsal-pitch .combined-pitch-team-label {
        max-width: 38%;
        padding: 3px 6px;
        font-size: 7px;
        line-height: 1.1;
    }

    .combined-lineup-head .combined-team-summary strong {
        font-size: 9px;
    }

    .combined-futsal-pitch .modal-pitch-player {
        width: 54px;
    }

    .combined-futsal-pitch .modal-pitch-player strong {
        width: auto;
        max-width: 54px;
        padding: 2px 3px;
        font-size: 6px;
        line-height: 1;
    }

    .combined-futsal-pitch .modal-pitch-player em {
        width: auto;
        max-width: 54px;
        padding: 2px 3px;
        font-size: 5.5px;
        line-height: 1;
    }
}

/* Final match moments sizing: keep modal normal, video first, photos medium thumbnails. */
.match-modal-content.premium-modal #momentsContent .match-moments {
    width: 100%;
    padding-top: 4px;
    gap: 28px;
}

.match-modal-content.premium-modal #momentsContent .match-moment-section {
    display: grid;
    gap: 14px;
}

.match-modal-content.premium-modal #momentsContent .match-moment-section + .match-moment-section {
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid #dbe3ef;
}

.match-modal-content.premium-modal #momentsContent .match-moment-videos,
.match-modal-content.premium-modal #momentsContent .match-moment-video {
    width: 100% !important;
    max-width: 100% !important;
}

.match-modal-content.premium-modal #momentsContent .match-moment-video iframe {
    width: 100% !important;
    min-height: 0;
    aspect-ratio: 16 / 9;
}

.match-modal-content.premium-modal #momentsContent .match-moment-photos {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start;
    gap: 10px !important;
}

.match-modal-content.premium-modal #momentsContent .match-moment-photo {
    flex: 0 0 128px !important;
    width: 128px !important;
    height: 92px !important;
    max-width: 128px !important;
}

.match-modal-content.premium-modal #momentsContent .match-moment-photo img {
    display: block !important;
    width: 128px !important;
    height: 92px !important;
    max-width: 128px !important;
    object-fit: cover !important;
}

@media (max-width: 600px) {
    .match-modal-content.premium-modal #momentsContent .match-moment-photo {
        flex-basis: calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
        height: auto !important;
        max-width: none !important;
        aspect-ratio: 4 / 3;
    }

    .match-modal-content.premium-modal #momentsContent .match-moment-photo img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
    }
}

@media (max-width: 640px) {
    .dashboard-header-home::before,
    .stats-overview-section::after,
    .stat-card,
    .stat-card__icon,
    .stat-card__floating-icon,
    .match-video-link,
    .match-video-link::before,
    .home-match-card::before,
    .section-container::before {
        animation: none !important;
    }

    .stat-card {
        opacity: 1 !important;
        transform: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
    }

    .stat-card--visible,
    .stat-card:hover,
    .match-card:hover,
    .match-item-card:hover,
    .news-item-large:hover,
    .news-item-small:hover,
    .winner-premium-card:hover,
    .home-match-card:hover {
        transform: none !important;
    }

    .stat-card__glow {
        filter: blur(8px) !important;
        opacity: 0.72 !important;
    }

    .stat-card__floating-icon {
        filter: none !important;
        opacity: 0.16 !important;
    }

    .match-video-link::before {
        display: none !important;
    }
}

/* Centered event identity in the match detail header. */
.match-modal-header.premium-header {
    position: relative;
    justify-content: center;
    padding: 20px 56px 18px;
}

.match-modal-header.premium-header .header-content {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: 100%;
    text-align: center;
}

.premium-header .match-event-branding,
.premium-header .header-icon.match-event-branding {
    width: 64px;
    height: 64px;
    min-width: 64px;
    flex: 0 0 64px;
    border-radius: 10px;
}

.premium-header .match-event-branding.has-event-logo {
    padding: 4px;
}

.premium-header .match-event-logo {
    border-radius: 8px;
}

.premium-header .match-title-copy {
    align-items: center;
    gap: 3px;
    width: 100%;
    text-align: center;
}

.premium-header .match-title-badge.event {
    display: block;
    width: 100%;
    max-width: 620px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #172033;
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
}

.premium-header .match-title-badges {
    justify-content: center;
    width: 100%;
}

.premium-header .match-title-badge.week {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f59e0b;
    font-size: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.match-modal-header.premium-header .match-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
}

@media (max-width: 576px) {
    .match-modal-header.premium-header {
        align-items: center;
        gap: 8px;
        padding: 16px 48px 14px;
    }

    .match-modal-header.premium-header .header-content {
        align-items: center;
        gap: 7px;
    }

    .premium-header .match-event-branding,
    .premium-header .header-icon.match-event-branding {
        width: 54px;
        height: 54px;
        min-width: 54px;
        flex-basis: 54px;
    }

    .premium-header .match-title-badge.event {
        font-size: 14px;
    }

    .premium-header .match-title-badge.week {
        font-size: 17px;
    }

    .match-modal-header.premium-header .match-modal-close {
        top: 12px;
        right: 12px;
    }
}
