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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem;
    background-color: #fff;
    min-height: 100vh;
}

.player-header-container {
    display: grid;
    grid-template-columns: 1fr 30%;
    grid-template-rows: auto auto;
    gap: 1rem 4rem;
    margin-bottom: 50px;
    grid-template-areas: 
        "header photo"
        "info photo";
}

/* Header Section */
.player-header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
}

.player-info h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.player-info .kana-name {
    font-size: 1.2rem;
    line-height: 1.2;
    color: #666;
    font-weight: 400;
}

.squad-number {
    font-size: 5rem;
    font-weight: 500;
    color: #333;
    line-height: 1;
    font-family: "Oswald", sans-serif;
}

.player-photo {
    grid-area: photo;
    width: 100%;
    aspect-ratio: 3/4;
    background-color: #e9ecef;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.1rem;
    overflow: hidden;
}

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

.basic-info {
    grid-area: info;
    padding: 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #e9ecef;
}

.info-table tr {
    border-bottom: 1px solid #e9ecef;
}

.info-table th {
    background-color: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    width: 120px;
}

.info-table td {
    padding: 12px 16px;
    color: #333;
}

/* Tournament Data Section */
.tournament-data {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.section-title.u18 {
    color: var(--u18-main);
}

.section-title.u15 {
    color: var(--u15-main);
}

.section-title.girls {
    color: var(--girls-main);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    /* border: 1px solid #e9ecef; */
    border-radius: 8px;
    /* padding: 24px; */
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 4rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 8px;
    font-family: "Oswald", sans-serif;
}

.u18 .stat-number {
    color: var(--u18-main);
}

.u15 .stat-number {
    color: var(--u15-main);
}

.girls .stat-number {
    color: var(--girls-main);
}

.stat-label,
.stat-detail-label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 600;
    width: 100%;
    background-color: #f8f9fa;
    padding: 8px 10px;
}

.has-breakdown {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.breakdown-list {
    list-style: none;
    width: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 4rem;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.breakdown-list li {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.breakdown-list li span {
    font-size: 0.8rem;
}

.stats-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.stat-detail {
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-detail-number {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 4px;
    font-family: "Oswald", sans-serif;
}

.u18 .stat-detail-number {
    color: var(--u18-main);
}

.u15 .stat-detail-number {
    color: var(--u15-main);
}

.girls .stat-detail-number {
    color: var(--girls-main);
}

/* Match Table */
.match-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.match-table th {
    background-color: #f8f9fa;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    font-size: 0.9rem;
}

.match-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.match-table tr:hover {
    background-color: #f8f9fa;
}

.win-indicator {
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.win { background-color: #d4edda; color: #155724; }
.draw { background-color: #fff3cd; color: #856404; }
.loss { background-color: #f8d7da; color: #721c24; }

.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clickable-row:hover {
    background-color: #f5f5f5;
}

/* Responsive Design */
@media (max-width: 968px) {
    .player-header-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 2rem;
        grid-template-areas: 
            "header"
            "photo"
            "info";
    }
    
    .player-photo {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 2rem;
    }

    .player-header-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1.5rem;
        grid-template-areas: 
            "header"
            "photo"
            "info";
    }

    .player-header {
        padding: 1rem;
        align-items: flex-start;
        gap: 16px;
    }

    .player-info h1 {
        font-size: 2rem;
    }

    .squad-number {
        font-size: 4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        margin-bottom: 16px;
    }

    .breakdown-list {
        padding: 1rem 2rem;
    }

    .stats-details {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .match-table {
        font-size: 0.8rem;
    }

    .match-table th,
    .match-table td {
        padding: 8px 4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .player-header-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1rem;
        grid-template-areas: 
            "header"
            "photo"
            "info";
    }

    .player-info h1 {
        font-size: 1.75rem;
    }

    .player-photo {
        width: 80%;
    }

    .info-table th,
    .info-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .squad-number {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stats-grid {
        margin-bottom: 8px;
    }

    .has-breakdown {
        grid-template-columns: 35% 1fr;
        padding: 0.75rem;
    }

    .breakdown-list {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .stat-detail-number {
        font-size: 2.5rem;
    }

    .stats-details {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .stat-label, .stat-detail-label {
        font-size: 0.8rem;
    }

    .match-table th,
    .match-table td {
        padding: 6px 2px;
        font-size: 0.75rem;
    }
} 