/* ============================================================
   TEAMS LISTING PAGE — tl- prefix
   ============================================================ */

.tl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tl-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}
.tl-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 14px;
    color: #9ca3af;
}
.tl-search {
    border: none;
    outline: none;
    font-size: 14px;
    color: #1a1a1a;
    background: transparent;
    width: 200px;
    font-family: inherit;
}
.tl-search::placeholder { color: #9ca3af; }

/* ── Section ── */
.tl-section {
    margin-bottom: 28px;
}
.tl-section__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 10px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 14px;
}
.tl-section__emblem {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.tl-section__name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}
.tl-section__link {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
    transition: color .15s;
}
.tl-section__link:hover { color: #e8192c; }

/* ── Grid ── */
.tl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

/* ── Team card ── */
.tl-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 10px 12px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tl-team:hover {
    border-color: #e8192c;
    box-shadow: 0 2px 10px rgba(232,25,44,.1);
    transform: translateY(-2px);
}
.tl-team__crest {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.tl-team__crest--placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
}
.tl-team__name {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}

@media (max-width: 640px) {
    .tl-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
    .tl-search { width: 140px; }
}
@media (max-width: 380px) {
    .tl-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
    .tl-search { width: 100%; }
    .tl-team { padding: 12px 8px 10px; }
    .tl-team__crest { width: 40px; height: 40px; }
    .tl-team__name { font-size: 11px; }
}

/* Sprint INTL-EXPANSION Phase 3 (AC-3.1+3.2): National Teams */
.tl-natl-block { margin-top: 32px; }
.tl-natl-title { font-size: 1.4rem; font-weight: 700; margin: 0 0 16px; }
.tl-section--national .tl-section__head {
    border-left: 3px solid #e8192c;
    padding-left: 10px;
}
.tl-team--national {
    position: relative;
}
.tl-team__rank {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #e8192c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    line-height: 1.3;
    pointer-events: none;
}
@media (max-width: 380px) {
    .tl-team__rank { font-size: 9px; padding: 1px 5px; top: 4px; right: 4px; }
}
