/**
 * Copyright © ProPlayerFC. All rights reserved.
 * Profile Page Styles - Mobile
 */

@media (max-width: 992px) {
    .profile-header__content {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: visible;
        width: 100%;
        max-width: 100%;
    }

    .profile-header__left {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        width: 100%;
        max-width: 100%;
        order: 1;
        flex-shrink: 0;
        justify-content: flex-start;
        gap: 14px;
        box-sizing: border-box;
    }

    .profile-header__identity {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 16px !important;
        box-sizing: border-box !important;
    }

    .profile-social {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 2;
        margin-top: 20px;
        flex-shrink: 0;
        position: static !important;
        display: block !important;
        border-top: 1px solid var(--profile-gray-200);
        padding-top: 20px;
        box-sizing: border-box !important;
    }

    .profile-social__title {
        margin-bottom: 14px;
    }

    .profile-social__list {
        gap: 12px;
    }

    .profile-social * {
        position: static !important;
    }

    .profile-avatar {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        align-self: center !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .profile-avatar__image,
    .profile-avatar__placeholder {
        width: 140px !important;
        height: 140px !important;
        min-width: 140px !important;
        min-height: 140px !important;
        max-width: 140px !important;
        border-radius: 8px !important;
    }

    .profile-avatar__placeholder {
        font-size: 52px !important;
    }

    .profile-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        align-items: flex-start !important;
        text-align: left !important;
        align-self: stretch !important;
    }

    .profile-info__header {
        width: 100% !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }

    .profile-info__secondary {
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .profile-last-games {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .profile-last-games__label {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }

    .profile-last-games__dots {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .profile-social {
        margin-top: 18px !important;
        padding-top: 18px !important;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .tournaments-pager__list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
    }

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

    .match-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 0;
    }

    .match-card:hover {
        margin: 0;
        padding: 16px 0;
    }

    .match-card--win,
    .match-card--loss,
    .match-card--draw {
        padding-left: 0;
        border-left: none;
        border-top: 4px solid;
    }

    .match-card--win {
        border-top-color: #10b981;
    }

    .match-card--loss {
        border-top-color: #ef4444;
    }

    .match-card--draw {
        border-top-color: #6b7280;
    }

    .match-card__score {
        justify-content: flex-start;
        text-align: left;
    }

    .match-card__date {
        text-align: left;
    }
}

@media (min-width: 769px) {
    .profile-page .profile-section--tournaments .tournaments-tab-panel .tournament-card,
    .profile-page .profile-section--tournaments .tournaments-list .tournament-card {
        display: grid !important;
        grid-template-columns: 180px minmax(0, 1fr) !important;
        grid-template-rows: 1fr !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .profile-page .profile-section--tournaments .tournaments-tab-panel .tournament-card__banner,
    .profile-page .profile-section--tournaments .tournaments-list .tournament-card__banner,
    .profile-page .profile-section--tournaments .tournaments-tab-panel .tournament-card__banner--placeholder,
    .profile-page .profile-section--tournaments .tournaments-list .tournament-card__banner--placeholder {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
        height: 100% !important;
        min-height: 180px !important;
        max-height: none !important;
        align-self: stretch !important;
        border-radius: 10px 0 0 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .profile-page .profile-section--tournaments .tournaments-tab-panel .tournament-card__banner img,
    .profile-page .profile-section--tournaments .tournaments-list .tournament-card__banner img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 10px 0 0 10px !important;
    }

    .profile-page .profile-section--tournaments .tournaments-tab-panel .tournament-card__content,
    .profile-page .profile-section--tournaments .tournaments-list .tournament-card__content {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 180px !important;
        padding: 20px !important;
        border-radius: 0 10px 10px 0 !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) {
    .profile-header {
        padding: 16px 14px !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .profile-header__content {
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .profile-header__left {
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 1 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .profile-header__identity {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 14px !important;
        box-sizing: border-box !important;
    }

    .profile-avatar {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        align-self: center !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .profile-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 0 !important;
        align-self: stretch !important;
    }

    .profile-social {
        order: 2 !important;
        margin-top: 18px !important;
        padding-top: 18px !important;
        position: static !important;
        display: block !important;
        border-top: 1px solid var(--profile-gray-200) !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .profile-social__title {
        margin-bottom: 12px !important;
    }

    .profile-social__list {
        gap: 8px !important;
    }

    .profile-avatar__image,
    .profile-avatar__placeholder {
        width: 140px !important;
        height: 140px !important;
        min-width: 140px !important;
        min-height: 140px !important;
        border-radius: 4px !important;
    }

    .profile-avatar__placeholder {
        font-size: 52px !important;
    }

    .profile-info__header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        margin-bottom: 6px !important;
        width: 100% !important;
        flex-wrap: wrap !important;
    }

    .profile-name {
        font-size: 22px;
        text-align: left;
        margin: 0;
        width: 100%;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        line-height: 1.25;
    }

    .profile-plan-badge {
        font-size: 10px;
        padding: 3px 8px;
        flex-shrink: 0;
    }

    .profile-gamertag,
    a.profile-gamertag-link {
        font-size: 13px !important;
        text-align: left !important;
        margin: 0 0 8px 0 !important;
        width: 100% !important;
        display: block !important;
    }

    .profile-info__secondary {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .profile-last-games {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .profile-last-games__label {
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.35;
        width: 100% !important;
        display: block !important;
    }

    .profile-last-games__dots {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        padding: 2px 0 !important;
        width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .profile-actions {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important;
    }

    .profile-bio {
        text-align: left;
    }

    .profile-ranking-card {
        padding: 8px 12px;
        gap: 8px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .profile-ranking-card__icon {
        width: 28px;
        height: 28px;
    }

    .profile-ranking-card__icon i {
        font-size: 16px;
    }

    .profile-ranking-card__label {
        font-size: 9px;
    }

    .profile-ranking-card__value {
        font-size: 16px;
    }

    .game-dot {
        width: 10px;
        height: 10px;
    }

    .profile-bio {
        font-size: 14px;
        text-align: center;
    }

    .profile-badges {
        margin-bottom: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .profile-badges__title {
        font-size: 13px;
        margin-bottom: 12px;
        padding-bottom: 8px;
        justify-content: center;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-badges__title i {
        font-size: 14px;
    }

    .profile-badges__list {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .profile-badge-item {
        width: calc(50% - 5px);
        max-width: 120px;
        min-height: 115px;
        padding: 10px 8px;
        box-sizing: border-box;
    }

    .profile-badge-item__icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        margin-bottom: 6px;
    }

    .profile-badge-item__name {
        font-size: 10px;
        min-height: 24px;
    }

    .profile-badge-item__description {
        font-size: 9px;
        min-height: 20px;
    }

    .profile-social__title {
        text-align: center;
        margin-bottom: 12px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-social__list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .profile-social__link {
        flex: 0 0 auto;
        width: 44px !important;
        height: 44px !important;
        font-size: 22px !important;
        box-sizing: border-box;
    }

    .profile-badges__view-more {
        width: 95px;
        min-height: 125px;
        padding: 10px 6px;
    }

    .profile-badges__view-more-text {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .profile-badges__view-more-label {
        font-size: 9px;
    }

    .profile-badges-modal__content {
        width: 95%;
        max-height: 85vh;
    }

    .profile-badges-modal__header {
        padding: 20px;
    }

    .profile-badges-modal__title {
        font-size: 18px;
    }

    .profile-badges-modal__body {
        padding: 20px;
    }

    .profile-badges-modal__list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .profile-info .profile-actions,
    .profile-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 12px !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .profile-actions .btn,
    .profile-actions .btn--primary {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 12px 20px !important;
        background: linear-gradient(135deg, #000000, #1a1a1a) !important;
        color: #ffffff !important;
        text-decoration: none !important;
        border: 2px solid #000000 !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        transition: all 0.2s ease !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }

    .profile-actions .btn:hover,
    .profile-actions .btn--primary:hover {
        background: linear-gradient(135deg, #1a1a1a, #000000) !important;
        border-color: #1a1a1a !important;
        color: #ffffff !important;
        text-decoration: none !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }

    .profile-actions .btn i,
    .profile-actions .btn--primary i {
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }

    .profile-actions .btn span,
    .profile-actions .btn--primary span {
        white-space: nowrap !important;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    @media (max-width: 480px) {
        .profile-stats-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 8px !important;
        }
        
        .stat-card {
            padding: 16px 10px !important;
            min-height: 100px !important;
        }
        
        .stat-card__icon {
            width: 32px !important;
            height: 32px !important;
            font-size: 16px !important;
            margin-bottom: 8px !important;
        }
        
        .stat-card__value {
            font-size: 1.625rem !important;
            margin-bottom: 4px !important;
        }
        
        .stat-card__label {
            font-size: 10px !important;
        }
    }

    .stat-card {
        padding: 18px 12px !important;
        min-height: 110px !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .stat-card__icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .stat-card__value {
        font-size: 1.875rem !important;
        margin-bottom: 6px !important;
    }

    .stat-card__label {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
    
    .section-title-wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        margin-bottom: 20px !important;
    }
    
    .section-title {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    .btn--compare-stats {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }

    .profile-section {
        padding: 24px 20px;
    }

    .section-title {
        font-size: 16px;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }

    .trophies-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .trophy-card__image,
    .trophy-card__placeholder {
        height: 120px;
    }

    .trophy-card__placeholder {
        font-size: 36px;
    }

    .trophies-carousel-wrapper {
        padding: 0 40px;
    }

    .trophies-carousel__btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .trophies-carousel__btn--prev {
        left: -10px;
    }

    .trophies-carousel__btn--next {
        right: -10px;
    }
    
    /* Hide dots on mobile - only show navigation buttons */
    .trophies-carousel__dots {
        display: none !important;
    }

    .trophies-carousel__slide {
        padding: 0 5px;
    }

    .trophies-statistics {
        margin-top: 24px;
        padding-top: 24px;
    }

    .trophies-statistics__title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .trophies-statistics__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trophy-stat-card {
        padding: 20px;
    }

    .trophy-stat-card__icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .trophy-stat-card__value {
        font-size: 28px;
    }

    .trophies-modal__content {
        width: 95%;
        max-height: 85vh;
    }

    .trophies-modal__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .badges-list {
        grid-template-columns: 1fr;
    }

    .tournaments-tabs {
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
    }

    .tournaments-tabs__header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--profile-gray-200);
    }

    .tournaments-tab {
        padding: 12px 16px !important;
        font-size: 13px !important;
        width: 100% !important;
        justify-content: flex-start !important;
        border: 1px solid #000000 !important;
        border-radius: 8px !important;
        text-align: left !important;
        background: #ffffff !important;
        color: #000000 !important;
    }

    .tournaments-tab--active {
        background: #e5e7eb !important;
        color: #000000 !important;
        border-color: #000000 !important;
    }

    .tournaments-tab i {
        font-size: 14px !important;
        margin-right: 6px !important;
        color: #000000 !important;
        flex-shrink: 0 !important;
    }

    .tournaments-tab--active i {
        color: #000000 !important;
    }

    .tournaments-tab__count {
        font-size: 11px !important;
        margin-left: auto !important;
        color: #000000 !important;
        flex-shrink: 0 !important;
    }

    .tournaments-tab--active .tournaments-tab__count {
        color: #000000 !important;
        font-weight: 500 !important;
    }

    .tournaments-tab span {
        flex: 1 !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .tournaments-tab-gamertag-link {
        color: #000000 !important;
    }

    .tournament-card {
        flex-direction: column !important;
        margin-bottom: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Override tournament-list-mobile.css: keep banner visible on profile page */
    .profile-section--tournaments .tournament-card__banner,
    .profile-section--tournaments .tournament-card__banner--placeholder,
    .profile-section--tournaments .tournaments-list .tournament-card__banner,
    .profile-section--tournaments .tournaments-list .tournament-card__banner--placeholder,
    .profile-section--tournaments .tournaments-tab-panel .tournament-card__banner,
    .profile-section--tournaments .tournaments-tab-panel .tournament-card__banner--placeholder {
        display: flex !important;
        visibility: visible !important;
        height: 160px !important;
        min-height: 160px !important;
        max-height: 160px !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        opacity: 1 !important;
        position: relative !important;
        left: auto !important;
    }

    .tournament-card__banner {
        width: 100% !important;
        max-width: 100% !important;
        height: 160px !important;
        min-width: 100% !important;
        min-height: 160px !important;
        border-radius: 10px 10px 0 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .tournament-card__banner img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .tournament-card__banner--placeholder {
        width: 100% !important;
        height: 100% !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .tournament-card__banner--placeholder i {
        font-size: 48px !important;
    }

    .tournament-card__content {
        padding: 18px 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 0 0 10px 10px !important;
    }

    .tournament-card__header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
        margin-bottom: 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .tournament-card__name {
        font-size: 17px !important;
        width: 100% !important;
        text-align: left !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin: 0 !important;
    }

    .tournament-card__header-right {
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
        display: flex !important;
        box-sizing: border-box !important;
    }

    .tournament-card__team-logo {
        width: 52px !important;
        height: 52px !important;
        margin-top: 0 !important;
        flex-shrink: 0 !important;
    }

    .tournament-card__team-logo--placeholder {
        font-size: 26px !important;
    }

    .tournament-card__status {
        font-size: 11px !important;
        padding: 5px 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .tournament-card__stats {
        flex-wrap: wrap !important;
        gap: 16px !important;
        justify-content: space-between !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
    }

    .tournament-stat {
        flex: 1 1 calc(33.333% - 11px) !important;
        min-width: calc(33.333% - 11px) !important;
        max-width: calc(33.333% - 11px) !important;
        text-align: center !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    .tournament-stat__label {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
    
    .tournament-stat__value {
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }

    .empty-state {
        padding: 48px 24px;
    }

    .empty-state i {
        font-size: 40px;
    }

    .tournaments-pager {
        margin-top: 20px !important;
        padding-top: 16px !important;
    }

    .tournaments-pager__list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .tournaments-pager__item {
        flex-shrink: 0 !important;
    }

    .tournaments-pager__link {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }

    .tournaments-pager__item--info .tournaments-pager__text {
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .tournaments-list {
        gap: 12px;
    }

    .tournament-stat__label {
        font-size: 11px;
    }

    .tournament-stat__value {
        font-size: 18px;
    }

    /* Match Cards - Mobile */
    .matches-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .match-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        border: 1px solid var(--profile-gray-200) !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin: 0 !important;
    }

    .match-card--win {
        border-left: 4px solid #10b981 !important;
        border-top: none !important;
        padding-left: 12px !important;
    }

    .match-card--loss {
        border-left: 4px solid #ef4444 !important;
        border-top: none !important;
        padding-left: 12px !important;
    }

    .match-card--draw {
        border-left: 4px solid #6b7280 !important;
        border-top: none !important;
        padding-left: 12px !important;
    }

    .match-card__header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
    }

    .match-card__result {
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .match-result-badge {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 12px !important;
        border-radius: 20px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    .match-result-badge i {
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }

    .match-card__date {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 12px !important;
        color: var(--profile-gray-500) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        margin-left: auto !important;
    }

    .match-card__date i {
        font-size: 11px !important;
        flex-shrink: 0 !important;
    }

    .match-card__teams {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .match-team {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .match-team--left {
        flex-direction: row !important;
        justify-content: flex-start !important;
        order: 1 !important;
    }

    .match-team--right {
        flex-direction: row-reverse !important;
        justify-content: flex-end !important;
        order: 3 !important;
    }

    .match-team__logo {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        border-radius: 6px !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--profile-gray-100) !important;
        border: 1px solid var(--profile-gray-200) !important;
        box-sizing: border-box !important;
        visibility: visible !important;
    }

    .match-team__logo img {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: contain !important;
        display: block !important;
        visibility: visible !important;
    }

    .match-team__logo--placeholder {
        background: linear-gradient(135deg, var(--profile-gray-200) 0%, var(--profile-gray-300) 100%) !important;
        color: var(--profile-gray-400) !important;
        font-size: 14px !important;
    }

    .match-team__logo--placeholder i {
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }

    .match-team__gamertag,
    .match-team-gamertag-link {
        font-size: 12px !important;
        color: var(--profile-gray-600) !important;
        font-weight: 500 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .match-card__tournament {
        width: 100% !important;
        max-width: 100% !important;
    }

    .match-tournament-link {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .match-score {
        font-size: 20px !important;
        font-weight: 700 !important;
        color: var(--profile-gray-700) !important;
        flex-shrink: 0 !important;
        min-width: 24px !important;
        text-align: center !important;
        box-sizing: border-box !important;
        padding: 0 4px !important;
    }

    .match-score__value {
        font-size: 20px !important;
        font-weight: 700 !important;
        color: var(--profile-gray-700) !important;
    }

    .match-separator {
        font-size: 16px !important;
        color: var(--profile-gray-400) !important;
        font-weight: 700 !important;
        flex-shrink: 0 !important;
        padding: 0 4px !important;
        order: 2 !important;
        box-sizing: border-box !important;
        min-width: 20px !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 16px 12px;
        overflow: visible;
    }

    .profile-header__content {
        gap: 0;
    }

    .profile-header__left {
        gap: 14px !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        text-align: center;
    }

    .profile-header__identity {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 14px !important;
    }

    .profile-avatar {
        align-self: center !important;
    }

    .profile-avatar__image,
    .profile-avatar__placeholder {
        width: 120px !important;
        height: 120px !important;
        min-width: 120px !important;
        min-height: 120px !important;
        max-width: 120px !important;
        border-radius: 8px !important;
    }

    .profile-avatar__placeholder {
        font-size: 48px !important;
    }

    .profile-info {
        align-items: center !important;
        text-align: center;
        width: 100% !important;
    }

    .profile-info__header {
        justify-content: center !important;
        align-items: center !important;
        text-align: center;
    }

    .profile-name {
        font-size: 20px;
        text-align: center;
    }

    .profile-gamertag,
    a.profile-gamertag-link {
        font-size: 12px !important;
        margin-bottom: 10px !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .profile-info__secondary {
        gap: 8px;
        margin-bottom: 12px;
        justify-content: center !important;
        align-items: center !important;
    }

    .profile-last-games {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .profile-last-games__label {
        text-align: center !important;
    }

    .profile-last-games__dots {
        justify-content: center !important;
    }

    .profile-bio {
        text-align: left;
        width: 100% !important;
        max-width: 100% !important;
    }

    .profile-actions {
        margin-top: 0 !important;
        align-self: stretch !important;
    }

    .profile-actions .btn,
    .profile-actions .btn--primary {
        padding: 10px 16px !important;
        font-size: 13px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        white-space: normal !important;
    }

    .profile-ranking-card {
        max-width: 100%;
        padding: 6px 10px;
    }

    .profile-ranking-card__label {
        font-size: 8px;
    }

    .profile-ranking-card__value {
        font-size: 14px;
    }

    .profile-last-games {
        gap: 6px;
    }

    .profile-last-games__label {
        font-size: 10px;
    }

    .profile-badges {
        margin-bottom: 12px;
    }

    .profile-badge-item {
        width: calc(50% - 4px);
        min-height: 105px;
        padding: 8px 6px;
    }

    .profile-social {
        padding: 12px;
    }

    .profile-social__list {
        gap: 8px;
    }

    .profile-social__link {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }

    .profile-section {
        padding: 20px 16px;
    }

    .trophies-gallery {
        grid-template-columns: 1fr;
    }

    .trophies-carousel-wrapper {
        padding: 0 30px;
    }

    .trophies-carousel__btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .trophies-carousel__btn--prev {
        left: -5px;
    }

    .trophies-carousel__btn--next {
        right: -5px;
    }
    
    /* Hide dots on small mobile - only show navigation buttons */
    .trophies-carousel__dots {
        display: none !important;
    }

    .trophies-statistics__grid {
        grid-template-columns: 1fr;
    }

    .trophy-stat-card {
        padding: 16px;
        gap: 12px;
    }

    .trophy-stat-card__icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .trophy-stat-card__value {
        font-size: 24px;
    }

    .trophies-modal__list {
        grid-template-columns: 1fr;
    }

    .comparison-values {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .comparison-separator {
        align-self: center;
    }

    .profile-social {
        padding: 20px 16px;
    }

    .profile-social__title {
        font-size: 14px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .profile-social__list {
        gap: 12px;
    }

    .profile-social__link {
        width: 44px !important;
        height: 44px !important;
        font-size: 22px !important;
    }

    .profile-badges__list {
        gap: 10px;
    }

    .profile-badge-item {
        width: 85px;
        min-height: 115px;
        padding: 8px 5px;
    }

    .profile-badge-item__icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        margin-bottom: 6px;
    }

    .profile-badge-item__name {
        font-size: 10px;
        min-height: 26px;
    }

    .profile-badge-item__description {
        font-size: 8px;
        min-height: 22px;
    }

    .profile-badges__view-more {
        width: 85px;
        min-height: 115px;
        padding: 8px 5px;
    }

    .profile-badges__view-more-text {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .profile-badges__view-more-label {
        font-size: 8px;
    }

    .profile-badges__title {
        font-size: 12px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .profile-badges__title i {
        font-size: 13px;
    }

    .tournaments-tabs {
        margin-top: 16px;
    }

    .tournaments-tabs__header {
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--profile-gray-200);
        border-radius: 6px;
    }

    .tournaments-tab {
        padding: 10px 12px !important;
        font-size: 11px !important;
        background: #ffffff !important;
        color: #000000 !important;
    }

    .tournaments-tab--active {
        background: #e5e7eb !important;
    }

    .tournaments-tab i {
        font-size: 13px !important;
        color: #000000 !important;
    }

    .tournaments-tab__count {
        font-size: 10px !important;
        color: #000000 !important;
    }

    /* Override tournament-list-mobile.css: keep banner visible on profile (small mobile) */
    .profile-section--tournaments .tournament-card__banner,
    .profile-section--tournaments .tournament-card__banner--placeholder,
    .profile-section--tournaments .tournaments-list .tournament-card__banner,
    .profile-section--tournaments .tournaments-list .tournament-card__banner--placeholder {
        display: flex !important;
        visibility: visible !important;
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
        opacity: 1 !important;
        position: relative !important;
        left: auto !important;
    }

    .tournament-card__banner {
        height: 140px !important;
        min-height: 140px !important;
    }

    .tournament-card__banner--placeholder i {
        font-size: 42px !important;
    }

    .tournament-card__content {
        padding: 16px 12px !important;
    }

    .tournament-card__name {
        font-size: 16px !important;
    }

    .tournament-card__header {
        gap: 12px !important;
        margin-bottom: 16px !important;
    }

    .tournament-card__team-logo {
        width: 48px !important;
        height: 48px !important;
    }

    .tournament-card__team-logo--placeholder {
        font-size: 24px !important;
    }

    .tournament-card__stats {
        gap: 12px !important;
        justify-content: space-between !important;
    }

    .tournament-stat {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        gap: 4px !important;
    }

    .tournament-stat__label {
        font-size: 10px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .tournament-stat__value {
        font-size: 18px !important;
        font-weight: 700 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Match Cards - Small Mobile */
    .profile-section--matches {
        overflow: hidden !important;
    }

    .matches-list {
        gap: 10px !important;
        overflow: hidden !important;
    }

    .match-card {
        padding: 14px !important;
        gap: 10px !important;
    }

    .match-card__header {
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    .match-result-badge {
        font-size: 10px !important;
        padding: 5px 10px !important;
    }

    .match-card__date {
        font-size: 11px !important;
    }

    .match-card__teams {
        gap: 6px !important;
    }

    .match-team {
        gap: 5px !important;
    }

    .match-team__logo {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
        visibility: visible !important;
    }

    .match-team__logo img {
        visibility: visible !important;
    }

    .match-team__logo--placeholder {
        font-size: 12px !important;
        visibility: visible !important;
    }

    .match-team__logo--placeholder i {
        font-size: 12px !important;
    }

    .match-team__gamertag,
    .match-team-gamertag-link {
        font-size: 11px !important;
    }

    .match-score {
        font-size: 18px !important;
        min-width: 20px !important;
    }

    .match-score__value {
        font-size: 18px !important;
    }

    .match-separator {
        font-size: 14px !important;
        padding: 0 3px !important;
    }
    
    /* Compare Stats Modal - Mobile */
    .compare-stats-modal__content {
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .compare-stats-modal__header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        padding: 20px 16px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: #ffffff !important;
    }
    
    .compare-stats-modal__title {
        font-size: 18px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .compare-stats-modal__title i {
        font-size: 20px !important;
    }
    
    .compare-stats-modal__actions {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    
    .btn--export-image,
    .btn--export-h2h,
    .btn--export-stats,
    .compare-stats-modal .export-image-btn.btn-share {
        width: 100% !important;
        flex: 1 1 auto !important;
        justify-content: center !important;
        padding: 12px 16px !important;
        font-size: 12px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    .btn--export-image span,
    .btn--export-h2h span,
    .btn--export-stats span,
    .compare-stats-modal .export-image-text {
        display: inline-block !important;
        white-space: normal !important;
    }
    
    #proplayerfc-export-h2h,
    #proplayerfc-export-stats {
        padding: 20px 16px !important;
    }
    
    #proplayerfc-export-h2h .compare-players,
    #proplayerfc-export-stats .compare-players {
        margin-bottom: 24px !important;
    }
    
    .compare-stats-modal__close {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        flex-shrink: 0 !important;
    }
    
    .compare-stats-modal__body {
        padding: 20px 16px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    #proplayerfc-export-area {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Compare Players - Mobile */
    .compare-players {
        flex-direction: column !important;
        gap: 20px !important;
        margin-bottom: 24px !important;
        padding: 20px 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .compare-player {
        max-width: 100% !important;
        width: 100% !important;
        min-height: auto !important;
        box-sizing: border-box !important;
    }
    
    .compare-player__avatar {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
        max-width: 70px !important;
        max-height: 70px !important;
    }
    
    .compare-player__avatar-placeholder {
        font-size: 28px !important;
    }
    
    .compare-player__name {
        font-size: 15px !important;
        min-height: auto !important;
        max-height: none !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
    
    .compare-player__gamertag {
        font-size: 12px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    .compare-vs {
        font-size: 24px !important;
        margin: 8px 0 !important;
        align-self: center !important;
    }
    
    /* Compare H2H - Mobile */
    .compare-h2h {
        padding: 20px 16px !important;
        margin-bottom: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .compare-h2h__title {
        font-size: 18px !important;
        margin-bottom: 20px !important;
        flex-wrap: wrap !important;
    }
    
    .compare-h2h__title i {
        font-size: 20px !important;
    }
    
    .compare-h2h-legend {
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
        padding: 12px 16px !important;
    }
    
    .compare-h2h-legend__item {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    .compare-h2h__stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .compare-h2h__stat {
        padding: 16px 12px !important;
        min-height: 100px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .compare-h2h__label {
        font-size: 10px !important;
        line-height: 1.4 !important;
        padding: 0 4px !important;
    }
    
    .compare-h2h__label strong {
        margin-left: 6px !important;
        display: inline-block !important;
    }
    
    .compare-h2h__value {
        font-size: 24px !important;
        margin-top: 8px !important;
    }
    
    /* Compare Stats Section - Mobile */
    .compare-stats-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .compare-stats-section__title {
        font-size: 18px !important;
        margin-bottom: 16px !important;
        flex-wrap: wrap !important;
    }
    
    .compare-stats-section__title i {
        font-size: 20px !important;
    }
    
    .compare-stats-legend {
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
        padding: 12px 16px !important;
    }
    
    .compare-stats-legend__item {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    .compare-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .compare-stat-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 12px !important;
        box-sizing: border-box !important;
        flex-wrap: nowrap !important;
    }
    
    .compare-stat-card__icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
        flex-shrink: 0 !important;
    }
    
    .compare-stat-card__content {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .compare-stat-card__label {
        font-size: 12px !important;
    }
    
    .compare-stat-card__values {
        gap: 12px !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .compare-stat-card__value {
        font-size: 26px !important;
        font-weight: 800 !important;
        padding: 8px 16px !important;
        min-width: 50px !important;
        box-sizing: border-box !important;
        line-height: 1.1 !important;
    }
    
    .compare-stat-card__separator {
        font-size: 16px !important;
        padding: 0 10px !important;
        flex-shrink: 0 !important;
        font-weight: 700 !important;
    }
}

@supports (height: 100dvh) {
    @media (max-width: 768px) {
        .compare-stats-modal__content {
            max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        }
    }
}

@media (max-width: 480px) {
    /* Compare Stats Modal - Small Mobile */
    .compare-stats-modal__content {
        width: calc(100% - 16px) !important;
        max-height: calc(100vh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 12px !important;
    }
    
    .compare-stats-modal__header {
        padding: 16px 12px !important;
    }
    
    .compare-stats-modal__title {
        font-size: 16px !important;
    }
    
    .compare-stats-modal__body {
        padding: 16px 12px !important;
    }
    
    .compare-players {
        padding: 16px 12px !important;
        gap: 16px !important;
    }
    
    .compare-player__avatar {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    .compare-player__avatar-placeholder {
        font-size: 24px !important;
    }
    
    .compare-player__name {
        font-size: 14px !important;
    }
    
    .compare-vs {
        font-size: 20px !important;
        margin: 4px 0 !important;
    }
    
    .compare-h2h {
        padding: 16px 12px !important;
    }
    
    .compare-h2h__title {
        font-size: 16px !important;
    }
    
    .compare-h2h__stats {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .compare-h2h__stat {
        padding: 14px 10px !important;
        min-height: 90px !important;
    }
    
    .compare-h2h__value {
        font-size: 20px !important;
    }
    
    .compare-stats-section__title {
        font-size: 16px !important;
    }
    
    .compare-stat-card {
        padding: 14px 10px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .compare-stat-card__icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }
    
    .compare-stat-card__values {
        width: 100% !important;
        justify-content: space-around !important;
    }
    
    .compare-stat-card__value {
        font-size: 24px !important;
        font-weight: 800 !important;
        padding: 7px 14px !important;
        min-width: 48px !important;
        line-height: 1.1 !important;
    }
    
    .compare-stat-card__separator {
        font-size: 15px !important;
        font-weight: 700 !important;
        padding: 0 8px !important;
    }
}