        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background: #1a1a1a;
            color: #fff;
            padding: 15px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        /* HEADER */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #2a2a2a;
            padding: 12px 20px;
            margin-bottom: 15px;
            border-radius: 5px;
            gap: 20px;
        }

        .header .team-info {
            flex: 1;
        }

        .team-name {
            font-weight: bold;
            font-size: 14px;
        }

        .formation {
            font-size: 11px;
            color: #999;
        }

        .score {
            font-size: 36px;
            font-weight: bold;
            text-align: center;
            min-width: 60px;
        }

        /* TABS */
        .tabs {
            display: flex;
            gap: 5px;
            margin-bottom: 15px;
        }

        .tab-btn {
            padding: 10px 16px;
            background: #2a2a2a;
            border: none;
            color: #999;
            cursor: pointer;
            font-size: 13px;
            border-radius: 5px 5px 0 0;
            transition: all 0.3s;
        }

        .tab-btn.active {
            background: #3a3a3a;
            color: #fff;
            border-bottom: 3px solid #667eea;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* SÂN BÓNG */
        .pitch-section {
            background: #2a2a2a;
            border-radius: 5px;
            margin-bottom: 15px;
        }

        .pitch-wrapper {
            position: relative;
            background: linear-gradient(90deg, #1a5a3a 0%, #2d8659 50%, #1a5a3a 100%);
            border: 3px solid #fff;
            border-radius: 5px;
            aspect-ratio: 2.5 / 1;
        }

        svg.pitch {
            width: 100%;
            height: 100%;
        }

        .players-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10;
        }

        .player-item {
            position: absolute;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .player-item:hover {
            transform: scale(1.15);
            z-index: 20;
        }

        .player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex
;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
}

        .home .player-avatar {
            background: linear-gradient(135deg, #E63946, #D62828);
        }

        .away .player-avatar {
            background: linear-gradient(135deg, #457B9D, #1D3557);
        }

        .player-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .player-number {
            position: absolute;
            top: -6px;
            right: -6px;
            background: #FFD700;
            color: #000;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 8px;
            font-weight: bold;
            border: 1px solid white;
        }

        .player-name {
            position: absolute;
    font-size: 14px;
    text-align: center;
    line-height: 1;
    white-space: normal;
    overflow: hidden;
    bottom: -14px;
        }

        .player-rating {
            font-size: 7px;
            color: #FFD700;
        }

        /* PLAYER INFO - SMALL BOX (luôn hiển thị) */
        .player-info-small {
            position: absolute;
            right: -75px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.75);
            border: 1px solid rgba(102, 126, 234, 0.5);
            border-radius: 6px;
            padding: 8px;
            width: 70px;
            font-size: 10px;
            color: #fff;
            opacity: 1;
            transition: all 0.3s;
            z-index: 25;
        }

        .player-item:hover .player-info-small {
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s;
        }

        .player-info-small .info-row {
            display: flex;
            justify-content: space-between;
        }

        .player-info-small .label {
            color: #999;
            font-size: 9px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .player-info-small .value {
            color: #FFD700;
            font-weight: bold;
            font-size: 10px;
        }

        /* PLAYER INFO - LARGE BOX (hiển thị khi hover) */
        .player-info-large {
            position: absolute;
            right: -200px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.85);
            border: 2px solid #667eea;
            border-radius: 8px;
            padding: 14px;
            width: 180px;
            font-size: 12px;
            color: #fff;
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s;
            z-index: 30;
            box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
        }

        .player-item:hover .player-info-large {
            opacity: 1;
            pointer-events: auto;
        }

        .player-info-large .info-row {
            display: flex;
            justify-content: space-between;
            margin: 8px 0;
            padding: 5px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .player-info-large .info-row:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        .player-info-large .label {
            color: #999;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .player-info-large .value {
            color: #FFD700;
            font-weight: bold;
            font-size: 12px;
        }

        /* TIMELINE DIỄN BIẾN */
        .timeline-section {
            background: #2a2a2a;
            border-radius: 5px;
            padding: 20px;
            max-height: 700px;
            overflow-y: auto;
        }

        .timeline-section::-webkit-scrollbar {
            width: 6px;
        }

        .timeline-section::-webkit-scrollbar-track {
            background: #333;
        }

        .timeline-section::-webkit-scrollbar-thumb {
            background: #667eea;
            border-radius: 3px;
        }

        .timeline-container {
            position: relative;
        }

        .timeline-center-line {
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom, #667eea, #764ba2);
            transform: translateX(-50%);
        }

        .timeline-event {
            display: flex;
            align-items: center;
            margin: 12px 0;
            position: relative;
            min-height: 50px;
        }

        .event-side {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .event-left {
            justify-content: flex-end;
        }

        .event-right {
            justify-content: flex-start;
        }

        .event-center {
            width: 60px;
            text-align: center;
            font-weight: bold;
            color: #667eea;
            font-size: 12px;
            z-index: 5;
            background: #2a2a2a;
            padding: 0 5px;
        }

        .event-icon {
            font-size: 20px;
            min-width: 28px;
            text-align: center;
            flex-shrink: 0;
        }

        .event-content {
            background: rgba(102, 126, 234, 0.1);
            border-radius: 4px;
            padding: 6px 10px;
            font-size: 10px;
            flex: 0 1 45%;
            border: 1px solid rgba(102, 126, 234, 0.3);
        }

        .event-left .event-content {
            text-align: right;
            order: -1;
        }

        .player-name-event {
            color: #FFD700;
            font-weight: bold;
            display: block;
        }

        .assist-text {
            font-size: 8px;
            color: #999;
            margin-top: 2px;
        }

        /* Event Types */
        .event.goal .event-content {
            border-color: #E63946;
            background: rgba(230, 57, 70, 0.15);
        }

        .event.yellow .event-content {
            border-color: #FFD700;
            background: rgba(255, 215, 0, 0.15);
        }

        .event.red .event-content {
            border-color: #DC2F02;
            background: rgba(220, 47, 2, 0.15);
        }

        .event.sub .event-content {
            border-color: #457B9D;
            background: rgba(69, 123, 157, 0.15);
        }

        @media (max-width: 1024px) {
            .pitch-wrapper {
                aspect-ratio: 2 / 1;
            }

            .player-avatar {
                width: 30px;
                height: 30px;
                font-size: 14px;
            }

            .player-number {
                width: 16px;
                height: 16px;
                font-size: 7px;
            }

            .player-name {
                font-size: 7px;
                max-width: 38px;
            }
        }

        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }

            .pitch-wrapper {
                aspect-ratio: 1.5 / 1;
            }

            .player-avatar {
                width: 24px;
                height: 24px;
                font-size: 12px;
            }

            .event-content {
                font-size: 8px;
                padding: 4px 6px;
            }

            .event-center {
                font-size: 10px;
                width: 50px;
            }
        }

        /* ===== MOBILE RESPONSIVE ===== */
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }

            .container {
                max-width: 100%;
            }

            /* Header responsive */
            .header {
                flex-wrap: wrap;
                padding: 10px 15px;
                gap: 10px;
                margin-bottom: 10px;
            }

            .header .team-info {
                flex: 1 1 45%;
            }

            .team-name {
                font-size: 12px;
            }

            .formation {
                font-size: 10px;
            }

            .score {
                font-size: 28px;
                min-width: 50px;
                flex: 0 1 auto;
            }

            /* Tabs responsive */
            .tabs {
                gap: 3px;
                margin-bottom: 10px;
                overflow-x: auto;
            }

            .tab-btn {
                padding: 8px 12px;
                font-size: 11px;
                white-space: nowrap;
                flex-shrink: 0;
            }

            /* SÂN BÓNG DỌC CHO MOBILE */
            .pitch-wrapper {
                aspect-ratio: 0.6 / 1;
            }

            /* Ẩn thông tin trên mobile */

            .player-info-small {
        position: absolute;
        right: 0;
        top: 0;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.75);
        border: 1px solid rgba(102, 126, 234, 0.5);
        border-radius: 6px;
        padding: 3px;
        width: 55px;
        font-size: 10px;
        color: #fff;
        opacity: 1;
        transition: all 0.3s;
        z-index: 25;
    }
