body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: url('/football_cursor.png'), pointer;
}
header { text-align: center; margin-bottom: 20px; }
h1 { color: #004170; }
.logo-psg { width: 50px; height: auto; }
#lyrics-loader {
    height: 100px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
    color: #004170;
    font-style: italic;
    font-size: 1.2em;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    margin: 40px 0;
}
.loader {
  width: 10px;
  padding: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #004170;
  --_m: 
    conic-gradient(#0000 10%,#000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {to{transform: rotate(1turn)}}
.lyric-line {
    margin: 0;
    padding: 0;
}
#dots {
    display: inline-block;
    width: 1.2em;
    text-align: left;
}
main#main-content {
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.3s;
}
.hidden {
    opacity: 0;
    pointer-events: none;
}
body.loaded #lyrics-loader {
    opacity: 0;
    display: none;
}
body.loaded main#main-content {
    opacity: 1;
}
#matches-container { width: 100%; }
.match-wrapper {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 15px auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards;
}
.match-card {
    position: relative;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    width: 100%;
    border-left: 5px solid #d00a2a;
    box-sizing: border-box;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.match-wrapper:hover .match-card,
.match-wrapper:active .match-card {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.countdown {
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8em;
    font-weight: 700;
    color: #b0b0b0;
    width: 80px;
    text-align: right;
    font-style: italic;
    box-sizing: border-box; 
}
.match-card h2 { font-size: 1.1em; color: #555; margin: 0 0 5px 0; font-weight: 500; }
.match-card p { margin: 5px 0; font-size: 1.2em; }
.teams { color: #004170; }
.teams .opponent { font-weight: normal; }
.teams .psg { font-weight: bold; }
.ldc-card {
    background-color: #f9d876;
    background-image: linear-gradient(145deg, #f9e08a 30%, #d9b24a 80%);
    border-left-color: #004170;
}
.channels { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 15px; }
.channel-tag { background-color: #004170; color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.9em; font-weight: bold; }
#loading { font-size: 1.2em; color: #333; text-align: center; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.subtitle {
    margin-top: -10px;
    color: #666;
    font-size: 1.1em;
    max-width: 500px;
}
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8em;
    color: #888;
}
footer a {
    color: inherit;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
#toggle-standings-btn {
    margin-top: 15px;
    background-color: #004170;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.5s ease-in-out;
    scroll-margin-top: 20px;
}
#toggle-standings-btn:hover {
    background-color: #005a9c;
}
.widget-container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto 20px auto;
    overflow: hidden;
    max-height: 0;
    transition: max-height 1s ease-in-out; 
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.widget-container.visible {
    max-height: 380px; 
}
.standings-wrapper {
    max-height: 380px; 
    overflow-y: auto;
    scrollbar-width: thin;          
    scrollbar-color: #d00a2a #f0f2f5;
    scroll-snap-type: y mandatory;
}
.standings-wrapper::-webkit-scrollbar {
    width: 5px;
}
.standings-wrapper::-webkit-scrollbar-track {
    background: #f0f2f5;
}
.standings-wrapper::-webkit-scrollbar-thumb {
    background-color: #d00a2a;
    border-radius: 20px;
}

.standings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9em;
}
.standings-table th, .standings-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
}

.standings-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    border-top: 1px solid #f0f2f5;
}
.standings-table tbody tr:last-child td {
    border-bottom: none;
}
.standings-table .team-cell {
    display: flex;
    align-items: center;
}
.standings-table .team-crest {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}
.standings-table .psg-row {
    background-color: #e6f0ff;
    font-weight: bold;
}
.standings-table .centered-cell {
    text-align: center;
}
@media (max-width: 850px) {
    .countdown {
        top: 50%;
        left: -70px;
        font-size: 1.1em;
        color: #888;
        width: 100px;
        text-align: center;
        transform: translateY(-50%) rotate(-90deg);
        transform-origin: center;
    }
    .match-wrapper {
        margin-top: 30px;
    }
    .standings-table .team-name-cell {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
}