.teams-page {
    background: radial-gradient(circle at top, #1a1a1a, #0d0d0d);
    color: #e8e8e8;
    padding: 30px 20px 30px;
}

.teams-page .hero-banner {
    margin-top: 0;
}

.teams-page .hero-image {
    width: 100%;
    border-radius: 10px;
    max-height: 500px;
    overflow: hidden;
    border: 1px solid #414141;
}

.teams-page .page-team-section {
    background: radial-gradient(circle at top, #1a1a1a, #0d0d0d);
    padding: 20px;
    border: 1px solid #414141;
    border-radius: 16px;
    margin-top: 40px;
}

.teams-page .page-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.teams-page .page-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
}

.teams-page .page-team-card:hover {
    transform: translateY(-5px);
    border-color: #ffc600;
    background: rgba(255, 179, 1, 0.06);
    box-shadow: 0 10px 30px rgba(255, 179, 1, 0.1);
    text-decoration: none;
}

.teams-page .page-team-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.teams-page .page-team-card:hover .page-team-logo {
    border-color: #ffc600;
    box-shadow: 0 0 30px rgba(255, 179, 1, 0.15);
}

.teams-page .page-team-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.teams-page .page-team-card:hover .page-team-logo img {
    transform: scale(1.08);
}

.teams-page .page-team-name {
    font-size: 13px;
    font-weight: 600;
    color: #e8e8e8;
    text-align: center;
    margin-top: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.3s ease;
}

.teams-page .page-team-card:hover .page-team-name {
    color: #ffc600;
}

.teams-page .page-team-desc {
    font-size: 10px;
    color: #6b7280;
    text-align: center;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

.teams-page .page-team-flag {
    display: flex;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 15px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.teams-page .page-team-card:hover .page-team-flag {
    opacity: 1;
    transform: scale(1.05);
}

.teams-page .page-team-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teams-page .page-team-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.teams-page .page-team-badge span {
    font-size: 9px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.teams-page .page-badge-club {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    border: 1px solid rgba(79, 172, 254, 0.15);
}

.teams-page .page-badge-national {
    background: rgba(255, 179, 1, 0.2);
    color: #ffc600;
    border: 1px solid rgba(255, 179, 1, 0.15);
}

.teams-page .page-empty-teams {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.teams-page .page-empty-teams i {
    font-size: 48px;
    color: #ffc600;
    opacity: 0.3;
    margin-bottom: 16px;
}

.teams-page .page-empty-teams p {
    font-size: 16px;
    margin: 0;
}

.teams-page .page-pagination-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.teams-page .page-pagination-wrapper .pagination {
    --bs-pagination-bg: #2a2a2a;
    --bs-pagination-border-color: #414141;
    --bs-pagination-color: #e8e8e8;
    --bs-pagination-hover-bg: #3a3a3a;
    --bs-pagination-hover-border-color: #ffc600;
    --bs-pagination-active-bg: #ffb301;
    --bs-pagination-active-border-color: #ffc600;
    --bs-pagination-disabled-bg: #2a2a2a;
    --bs-pagination-disabled-border-color: #414141;
    --bs-pagination-border-radius: 8px;
}

.teams-page .page-pagination-wrapper .page-link {
    background: #2a2a2a;
    border-color: #414141;
    color: #e8e8e8;
    font-weight: 500;
    margin: 0 3px;
}

.teams-page .page-pagination-wrapper .page-link:hover {
    background: #3a3a3a;
    border-color: #ffc600;
    color: #ffc600;
}

.teams-page .page-pagination-wrapper .page-item.active .page-link {
    background: #ffb301;
    border-color: #ffc600;
    color: #1a1a1a;
}

.teams-page .page-pagination-wrapper .page-item.disabled .page-link {
    background: #2a2a2a;
    border-color: #414141;
    color: #6b7280;
}

.team-detail-page {
    background: radial-gradient(circle at top, #1a1a1a, #0d0d0d);
    color: #e8e8e8;
    padding: 30px 20px 60px;
    min-height: 100vh;
}

.team-detail-page .breadcrumb-wrapper {
    margin-bottom: 30px;
}

.team-detail-page .breadcrumb {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.team-detail-page .breadcrumb-item a {
    display: flex;
    align-items: center;
    color: #9ca3af;
    white-space: nowrap;
    font-size: 16px;
}

.team-detail-page .breadcrumb-item a:hover {
    color: #ffc600;
}

.team-detail-page .breadcrumb-item.active {
    color: #ffc600;
    font-weight: 600;
}

.team-detail-page .breadcrumb-item a,
.team-detail-page .breadcrumb-item span {
    color: #c8c8c8;
    text-decoration: none;
    transition: 0.2s ease;
}

.team-detail-page .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    margin: 0 8px;
    color: #555;
}

.team-detail-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 40px;
}

.team-detail-logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
}

.team-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-detail-info {
    flex: 1;
    min-width: 0;
}

.team-detail-name {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.team-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.team-detail-country {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9ca3af;
}

.team-detail-country img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-detail-type {
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
    background: rgba(255, 179, 1, 0.15);
    color: #ffc600;
}

.team-detail-type i {
    margin-right: 4px;
}

.team-detail-desc {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

.team-matches-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px;
}

.team-matches-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffc600;
    margin: 0 0 4px 0;
}

.team-matches-title i {
    margin-right: 10px;
}

.team-matches-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
}

.team-league-matches {
    margin-bottom: 30px;
}

.team-league-matches:last-child {
    margin-bottom: 0;
}

.team-league-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 179, 1, 0.06);
    border-radius: 10px;
    border-left: 3px solid #ffb301;
    margin-bottom: 12px;
}

.team-league-name {
    font-size: 16px;
    font-weight: 700;
    color: #e8e8e8;
    margin: 0;
}

.team-league-count {
    font-size: 12px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 12px;
    border-radius: 12px;
}

.team-matches-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-matches-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 700px;
}