.player-info-small .label {
    font-size: 6px;
}
.player-name {
        font-size: 10px;
        max-width: 50px;
    }
    .player-name {
    bottom: -10px;
}

            .player-info-large {
                display: none !important;
            }

            /* Giảm kích thước avatar */
            .player-avatar {
                width: 45px;
                height: 45px;
                font-size: 12px;
                border: 1.5px solid white;
            }

            .player-number {
                width: 15px;
                height: 15px;
                font-size: 6px;
            }

            .player-rating {
                display: none;
            }

            /* Pitch section */
            .pitch-section {
                padding: 12px;
                margin-bottom: 10px;
            }

            /* Timeline responsive */
            .timeline-event {
                padding: 10px !important;
                margin: 8px 0 !important;
                font-size: 12px;
            }

            .event-icon {
                font-size: 18px !important;
            }

            .event-time {
                font-size: 12px;
            }

            .player-name-event {
                font-size: 12px;
            }

            .assist-text {
                font-size: 11px;
                margin-top: 3px;
            }

            .event-side {
                flex: 1;
            }

            .event-content {
                font-size: 11px;
            }

            /* Bench players */
            .bench-section {
                margin-top: 12px;
            }

            .bench-label {
                font-size: 13px;
                margin-bottom: 8px;
            }

            .bench-players {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .bench-player-item {
                padding: 8px;
                font-size: 10px;
                text-align: center;
            }

            .bench-avatar {
                width: 40px;
                height: 40px;
                font-size: 10px;
                margin: 0 auto 4px;
            }

            .bench-avatar .player-number {
                width: 13px;
                height: 13px;
                font-size: 5px;
            }
            .player-info-small .info-row {
    margin: 0;
    padding: 0;
        }
        }

        @media (max-width: 480px) {
            body {
                padding: 8px;
            }

            .header {
                padding: 8px 12px;
                gap: 8px;
            }

            .team-name {
                font-size: 10px;
            }

            .formation {
                font-size: 9px;
            }

            .score {
                font-size: 22px;
            }

            .tab-btn {
                padding: 6px 10px;
                font-size: 10px;
            }

            .player-avatar {
                width: 40px;
                height: 40px;
                font-size: 10px;
            }

            .player-number {
                width: 13px;
                height: 13px;
                font-size: 5px;
            }

            .pitch-section {
                padding: 10px;
                margin-bottom: 8px;
            }

            .timeline-event {
                padding: 8px !important;
                margin: 6px 0 !important;
                font-size: 11px;
            }

            .event-icon {
                font-size: 16px !important;
            }

            .event-content {
                font-size: 10px;
            }

            .event-center {
                font-size: 11px;
                width: 45px;
            }

            .bench-players {
                grid-template-columns: repeat(2, 1fr);
                gap: 6px;
            }

            .bench-player-item {
                padding: 6px;
                font-size: 9px;
            }

            .bench-avatar {
                width: 35px;
                height: 35px;
                font-size: 9px;
            }
        }
        @media (max-width: 768px) {
            svg.pitch {
                 height: auto;
                }
        }