@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700&family=Teko:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
    --green: #0a6b3a;
    --red: #b0082a;
    --gold: #d4a72c;
    --ink: #141615;
    --surface: #f2f5f1;
    --panel: #ffffff;
    --muted: rgba(20, 22, 21, 0.6);
    --font-body: "Manrope", "Segoe UI", sans-serif;
    --font-display: "Teko", "Segoe UI", sans-serif;
    --font-body-rtl: "Cairo", "Segoe UI", sans-serif;
    --font-display-rtl: "Cairo", "Segoe UI", sans-serif;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background: var(--surface);
}

html[dir="rtl"] body {
    font-family: var(--font-body-rtl);
}

html[dir="rtl"] .hero-text h1,
html[dir="rtl"] .admin-hero h1,
html[dir="rtl"] .page-hero h1,
html[dir="rtl"] .results-header h2,
html[dir="rtl"] .admin-panel-header h2,
html[dir="rtl"] .match-header h3 {
    font-family: var(--font-display-rtl);
    letter-spacing: 0;
}

html[dir="rtl"] .goals-table th,
html[dir="rtl"] .goals-table td,
html[dir="rtl"] .admin-table th,
html[dir="rtl"] .admin-table td {
    text-align: right;
}

a {
    color: inherit;
    text-decoration: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px);
    gap: 2rem;
    align-items: center;
    padding: 2rem 2.5rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 97, 53, 0.25), transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(186, 0, 52, 0.18), transparent 45%),
        linear-gradient(130deg, #ffffff 0%, #e7efe8 100%);
    box-shadow: var(--shadow-soft);
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    margin: 0.5rem 0 0.8rem;
    letter-spacing: 0.04em;
}

.hero-text p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 42rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--green);
}

.hero-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-card-label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
    color: var(--muted);
}

.hero-card-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--red);
}

.hero-card-subtitle {
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
}

.hero-card-link:hover {
    text-decoration: underline;
}

.filters {
    margin-top: 2.5rem;
    background: var(--panel);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-soft);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    align-items: end;
}

.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--muted);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.65rem 0.8rem;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}

input[type="checkbox"] {
    width: auto;
    padding: 0;
    border: none;
    border-radius: 0;
}

input:focus {
    outline: 2px solid rgba(0, 97, 53, 0.3);
    border-color: rgba(0, 97, 53, 0.6);
}

.field.checkbox {
    display: flex;
    align-items: center;
}

.checkbox-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
}

.actions {
    display: flex;
    gap: 0.75rem;
}

.actions.wrap {
    flex-wrap: wrap;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--green), #0c8042);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 97, 53, 0.25);
}

