/* Main Container */
.main-container {
    overflow: hidden;
}

/* Left Content */
.left-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.left-side {
    flex: 2;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.right-side {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.left-content::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Team Header */
.team-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 0;
}

.summary-team-logo {
    width: 90px;
    height: 90px;
}

.summary-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-info h1 {
    font-size: 26px;
    margin-bottom: 4px;
    color: white;
    font-weight: 800;
    text-align: left;
}

.team-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-competition-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.team-competition-name {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    text-align: left;
}

.competition-change-button {
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.competition-change-button:hover {
    border-color: rgba(59, 130, 246, 0.7);
    background: rgba(59, 130, 246, 0.2);
}

/* Navigation Tabs */
.summary-nav-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #2a2a2a;
}

.summary-nav-tab {
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 500;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
}

.summary-nav-tab:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.summary-nav-tab.active {
    color: #fff;
}

.summary-nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #3b82f6;
}

/* Recent Matches Carousel */
.section {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-title {
    color: #f8fafc;
    text-align:left;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
    font-weight: 600;
}

.matches-carousel-container {
    position: relative;
    overflow: hidden;
}

.matches-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.matches-carousel::-webkit-scrollbar {
    display: none;
}

.match-card {
    background-color: rgba(15, 23, 42, 0.7);
    padding: 12px;
    border-radius: 8px;
    width: 160px;
    min-width: 160px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.match-card:hover {
    background-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.match-card.selected {
    border-color: #3b82f6;
    background-color: #1e293b;
}

.fixture-card-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.fixture-logo {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixture-vs-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.match-status {
    color: #94a3b8;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.fixture-score-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.fixture-score {
    color: #94a3b8;
}

.fixture-score-highlight {
    color: #f472b6;
}

.fixture-score-sep {
    color: #94a3b8;
}

.fixture-date {
    color: #cbd5f5;
    font-size: 0.7rem;
}

.fixture-round {
    color: #94a3b8;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.match-date {
    color: #888;
    font-size: 12px;
    margin-bottom: 12px;
    text-align: center;
}

.match-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.team-name {
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.team-score {
    font-size: 18px;
    font-weight: bold;
    min-width: 25px;
    text-align: center;
    color: white;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(229, 231, 235, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.carousel-nav:hover {
    background-color: rgba(209, 213, 219, 0.95);
}

.carousel-nav.prev {
    left: -5px;
}

.carousel-nav.next {
    right: -5px;
}

.player-info h1 {
    font-size: 36px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.player-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 14px;
    margin-top: 8px;
}

.player-info .player-meta {
    gap: 4px;
    margin-top: 4px;
}

/* Player Header */
.player-header {
    display: flex;
    align-items: center;
    gap: 24px;
    /*margin-bottom: 20px;*/
    /*background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);*/
    /*padding: 25px;*/
    border-radius: 16px;
}

.player-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-match-stats {
    color: white;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    justify-content: center;
    font-size: 11px;
}

.player-match-stat {
    text-align: center;
}

.player-match-stat-value {
    font-size: 14px;
    font-weight: bold;
    color: #3b82f6;
    display: block;
}

.player-match-stat-label {
    color: #888;
    display: block;
    margin-top: 0;
    font-size: 0.65rem;
}


.match-status {
    text-align: center;
    font-size: 11px;
    color: #888;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #2a2a2a;
}

/* Team Stats */
.team-stats-container {
    display: flex;
    gap: 30px;
    /*background-color: #1a1a1a;*/
    padding: 30px;
    border-radius: 12px;
}

.team-stats-container.key-stats-wrapper {
    flex-direction: column;
    gap: 24px;
    padding: 0;
    background: transparent;
}

.key-stats-highlight {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.key-stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.key-stat-pill {
    min-width: 190px;
    padding: 18px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.key-stat-pill__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.key-stat-pill__value {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.record-summary {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.record-track {
    display: flex;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background-color: rgba(148, 163, 184, 0.2);
}

.record-track__segment {
    height: 100%;
}

.record-track__segment.wins {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.record-track__segment.draws {
    background: linear-gradient(90deg, #94a3b8, #cbd5f5);
}

.record-track__segment.defeats {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.record-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.9rem;
    color: #cbd5f5;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-item strong {
    color: #fff;
    font-size: 1rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.wins {
    background-color: #10b981;
}

.legend-dot.draws {
    background-color: #94a3b8;
}

.legend-dot.defeats {
    background-color: #ef4444;
}

.score-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 24px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.score-summary__side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.score-summary__label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #94a3b8;
    text-transform: uppercase;
}

.score-summary__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.score-summary__divider {
    font-size: 1.5rem;
    font-weight: 600;
    color: #475569;
}

.score-summary__badge {
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.highlight-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.highlight-metric {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: #0b2b59;
}

.highlight-metric__label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #94a3b8;
    text-transform: uppercase;
}

.highlight-metric__value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.highlight-metric__subtitle {
    font-size: 0.85rem;
    color: #cbd5f5;
}

.key-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.key-stat-card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(15, 23, 42, 0.65);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.key-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.45);
}

.key-stat-card.warning {
    border-color: rgba(250, 204, 21, 0.4);
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.08), rgba(15, 23, 42, 0.75));
}

.key-stat-card.danger {
    border-color: rgba(248, 113, 113, 0.4);
    background: linear-gradient(180deg, rgba(248, 113, 113, 0.08), rgba(15, 23, 42, 0.75));
}

.key-stat-card__title {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #94a3b8;
    text-transform: uppercase;
}

.key-stat-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.key-stat-card__subtitle {
    font-size: 0.85rem;
    color: #cbd5f5;
}

.stats-circle {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 150px;
    gap: 24px;
}

.stats-circle-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 150px;
}

.stats-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stats-metric__label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #94a3b8;
    text-transform: uppercase;
}

.stats-metric__value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.circle-stat {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid #3b82f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.circle-number {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}

.circle-label {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

.record-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.record-item {
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.record-indicator {
    color: white;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.record-indicator.won {
    background-color: #10b981;
}

.record-indicator.drawn {
    background-color: #888;
}

.record-indicator.lost {
    background-color: #ef4444;
}

.stats-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-value-large {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}

.stat-label {
    color: #888;
    font-size: 13px;
    line-height: 1.4;
}

.stat-sublabel {
    color: #666;
    font-size: 11px;
}

.card-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 20px;
    font-weight: bold;
}

.card-indicator.yellow {
    background-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.card-indicator.red {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Player Stats with Tabbed Design */
.player-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 100%/2, 1fr));
    gap: 24px;
}


.player-stat-panel {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
}

.player-stat-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.player-stat-panel__title h3 {
    margin: 4px 0 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

.player-stat-panel__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

.player-stat-panel__unit {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.player-stat-panel__tabs {
    display: inline-flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 999px;
    padding: 4px;
}

.player-stat-tab {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.player-stat-tab.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.05));
    color: #fff;
}

.player-stat-view {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.player-stat-view.active {
    display: flex;
}

.player-stat-row {
    display: grid;
    grid-template-columns: 55px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.4);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.player-stat-row:hover {
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

.player-stat-rank {
    font-weight: 700;
    color: #94a3b8;
}

.player-stat-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-stat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.player-stat-name {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

.player-stat-value {
    font-weight: 700;
    color: #f8fafc;
}

.player-stat-chart {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.player-stat-chart__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.player-stat-chart__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-stat-chart__bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.player-stat-chart__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #22d3ee 100%);
    border-radius: 999px;
}

.stat-category {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    min-height: 420px;
}

.stat-category-header {
    padding: 20px 20px 0 20px;
}

.stat-category-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: white;
}

.category-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #2a2a2a;
}

.category-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    flex: 1;
}

.category-tab:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.category-tab.active {
    color: #fff;
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #3b82f6;
}

.stat-content {
    padding: 20px;
}

.view-container {
    display: none;
}

.view-container.active {
    display: block;
}

/* Table View */
.player-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background-color: rgba(42, 42, 42, 0.3);
    transition: all 0.3s;
}

.player-stat-item:hover {
    background-color: rgba(42, 42, 42, 0.6);
}

.player-rank {
    color: #888;
    min-width: 20px;
    font-size: 14px;
    font-weight: 600;
}

.player-summary-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    overflow:hidden;
}

.player-summary-avatar img {
    width: 64px;
    height: 64px;
}

.player-info {
    flex: 1;
}

.summary-player-name {
    font-weight: 600;
    font-size: 14px;
}

.player-team {
    color: #888;
    font-size: 12px;
}

.player-value {
    color: white;
    font-size: 18px;
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}

/* Chart View */
.chart-view {
    padding-top: 10px;
}

.chart-bar-item {
    margin-bottom: 18px;
}

.chart-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.chart-bar-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-bar-rank {
    color: #888;
    font-size: 13px;
    font-weight: 600;
    min-width: 20px;
}

.chart-bar-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.chart-bar-value {
    font-size: 16px;
    font-weight: bold;
    color: #3b82f6;
}

.chart-bar-container {
    height: 24px;
    background-color: rgba(42, 42, 42, 0.5);
    border-radius: 6px;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

/* Stacked Bar Chart */
.stacked-bar-container {
    height: 32px;
    background-color: rgba(42, 42, 42, 0.5);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
}

.stacked-bar-segment {
    height: 100%;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    position: relative;
}

.stacked-bar-segment:hover {
    filter: brightness(1.2);
}

.stacked-bar-legend {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    flex-wrap: wrap;
    font-size: 11px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Player Tooltip */
.player-tooltip {
    position: absolute;
    background-color: rgba(10, 10, 10, 0.95);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 12px;
    min-width: 200px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.player-tooltip.visible {
    opacity: 1;
}

.tooltip-header {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}

.tooltip-stat {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}

.tooltip-label {
    color: #888;
}

.tooltip-value {
    font-weight: 600;
    color: #fff;
}

/* Passing Network */
.passing-network-container {
    background: linear-gradient(180deg, #1a4d2e 0%, #0d3320 100%);
    border-radius: 12px;
    padding: 30px 20px;
    position: relative;
    min-height: 600px;
}

.network-player-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.network-player-node:hover {
    transform: scale(1.1);
    z-index: 10;
}

.network-player-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid #3b82f6;
}

.network-player-name {
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 3px 8px;
    border-radius: 10px;
}

.passing-line {
    position: absolute;
    background-color: rgba(59, 130, 246, 0.3);
    height: 2px;
    transform-origin: left center;
    pointer-events: none;
    z-index: 1;
}

.passing-line.strong {
    height: 4px;
    background-color: rgba(59, 130, 246, 0.6);
}

.network-legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(10, 10, 10, 0.8);
    padding: 15px;
    border-radius: 8px;
    font-size: 12px;
}

.network-legend-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.network-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.summary-container-split {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.left-panel {
    flex:2;
    min-width: 200px;
}

/* Right Panel - Lineup */
.right-panel {
    flex: 1;
    min-width: 280px;
    border-radius: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.right-panel.stats-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
    padding: 24px;
}

.right-panel::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.panel-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #2a2a2a;
}

.panel-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    flex: 1;
    text-align: center;
}

.panel-tab:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.panel-tab.active {
    color: #fff;
}

.panel-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #3b82f6;
}

.panel-content {
    display: none;
}

.panel-content.active {
    display: block;
    flex: 1;
}

.squad-list-scroll {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
}

.squad-list-scroll::-webkit-scrollbar {
    width: 6px;
}

.squad-list-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.squad-list-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
}

.lineup-header {
    margin-bottom: 10px;
}

.lineup-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.match-result {
    font-size: 14px;
    color: #888;
}

.match-date-header {
    color: #666;
    font-size: 13px;
    margin-bottom: 25px;
}

/* Squad List */
.squad-section {
    margin-bottom: 30px;
}

.squad-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.squad-section-count {
    font-size: 0.75rem;
    color: #1e293b;
    background: #e2e8f0;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.squad-player-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 8px;
    background-color: rgba(4, 12, 24, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: border-color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
}

.squad-player-item:hover {
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

.squad-player-link {
    text-decoration: none;
    color: inherit;
}

.squad-player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: visible;
}

.player-number-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(226, 232, 240, 0.3);
    z-index: 2;
}

.squad-player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.squad-player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.squad-player-name-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.squad-player-name {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.squad-player-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.meta-pill {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbd5f5;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.4);
}

.squad-player-stats {
    color: #e2e8f0;
    font-size: 0.7rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.squad-player-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.squad-player-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.summary-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.summary-stat-badge.minutes {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.summary-stat-badge.goal {
    background-color: rgba(248, 250, 252, 0.08);
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.3);
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
}

.card-badge.yellow {
    color: #fbbf24;
}

.card-badge.red {
    color: #ef4444;
}

/* Video Highlights Section */
.video-section {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
    display: block;
}

.video-section .video-js .vjs-control-bar,
.video-js .vjs-control-bar {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.video-section .video-js.vjs-user-inactive .vjs-control-bar,
.video-js.vjs-user-inactive .vjs-control-bar {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 20px;
    background-color: #0a0a0a;
    gap: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.video-subtitle {
    font-size: 13px;
    color: #888;
}

.video-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.video-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.video-playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background-color: rgba(42, 42, 42, 0.3);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.video-playlist-item:hover {
    background-color: rgba(42, 42, 42, 0.6);
}

.video-playlist-item.active {
    background-color: rgba(59, 130, 246, 0.2);
    border-left: 3px solid #3b82f6;
}

.video-playlist-thumb {
    width: 40px;
    height: 40px;
    background-color: #2a2a2a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.video-playlist-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.video-playlist-meta {
    font-size: 11px;
    color: #888;
}

.video-description {
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
}

.video-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-player-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-playlist {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.video-playlist::-webkit-scrollbar {
    height: 6px;
}

.video-playlist::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 3px;
}

.video-playlist::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 3px;
}

.video-playlist-item {
    min-width: 140px;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.video-playlist-item:hover {
    background-color: #3a3a3a;
}

.video-playlist-item.active {
    border-color: #3b82f6;
}

.video-playlist-thumb {
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 24px;
}

.video-playlist-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 3px;
}

.video-playlist-meta {
    font-size: 10px;
    color: #888;
}

.lineup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lineup-title {
    font-size: 20px;
    font-weight: 600;
}

.match-result {
    font-size: 16px;
    color: #fff;
    text-align: center;
    width: 100%;
}

.match-date-header {
    color: #666;
    font-size: 13px;
    margin-bottom: 25px;
}

/* Football Pitch */
.summary-pitch-container {
    background: linear-gradient(180deg, #1a4d2e 0%, #0d3320 100%);
    border-radius: 12px;
    padding: 30px 20px;
    position: relative;
    max-width:500px;
    min-height: 600px;
}

.pitch-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.pitch-center-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
}

.pitch-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.formation-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.formation-row:last-child {
    margin-bottom: 0;
}

.player-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.player-node:hover {
    transform: scale(1.1);
}

.player-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.player-label {
    transform: translate(0, -10%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.player-summary-number {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.player-name-pitch {
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.view-all-link {
    color: #3b82f6;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

.view-all-link:hover {
    text-decoration: underline;
}

@media (max-width: 1400px) {
    .right-panel {
        width: 380px;
    }
}

@media (max-width: 1600px) {
    .player-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .player-stats {
        grid-template-columns: 1fr;
    }
}