:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #06aa48;
    /* Globo Esporte Green-ish */
    --accent-hover: #058c3b;
    --border: #333333;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box_sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    padding-bottom: 50px;
}

header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.date-selector {
    display: flex;
    gap: 10px;
}

input[type="date"] {
    background-color: #333;
    color: white;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

button#refresh-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

button#refresh-btn:hover {
    background-color: var(--accent-hover);
}

.api-info-section {
    margin-top: 20px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.api-info-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
}

.api-url-box {
    display: flex;
    gap: 10px;
}

#api-url-display {
    flex: 1;
    background: #000;
    border: 1px solid var(--border);
    color: #00ff66;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
}

#copy-btn {
    background: #333;
    border: 1px solid var(--border);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

#copy-btn:hover {
    background: #444;
}

#copy-btn:active {
    background: var(--accent);
}

main {
    margin-top: 20px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.error-msg {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 8px;
    margin: 20px 0;
}

/* Championship Section */
.championship-section {
    margin-bottom: 30px;
}

.championship-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.championship-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
}

/* Match Card */
.match-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.match-card:hover {
    transform: translateY(-2px);
    background-color: #252525;
}

.match-info-top {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
}

.match-status {
    background: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.match-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.team-name {
    font-weight: 600;
    font-size: 1rem;
    max-width: 120px;
}

.scoreboard {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.match-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.match-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.transmissions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.channel-tag {
    background: #333;
    border: 1px solid #444;
    padding: 3px 10px;
    border-radius: 4px;
    color: #00ff66;
    /* Accent color for visibility */
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .match-content {
        gap: 10px;
    }

    .team-logo {
        width: 40px;
        height: 40px;
    }

    .team-name {
        font-size: 0.9rem;
    }

    .score {
        font-size: 1.5rem;
    }
}