html {
    color-scheme: light;
    background: #eef7ff;
}

* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --bg: #eef7ff;
    --card: #ffffff;
    --card-light: #f3f8ff;
    --text: #071b3d;
    --muted: #60718a;
    --accent: #0878e8;
    --accent-soft: #e4f2ff;
    --success: #0f9f6e;
    --border: rgba(16, 61, 112, 0.13);
}

html.dark-mode {
    color-scheme: dark;
    background: #0b1424;
}

html.dark-mode {
    --bg: #0b1424;
    --card: #142238;
    --card-light: #1a2b43;
    --text: #e8f1ff;
    --muted: #a8b8cd;
    --accent: #55b7ff;
    --accent-soft: #1d3c5d;
    --success: #55d6a4;
    --border: rgba(182, 216, 255, 0.2);
}

html.dark-mode body {
    background:
        radial-gradient(circle at 12% 0%, rgba(8, 120, 232, 0.18), transparent 32%),
        linear-gradient(180deg, #101e32 0%, var(--bg) 100%);
}

body {
    margin: 0;
    forced-color-adjust: none;
    background:
        radial-gradient(circle at 12% 0%, rgba(8, 120, 232, 0.10), transparent 32%),
        linear-gradient(180deg, #f8fcff 0%, var(--bg) 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
    font-family: inherit;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ui-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app {
    max-width: 600px;
    margin: auto;
    padding: 16px 14px 30px;
}

.pull-indicator {
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transition: height 0.18s ease, opacity 0.18s ease;
}

.pull-indicator.visible {
    height: 34px;
    opacity: 1;
}

.pull-indicator.ready {
    color: var(--accent);
}

/* HEADER */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.brand-logo {
    display: block;
    width: clamp(160px, 48vw, 250px);
    height: auto;
}

.menu-button .ui-icon {
    width: 20px;
    height: 20px;
}

.menu-button .menu-icon {
    transition: opacity 240ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-button .menu-icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.65);
}

.menu-button.open .menu-icon-bars {
    opacity: 0;
    transform: rotate(90deg) scale(0.65);
}

.menu-button.open .menu-icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

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

.desktop-quick-actions {
    display: none;
}

.desktop-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.desktop-quick-action:hover,
.desktop-quick-action:focus-visible {
    border-color: rgba(8, 120, 232, 0.35);
    background: var(--accent-soft);
}

.desktop-quick-action-channel {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.desktop-quick-action-channel:hover,
.desktop-quick-action-channel:focus-visible {
    border-color: var(--accent);
    background: #066bcf;
    color: #fff;
}

.reminder-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
}

.reminder-button .ui-icon {
    width: 20px;
    height: 20px;
}

.reminder-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid var(--card);
    border-radius: 999px;
    background: #e44848;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
}

.menu-button {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.menu-panel {
    display: block;
    position: absolute;
    z-index: 10;
    top: 54px;
    right: 0;
    width: min(300px, calc(100vw - 28px));
    max-height: min(calc(100vh - 84px), 680px);
    padding: 10px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(28, 67, 108, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: opacity 320ms cubic-bezier(0.25, 0.8, 0.25, 1), transform 320ms cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0s linear 320ms;
}

html.dark-mode .menu-panel,
html.dark-mode .match-card,
html.dark-mode .reminder-button,
html.dark-mode .menu-button,
html.dark-mode .schedule-guide,
html.dark-mode .tournaments-section,
html.dark-mode .tournament-match-row,
html.dark-mode .featured-match,
html.dark-mode .match-modal-sheet,
html.dark-mode .my-teams-modal-sheet,
html.dark-mode .about-modal-sheet {
    background: var(--card);
    color: var(--text);
}

html.dark-mode .welcome {
    background:
        radial-gradient(circle at 86% 35%, rgba(33, 165, 232, 0.18), transparent 28%),
        linear-gradient(125deg, #142238, #1a3855 62%);
}

html.dark-mode .featured-match {
    background: linear-gradient(135deg, #142238, #1b3550 68%);
}

html.dark-mode .featured-countdown {
    background: rgba(26, 43, 67, 0.92);
}

html.dark-mode .featured-match.expanded .featured-countdown {
    background: #1d3c5d;
}

html.dark-mode .big-match-stack::before,
html.dark-mode .big-match-stack::after {
    border-color: rgba(182, 216, 255, 0.16);
    background: #1a2b43;
}

html.dark-mode .big-match-card,
html.dark-mode .featured-match.expanded .big-match-card:not(:first-child) {
    border-top-color: rgba(182, 216, 255, 0.16);
}

html.dark-mode .brand {
    padding: 5px 10px;
    border-radius: 14px;
    background: #f8fcff;
}

html.dark-mode .match-card,
html.dark-mode .schedule-guide,
html.dark-mode .tournaments-section,
html.dark-mode .tournament-card,
html.dark-mode .tournament-match-row,
html.dark-mode .reminder-button,
html.dark-mode .menu-button,
html.dark-mode details,
html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea {
    border-color: var(--border);
}

html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea,
html.dark-mode .favourite-button,
html.dark-mode .set-reminder-button,
html.dark-mode .remove-reminder,
html.dark-mode .buddy-message {
    background: var(--card-light);
    color: var(--text);
}

html.dark-mode .buddy-message {
    background: #0878e8;
    color: #ffffff;
}

html.dark-mode .modal-handle {
    background: rgba(232, 241, 255, 0.25);
}

html.dark-mode .menu-item:hover,
html.dark-mode .menu-item:focus-visible {
    background: var(--accent-soft);
}

html.dark-mode .match-modal,
html.dark-mode .my-teams-modal,
html.dark-mode .favourite-matches-modal,
html.dark-mode .reminders-modal,
html.dark-mode .about-modal {
    background: rgba(2, 8, 16, 0.78);
}

.menu-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: opacity 320ms cubic-bezier(0.25, 0.8, 0.25, 1), transform 320ms cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
    .menu-button .menu-icon,
    .menu-panel,
    .menu-panel.open {
        transition: none;
    }
}

.menu-title {
    padding: 9px 12px 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    gap: 14px;
    min-height: 48px;
    border-radius: 12px;
    padding: 13px 12px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.menu-item span:last-child {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.menu-item-label,
.heading-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.menu-item-label .ui-icon,
.heading-with-icon .ui-icon {
    color: var(--accent);
}

.menu-item:hover,
.menu-item:focus-visible {
    background: var(--accent-soft);
}

.menu-contact-group {
    margin: 8px 4px 4px;
    padding: 13px 8px 8px;
    border-top: 1px solid var(--border);
}

.menu-contact-title {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 4px 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.menu-contact-title .ui-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.menu-contact-link {
    display: block;
    padding: 8px 8px;
    border-radius: 9px;
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
}

.menu-contact-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    padding: 0 8px;
}

.menu-contact-label {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.menu-contact-item .menu-contact-link {
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    overflow-wrap: anywhere;
}

.menu-contact-link:hover,
.menu-contact-link:focus-visible {
    background: var(--accent-soft);
    color: var(--text);
}

.menu-contact-email {
    display: block;
    cursor: pointer;
}

.menu-contact-email:hover {
    background: var(--accent-soft);
}

.menu-social {
    margin: 8px 4px 4px;
    padding: 13px 8px 8px;
    border-top: 1px solid var(--border);
}

.menu-social-title {
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.menu-social-links {
    display: flex;
    gap: 7px;
}

.menu-social-link {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #f8fbff;
    color: var(--text);
    text-decoration: none;
}

.menu-social-link:hover,
.menu-social-link:focus-visible {
    transform: translateY(-2px);
    border-color: currentColor;
}

/* WELCOME */

.welcome {
    background: linear-gradient(135deg, #ffffff, #e6f3ff);
    border: 1px solid rgba(8, 120, 232, 0.18);
    border-radius: 20px;
    padding: 2px 20px;
    margin-bottom: 8px;
}

.welcome-label {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-step {
    opacity: 0;
    transform: translateY(-115%);
    animation: welcome-step-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;
}

.welcome-step-1 { animation-delay: 0ms; }
.welcome-step-2 { animation-delay: 550ms; }
.welcome-step-3 { animation-delay: 1100ms; }

@keyframes welcome-step-in {
    from {
        opacity: 0;
        transform: translateY(-115%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome h1,
.welcome h2 {
    margin: 7px 0 5px;
    font-size: 20px;
}

.welcome-heading-line {
    display: block;
}

.welcome-heading-line-1 {
    color: #164a82;
}

.welcome-heading-line-2 {
    color: #0878e8;
}

.welcome-heading-line-3 {
    color: #4aa8ee;
}

html.dark-mode .welcome-heading-line-1 {
    color: #dbeeff;
}

html.dark-mode .welcome-heading-line-2 {
    color: #55b7ff;
}

html.dark-mode .welcome-heading-line-3 {
    color: #9bd6ff;
}

.welcome p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.local-time {
    margin-top: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

/* FEATURED NEXT MATCH */

.featured-match {
    position: relative;
    display: none;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid rgba(8, 120, 232, 0.24);
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #e7f3ff 68%);
    box-shadow: 0 12px 28px rgba(32, 83, 132, 0.12);
}

.featured-match.visible {
    display: block;
}

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

.featured-label {
    display: inline-flex;
    margin: 10px 12px 0;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(8, 120, 232, 0.12);
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.featured-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px 14px 6px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.featured-team {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.featured-team-flag {
    display: grid;
    width: 36px;
    min-height: 31px;
    place-items: center;
    font-size: 28px;
    line-height: 1;
}

.featured-team-flag .team-flag-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.featured-team-name {
    display: -webkit-box;
    width: 100%;
    max-width: 180px;
    min-height: 2.4em;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.featured-vs {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(8, 120, 232, 0.24);
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.featured-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 14px 10px;
    color: var(--muted);
    font-size: 12px;
}

.featured-meta-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.featured-meta-value {
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.featured-meta .match-tournament-name {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.featured-meta .match-format-label {
    font-size: 10px;
}

.featured-meta-date {
    text-align: right;
}

.featured-countdown {
    position: relative;
    width: fit-content;
    max-width: calc(100% - 20px);
    margin: 0 auto 9px;
    padding: 7px 9px;
    border: 1px solid rgba(8, 120, 232, 0.42);
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.15px;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(8, 120, 232, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.featured-match.expanded .featured-countdown {
    padding: 8px 10px;
    background: #dceeff;
    box-shadow: inset 0 0 0 1px rgba(8, 120, 232, 0.08);
}

.big-match-stack {
    position: relative;
    margin-top: 2px;
    margin-bottom: 10px;
    isolation: isolate;
    transition: margin-bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.big-match-stack::before,
.big-match-stack::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(16, 61, 112, 0.12);
    border-radius: 0 0 16px 16px;
    background: #dcecff;
    transform-origin: top center;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.big-match-stack::before {
    z-index: -1;
    inset: 8px 10px -8px;
    opacity: 0.58;
}

.big-match-stack::after {
    z-index: -2;
    inset: 16px 20px -16px;
    opacity: 0.4;
}

.featured-match.expanded .big-match-stack {
    margin-bottom: 0;
}

.featured-match.expanded .big-match-stack::before,
.featured-match.expanded .big-match-stack::after {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
}

.big-match-toggle {
    display: block;
    margin: 18px 16px 10px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.big-match-card {
    padding: 0 8px 2px;
    border-top: 1px solid rgba(16, 61, 112, 0.12);
    cursor: pointer;
}

.big-match-card .match-actions {
    justify-content: space-between;
    gap: 6px;
    margin-top: 2px;
    margin-inline: 5px;
    padding-top: 3px;
}

.big-match-card .match-actions > .favourite-button,
.big-match-card .match-actions > .set-reminder-button {
    flex: 0 1 auto;
    min-width: 0;
    padding: 4px 7px;
    font-size: 9px;
    line-height: 1.2;
}

.big-match-card .featured-teams {
    padding: 6px 8px 3px;
}

.big-match-card .featured-meta {
    padding: 0 8px 6px;
}

.big-match-card .featured-countdown {
    width: fit-content;
    max-width: calc(100% - 16px);
    margin: 0 auto 5px;
    padding: 5px 7px;
}

.big-match-card:not(:first-child) {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top-color: transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.985);
    transform-origin: top center;
    transition:
        max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease;
}

.featured-match.expanded .big-match-card:not(:first-child) {
    max-height: 320px;
    border-top-color: rgba(16, 61, 112, 0.12);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* FILTERS */

.filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 20px;
}

.filter {
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.filters .filter {
    padding: 8px 12px;
    font-size: 11px;
}

.today-filter-break {
    display: none;
}

.filter.active {
    color: #ffffff;
}

.filter.today.active {
    background: #0878e8;
    border-color: #0878e8;
}

.filter.tomorrow.active {
    background: #21a5e8;
    border-color: #21a5e8;
    color: #ffffff;
}

.filter.upcoming.active {
    background: #8bcdf2;
    border-color: #8bcdf2;
    color: #064a73;
}

.filter.finished {
    background: #d9f5e5;
    border-color: #a8dfbf;
    color: #176b43;
}

.filter.finished.active {
    background: #1f9d68;
    border-color: #1f9d68;
    color: #ffffff;
}

.secondary-filter-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: -10px 0 16px;
}

.finished-filter-row,
.tournaments-filter-row {
    margin: 0;
}

.secondary-filter-row .filter {
    display: inline-block;
    padding: 6px 10px;
    font-size: 10px;
    flex: 0 0 auto;
}

.tournaments-filter-row .filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-color: rgba(181, 140, 255, 0.35);
    background: rgba(181, 140, 255, 0.1);
    color: #7650b8;
    font-size: 10px;
}

.tournaments-filter-row .filter .ui-icon {
    width: 14px;
    height: 14px;
}

.tournaments-filter-row .filter:hover,
.tournaments-filter-row .filter:focus-visible,
.tournaments-filter-row .filter[aria-expanded="true"] {
    border-color: #8d63df;
    background: #8d63df;
    color: #ffffff;
}

.tournaments-section {
    margin: -2px 0 18px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--card);
}

.tournaments-section[hidden] {
    display: none;
}

.match-tools[hidden],
#matchContent[hidden] {
    display: none;
}

.upcoming-date-filter {
    display: grid;
    gap: 7px;
    margin: -2px 0 14px;
}

.upcoming-date-filter-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.upcoming-date-scroller {
    display: flex;
    gap: 7px;
    max-width: 100%;
    overflow-x: auto;
    padding: 1px 1px 5px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.upcoming-date-button {
    flex: 0 0 auto;
    border: 1px solid rgba(8, 120, 232, 0.24);
    border-radius: 999px;
    padding: 7px 11px;
    background: var(--card);
    color: var(--accent);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.upcoming-date-button:hover,
.upcoming-date-button:focus-visible {
    border-color: #0878e8;
    background: rgba(8, 120, 232, 0.08);
}

.upcoming-date-button.active {
    border-color: #0878e8;
    background: #0878e8;
    color: #ffffff;
}

.tournament-card {
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--bg);
}

.tournament-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    list-style: none;
}

.tournament-card summary::-webkit-details-marker {
    display: none;
}

.tournament-card summary::after {
    content: "＋";
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
}

.tournament-card[open] summary::after {
    content: "−";
}

.tournament-card-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.tournament-card-title .ui-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.tournament-card-count {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
}

.tournament-card-body {
    padding: 0 12px 12px;
    border-top: 1px solid var(--border);
}

.tournament-card-dates {
    margin-top: 10px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.tournament-card-description {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.tournament-format-group {
    margin-top: 12px;
}

.tournament-format-heading {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.tournament-match-list {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.tournament-match-row {
    display: grid;
    gap: 5px;
    width: 100%;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.tournament-match-row:hover,
.tournament-match-row:focus-visible {
    border-color: rgba(8, 120, 232, 0.42);
    background: var(--accent-soft);
}

.tournament-match-teams {
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tournament-match-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
}

.tournament-match-status-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.tournament-match-status-block .set-reminder-button {
    padding: 5px 8px;
    font-size: 9px;
}

.tournament-match-status-block .set-reminder-button[hidden] {
    display: none;
}

.tournament-match-meta strong {
    color: var(--accent);
    font-weight: 800;
}

.tournament-match-meta .tournament-match-status.is-countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}

.tournament-countdown-label {
    color: #071b3d;
    font-weight: 800;
}

.tournament-countdown-value {
    color: #0878e8;
    font-weight: 800;
}

html.dark-mode .tournament-countdown-label {
    color: #b8d4f2;
}

html.dark-mode .tournament-countdown-value {
    color: #55b7ff;
}

.match-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -5px 0 12px;
}

.last-updated {
    color: var(--muted);
    font-size: 11px;
}

.refresh-button {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 7px 10px;
    background: var(--card);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.refresh-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

/* SECTION */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}

.section-header h2,
.section-header h3 {
    margin: 0;
    font-size: 17px;
}

.section-header span {
    color: var(--muted);
    font-size: 11px;
}

/* LIVE CARD */

.live-card {
    background: linear-gradient(135deg, #ffffff, #e7fbf4);
    border: 1px solid rgba(15, 159, 110, 0.22);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 20px;
}

.live-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ff5c5c;
    font-size: 11px;
    font-weight: 800;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff5c5c;
}

.competition {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.live-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.live-team {
    width: 38%;
}

.team-flag {
    font-size: 30px;
    margin-bottom: 5px;
}

.team-name {
    font-size: 14px;
    font-weight: 800;
}

.score {
    margin-top: 5px;
    font-size: 12px;
    color: var(--muted);
}

.live-vs {
    font-size: 11px;
    color: var(--muted);
    font-weight: 800;
}

/* MATCH CARD */

.match-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 15px;
    margin-bottom: 11px;
}

.match-card[data-match-id] {
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.match-card[data-match-id]:active {
    transform: scale(0.985);
    border-color: rgba(8, 120, 232, 0.45);
}

.match-card.favourite-match {
    border-color: rgba(250, 204, 21, 0.42);
    box-shadow: inset 3px 0 0 #facc15;
}

.match-card.favourite-match::before {
    content: "★ MY TEAM";
    display: block;
    margin-bottom: 10px;
    color: #facc15;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.7px;
}

.finished-results {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.finished-result-card {
    background: var(--card);
    border: 1px solid rgba(15, 159, 110, 0.25);
    border-radius: 17px;
    padding: 15px;
    margin-bottom: 11px;
}

.finished-result-badge {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 159, 110, 0.14);
    color: var(--success);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.finished-result-teams {
    font-size: 16px;
    font-weight: 800;
}

.finished-result-summary {
    margin-top: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.finished-result-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.match-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.favourite-button {
    flex: 0 0 auto;
    border: 1px solid rgba(8, 120, 232, 0.2);
    border-radius: 999px;
    padding: 6px 9px;
    background: #ffffff;
    color: var(--muted);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.favourite-button.active {
    border-color: rgba(250, 120, 72, 0.3);
    background: rgba(250, 120, 72, 0.1);
    color: #c2410c;
}

.favourite-button:focus-visible,
.favourite-button:hover {
    border-color: rgba(8, 120, 232, 0.45);
}

.match-type {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    overflow-wrap: anywhere;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.match-tournament-name {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.match-format-label {
    display: block;
    color: var(--success);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
}

.match-status {
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.match-status.today {
    background: rgba(15, 159, 110, 0.12);
    color: var(--success);
}

.match-status.live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(220, 38, 38, 0.11);
    color: #dc2626;
}

.match-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: live-dot-blink 1.1s ease-in-out infinite;
}

@keyframes live-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
    .match-live-dot {
        animation: none;
    }
}

.match-status.upcoming {
    background: rgba(8, 120, 232, 0.09);
    color: #45627f;
}

.teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    text-align: center;
    min-width: 0;
}

.team {
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.team-logo {
    font-size: 27px;
    margin-bottom: 6px;
}

.team-flag-icon {
    width: 1.25em;
    height: 1.25em;
    object-fit: contain;
    vertical-align: -0.2em;
}

.team-name-card {
    display: -webkit-box;
    width: 100%;
    max-width: 140px;
    margin-inline: auto;
    min-height: calc(2 * 1.2em);
    font-size: clamp(10px, 2.7vw, 14px);
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vs {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.match-vs {
    display: flex;
    width: auto;
    min-width: 78px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.start-in-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: lowercase;
}

.match-countdown {
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
}

.match-countdown.is-hidden,
.match-countdown:empty {
    display: none;
}

.start-in-label.is-hidden {
    display: none;
}

.match-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding-top: 12px;
}

.match-card .match-bottom {
    position: relative;
}

.match-time {
    font-size: 15px;
    font-weight: 800;
}

.match-schedule {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.match-date {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.venue {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
    color: var(--muted);
    font-size: 10px;
    overflow-wrap: anywhere;
    text-align: right;
}

.venue-label {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.35em;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
}

.venue-label > span {
    text-align: left;
    overflow-wrap: anywhere;
}

.venue-label .ui-icon {
    vertical-align: -2px;
    flex: 0 0 auto;
}

.match-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 7px;
}

.match-actions[hidden] {
    display: none;
}

.match-actions .favourite-button,
.match-actions .set-reminder-button {
    min-width: 132px;
}

.set-reminder-button {
    flex: 0 0 auto;
    border: 1px solid rgba(8, 120, 232, 0.2);
    border-radius: 999px;
    padding: 6px 9px;
    background: #ffffff;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    opacity: 1;
}

.set-reminder-button.is-set {
    border-color: rgba(16, 148, 92, 0.35);
    background: rgba(16, 148, 92, 0.08);
    color: #087a4b;
}

.reminder-picker {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.reminder-picker[hidden] {
    display: none;
}

.reminder-picker fieldset {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.reminder-picker legend {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.reminder-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}

.reminder-option:has(input:checked) {
    border-color: rgba(8, 120, 232, 0.45);
    background: rgba(8, 120, 232, 0.06);
}

.save-reminder {
    width: 100%;
    margin-top: 12px;
    border: 0;
    border-radius: 10px;
    padding: 11px 14px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.save-reminder:disabled {
    cursor: wait;
    opacity: 0.7;
}

.save-reminder.is-set {
    background: #087a4b;
}

.reminder-status {
    min-height: 20px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 420px) {
    .match-bottom {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px 12px;
    }

    .match-card .match-bottom > .venue {
        grid-column: 2;
        grid-row: 1;
    }
}

/* FOOTER */

.footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
}

.social-section {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid rgba(8, 120, 232, 0.18);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 15%, rgba(33, 165, 232, 0.22), transparent 28%),
        linear-gradient(125deg, #082542, #0d4770);
    color: #ffffff;
    text-align: left;
    box-shadow: 0 16px 30px rgba(8, 55, 92, 0.16);
}

.social-eyebrow {
    margin: 0 0 5px;
    color: #75d4f4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.social-section h2 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
}

.social-section p:not(.social-eyebrow) {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 6px 11px 6px 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.18);
}

.social-mark {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.social-icon {
    display: block;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.menu-social-link .social-icon {
    width: 16px;
    height: 16px;
}

.instagram .social-mark { background: linear-gradient(135deg, #f9ce34, #ee2a7b 52%, #6228d7); }
.facebook .social-mark { background: #315bb5; font-size: 16px; }
.threads .social-mark { background: #222b3a; font-size: 13px; }
.threads .social-icon { color: #ffffff; }
.telegram .social-mark { background: #229ed9; }
.telegram .social-icon { fill: currentColor; stroke: none; }
.x-social .social-mark { background: #101827; font-size: 12px; }

.footer-note,
.footer-copyright {
    margin: 0;
}

.footer-copyright {
    margin-top: 8px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card-light);
    text-align: left;
}

.footer-link-group {
    min-width: 0;
}

.footer-group-title {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    line-height: 1.2;
    text-transform: uppercase;
}

.footer-link-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-link-items a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.footer-link-items a:hover,
.footer-link-items a:focus-visible {
    color: var(--accent);
    border-color: rgba(8, 120, 232, 0.35);
    background: var(--accent-soft);
    text-decoration: none;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding-left: 14px;
    border-left: 1px solid var(--border);
}

.footer-contact-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    max-width: 100%;
    font-size: 10px;
}

.footer-contact-label {
    color: var(--text);
    font-weight: 800;
}

.footer-contact-item a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.footer-contact-item a:hover,
.footer-contact-item a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.footer-contact-email {
    color: var(--muted);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.match-modal {
    display: none;
    position: fixed;
    z-index: 20;
    inset: 0;
    align-items: flex-end;
    background: rgba(2, 8, 16, 0.72);
}

.match-modal.open {
    display: flex;
}

.match-modal-sheet {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 14px 16px 30px;
    border: 1px solid var(--border);
    border-radius: 24px 24px 0 0;
    background: #ffffff;
    box-shadow: 0 -16px 36px rgba(17, 55, 94, 0.20);
}

.modal-handle {
    width: 38px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 99px;
    background: rgba(7, 27, 61, 0.20);
}

.modal-close {
    float: right;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-light);
    color: var(--text);
    font-size: 18px;
}

.modal-close .ui-icon {
    width: 17px;
    height: 17px;
}

.refresh-button,
.venue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.venue { justify-content: flex-end; }
.venue .ui-icon { width: 13px; height: 13px; color: var(--accent); }

.detail-tournament {
    margin: 0 42px 7px 0;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.detail-teams {
    margin: 0 42px 20px 0;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.detail-row strong {
    color: var(--text);
    font-size: 13px;
    text-align: right;
}

.status-state {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.favourite-list {
    display: grid;
    gap: 10px;
    max-height: min(55vh, 440px);
    margin-top: 18px;
    overflow-y: auto;
}

.reminder-list {
    display: grid;
    gap: 10px;
    max-height: min(55vh, 440px);
    margin-top: 18px;
    overflow-y: auto;
}

.reminder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-light);
}

.reminder-item-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.reminder-item-main strong {
    color: var(--text);
    font-size: 13px;
}

.reminder-item-main span {
    color: var(--muted);
    font-size: 11px;
}

.remove-reminder {
    flex: 0 0 auto;
    border: 1px solid rgba(228, 72, 72, 0.25);
    border-radius: 999px;
    padding: 6px 9px;
    background: #fff;
    color: #c03939;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.remove-reminder:disabled {
    cursor: wait;
    opacity: 0.65;
}

.favourite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-light);
}

.favourite-item-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.favourite-item-main strong {
    color: var(--text);
    font-size: 13px;
}

.favourite-item-main span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.feature-heading {
    margin: 0 42px 5px 0;
    font-size: 20px;
}

.feature-copy {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.team-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: min(52vh, 420px);
    margin-top: 18px;
    overflow-y: auto;
}

.team-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--card-light);
    color: var(--text);
    font-size: 11px;
    cursor: pointer;
}

.team-choice:has(input:checked) {
    border-color: rgba(250, 204, 21, 0.48);
    background: rgba(250, 204, 21, 0.08);
}

.team-choice input {
    accent-color: #facc15;
}

.feature-primary {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.about-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.about-list li {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card-light);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.schedule-guide {
    margin-top: 22px;
}

.schedule-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.schedule-page-links a {
    display: inline-flex;
    padding: 11px 13px;
    border: 1px solid rgba(8, 120, 232, 0.22);
    border-radius: 12px;
    background: var(--card);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.faq-list {
    display: grid;
    gap: 9px;
}

.faq-list details {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    overflow: hidden;
}

.faq-list summary {
    padding: 13px 14px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.faq-list p {
    margin: 0;
    padding: 0 14px 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.faq-list a {
    color: var(--accent);
    font-weight: 700;
}

.content-page {
    max-width: 820px;
    margin: auto;
    padding: 24px 16px 40px;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    margin-bottom: 18px;
}

.content-logo {
    display: inline-flex;
    flex: 0 1 min(230px, 44vw);
    min-width: 0;
}

.content-logo img {
    display: block;
    width: 100%;
    max-width: 230px;
    height: auto;
}

.content-home-link,
.content-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(8, 120, 232, 0.22);
    border-radius: 12px;
    background: var(--card);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.content-home-link {
    padding: 10px 12px;
}

.content-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    background: linear-gradient(135deg, #ffffff, #eef7ff);
    box-shadow: 0 14px 34px rgba(32, 83, 132, 0.10);
}

.content-card h1 {
    margin: 8px 0 8px;
    font-size: clamp(30px, 8vw, 46px);
    line-height: 1.08;
}

.content-card h2 {
    margin: 26px 0 8px;
    font-size: 20px;
}

.content-card p,
.content-list {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.content-lead {
    max-width: 660px;
    margin-top: 0;
}

.content-primary {
    margin-top: 6px;
    padding: 12px 14px;
    background: var(--accent);
    color: #ffffff;
}

.content-list {
    display: grid;
    gap: 8px;
    padding-left: 20px;
}

/* CRICKET BUDDY */
.cricket-buddy {
    position: fixed;
    z-index: 15;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 76px;
    height: 108px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    filter: drop-shadow(0 10px 13px rgba(0, 0, 0, 0.32));
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.cricket-buddy:active { transform: scale(0.94); }
.cricket-buddy:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 6px;
    border-radius: 12px;
}
.buddy-message {
    position: fixed;
    z-index: 15;
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 120px);
    max-width: calc(100vw - 24px);
    min-height: 36px;
    padding: 8px 7px 8px 12px;
    border-radius: 20px;
    background: #0878e8;
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    line-height: 0.4;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 23px rgba(0, 0, 0, 0.24);
}
.buddy-message[hidden] {
    display: none;
}
.buddy-message a {
    display: inline-flex;
    align-items: center;
    padding-right: 34px;
    color: inherit;
    text-decoration: none;
}
.buddy-message a:hover { text-decoration: underline; }
.buddy-smile {
    width: 1em;
    height: 1em;
    vertical-align: -0.16em;
}
.buddy-message-close {
    position: absolute;
    top: 50%;
    right: -2px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1;
    padding: 0;
    display: grid;
    place-items: center;
    z-index: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transform: translateY(-50%);
}
.buddy-message-close:hover { background: rgba(255, 255, 255, 0.14); }
.buddy-message-close:focus-visible, .buddy-message a:focus-visible {
    outline: 3px solid #0284c7;
    outline-offset: 2px;
}
.buddy-message::after {
    content: "";
    position: absolute;
    right: 30px;
    top: 100%;
    border: 7px solid transparent;
    border-top-color: #0878e8;
    border-bottom: 0;
}
.buddy-antenna {
    position: absolute;
    top: 0;
    left: 36px;
    width: 4px;
    height: 13px;
    border-radius: 4px;
    background: #8ca1b8;
}
.buddy-antenna::before {
    content: "";
    position: absolute;
    top: -4px;
    left: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 9px rgba(8, 120, 232, 0.65);
}
.buddy-head {
    position: absolute;
    z-index: 3;
    top: 11px;
    left: 14px;
    width: 50px;
    height: 39px;
    border: 2px solid #9fb1c5;
    border-radius: 15px;
    background: linear-gradient(145deg, #f4f8fb, #aab9c8);
    box-shadow: inset 0 -5px 8px rgba(44, 65, 86, 0.18);
}
.buddy-face {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    position: absolute;
    inset: 8px 6px;
    border-radius: 9px;
    background: #102238;
}
.buddy-eye {
    width: 6px;
    height: 8px;
    border-radius: 50%;
    background: #67efb4;
    box-shadow: 0 0 6px rgba(103, 239, 180, 0.9);
    animation: buddy-blink 4.8s infinite;
}
.buddy-body {
    position: absolute;
    z-index: 2;
    top: 52px;
    left: 19px;
    width: 40px;
    height: 38px;
    border: 2px solid #8fa3b8;
    border-radius: 11px 11px 15px 15px;
    background: linear-gradient(145deg, #dce6ee, #8296aa);
}
.buddy-body::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 9px;
    width: 22px;
    height: 22px;
    background: url("../assets/app-icon.png") center / contain no-repeat;
}
.buddy-arm, .buddy-leg {
    position: absolute;
    border: 2px solid #8fa3b8;
    background: #c7d3dd;
}
.buddy-arm {
    z-index: 1;
    top: 56px;
    width: 13px;
    height: 34px;
    border-radius: 9px;
    transform-origin: 50% 6px;
}
.buddy-arm-left { left: 9px; transform: rotate(10deg); }
.buddy-arm-right {
    right: 7px;
    transform: rotate(-12deg);
    animation: buddy-wave 6s ease-in-out infinite;
}
.buddy-leg {
    z-index: 1;
    top: 84px;
    width: 13px;
    height: 22px;
    border-radius: 0 0 8px 8px;
}
.buddy-leg-left { left: 23px; }
.buddy-leg-right { right: 20px; }
.cricket-buddy.user-wave .buddy-arm-right { animation: buddy-tap-wave 0.75s ease-in-out; }
@keyframes buddy-wave {
    0%, 5%, 18%, 100% { transform: rotate(-12deg); }
    8%, 14% { transform: rotate(-142deg); }
    11%, 17% { transform: rotate(-105deg); }
}
@keyframes buddy-tap-wave {
    0%, 100% { transform: rotate(-12deg); }
    25%, 70% { transform: rotate(-142deg); }
    48% { transform: rotate(-102deg); }
}
@keyframes buddy-blink {
    0%, 45%, 49%, 100% { transform: scaleY(1); }
    47% { transform: scaleY(0.12); }
}

@media (prefers-reduced-motion: reduce) {
    .buddy-eye, .buddy-arm-right, .welcome-step {
        animation: none;
    }

    .welcome-step {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 360px) {
    .app {
        padding-left: 10px;
        padding-right: 10px;
    }

    .team-name-card {
        font-size: 13px;
    }

    .welcome h1,
    .welcome h2 {
        font-size: 18px;
    }

    .featured-meta {
        grid-template-columns: 1fr;
    }

    .featured-meta-date {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .footer-links {
        grid-template-columns: 1fr;
        padding: 12px;
        text-align: center;
    }

    .footer-link-items {
        justify-content: center;
    }

    .footer-contact {
        align-items: center;
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .filters {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        padding-bottom: 0;
    }

    .filters .filter {
        width: 100%;
        min-width: 0;
        padding: 8px 4px;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
    }

    .today-filter-break {
        display: inline;
    }
}

/* DESKTOP WEBSITE */

@media (min-width: 900px) {
    body {
        min-height: 100vh;
        background:
            radial-gradient(circle at 12% 0%, rgba(8, 120, 232, 0.12), transparent 30%),
            radial-gradient(circle at 88% 8%, rgba(33, 165, 232, 0.11), transparent 28%),
            var(--bg);
    }

    .app {
        display: grid;
        grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
        column-gap: 28px;
        max-width: 1180px;
        padding: 28px 28px 42px;
    }

    .pull-indicator,
    .header,
    .welcome,
    .footer {
        grid-column: 1 / -1;
    }

    .header {
        margin-bottom: 26px;
    }

    .desktop-quick-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .brand-logo {
        width: 280px;
    }

    .welcome {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2px 32px;
        margin-bottom: 16px;
        background:
            radial-gradient(circle at 86% 35%, rgba(33, 165, 232, 0.16), transparent 28%),
            linear-gradient(125deg, #ffffff, #e6f3ff 62%);
    }

        .welcome h1,
        .welcome h2 {
            margin-top: 9px;
            font-size: 34px;
        }

    .welcome p {
        font-size: 15px;
    }

    .schedule-layout {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
        column-gap: 28px;
        align-items: start;
    }

    .featured-column,
    .matches-column {
        min-width: 0;
    }

    .featured-match {
        align-self: start;
        margin-bottom: 0;
    }

    .schedule-guide {
        grid-column: 1 / -1;
        margin-top: 28px;
    }

    .filters {
        margin-bottom: 14px;
    }

    .secondary-filter-row {
        margin-top: -6px;
        margin-bottom: 8px;
    }

    .match-tools {
        margin-top: 0;
    }

    .filter {
        flex: 1;
        padding: 12px 18px;
        cursor: pointer;
    }

    #matchContent {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        align-content: start;
    }

    #matchContent > .section-header,
    #matchContent > .empty {
        grid-column: 1 / -1;
    }

    .match-card {
        height: 100%;
        min-height: 190px;
        margin-bottom: 0;
        padding: 18px;
    }

    .match-card[data-match-id]:hover {
        transform: translateY(-3px);
        border-color: rgba(8, 120, 232, 0.38);
        box-shadow: 0 14px 28px rgba(32, 83, 132, 0.14);
    }

    .match-modal {
        align-items: center;
        padding: 30px;
    }

    .match-modal-sheet {
        max-width: 560px;
        padding: 22px 24px 28px;
        border-radius: 24px;
    }

    .footer {
        margin-top: 32px;
        padding-top: 20px;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 8px 24px;
        text-align: left;
    }

    .social-section {
        grid-column: 1 / -1;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 24px;
    }

    .footer-note {
        grid-column: 1 / -1;
    }

    .footer-copyright,
    .footer-links {
        margin-top: 0;
    }

    .footer-links {
        justify-content: flex-end;
    }

    .footer-contact {
        align-items: flex-end;
    }

    .footer-contact-item {
        justify-content: flex-end;
    }
}
