#match-timer-controls {
    position: relative;
}

#timer-pause-toggle-btn {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
}

[data-theme-toggle] [data-theme-icon] {
    display: none;
}

html[data-theme="light"] [data-theme-toggle] [data-theme-icon="light"],
html[data-theme="dark"] [data-theme-toggle] [data-theme-icon="dark"] {
    display: block;
}

.odds-arrow {
    transform: scale(1.5);
}

#odds .grid > div {
    display: flex;
    flex-direction: column;
}

.odds-market-label {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    line-height: 1rem;
}

@supports (clip-path: polygon(0 50%, 100% 0, 100% 100%)) {
    .odds-arrow {
        position: relative;
        visibility: hidden;
    }

    .odds-arrow::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 10%;
        width: 80%;
        height: 7px;
        background: currentColor;
        clip-path: polygon(0 50%, 35% 0, 35% 30%, 100% 30%, 100% 70%, 35% 70%, 35% 100%);
        transform: translateY(-50%);
        visibility: visible;
    }

    .odds-arrow:last-child::before {
        transform: translateY(-50%) scaleX(-1);
    }

    @media (forced-colors: active) {
        .odds-arrow {
            visibility: visible;
        }

        .odds-arrow::before {
            content: none;
        }
    }
}

#responsible-gambling a {
    overflow-wrap: anywhere;
}

#match-navigation a {
    color: #477665;
}

#match-navigation a:hover,
#match-navigation a[aria-current="location"] {
    color: #065f46;
}

#match-navigation a[aria-current="location"] svg {
    filter: drop-shadow(0 0 2px rgb(5 150 105 / 90%))
        drop-shadow(0 0 5px rgb(16 185 129 / 65%));
}

html[data-theme="dark"] #match-navigation a {
    color: #94b5a7;
}

html[data-theme="dark"] #match-navigation a:hover,
html[data-theme="dark"] #match-navigation a[aria-current="location"] {
    color: #6ee7b7;
}

html[data-theme="dark"] #match-navigation a[aria-current="location"] svg {
    filter: drop-shadow(0 0 2px rgb(110 231 183 / 90%))
        drop-shadow(0 0 6px rgb(52 211 153 / 75%));
}

html[data-theme="dark"] {
    color-scheme: dark;
    background: #000;
}

html[data-theme="dark"] body.bg-white {
    background: #000;
    color: #e2e8f0;
}

html[data-theme="dark"] :is([class~="bg-white"], [class~="bg-white/95"]) {
    background-color: #111827;
}

html[data-theme="dark"] :is([class~="bg-slate-50"], [class~="bg-slate-50/70"],
    [class~="bg-slate-100"], [class~="bg-slate-200"]) {
    background-color: #1e293b;
}

html[data-theme="dark"] :is([class~="border-slate-100"], [class~="border-slate-200"],
    [class~="border-slate-200/90"], [class~="border-slate-300"]) {
    border-color: #475569;
}

html[data-theme="dark"] [class~="divide-slate-200"] > :not([hidden]) ~ :not([hidden]) {
    border-color: #475569;
}

html[data-theme="dark"] :is([class~="text-slate-900"], [class~="text-slate-800"], [class~="text-slate-700"]) {
    color: #f1f5f9;
}

html[data-theme="dark"] :is([class~="text-slate-600"], [class~="text-slate-500"], [class~="text-slate-400"]) {
    color: #cbd5e1;
}

html[data-theme="dark"] :is([class~="text-emerald-900"], [class~="text-emerald-800"],
    [class~="text-emerald-700"], [class~="text-emerald-600"]) {
    color: #6ee7b7;
}

html[data-theme="dark"] :is([class~="text-rose-900"], [class~="text-rose-700"], [class~="text-rose-600"]) {
    color: #fda4af;
}

html[data-theme="dark"] :is([class~="text-amber-900"], [class~="text-amber-800"],
    [class~="text-amber-700"], [class~="text-amber-600"]) {
    color: #fcd34d;
}

html[data-theme="dark"] [class~="text-sky-700"] {
    color: #7dd3fc;
}

