@charset "UTF-8";

:root,
[data-theme="light"] {
    color-scheme: light;
    --bg: #f7fbf8;
    --bg-2: #ffffff;
    --bg-3: #eef8f1;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --surface-soft: rgba(5, 24, 13, 0.06);
    --text: #06130b;
    --muted: #567061;
    --line: rgba(5, 24, 13, 0.12);
    --green: #008a4b;
    --green-2: #10b867;
    --yellow: #c98a00;
    --red: #d9314b;
    --cyan: #008aa3;
    --black: #ffffff;
    --chrome: rgba(255, 255, 255, 0.94);
    --chrome-strong: rgba(255, 255, 255, 0.98);
    --input-bg: rgba(255, 255, 255, 0.82);
    --grid-line: rgba(6, 19, 11, 0.045);
    --shadow: 0 16px 32px rgba(8, 38, 20, 0.14);
    --glow: 0 0 18px rgba(0, 143, 78, 0.22);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #06100b;
    --bg-2: #0a1810;
    --bg-3: #06130d;
    --surface: rgba(13, 28, 19, 0.86);
    --surface-strong: #101f16;
    --surface-soft: rgba(255, 255, 255, 0.06);
    --text: #f7fff9;
    --muted: #9fb3a7;
    --line: rgba(255, 255, 255, 0.1);
    --green: #34f58a;
    --green-2: #00b95d;
    --yellow: #ffd166;
    --red: #ff5b6e;
    --cyan: #40dfff;
    --black: #020403;
    --chrome: rgba(3, 10, 6, 0.9);
    --chrome-strong: rgba(4, 13, 8, 0.96);
    --input-bg: rgba(0, 0, 0, 0.22);
    --grid-line: rgba(255, 255, 255, 0.035);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
    --glow: 0 0 18px rgba(52, 245, 138, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(145deg, var(--bg) 0%, var(--bg-2) 58%, var(--bg-3) 100%);
    color: var(--text);
    font-family: Inter, "Noto Sans Myanmar", Pyidaungsu, "Myanmar Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 74%);
}

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

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

svg {
    width: 20px;
    height: 20px;
}

svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.13);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.82s linear infinite;
    box-shadow: var(--glow);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-screen {
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-shell {
    width: min(100%, 440px);
}

.auth-card,
.panel,
.stat-card,
.category-card,
.marquee-shell,
.slider {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.auth-card {
    position: relative;
    overflow: hidden;
    padding: 28px 22px;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--green), var(--cyan), var(--yellow));
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(52, 245, 138, 0.22), rgba(64, 223, 255, 0.12));
    box-shadow: var(--glow);
}

.brand-mark img {
    width: 50px;
    height: 50px;
}

.eyebrow,
.admin-kicker {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

.auth-card h1 {
    margin-bottom: 8px;
    font-size: 36px;
    line-height: 1;
}

.auth-copy,
.panel-head p {
    color: var(--muted);
    line-height: 1.6;
}

.stacked-form {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.stacked-form label,
.upload-panel label,
.modal-form label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    outline: none;
    padding: 0 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
    min-height: 92px;
    padding-top: 12px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(52, 245, 138, 0.75);
    box-shadow: var(--glow);
}

.primary-btn,
.outline-btn,
.chip-btn,
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
    padding: 0 18px;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    color: #031007;
    font-weight: 900;
    box-shadow: var(--glow);
}

.primary-btn.compact,
.outline-btn {
    min-height: 38px;
    padding: 0 14px;
}

.outline-btn,
.chip-btn {
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 800;
}

.chip-btn {
    min-height: 34px;
    padding: 0 12px;
    color: var(--green);
}

.icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.icon-btn.ghost {
    background: transparent;
}

.primary-btn:hover,
.outline-btn:hover,
.chip-btn:hover,
.icon-btn:hover,
.category-card:hover,
.bottom-nav a:hover,
.bottom-nav button:hover {
    transform: translateY(-1px);
}

.alert {
    margin: 16px 0;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
}

.alert.danger {
    border: 1px solid rgba(255, 91, 110, 0.45);
    background: rgba(255, 91, 110, 0.12);
    color: #ffb5bf;
}

.auth-footnote {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: var(--glow);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    50% { transform: scale(1.35); opacity: 0.65; }
}

