h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Wystąpił błąd."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.app-shell-loading {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    color: #212121;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.app-shell-appbar {
    height: 64px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.app-shell-menu {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.app-shell-title {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
}

.app-shell-body {
    flex: 1;
    display: flex;
    padding: 1rem;
    gap: 1rem;
}

.app-shell-drawer {
    width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 15, 15, 0.08);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drawer-item {
    height: 36px;
    border-radius: 8px;
    background: #f0f0f0;
}

.app-shell-content {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 15, 15, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-heading {
    height: 32px;
    width: 40%;
    background: #f5f5f5;
    border-radius: 6px;
}

.content-block {
    height: 80px;
    background: #f5f5f5;
    border-radius: 10px;
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
    animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.main-appbar {
    position: relative;
    background-color: white;
    color: black;
}

.navmenu-hidden {
    visibility: hidden;
}

.app-logo {
    max-height: 40px;
}

.main-appbar .app-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.main-appbar .app-logo.desktop-only {
    margin-left: 24px;
}

.appbar-menu-button {
    position: static;
    left: auto;
    top: auto;
    transform: none;
}

:root {
    --banner-frame-border-color: #000;
    --banner-frame-background: #fff;
}

.banner-frame,
.banner-slot,
.banner-chip,
.banner-dropzone {
    box-sizing: border-box;
    background-color: var(--banner-frame-background);
}

.banner-frame {
    border: 1px solid var(--banner-frame-border-color);
    padding: 6px;
}

.banner-slot {
    border: 1px dashed var(--banner-frame-border-color);
    padding: 6px;
}

.banner-chip {
    border: 1px solid var(--banner-frame-border-color);
    padding: 4px;
}

.banner-dropzone {
    border: 1px solid var(--banner-frame-border-color) !important;
}

.match-team-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-icon-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
    flex-shrink: 0;
    vertical-align: middle;
}

.card-icon {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .match-team-label .desktop-only,
    .team-name-text.desktop-only {
        vertical-align: middle;
    }
}

@media (max-width: 767.98px) {
    .match-team-label .mobile-only,
    .team-name-text.mobile-only {
        vertical-align: middle;
    }

    .buy-ticket-button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .buy-ticket-button .mud-button-label {
        white-space: nowrap !important;
        font-size: 0.95rem;
    }

    .app-footer {
        display: none !important;
    }

    .mobile-auth-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1200;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
        padding: 0.5rem 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .navmenu-root {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .navmenu-top {
        flex: 1 1 auto;
        overflow-y: auto;
    }

    .navmenu-bottom {
        margin-top: auto;
        padding: 0.5rem;
    }

    .main-content {
        padding-bottom: 100px;
    }

    /* GLOBAL MOBILE: Ensure last content is not hidden by bottom bar */
    .mud-main-content {
        padding-bottom: 140px;
    }

    /* GLOBAL MOBILE: 2px from smartphone edge to content */
    .mud-main-content .mud-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 2px !important;
    }

    /* GLOBAL MOBILE: Cards - 2px margin and 2px padding inside */
    .mud-paper {
        margin: 2px !important;
        padding: 2px !important;
    }

    /* GLOBAL MOBILE: MudStack spacing reduced */
    .mud-stack {
        gap: 2px !important;
    }

    /* GLOBAL MOBILE: Remove extra margins from common MudBlazor utility classes */
    .pa-4, .pa-3, .pa-2 {
        padding: 2px !important;
    }

    .mt-4, .mt-6, .mt-3, .mt-2 {
        margin-top: 2px !important;
    }

    .mb-4, .mb-3, .mb-2 {
        margin-bottom: 2px !important;
    }

    /* MOBILE: Main banner - fully visible, not cropped */
    .banner-horizontal-wrapper {
        width: 100%;
        overflow: visible !important;
        margin-bottom: 8px;
    }

    .banner-horizontal {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .banner-horizontal-image {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        overflow: visible !important;
    }

    .mobile-auth-bar-spacer {
        display: block;
        width: 100%;
        height: calc(120px + env(safe-area-inset-bottom, 0px));
        flex-shrink: 0;
    }
}

.keeza-mobile {
    text-align: center;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .keeza-mobile {
        display: none !important;
    }
}

.register-logos-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-auth-bar {
    background-color: white;
    color: black;
}

.mobile-auth-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.mobile-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 12px;
    line-height: 1.2;
    padding: 0 8px;
}

.mobile-footer-links-with-buttons {
    margin-top: 12px;
}

.mobile-footer-links a {
    color: black;
    text-decoration: none;
    font-size: 0.75rem;
    opacity: 0.9;
}

.mobile-footer-links a:hover {
    text-decoration: underline;
}

.mobile-footer-copy {
    opacity: 0.7;
    font-size: 0.75rem;
}

.mobile-auth-bar-spacer {
    display: none;
}

/* Desktop footer - centered block of links */
.app-footer {
    margin-top: auto;
    padding: 12px 12px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.app-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 4px;
    align-items: center;
    justify-content: center;
}

.app-footer-copy {
    opacity: 0.7;
    font-size: 0.875rem;
    padding: 0 8px;
}

/* Home page: spacing and layout for feature list under football button */
.home-feature-list {
    margin-top: 6px;
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.home-selection-stack {
    gap: 12px;
}

.home-type-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-type-radio-group .mud-radio-button {
    font-size: 0.95rem;
}

.home-select {
    margin-bottom: 12px;
}

.home-show-button {
    margin-bottom: 48px;
}

.home-inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.home-inline-actions .home-type-radio-group {
    flex: 1 1 auto;
}

.home-inline-actions .home-inline-button {
    flex: 0 0 auto;
}

@media (max-width: 599.98px) {
    .home-selection-stack {
        gap: 8px;
    }

    .home-type-radio-group {
        gap: 6px;
    }

    .home-type-radio-group .mud-radio-button {
        font-size: 0.8rem;
    }

    .home-select {
        margin-bottom: 8px;
    }

    .home-show-button {
        margin-bottom: 64px;
        width: 100%;
    }

    .home-inline-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-inline-actions .home-inline-button {
        width: 100%;
        justify-content: center;
    }
}

/* Competition selector dialog - mobile responsive */
.competition-selector-dialog .mud-dialog-content {
    padding: 16px;
}

.competition-selector-stack {
    gap: 12px !important;
}

.competition-type-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.competition-type-radios .mud-radio {
    margin-right: 0 !important;
}

@media (max-width: 599.98px) {
    .competition-selector-dialog .mud-dialog-content {
        padding: 8px;
    }

    .competition-selector-stack {
        gap: 8px !important;
    }

    .competition-type-radios {
        gap: 4px;
    }

    .competition-type-radios .mud-radio {
        font-size: 0.8rem;
    }

    .competition-type-radios .mud-typography {
        font-size: 0.8rem;
    }
}

.wojewodztwo-button {
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.home-woj-tree .mud-treeview-item-content {
    width: 100%;
}

.home-woj-tree .home-tree-node .mud-treeview-item-content {
    border-radius: 9999px;
    padding: 8px 16px;
    margin-bottom: 4px;
}

.home-woj-tree .home-tree-node--active .mud-treeview-item-content {
    background-color: var(--mud-palette-dark, #111);
    color: #ffffff;
}

.home-woj-tree .home-tree-node--inactive .mud-treeview-item-content {
    background-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.38);
}

.home-woj-tree .home-tree-node--inactive .mud-treeview-item-content,
.home-woj-tree .home-tree-node--inactive .mud-treeview-item-content * {
    cursor: default;
}

.home-woj-tree .home-tree-node--selected .mud-treeview-item-content {
    background-color: var(--mud-palette-primary, #1976d2);
    color: #ffffff;
}

@media (min-width: 768px) {
    .sport-icon {
        max-height: 3rem;
    }
}

/* Prevent sport button labels from wrapping under the icon and add spacing from icon */
.sport-button-text {
    white-space: nowrap;
    margin-left: 0.75rem;
    flex: 1;
    text-align: center;
}

/* Keep heading on single line on all devices */
.live-heading {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .live-heading {
        font-size: 0.9rem;
    }
}

/* LIVE indicator animation */
.live-indicator {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #f44336;
}

.live-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #f44336;
    margin-right: 8px;
}

.live-indicator-dot--active {
    animation: live-dot-pulse 1s ease-in-out infinite;
}

@keyframes live-dot-pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.live-indicator-text {
    letter-spacing: 0.08em;
}

/* ===== DESKTOP LAYOUT: Three-column grid with banners ===== */
@media (min-width: 768px) {
    .mud-main-content .desktop-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 16px !important;
    }

    .banner-horizontal-wrapper {
        margin-bottom: 16px;
    }

    .layout-with-banners {
        display: grid !important;
        grid-template-columns: 200px minmax(0, 1fr) 200px !important;
        gap: 16px !important;
        align-items: start !important;
    }

    .layout-with-banners .banner-modules {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 200px !important;
        min-height: 50px;
        align-self: start !important;
    }

    .layout-with-banners .main-card-container {
        min-width: 0;
        align-self: start !important;
    }

    .banner-horizontal {
        max-width: 1200px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .banner-horizontal-image {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .banner-module img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

@media (min-width: 1400px) {
    .mud-main-content .desktop-container {
        max-width: 1600px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* "Wyniki na żywo" menu item - always red */
.nav-live-results,
.nav-live-results:hover,
.nav-live-results:focus,
.nav-live-results.mud-nav-link-active {
    color: red !important;
}

.nav-live-results .mud-nav-link-text,
.nav-live-results .mud-icon-root {
    color: red !important;
}

a,
button,
[role="button"],
[onclick] {
    cursor: pointer;
}

.mud-disabled,
[disabled],
[aria-disabled="true"] {
    cursor: default;
}

@media (min-width: 768px) and (min-height: 501px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 767.98px), (min-width: 768px) and (max-height: 500px) and (orientation: landscape) {
    .desktop-only {
        display: none !important;
    }
}

/* Mobile: narrow margins for round tables (Kolejka) */
@media (max-width: 767.98px) {
    .round-table-container {
        margin-left: -2px;
        margin-right: -2px;
        width: calc(100% + 4px);
    }
}