html[data-theme="dark"] :is([class~="bg-emerald-50"], [class~="bg-emerald-100"],
    [class~="bg-emerald-100/80"], [class~="bg-emerald-100/90"], [class~="bg-emerald-100/70"]) {
    background-color: #12392e;
}

html[data-theme="dark"] :is([class~="bg-rose-50"], [class~="bg-rose-50/80"], [class~="bg-rose-100/90"]) {
    background-color: #4c1d2b;
}

html[data-theme="dark"] :is([class~="bg-amber-50"], [class~="bg-amber-100"], [class~="bg-amber-100/90"]) {
    background-color: #45350c;
}

html[data-theme="dark"] [class~="bg-sky-50"] {
    background-color: #12394b;
}

html[data-theme="dark"] :is([class~="hover:bg-slate-50"], [class~="hover:bg-slate-100"],
    [class~="hover:bg-emerald-50"], [class~="hover:bg-emerald-50/70"]):hover {
    background-color: #334155;
}

html[data-theme="dark"] :is([class~="hover:bg-rose-50"], [class~="hover:bg-rose-100/80"]):hover {
    background-color: #713044;
}

html[data-theme="dark"] :is([class~="hover:bg-emerald-200"], [class~="hover:bg-emerald-200/80"]):hover {
    background-color: #205444;
}

html[data-theme="dark"] :is([class~="hover:bg-amber-200"], [class~="hover:bg-amber-200/80"]):hover {
    background-color: #665014;
}

html[data-theme="dark"] :is([class~="hover:bg-rose-200"], [class~="hover:bg-rose-200/80"]):hover {
    background-color: #713044;
}

html[data-theme="dark"] :is([class~="hover:text-emerald-700"], [class~="hover:text-emerald-900"]):hover {
    color: #a7f3d0;
}

html[data-theme="dark"] :is([class~="focus:bg-white"]:focus, [class~="focus-within:bg-white"]:focus-within) {
    background-color: #1e293b;
}

html[data-theme="dark"] :is(#home-badge, #away-badge, #home-btn-a, #home-btn-b, #home-btn-c, #home-btn-p,
    #away-btn-a, #away-btn-b, #away-btn-c, #away-btn-p) {
    background-color: #243245 !important;
    background-color: color-mix(in srgb, var(--team-color) 34%, #111827) !important;
    background-image: none;
    border-color: #94a3b8 !important;
    border-color: color-mix(in srgb, var(--team-color) 55%, #cbd5e1) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%),
        0 2px 8px rgb(0 0 0 / 25%);
}

html[data-theme="dark"] :is(#home-badge, #away-badge) {
    border: 1px solid;
}

html[data-theme="dark"] :is(#home-btn-a, #home-btn-b, #home-btn-c, #home-btn-p,
    #away-btn-a, #away-btn-b, #away-btn-c, #away-btn-p):hover,
html[data-theme="dark"] :is(#home-badge-btn:hover #home-badge, #away-badge-btn:hover #away-badge) {
    background-color: #334155 !important;
    background-color: color-mix(in srgb, var(--team-color) 38%, #111827) !important;
}

html[data-theme="dark"] :is(#home-btn-a, #home-btn-b, #home-btn-c, #home-btn-p,
    #away-btn-a, #away-btn-b, #away-btn-c, #away-btn-p):focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

html[data-theme="dark"] :is(#home-manual-plus-btn, #away-manual-plus-btn) {
    background-image: linear-gradient(rgb(0 0 0 / 60%), rgb(0 0 0 / 60%));
}

html[data-theme="dark"] :is(#shot-log-list button > span, #home-total-xg, #away-total-xg) {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] #shot-log-list button > span {
    background-color: #334155 !important;
}

html[data-theme="dark"] :is(#home-badge-a, #home-badge-b, #home-badge-c, #home-badge-p,
    #away-badge-a, #away-badge-b, #away-badge-c, #away-badge-p) {
    color: #111827 !important;
    background-color: #cbd5e1 !important;
    background-color: color-mix(in srgb, var(--team-color) 42%, #fff) !important;
    border-color: transparent !important;
}

html[data-theme="dark"] #betting-ad-logo {
    background: #1e293b;
    border-radius: 0.25rem;
    padding: 0.15rem;
}