.mobile-app-shell {
    min-height: 100vh;
    width: min(100%, 520px);
    margin: 0 auto;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    background: var(--chrome);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.app-screen .app-header {
    background: #050806;
    border-bottom-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.app-screen .app-header .icon-btn {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.app-logo,
.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 950;
}

.app-logo img,
.admin-brand img {
    width: 34px;
    height: 34px;
}

.header-actions,
.admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-main {
    display: grid;
    gap: 14px;
    padding: 14px;
}

.welcome-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(52, 245, 138, 0.12), rgba(64, 223, 255, 0.05));
}

.welcome-strip span,
.section-title span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.welcome-strip strong {
    display: block;
    margin-top: 2px;
}

.marquee-shell {
    overflow: hidden;
    min-height: 44px;
    box-shadow: var(--glow);
}

.marquee-track {
    display: flex;
    width: max-content;
    min-width: 100%;
    align-items: center;
    gap: 36px;
    padding: 12px 16px;
    animation: marquee 70s linear infinite;
}

.marquee-track span {
    white-space: nowrap;
    font-weight: 800;
}

@keyframes marquee {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

.slider {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: var(--surface-soft);
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    transition: transform 0.42s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-title {
    position: absolute;
    left: 14px;
    bottom: 12px;
    max-width: calc(100% - 28px);
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.46);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.slider-dots {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 6px;
}

.slider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.slider-dots button.active {
    width: 18px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: var(--glow);
}

.section-title,
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-title h2,
.panel-head h2 {
    margin: 0;
    font-size: 18px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.category-card {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 102px;
    padding: 10px 6px;
    color: var(--text);
    background:
        linear-gradient(155deg, rgba(52, 245, 138, 0.16), rgba(255, 255, 255, 0.04)),
        var(--surface);
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:active {
    transform: scale(0.97);
}

.category-card img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(52, 245, 138, 0.32));
}

.category-card strong {
    display: block;
    width: 100%;
    overflow-wrap: anywhere;
    font-size: 12px;
}

.category-card.placeholder {
    min-height: 102px;
}

.custom-page {
    gap: 12px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--green);
    font-weight: 900;
}

.custom-hero {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(16, 184, 103, 0.14), rgba(0, 138, 75, 0.05)),
        var(--surface);
    box-shadow: var(--shadow);
}

.custom-hero span {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.custom-hero h1 {
    margin: 8px 0 0;
    font-size: 28px;
}

.custom-card-list {
    display: grid;
    gap: 10px;
}

.custom-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.custom-card p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.custom-card > span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(16, 184, 103, 0.12);
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
}

.results-main {
    gap: 12px;
}

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.results-toolbar .back-link {
    margin-bottom: 0;
}

.results-toolbar span {
    color: inherit;
}

.results-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.result-icon-btn,
.result-date-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(16, 184, 103, 0.09);
    color: var(--green);
    box-shadow: 0 10px 20px rgba(8, 38, 20, 0.08);
}

.result-icon-btn {
    padding: 0;
}

.result-date-btn input {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    opacity: 0;
    cursor: pointer;
}

.results-date-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.results-date-tabs::-webkit-scrollbar {
    display: none;
}

.results-date-tabs button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(8, 38, 20, 0.08);
}

.results-date-tabs button.active {
    background: #050806;
    color: #ffffff;
    border-color: #050806;
}

.results-date-content {
    animation: fadeIn 0.22s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-league {
    margin-bottom: 14px;
}

.results-league-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px 8px;
}

.results-league-header img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}

.results-league-header h2 {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.results-match-list {
    display: grid;
    gap: 10px;
}

.results-match-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(8, 38, 20, 0.09);
}

.results-match-card[role="button"] {
    cursor: pointer;
}

.results-match-card[role="button"]:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.results-status {
    display: grid;
    place-items: center;
    min-height: 58px;
    padding-right: 10px;
    border-right: 1px solid var(--line);
    text-align: center;
}

.results-status span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    max-width: 100%;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(6, 19, 11, 0.06);
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
}

.results-status.live span {
    background: rgba(217, 49, 75, 0.12);
    color: var(--red);
    animation: pulse 1.4s ease-in-out infinite;
}

.results-status.finished span {
    color: var(--muted);
}