.team-matches-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.team-matches-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.team-matches-table tbody tr {
    transition: background 0.3s ease;
}

.team-matches-table tbody tr:hover {
    background: rgba(255, 179, 1, 0.03);
}

.team-matches-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.team-matches-table tbody tr:last-child td {
    border-bottom: none;
}

.match-team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-team-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.match-team-name {
    font-weight: 500;
    color: #e8e8e8;
    white-space: nowrap;
}

.team-highlight {
    color: #ffb301 !important;
    font-weight: 700;
}

.match-date {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.match-time {
    color: #6b7280;
    font-size: 12px;
    white-space: nowrap;
}

.match-handicap {
    text-align: center;
    min-width: 60px;
}

.match-ft-score {
    color: #4ade80;
    font-weight: 700;
    font-size: 14px;
    display: block;
}

.match-ht-score {
    color: #fbbf24;
    font-size: 10px;
    display: block;
    margin-top: 2px;
    font-weight: 500;
}

.match-handicap-value {
    color: #6b7280;
    font-size: 13px;
}

.match-odds {
    font-weight: 600;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    min-width: 30px;
    text-align: center;
}

.match-over .match-odds {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
}

.match-under .match-odds {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
}

.match-total .match-odds {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

.match-h2h-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 172, 254, 0.15);
}

.match-h2h-btn:hover {
    background: #4facfe;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.match-h2h-btn i {
    font-size: 10px;
}

.team-empty-matches {
    text-align: center;
    padding: 50px 20px;
    color: #6b7280;
}

.team-empty-matches i {
    font-size: 48px;
    color: #ffc600;
    opacity: 0.3;
    margin-bottom: 16px;
}

.team-empty-matches p {
    font-size: 16px;
    margin: 0;
}

