/* Vertical Display (1080x1920) Styling */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', sans-serif;
    background-color: #98caec;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 1080px;
    max-width: 1080px;
    margin: 0 auto;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
}

/* Headers */
h1 {
    text-align: center;
    font-size: 72px;
    padding: 40px 20px 0 20px;
    margin: 0;
    color: #382510;
    font-family: "profile-pro", sans-serif;
    font-weight: 500;
    font-style: normal;
    line-height: 1.1;
}

h2 {
    text-align: center;
    font-size: 40px;
    padding: 10px 20px 20px 20px;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    font-family: "profile-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Field Name Card */
.field-card {
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    margin: 0 20px 20px 20px;
}

.field-name {
    text-align: center;
    font-size: 28px;
    padding: 12px;
    margin: 0;
    color: white;
    background-color: #382510;
    font-family: "profile-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
}

/* Matches Container */
.matches-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
}

/* Match Card */
.match-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 35px;
    gap: 20px;
}

/* Team Styling */
.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.team-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.team-name {
    font-size: 32px;
    font-weight: 500;
    text-align: center;
    color: #382510;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Match Center (Score/Time) */
.match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.time-or-result {
    font-size: 36px;
    font-weight: bold;
    border: 2px solid #aaa;
    border-radius: 12px;
    padding: 8px 15px;
    background-color: white;
    color: #382510;
    text-align: center;
    min-width: 120px;
}

.time-or-result.result {
    color: white;
    background-color: #382510;
    border: 2px solid #382510;
}

/* Cancelled Badge */
.cancelled-badge {
    font-size: 28px;
    font-weight: bold;
    border: 2px solid #d32f2f;
    border-radius: 12px;
    padding: 8px 15px;
    background-color: #d32f2f;
    color: white;
    text-align: center;
    min-width: 120px;
}

/* Live Score Animation */
@keyframes flash-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.time-or-result.live-score {
    position: relative;
    animation: pulse-border 2s infinite;
}

.time-or-result.live-score::before {
    content: 'LIVE';
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: bold;
    color: #d32f2f;
    animation: flash-dot 1.5s infinite;
    letter-spacing: 2px;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #382510;
    }
    50% {
        border-color: #d32f2f;
    }
}

/* No Matches */
.no-matches {
    text-align: center;
    font-size: 32px;
    color: #382510;
    padding: 40px;
}

/* Responsive adjustments for exact 1080x1920 */
@media (max-width: 1080px) {
    body {
        width: 100%;
    }

    .matches-container {
        max-width: 100%;
    }
}