.results-teams {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.results-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.results-team {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.results-team img {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.results-team span {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-team-row strong {
    flex: 0 0 auto;
    min-width: 24px;
    color: var(--text);
    font-size: 17px;
    text-align: right;
}

.results-empty,
.results-loading {
    padding: 28px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.results-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
}

.results-bottom-sheet {
    width: min(100%, 520px);
    max-height: 80vh;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    animation: sheetUp 0.24s ease;
}

@keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.results-bottom-sheet header,
.results-table-overlay header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.results-bottom-sheet h2 {
    margin: 0;
    font-size: 18px;
}

.results-bottom-sheet header button,
.results-table-overlay header button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 24px;
}

.results-sheet-body {
    max-height: calc(80vh - 65px);
    overflow-y: auto;
    padding: 8px;
}

.results-details-sheet {
    max-height: 86vh;
}

.results-details-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.results-details-score > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.results-details-score > div:last-child {
    justify-content: flex-end;
}

.results-details-score span {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-details-score > span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(6, 19, 11, 0.06);
    color: var(--text);
    font-size: 11px;
    font-weight: 950;
}

.results-details-score strong {
    color: var(--text);
    font-size: 18px;
    font-weight: 950;
}

.results-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.results-details-grid div,
.results-h2h-summary div,
.results-h2h-list div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.results-details-grid div {
    padding: 10px;
}

.results-details-grid span,
.results-h2h-summary span,
.results-h2h-list span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.results-details-grid strong,
.results-h2h-list strong {
    display: block;
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.results-h2h-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.results-h2h-summary div {
    padding: 10px 6px;
    text-align: center;
}

.results-h2h-summary strong {
    display: block;
    color: var(--green);
    font-size: 18px;
    font-weight: 950;
}

.results-h2h-summary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-h2h-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.results-facts-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.results-h2h-list h3 {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.results-facts-list h3 {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.results-h2h-list div {
    padding: 10px;
}

.results-facts-list div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.results-facts-list span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.results-facts-list strong {
    display: block;
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.results-filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    text-align: left;
    font-weight: 850;
}

.results-filter-item:hover {
    background: rgba(16, 184, 103, 0.08);
}

.results-filter-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.results-table-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    flex-direction: column;
    background: var(--bg);
}

.results-table-overlay header {
    flex: 0 0 auto;
    justify-content: flex-start;
    background: #050806;
    color: #ffffff;
}

.results-table-overlay header button {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.results-table-overlay header div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.results-table-overlay header img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.results-table-overlay main {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px;
}

.results-table-container {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.results-group-title {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(16, 184, 103, 0.08);
    color: var(--muted);
    font-size: 13px;
    font-weight: 950;
}

.results-league-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.results-league-table th,
.results-league-table td {
    padding: 11px 7px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.results-league-table th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
}

.results-league-table th:nth-child(2),
.results-league-table td:nth-child(2) {
    text-align: left;
}

.results-table-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.results-table-team img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.results-table-team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-table-pos,
.results-table-pts {
    font-weight: 950;
}

.results-table-pts {
    color: var(--green);
}

.news-main {
    gap: 12px;
}

.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.news-toolbar .back-link {
    margin-bottom: 0;
}

.news-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(6, 19, 11, 0.04);
}

.news-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 950;
}

.news-tabs a.active {
    background: #050806;
    color: #ffffff;
}

.news-content {
    min-width: 0;
}

.news-list,
.news-tips-list {
    display: grid;
    gap: 10px;
}

.news-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 12px;
    align-items: center;
    min-height: 116px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(8, 38, 20, 0.09);
}

.news-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-item img {
    width: 92px;
    height: 92px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(8, 38, 20, 0.14);
}

.news-detail,
.news-tip-card,
.news-empty {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.news-detail {
    padding: 16px;
}

.news-detail h1 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 22px;
    line-height: 1.45;
}

.news-detail-image {
    width: 100%;
    max-height: 280px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(8, 38, 20, 0.12);
}

.news-detail-body {
    margin-top: 16px;
    color: #25372d;
    font-size: 15px;
    line-height: 1.85;
}

.news-detail-body p {
    margin: 0 0 12px;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.news-detail-body a {
    color: var(--green);
    font-weight: 900;
}

.news-empty {
    padding: 30px 18px;
    color: var(--muted);
    font-weight: 850;
    text-align: center;
}

.news-tip-card {
    display: grid;
    gap: 14px;
    padding: 14px;
}

.news-tip-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.news-tip-card > header strong {
    color: var(--green);
}

.news-tip-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.news-tip-teams > div {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
}

.news-tip-teams img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.news-tip-teams strong {
    width: 100%;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-tip-teams > span {
    display: grid;
    place-items: center;
    min-height: 32px;
    border-radius: 999px;
    background: rgba(6, 19, 11, 0.06);
    color: var(--muted);
    font-weight: 950;
}

.news-tip-section {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(16, 184, 103, 0.05);
}

.news-tip-section h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--green);
    font-size: 14px;
}

.news-tip-section h2::before {
    content: "";
    width: 4px;
    height: 14px;
    border-radius: 999px;
    background: var(--green);
}

.news-tip-section p,
.news-tip-section div {
    color: #385043;
    font-size: 14px;
    line-height: 1.75;
}

.news-form-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(6, 19, 11, 0.12);
    color: var(--text);
    font-size: 12px;
}

.news-form-item:last-child {
    border-bottom: 0;
}

.news-form-item span,
.news-muted {
    color: var(--muted);
}

.news-form-item strong {
    min-width: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-form-item b {
    color: var(--green);
}

.news-form-item em {
    color: var(--muted);
    font-style: normal;
    font-weight: 950;
    text-align: right;
}

.news-form-item em.win {
    color: var(--green);
}

.news-form-item em.lose {
    color: var(--red);
}

.news-muted {
    margin: 0;
    text-align: center;
}

.news-source-credit {
    margin: 14px 0 4px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 8px 18px rgba(8, 38, 20, 0.07);
}

.live-main {
    gap: 12px;
}

.live-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.live-toolbar .back-link {
    margin-bottom: 0;
}

.live-tabs {
    display: flex;
    min-width: 0;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(6, 19, 11, 0.04);
}

.live-tabs button {
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.live-tabs button.active {
    background: #050806;
    color: #ffffff;
}

.live-error,
.live-empty,
.live-no-stream {
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 850;
    text-align: center;
    box-shadow: 0 8px 18px rgba(8, 38, 20, 0.07);
}

.live-error {
    border-color: rgba(217, 49, 75, 0.25);
    background: rgba(217, 49, 75, 0.08);
    color: var(--red);
}

.live-player {
    display: none;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.live-player header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.live-player h2 {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-player header button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 22px;
}

.live-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.live-video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.live-server-select {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.live-server-select span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.live-server-select select {
    min-height: 42px;
}

.live-tab-content {
    display: none;
}

.live-tab-content.active {
    display: grid;
    gap: 10px;
}

.live-match-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(8, 38, 20, 0.09);
}

.live-league {
    overflow: hidden;
    color: var(--green);
    font-size: 12px;
    font-weight: 950;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.live-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.live-team {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
}

.live-team img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.live-team strong {
    width: 100%;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-vs {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.live-vs span {
    color: var(--muted);
    font-size: 16px;
    font-weight: 950;
}

.live-vs em {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(6, 19, 11, 0.06);
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.live-watch-btn {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    color: #031007;
    font-weight: 950;
    box-shadow: var(--glow);
}

.live-no-stream {
    box-shadow: none;
}

@media (max-width: 420px) {
    .live-toolbar {
        gap: 8px;
    }

    .live-tabs {
        gap: 4px;
    }

    .live-tabs button {
        padding: 0 9px;
        font-size: 11px;
    }
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 520px);
    transform: translateX(-50%);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--chrome);
    backdrop-filter: blur(16px);
}

.app-screen .bottom-nav {
    background: #050806;
    border-top-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.bottom-nav a,
.bottom-nav button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.app-screen .bottom-nav a,
.app-screen .bottom-nav button {
    color: rgba(255, 255, 255, 0.88);
}

.bottom-nav svg {
    width: 20px;
    height: 20px;
}

.bottom-nav .active {
    color: var(--green);
    background: rgba(52, 245, 138, 0.1);
    box-shadow: inset 0 0 18px rgba(52, 245, 138, 0.12);
}

.app-screen .bottom-nav .active {
    color: #ffffff;
    background: rgba(52, 245, 138, 0.18);
    box-shadow: inset 0 0 18px rgba(52, 245, 138, 0.18);
}

.admin-layout {
    display: grid;
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 45;
    width: 270px;
    padding: 18px;
    border-right: 1px solid var(--line);
    background: var(--chrome-strong);
    transform: translateX(-102%);
    transition: transform 0.24s ease;
}

.admin-sidebar.is-open {
    transform: translateX(0);
}

.admin-brand {
    margin-bottom: 22px;
    font-size: 20px;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    background: rgba(52, 245, 138, 0.12);
    color: var(--green);
}

.admin-content {
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--chrome);
    backdrop-filter: blur(16px);
}

.admin-topbar h1 {
    margin: 0;
    font-size: 22px;
}

.admin-content main {
    display: grid;
    gap: 16px;
    padding: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 116px;
    padding: 18px;
}

.stat-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 14px;
    font-size: 30px;
}

.stat-glow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 34px;
    height: 5px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: var(--glow);
}

.panel {
    padding: 16px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.search-box {
    position: relative;
    flex: 1 1 260px;
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-box input {
    padding-left: 40px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.data-table td {
    color: var(--text);
}

.truncate {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code-pill,
.badge,
.mini-links a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.code-pill {
    background: rgba(52, 245, 138, 0.12);
    color: var(--green);
}

.badge.good {
    background: rgba(52, 245, 138, 0.14);
    color: var(--green);
}

.badge.muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.mini-links {
    display: flex;
    gap: 6px;
}

.mini-links a {
    border: 1px solid var(--line);
    color: var(--green);
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.row-actions button,
.small-btn {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.row-actions button.danger {
    color: var(--red);
}

.empty-cell {
    padding: 22px;
    color: var(--muted);
    text-align: center;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.pagination a,
.pagination button {
    min-width: 34px;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 800;
}

.pagination .active {
    background: var(--green);
    color: #031007;
}

.upload-panel,
.modal-form {
    display: grid;
    gap: 12px;
}

.upload-panel {
    grid-template-columns: 1fr;
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed rgba(52, 245, 138, 0.34);
    border-radius: 8px;
    background: rgba(52, 245, 138, 0.06);
}

.file-drop {
    display: grid;
    gap: 8px;
    place-items: center;
    min-height: 150px;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    text-align: center;
}

.file-drop input {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.file-drop small {
    color: var(--muted);
}

.file-drop img {
    max-height: 160px;
    border-radius: 8px;
}

.banner-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.banner-item,
.marquee-row,
.category-admin-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.banner-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
}

.banner-item[draggable="true"] {
    cursor: grab;
}

.banner-item.dragging {
    opacity: 0.55;
}

.banner-item img {
    width: 96px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.banner-meta {
    min-width: 0;
}

.banner-meta strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.banner-meta span {
    color: var(--muted);
    font-size: 12px;
}

.marquee-admin-list,
.category-admin-grid {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.marquee-row {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.marquee-preview {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    font-weight: 900;
}

.category-admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-admin-card {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.category-admin-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.64);
}

.modal[hidden] {
    display: none;
}

.modal-panel {
    position: relative;
    width: min(100%, 520px);
    max-height: 88vh;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
}

.modal-panel h2 {
    margin: 0 44px 16px 0;
    font-size: 20px;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
}

.switch-row input[type="checkbox"] {
    width: 44px;
    min-height: 24px;
    appearance: none;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.16);
    position: relative;
}

.switch-row input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.18s ease;
}

.switch-row input[type="checkbox"]:checked {
    background: var(--green);
}

.switch-row input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

.toast-wrap {
    position: fixed;
    right: 14px;
    bottom: 92px;
    z-index: 100;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
}

.toast {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    color: var(--text);
    box-shadow: var(--shadow);
    animation: toastIn 0.22s ease;
}

.toast.good {
    border-color: rgba(52, 245, 138, 0.42);
}

.toast.bad {
    border-color: rgba(255, 91, 110, 0.42);
}

.pwa-install-card {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid rgba(52, 245, 138, 0.32);
    border-radius: 8px;
    background: rgba(4, 16, 8, 0.94);
    color: #f7fff9;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 22px rgba(52, 245, 138, 0.18);
    backdrop-filter: blur(18px);
    animation: toastIn 0.24s ease;
}

.pwa-install-card div {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 1px;
}

.pwa-install-card strong,
.pwa-install-card span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pwa-install-card strong {
    font-size: 14px;
    font-weight: 900;
}

.pwa-install-card span {
    color: rgba(247, 255, 249, 0.72);
    font-size: 12px;
}

.pwa-install-card button {
    flex: 0 0 auto;
    border: 0;
}

.pwa-install-card [data-pwa-accept] {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #34f58a, #10b867);
    color: #031008;
    font-weight: 900;
}

.pwa-install-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #f7fff9;
}

.pwa-install-close svg {
    width: 18px;
    height: 18px;
}

@keyframes toastIn {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.skeleton {
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.11), transparent);
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

@media (min-width: 680px) {
    .upload-panel {
        grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.4fr) auto;
        align-items: end;
    }
}

@media (min-width: 980px) {
    .admin-layout {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        transform: none;
    }

    .admin-content main {
        padding: 22px;
    }

    .admin-topbar {
        padding: 14px 22px;
    }

    [data-sidebar-toggle] {
        display: none;
    }

    .dashboard-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .auth-screen {
        padding: 14px;
    }

    .auth-card {
        padding: 24px 16px;
    }

    .category-card {
        min-height: 94px;
    }

    .category-card img {
        width: 40px;
        height: 40px;
    }

    .bottom-nav span {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
