:root { --primary: #2563eb; --bg: #f1f5f9; --card: #ffffff; --text: #0f172a; --text-muted: #64748b; --border: #e2e8f0; --hover: #f8fafc; --badge-bg: #1e293b; --badge-text: #ffffff; --input-bg: #ffffff; }
body.dark-theme { --primary: #3b82f6; --bg: #0f172a; --card: #1e293b; --text: #f8fafc; --text-muted: #94a3b8; --border: #334155; --hover: #0b1120; --badge-bg: #0f172a; --badge-text: #f8fafc; --input-bg: #0f172a; color-scheme: dark; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 20px; transition: background 0.3s, color 0.3s; }
.container { max-width: 1000px; margin: 0 auto; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; background: var(--card); padding: 15px 25px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid var(--border); transition: 0.3s;}
.top-bar h1 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.theme-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.theme-btn:hover { color: var(--primary); }

.controls-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; position: relative; gap: 15px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 200px; max-width: 350px; }
.search-input { width: 100%; box-sizing: border-box; padding: 9px 15px 9px 35px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); font-family: inherit; font-size: 13px; transition: 0.2s; outline: none; }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 13px; }

.fs-calendar { display: flex; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); margin-left: auto; }
.fs-arrow { padding: 8px 12px; cursor: pointer; color: var(--text-muted); transition: 0.2s; border: none; background: transparent; font-size: 12px; }
.fs-arrow:hover { color: var(--primary); background: var(--hover); }
.fs-center { padding: 8px 20px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); cursor: pointer; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--text); transition: 0.2s; }
.fs-center:hover { background: var(--hover); }
.fs-dropdown { position: absolute; top: 100%; right: 0; margin-top: 5px; background: var(--card); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); width: 160px; max-height: 250px; overflow-y: auto; z-index: 50; display: none; }
.fs-dropdown.show { display: block; }
.fs-drop-item { padding: 10px 15px; font-size: 13px; color: var(--text); cursor: pointer; text-align: center; border-bottom: 1px solid var(--bg); transition: 0.2s; }
.fs-drop-item:last-child { border-bottom: none; }
.fs-drop-item:hover { background: var(--hover); color: var(--primary); }
.fs-drop-item.active { font-weight: 800; color: var(--primary); }

.league-group { margin-bottom: 15px; }
.league-header { background: var(--border); padding: 8px 15px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; text-transform: uppercase; transition: 0.3s;}
.league-header img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }

/* MODIFICARE AICI PENTRU RÂND CLICABIL */
.match-row { display: grid; grid-template-columns: 60px 1fr; gap: 15px; align-items: center; background: var(--card); padding: 12px 15px; border-bottom: 1px solid var(--bg); transition: 0.2s; cursor: pointer; }
.match-row:hover { background: var(--hover); transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border-left: 3px solid var(--primary); }

.time-col { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.match-time { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.status-ft { font-size: 10px; background: #10b981; color: #fff; padding: 2px 6px; border-radius: 4px; font-weight: 800; margin-top: 4px; letter-spacing: 0.5px;}
.status-canc { font-size: 10px; background: var(--text-muted); color: #fff; padding: 2px 6px; border-radius: 4px; font-weight: 800; margin-top: 4px; }
.teams-area { display: flex; flex-direction: column; gap: 6px; }
.team-item { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--text); }
.team-name-group { display: flex; align-items: center; gap: 10px; }
.team-name-group img { width: 20px; height: 20px; object-fit: contain; }
.score-badge { background: var(--badge-bg); color: var(--badge-text); font-size: 12px; font-weight: 800; min-width: 18px; text-align: center; padding: 2px 6px; border-radius: 4px; }

.modal { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.modal-content { background: var(--card); color: var(--text); width: 90%; max-width: 550px; border-radius: 16px; padding: 25px; position: relative; animation: slideUp 0.3s ease; border: 1px solid var(--border); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
#loader { text-align: center; padding: 40px; color: var(--text-muted); display: none; font-weight: 600; }
