/* ==========================================================================
   VASCO MATCH SCHEDULE MODULE (HOME SCREEN)
   ========================================================================== */
.vasco-matches-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.45s ease-out;
}

.matches-heading-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.matches-team-badge {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.matches-heading-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Nav Controls Footer below Match Carousel */
.matches-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.matches-nav-arrows {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 3px 6px;
    border-radius: var(--radius-full);
}

.btn-matches-arrow {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    padding: 0;
}

.btn-matches-arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.btn-matches-arrow:active:not(:disabled) {
    transform: scale(0.95);
}

.btn-matches-arrow:disabled,
.btn-matches-arrow.disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* Carousel Wrapper & Scroll Container */
.matches-carousel-wrapper {
    position: relative;
    width: 100%;
}

.matches-grid.matches-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 4px 4px 12px 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.03);
    cursor: grab;
}

.matches-grid.matches-carousel.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
    cursor: grabbing;
}

.matches-grid.matches-carousel::-webkit-scrollbar {
    height: 6px;
}

.matches-grid.matches-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
}

.matches-grid.matches-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.matches-grid.matches-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Match Card in Carousel: 3 side-by-side on desktop */
.matches-carousel .match-card {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 290px;
    max-width: 440px;
    scroll-snap-align: start;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .matches-carousel .match-card {
        flex: 0 0 calc((100% - 16px) / 2);
        min-width: 280px;
    }
}

@media (max-width: 680px) {
    .matches-carousel .match-card {
        flex: 0 0 85%;
        min-width: 250px;
        max-width: 320px;
        padding: 14px;
        min-height: auto;
    }
}

@media (max-width: 420px) {
    .matches-carousel .match-card {
        flex: 0 0 90%;
        min-width: 235px;
        max-width: 300px;
        padding: 12px;
        min-height: auto;
    }

    .duel-badge-wrapper {
        width: 38px;
        height: 38px;
    }

    .duel-vs-circle-wrapper {
        height: 38px;
    }

    .duel-team-name {
        font-size: 0.78rem;
    }

    .duel-date-day {
        font-size: 0.70rem;
    }

    .duel-date-hour {
        font-size: 0.68rem;
    }
}

/* Match Card */
.match-card {
    background: linear-gradient(145deg, rgba(20, 20, 24, 0.85), rgba(12, 12, 15, 0.95));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    flex-shrink: 0;
    user-select: none;
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.7), 0 0 16px rgba(255, 255, 255, 0.06);
}

/* Featured Next Match */
.match-card.featured {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(145deg, rgba(16, 26, 20, 0.95), rgba(12, 18, 14, 0.98));
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.7), 0 0 20px rgba(16, 185, 129, 0.16);
}

.match-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #10b981 30%, #34d399 70%, transparent);
}

.match-card.featured:hover {
    border-color: rgba(16, 185, 129, 0.65);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.8), 0 0 24px rgba(16, 185, 129, 0.25);
}

/* Top bar: Championship + Status pill */
.match-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.championship-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 175px;
    flex-shrink: 1;
}

.match-status-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.match-status-badge.featured {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.match-status-badge.live {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #ff4d4d;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    display: inline-block;
}

.live-dot.pulse {
    animation: liveDotPulse 1.4s ease-in-out infinite alternate;
}

@keyframes liveDotPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 8px currentColor;
    }
}