.btn.danger {
    background: linear-gradient(135deg, var(--red), #8f0621);
    color: #fff;
    box-shadow: 0 10px 20px rgba(176, 8, 42, 0.2);
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: var(--ink);
}

.btn.small {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.btn:hover {
    transform: translateY(-1px);
}

.results {
    margin-top: 2.5rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.results-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.03em;
    margin: 0;
}

.meta {
    color: var(--muted);
}

.table-wrap {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.goals-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.goals-table th,
.goals-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
}

.goals-table th {
    background: rgba(0, 97, 53, 0.08);
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

.player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chip {
    background: rgba(186, 0, 52, 0.15);
    color: var(--red);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.state-card {
    background: var(--panel);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    color: var(--muted);
}

.state-card.error {
    color: #fff;
    background: linear-gradient(135deg, #8f1128, #b0082a);
}

.muted {
    color: var(--muted);
}

.field-help {
    font-size: 0.75rem;
    margin-top: 0.35rem;
    line-height: 1.4;
}

.assist-cell {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 220px;
}

.assist-summary {
    font-weight: 600;
    color: var(--ink);
}

.assist-summary.disputed {
    color: var(--red);
    font-weight: 700;
}

.assist-actions,
.assist-add {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.assist-select,
.assist-input {
    min-width: 150px;
}

.assist-message {
    font-size: 0.75rem;
    color: var(--muted);
}

.assist-message.error {
    color: var(--red);
    font-weight: 600;
}

.video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 11, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
}

.video-panel {
    background: #111;
    color: #f5f5f5;
    border-radius: 20px;
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    width: min(64vw, 900px);
    max-width: 980px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.video-panel .muted {
    color: rgba(255, 255, 255, 0.7);
}

.video-panel .btn.ghost {
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.45);
}

.video-panel .btn.ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.6rem;
}

video {
    width: 100%;
    border-radius: 16px;
    background: #000;
    max-height: 60vh;
}

.video-info {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.player-link {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: var(--green);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.player-link:hover {
    text-decoration: underline;
}

.player-link:focus-visible {
    outline: 2px solid rgba(10, 107, 58, 0.45);
    outline-offset: 2px;
    border-radius: 4px;
}

.date-link {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: var(--green);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.date-link:hover {
    text-decoration: underline;
}

.date-link:focus-visible {
    outline: 2px solid rgba(10, 107, 58, 0.45);
    outline-offset: 2px;
    border-radius: 4px;
}

.match-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 10, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
}

.match-panel {
    background: linear-gradient(145deg, #ffffff 0%, #f2f6f0 100%);
    color: var(--ink);
    border-radius: 24px;
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: min(80vw, 980px);
    max-height: 85vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.match-header h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0;
    letter-spacing: 0.02em;
}

.match-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    padding: 0.8rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8faf6;
}

.match-meta-block {
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.match-score-block {
    background: linear-gradient(140deg, rgba(10, 107, 58, 0.1), rgba(186, 0, 52, 0.08));
    border-color: rgba(0, 0, 0, 0.08);
}

.match-meta-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.65rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.match-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.match-score {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 0.04em;
    color: var(--red);
}

html[dir="rtl"] .match-score {
    font-family: var(--font-display-rtl);
    letter-spacing: 0;
}

html[dir="rtl"] .match-section h4 {
    letter-spacing: 0;
}

.match-section {
    padding: 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fbfcfa;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.match-section h4 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.match-section h4::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.match-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.match-columns-tight {
    gap: 0.8rem;
}

.match-team {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.match-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.match-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    background: #f6f8f4;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.match-list-structured {
    --match-team-col: 110px;
}

.match-list-structured li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.match-list-structured .match-detail {
    font-weight: 600;
}

.match-list-structured .match-tail {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.match-video-button {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
}

.match-name {
    font-weight: 600;
}

.match-minute {
    color: var(--muted);
    font-size: 0.85rem;
}

.match-assist {
    color: var(--muted);
    font-size: 0.85rem;
}

.match-tag {
    background: rgba(10, 107, 58, 0.12);
    color: var(--green);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.match-team-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--match-team-col, 110px);
    max-width: var(--match-team-col, 110px);
    text-align: center;
    line-height: 1.2;
}

.match-card-tag {
    flex: 0 0 auto;
}

.match-limited {
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: rgba(212, 167, 44, 0.18);
    color: #6b5200;
    font-weight: 600;
    font-size: 0.85rem;
    border-left: 4px solid rgba(212, 167, 44, 0.7);
}

html[dir="rtl"] .match-limited {
    border-left: none;
    border-right: 4px solid rgba(212, 167, 44, 0.7);
}

.profile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 10, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
}

.profile-panel {
    background: var(--panel);
    color: var(--ink);
    border-radius: 24px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    width: min(78vw, 980px);
    max-height: 82vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.profile-header h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0;
    letter-spacing: 0.02em;
}

.profile-subtitle {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

.profile-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    padding: 0.8rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8faf6;
}

.profile-meta-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.65rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.profile-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
}

.profile-stat {
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-stat-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.65rem;
    color: var(--muted);
}

.profile-stat-value {
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: 0.02em;
}

.profile-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.profile-section h4 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}

.profile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.7rem;
    border-radius: 12px;
    background: #f6f8f4;
}

.profile-list li span:last-child {
    font-weight: 700;
}

.admin-hero {
    display: grid;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 97, 53, 0.2), transparent 55%),
        linear-gradient(135deg, #ffffff 0%, #eef3ee 100%);
    box-shadow: var(--shadow-soft);
}

.admin-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    margin: 0.4rem 0 0.6rem;
    letter-spacing: 0.04em;
}

.admin-hero p {
    margin: 0;
    color: var(--muted);
}

.page-hero {
    display: grid;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at 12% 30%, rgba(0, 97, 53, 0.18), transparent 55%),
        linear-gradient(135deg, #ffffff 0%, #eef3ee 100%);
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    margin: 0.4rem 0 0.6rem;
    letter-spacing: 0.04em;
}

.page-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 50rem;
}

.page-card {
    margin-top: 1.5rem;
    background: var(--panel);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-soft);
}

.page-card h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.page-card p {
    margin: 0.4rem 0 0;
    color: var(--muted);
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.leaderboard-card {
    background: var(--panel);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leaderboard-card-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 0.6rem 0.4rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
}

.leaderboard-table th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.65rem;
    color: var(--muted);
}

.leaderboard-rank {
    width: 2.5rem;
    color: var(--muted);
    font-weight: 600;
}

.leaderboard-value {
    text-align: right;
    font-weight: 700;
}

.leaderboard-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

html[dir="rtl"] .leaderboard-table th,
html[dir="rtl"] .leaderboard-table td {
    text-align: right;
}

.admin-panel {
    margin-top: 2rem;
    background: var(--panel);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-soft);
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-panel-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 0.03em;
}

.admin-panel-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.admin-panel-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-toggle {
    font-size: 0.85rem;
    color: var(--muted);
}

.admin-message {
    font-size: 0.85rem;
    color: var(--muted);
}

.admin-message.success {
    color: var(--green);
    font-weight: 600;
}

.admin-message.error {
    color: var(--red);
    font-weight: 600;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
}

.admin-table th {
    background: rgba(0, 97, 53, 0.08);
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.admin-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(140deg, #ffffff 0%, #eef3ee 100%);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
}

.admin-card-title {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.admin-card-text {
    color: var(--muted);
    font-size: 0.9rem;
}

.goal-table input,
.goal-table select {
    min-width: 140px;
}

.goal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dropzone {
    position: relative;
    border: 1px dashed rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    text-align: center;
    background: rgba(0, 97, 53, 0.04);
    cursor: pointer;
}

.dropzone.uploading {
    opacity: 0.7;
}

.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-label {
    font-size: 0.75rem;
    color: var(--muted);
}

.progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 0.4rem;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, var(--green), #0c8042);
    transition: width 0.2s ease;
}

.progress-text {
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .video-meta {
        flex-direction: column;
        gap: 0.4rem;
    }

    .video-overlay {
        padding: 1.25rem;
    }

    .video-panel {
        width: min(94vw, 640px);
        max-height: 85vh;
    }

    .match-overlay {
        padding: 1.25rem;
    }

    .match-panel {
        width: min(94vw, 680px);
        max-height: 85vh;
    }

    .match-team-tag {
        flex: 0 0 var(--match-team-col, 90px);
        max-width: var(--match-team-col, 90px);
    }

    .match-list-structured {
        --match-team-col: 90px;
    }
}
