body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; /* Apple-like font stack */
    margin: 0;
    padding: 20px;
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light default text */
}

h1 {
    text-align: center;
    color: #f0f0f0; /* Brighter white for title */
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h2 {
    text-align: center;
    color: #b0b0b0; /* Lighter gray for subheadings */
    font-weight: 500;
}

#last-updated {
    text-align: center;
    color: #888; /* Dim color for less important info */
    font-size: 0.9em;
    margin-bottom: 20px;
    font-style: italic;
}

#scores {
    background-color: #1e1e1e; /* Dark card background */
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 1px solid #333; /* Subtle border */
}

/* Hide default h2 title if it exists (we have custom layout) */
#scores > h2:first-child {
    display: none;
}

.required-points {
    text-align: center;
    font-weight: 500;
    font-size: 1em;
    margin-bottom: 5px;
    color: #b0b0b0;
}

.required-value {
    font-size: 1.8em; /* Larger required points value */
    font-weight: 600;
    line-height: 1.2;
    color: #f0f0f0; /* Bright value */
    margin-bottom: 20px; /* Space below required points */
}

#overall-scores-container {
    display: flex;
    justify-content: space-between; /* Push scores to edges */
    align-items: center;
    margin-top: 10px;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; /* Consistent font */
    padding: 0 5%;
}

.team-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px; /* Slightly wider */
}

.score-value {
    font-size: 3.5em; /* Even larger score */
    line-height: 1;
    margin-bottom: 8px;
    font-weight: 700; /* Bolder score */
    color: #f5f5f5; /* Very bright score */
}

.york-color {
    background-color: #e0e0e0; /* Light Gray/White for York */
    border: 1px solid #555;
}

.lancaster-color {
    background-color: #c00; /* Brighter Red */
    border: 1px solid #e55;
}

.team-name {
    font-size: 1.3em; /* Slightly smaller but bolder */
    margin-top: 8px;
    font-weight: 600; /* Bolder */
    color: #c0c0c0; /* Light gray team name */
    text-transform: uppercase;
}

.progress-visualization-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
    height: 15px; /* Slimmer progress bar */
    margin: 0 15px;
    position: relative;
    background-color: #444; /* Background track for progress */
    border-radius: 8px;
    overflow: hidden; /* Clip bars to rounded corners */
}

.progress-bar {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease-in-out;
    border: none; /* Remove borders from bars */
}

.lancaster-color.progress-bar {
    margin-left: auto;
}

.trophy-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.trophy-icon {
    font-size: 1.5em;
    color: #ffd700; /* Brighter Gold trophy */
    line-height: 1;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.trophy-line {
    width: 2px;
    height: 15px; /* Match bar height */
    background-color: #777; /* Slightly lighter line */
    margin-top: 0px; /* Align directly below icon */
}

#results-table {
    background-color: #1e1e1e; /* Dark card background */
    padding: 10px; /* Less padding inside table card */
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow-x: auto;
    border: 1px solid #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    color: #e0e0e0; /* Light text in table */
}

th, td {
    border: none; /* Remove all borders */
    border-bottom: 1px solid #282828; /* Very subtle line between rows */
    padding: 14px 15px;
    text-align: left;
    vertical-align: middle;
}

td:first-child, th:first-child {
     padding-left: 20px; /* More padding on the left */
}

td:last-child, th:last-child {
     padding-right: 20px; /* More padding on the right */
}

th {
    background-color: #2a2a2a; /* Slightly lighter dark for header */
    color: #f0f0f0; /* White text */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
    position: sticky; /* Keep header visible on scroll */
    top: 0;
    z-index: 1;
}

tbody tr:last-child td {
    border-bottom: none; /* No line after last row */
}

tbody tr:hover {
    background-color: #303030; /* Hover effect */
}

.york-winner-highlight {
    background-color: rgba(204, 0, 0, 0.3); /* Semi-transparent Red for York win row */
}

.lancaster-winner-highlight {
    background-color: rgba(224, 224, 224, 0.2); /* Semi-transparent Light Gray/White for Lancaster win row */
}

.status-complete { color: green; font-weight: bold; }
.status-upcoming { color: orange; }
.status-live { color: red; font-weight: bold; }

.winner {
    font-weight: bold;
    /* color: darkgreen; */ /* Example */
}

.team-logo {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.fixture-status {
    font-size: 0.9em;
    color: #aaa;
}

.live-dot {
    height: 8px;
    width: 8px;
    background-color: #00ff00; /* Green */
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