@media (max-width: 1024px) {
    .teams-page .page-team-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .teams-page {
        padding: 0;
    }

    .teams-page .section-header h2 {
        font-size: 18px;
        margin: 0;
    }

    .teams-page .sub-title {
        font-size: 13px;
        padding: 0;
        margin: 0;
    }

    .teams-page .page-team-section {
        padding: 16px;
        margin-top: 30px;
    }

    .teams-page .page-team-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 14px;
    }

    .teams-page .page-team-card {
        padding: 14px 10px 12px;
        min-height: 100px;
    }

    .teams-page .page-team-logo {
        width: 50px;
        height: 50px;
    }

    .teams-page .page-team-name {
        font-size: 11px;
        margin-top: 8px;
    }

    .teams-page .page-team-desc {
        font-size: 9px;
    }

    .teams-page .page-team-flag {
        width: 20px;
        height: 16px;
        top: 6px;
        right: 6px;
        border-radius: 2px;
    }

    .teams-page .page-team-badge {
        top: 8px;
        left: 8px;
    }

    .teams-page .page-team-badge span {
        padding: 1px 8px;
    }

    .team-detail-page {
        padding: 20px 12px 80px;
    }

    .team-detail-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }

    .team-detail-logo {
        width: 80px;
        height: 80px;
        padding: 8px;
    }

    .team-detail-name {
        font-size: 24px;
    }

    .team-detail-meta {
        justify-content: center;
    }

    .team-detail-desc {
        font-size: 13px;
    }

    .team-matches-section {
        padding: 16px;
    }

    .team-matches-title {
        font-size: 18px;
    }

    .team-matches-subtitle {
        font-size: 13px;
    }

    .team-league-header {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .team-league-name {
        font-size: 14px;
    }

    .team-matches-table {
        font-size: 12px;
        min-width: 600px;
    }

    .team-matches-table thead th,
    .team-matches-table tbody td {
        padding: 8px 10px;
    }

    .match-team-icon {
        width: 20px;
        height: 20px;
    }

    .match-h2h-btn {
        padding: 3px 10px;
        font-size: 10px;
    }

    .match-ft-score {
        font-size: 13px;
    }

    .match-ht-score {
        font-size: 9px;
    }

    .match-odds {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .teams-page .page-team-section {
        padding: 12px;
        margin-top: 25px;
        border-radius: 12px;
    }

    .teams-page .page-team-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .teams-page .page-team-card {
        padding: 10px 6px 10px;
        min-height: 85px;
        border-radius: 10px;
    }

    .teams-page .page-team-logo {
        width: 60px;
        height: 60px;
        border-width: 1.5px;
    }

    .teams-page .page-team-name {
        margin-top: 6px;
    }

    .teams-page .page-team-desc {
        display: none;
    }

    .teams-page .page-team-badge {
        top: 6px;
        left: 6px;
    }

    .teams-page .page-team-badge span {
        padding: 1px 6px;
        letter-spacing: 0.3px;
    }

    .teams-page .page-pagination-wrapper {
        margin-top: 20px;
    }

    .teams-page .page-pagination-wrapper .page-link {
        font-size: 13px;
        padding: 6px 10px;
    }

    .team-detail-page {
        padding: 12px 8px 70px;
    }

    .team-detail-header {
        padding: 14px;
        border-radius: 12px;
    }

    .team-detail-logo {
        width: 64px;
        height: 64px;
    }

    .team-detail-name {
        font-size: 20px;
    }

    .team-detail-country {
        font-size: 12px;
    }

    .team-detail-country img {
        width: 18px;
        height: 12px;
    }

    .team-detail-type {
        font-size: 10px;
        padding: 3px 10px;
    }

    .team-matches-section {
        padding: 12px;
        border-radius: 12px;
    }

    .team-matches-title {
        font-size: 16px;
    }

    .team-league-name {
        font-size: 13px;
    }

    .team-league-count {
        font-size: 10px;
        padding: 1px 10px;
    }

    .team-matches-table {
        font-size: 11px;
        min-width: 500px;
    }

    .team-matches-table thead th,
    .team-matches-table tbody td {
        padding: 6px 8px;
    }

    .match-team-icon {
        width: 16px;
        height: 16px;
    }

    .match-date,
    .match-time {
        font-size: 10px;
    }

    .match-h2h-btn {
        padding: 2px 8px;
        font-size: 9px;
    }

    .match-h2h-btn i {
        font-size: 8px;
    }

    .match-ft-score {
        font-size: 12px;
    }

    .match-ht-score {
        font-size: 8px;
    }

    .match-odds {
        font-size: 10px;
        padding: 1px 6px;
        min-width: 20px;
    }

    .match-handicap {
        min-width: 40px;
    }
}

@media (max-width: 380px) {
    .teams-page .page-team-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .teams-page .page-team-logo {
        width: 36px;
        height: 36px;
    }

    .teams-page .page-team-logo img {
        width: 26px;
        height: 26px;
    }

    .teams-page .page-team-name {
        font-size: 8px;
        margin-top: 4px;
    }

    .teams-page .page-team-flag {
        width: 12px;
        height: 8px;
        top: 4px;
        right: 4px;
    }

    .teams-page .page-team-badge span {
        font-size: 5px;
        padding: 1px 4px;
    }

    .team-matches-table {
        font-size: 10px;
        min-width: 420px;
    }

    .team-matches-table thead th,
    .team-matches-table tbody td {
        padding: 4px 6px;
    }

    .match-team-icon {
        width: 14px;
        height: 14px;
    }

    .match-team-name {
        font-size: 10px;
    }

    .match-ft-score {
        font-size: 11px;
    }

    .match-ht-score {
        font-size: 7px;
    }

    .match-date,
    .match-time {
        font-size: 9px;
    }

    .match-h2h-btn {
        padding: 1px 6px;
        font-size: 8px;
    }

    .match-h2h-btn i {
        font-size: 7px;
    }

    .match-odds {
        font-size: 9px;
        padding: 1px 4px;
        min-width: 16px;
    }

    .match-handicap {
        min-width: 30px;
    }
}