.duel-score-badge {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.match-status-badge.today {
    background: var(--accent-red-subtle);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.match-status-badge.tomorrow,
.match-status-badge.countdown {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* Match Face-off / Duel */
.match-duel {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 8px;
    padding: 4px 0;
}

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

.duel-badge-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: #ffffff;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin: 0 auto;
}

.match-card:hover .duel-badge-wrapper {
    transform: scale(1.06);
}

.duel-badge-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.duel-team-name {
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    line-height: 1.25;
}

.duel-vs-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    flex-shrink: 0;
}

.duel-vs-circle-wrapper {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.duel-vs {
    font-size: 0.70rem;
    font-weight: 900;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.05em;
}

.duel-date-time {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    text-align: center;
    line-height: 1.25;
}

.duel-date-day {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.duel-date-hour {
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.match-card.featured .duel-date-day {
    color: var(--text-primary);
    font-weight: 600;
}

.match-card.featured .duel-date-hour {
    color: #34d399;
    font-weight: 700;
}


/* Venue row */
.match-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.match-meta-row svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.8;
}

.match-meta-stadium {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Broadcast Footer */
.match-broadcast-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.broadcast-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.broadcast-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.broadcast-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.broadcast-pill.playable {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
    cursor: pointer;
    font-weight: 600;
}

.broadcast-pill.playable:hover {
    background: #10b981;
    color: #080808;
    border-color: #10b981;
    transform: scale(1.04);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
    font-weight: 700;
}

.broadcast-pill.empty {
    font-style: italic;
    color: var(--text-muted);
    border-style: dashed;
}

/* Star & Category SVG Icons */
.btn-card-fav .star-icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    transition: var(--transition-fast);
}

.btn-card-fav:hover .star-icon {
    stroke: var(--text-primary);
}

.btn-card-fav.favorited .star-icon {
    fill: #fbbf24;
    stroke: #fbbf24;
}

.category-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-right: 8px;
    flex-shrink: 0;
}

.category-header-btn:hover .category-header-icon,
.category-header-btn[aria-expanded="true"] .category-header-icon {
    color: #ffffff;
}

.pill .icon-svg {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    vertical-align: -2px;
}

/* Skeleton Loaders */
.skeleton-match-card {
    min-height: 190px;
    animation: pulse 1.8s infinite;
}

.skeleton-match-line {
    height: 14px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
}

.skeleton-match-line.short {
    width: 50%;
}

.skeleton-match-duel {
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin: 8px 0;
}
/* --- TV Remote & D-Pad Focus Navigation Styles --- */
:focus-visible:not(input):not(textarea),
.tv-focused:not(input):not(textarea) {
    outline: 2px solid #ffffff !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.02);
    transition: transform var(--transition-fast), outline var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 10;
}

:focus:not(:focus-visible):not(.tv-focused),
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ==========================================================================
   DYNAMIC MULTI-TEAM SELECTION & INVITATION MODULE
   ========================================================================== */

/* Button to change/choose team in section header */
.btn-change-team {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-change-team svg {
    color: #ffffff;
    flex-shrink: 0;
}

.btn-change-team:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.btn-change-team:active {
    transform: translateY(0);
}

/* Active Club Emblem in Section Header */
.team-header-crest {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    border-radius: var(--radius-full);
}

/* Friendly Unselected State (Invitation Hero Card) */
.unselected-team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.unselected-team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.unselected-icon-bubble {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
    margin-bottom: 2px;
}

.unselected-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.unselected-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0;
    line-height: 1.5;
}

.btn-choose-team-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #080808;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-choose-team-cta:hover {
    background: #e4e4e7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.btn-choose-team-cta:active {
    transform: translateY(0);
}

/* ==========================================================================
   TEAM SELECTION MODAL
   ========================================================================== */
.team-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.team-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.team-modal-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 660px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(8px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-modal-backdrop.active .team-modal-card {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.team-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
}

.team-modal-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.team-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.team-modal-title-group h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.team-modal-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.btn-modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

/* Modal Search */
.team-modal-search-wrapper {
    position: relative;
    padding: 14px 24px 8px 24px;
}

.team-search-icon {
    position: absolute;
    left: 36px;
    top: 50%;
    transform: translateY(-20%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.team-search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 10px 14px 10px 38px;
    color: var(--text-primary);
    font-size: 0.86rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.team-search-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.team-search-input::placeholder {
    color: var(--text-muted);
}

/* Modal Body & Teams Grid */
.team-modal-body {
    padding: 12px 24px 24px 24px;
    overflow-y: auto;
    flex: 1;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.team-select-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

.team-select-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.team-select-card.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.team-card-crest-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: #ffffff;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.team-card-crest {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-card-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
    word-break: break-word;
}

.team-select-card.active .team-card-name {
    color: #ffffff;
    font-weight: 700;
}

.team-card-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: #ffffff;
    color: #080808;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.teams-empty-search {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 16px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

@media (max-width: 640px) {
    .team-modal-card {
        max-height: 90vh;
        border-radius: var(--radius-lg);
    }

    .team-modal-header {
        padding: 16px 18px;
    }

    .team-modal-search-wrapper {
        padding: 10px 18px 6px 18px;
    }

    .team-modal-body {
        padding: 10px 18px 18px 18px;
    }

    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
        gap: 8px;
    }

    .team-select-card {
        padding: 10px 8px;
    }

    .team-card-crest-wrapper {
        width: 36px;
        height: 36px;
    }

    /* Mobile Section Heading & Action */
    .section-heading {
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        padding-bottom: 8px;
    }

    .matches-heading-left {
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px;
    }

    .matches-heading-left div {
        min-width: 0;
    }

    .matches-heading-left h3 {
        font-size: 1.05rem;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .matches-heading-left .section-hint {
        font-size: 0.74rem;
        line-height: 1.3;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .matches-heading-right {
        margin-left: auto;
    }

    .btn-change-team {
        padding: 5px 11px;
        font-size: 0.74rem;
        white-space: nowrap;
    }

    .quick-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 440px) {
    .matches-heading-left .section-hint {
        white-space: normal;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .duel-team-name {
        font-size: 0.76rem;
    }
}

