/**
 * Live Darts 180iQ Plugin Styles
 * Matching reference design layout
 */

/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */

:root {
    --ld-primary-color: #104e84;
    --ld-orange-color: #ff6502;
    --ld-success-color: #28a745;
    --ld-warning-color: #ffc107;
    --ld-error-color: #dc3545;
    --ld-text-color: #343434;
    --ld-light-text: #666;
    --ld-border-color: #e1e7ef;
    --ld-bg-light: #f8f9fa;
    --ld-white: #ffffff;
    --ld-spacing: 1rem;
    --ld-border-radius: 6px;
    --ld-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --ld-transition: all 0.3s ease;
}

.page-template-180iq-hub .page__main {
    background-image: linear-gradient(180deg, #222, #000 25rem);
    color: #eee;
}

.page-template-180iq-hub .page__main .heading {
    border-bottom: 0.0625rem solid #666;
    color: #eee;
}

.page-template-180iq-hub .page__main .heading h1 {
    margin: 0;
    padding: 0;
}

.page-template-180iq-hub .page__main .heading__link {
    color: #eee;
}

.page-template-180iq-hub .news-card__link {
    color: #222;
    text-decoration: none;
}

.page-template-180iq-hub .news-card__link:hover {
    text-decoration: none;
}

.page-template-180iq-hub .page__main .heading__link:hover {
    text-decoration: none;
}

.ld-180iq p {
    font-size: 15px;
    line-height: 1.45;
}

.ld-180iq .btn {
    box-shadow: none;
    text-transform: unset;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--ld-transition);
}

/* ==========================================================================
  Utility Classes & Legacy Support
  ========================================================================== */

/* Badge styles for match results */
.ld-180iq .badge {
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Tournament Badge Styles */
.ld-tournament-badge {
    display: inline-block;
}

/* ==========================================================================
   Enhanced Rankings Styles (180IQ Design Match)
   ========================================================================== */

.ld-rankings {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.ld-rankings-table {
    --bs-table-hover-bg: #f8f9fa;
    font-size: 14px;
    border-collapse: separate;
    border-spacing: 0;
}

.ld-rankings-table th {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background-color: #f8f9fa !important;
    border: none;
    padding: 12px 8px;
    color: #6c757d;
}

.ld-rankings-table td {
    padding: 16px 8px;
    border-top: 1px solid #f0f0f0;
    border-bottom: none;
    vertical-align: middle;
}

.ld-rankings-table .ld-ranking-row {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.ld-rankings-table .ld-ranking-row:hover {
    background-color: #f8f9fa !important;
}

.ld-rankings-table .ld-ranking-row:hover .ld-player-name {
    color: #0d6efd !important;
}

.ld-rankings-table .ld-player-name {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ld-rankings-table .badge {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 8px;
}

/* Rank badge styling */
.ld-rankings-table .badge.bg-light {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #e9ecef;
}

/* Country flag spacing */
.ld-rankings-table .country-flag {
    margin-right: 8px;
    font-size: 18px;
}

/* Player avatar styling */
.ld-rankings-table .rounded-circle {
    border: 2px solid #e9ecef !important;
    transition: border-color 0.2s ease;
}

.ld-rankings-table .ld-ranking-row:hover .rounded-circle {
    border-color: #0d6efd !important;
}

/* Prize money styling */
.ld-rankings-table .text-success {
    color: #28a745 !important;
    font-weight: 600;
}

/* Average badge */
.ld-rankings-table .badge.bg-info {
    background-color: #17a2b8 !important;
    font-weight: 600;
}

/* Responsive table container */
.ld-rankings .table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* Header controls styling */
.ld-rankings .form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    padding: 8px 12px;
    background-color: white;
}

.ld-rankings .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.ld-rankings .form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    padding: 8px 12px;
}

.ld-rankings .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Alert styling */
.ld-rankings .alert {
    border-radius: 8px;
    border: none;
    font-size: 14px;
}

.ld-rankings .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.ld-rankings .alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* Pagination styling */
.ld-rankings .pagination {
    margin: 0;
}

.ld-rankings .page-link {
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    font-size: 14px;
}

.ld-rankings .page-link:hover {
    color: #0d6efd;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.ld-rankings .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Movement indicator styling */
.ld-rankings-table .text-success .bi-arrow-up-short {
    color: #28a745 !important;
    font-size: 18px;
    margin-right: 2px;
}

.ld-rankings-table .text-danger .bi-arrow-down-short {
    color: #dc3545 !important;
    font-size: 18px;
    margin-right: 2px;
}

.ld-rankings-table .text-muted .bi-dash {
    color: #6c757d !important;
    font-size: 16px;
    margin-right: 2px;
}

.ld-rankings-table .movement-indicator {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.ld-country-flag,
.ld-country-name {
    font-size: 14px !important;
}

/* Status Badge Colors */
.ld-tournament-upcoming {
    background-color: #dcfce7;
    color: #166534;
}

.ld-tournament-live {
    background-color: #fee2e2;
    color: #991b1b;
}

.ld-tournament-completed {
    background-color: #f1f5f9;
    color: #1e293b;
}

.ld-tournament-cancelled {
    background-color: #495057;
    color: white;
}

/* Tournament Type Badge Colors */
.ld-tournament-type {
    background-color: #dbeafe;
    color: #1d40af;
}

.ld-tournament-type-ranking {
    background-color: #dbe9fe;
    color: #1d40af;
}

.ld-tournament-type-major {
    background-color: #fef2c7;
    color: #92400d;
}

.ld-tournament-type-exhibition {
    background-color: #1fe1ff;
    color: #0e5e6a;
}

/* Legacy Badge Styles */
.ld-tournament-major {
    background-color: #ffc107;
    color: #212529;
}

.ld-tournament-ranking {
    background-color: #007bff;
    color: white;
}

/* Icon styling */
.ld-180iq .fas {
    font-size: 0.9em;
}

.ld-180iq .card-title .fas {
    color: var(--ld-primary-color);
}

/* Player avatar enhancements */
.ld-180iq .rounded-circle {
    transition: var(--ld-transition);
}

/* Quick actions grid */
.ld-180iq .btn-outline-primary {
    border-color: var(--ld-primary-color);
    color: var(--ld-primary-color);
}

.ld-180iq .btn-outline-primary:hover {
    background-color: var(--ld-primary-color);
    border-color: var(--ld-primary-color);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.ld-blue {
    color: var(--ld-primary-color);
}

.ld-orange {
    color: var(--ld-orange-color);
}

.ld-error {
    background: #ffeaea;
    border: 1px solid var(--ld-error-color);
    border-radius: var(--ld-border-radius);
    padding: var(--ld-spacing-md);
    margin: var(--ld-spacing-md) 0;
    color: var(--ld-error-color);
}

.ld-empty-state {
    text-align: center;
    padding: var(--ld-spacing-xl);
    color: var(--ld-light-text);
    font-style: italic;
}

.ld-loading,
.ld-spinner {
    position: relative;
}

.ld-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--ld-border-color);
    border-top-color: var(--ld-primary-color);
    border-radius: 50%;
    animation: ld-spin 1s linear infinite;
}

@keyframes ld-spin {
    to {
        transform: rotate(360deg);
    }
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

/* ==========================================================================
   Player Page
   ========================================================================== */

.ld-180iq .ld-players-title h1 {
    font-size: 30px;
}

.ld-search-input-wrapper {
    position: relative;
}

.ld-search-input {
    padding-left: 42px !important;
    padding-right: 12px !important;
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}

.form-control.ld-search-input {
    padding-left: 42px !important;
    padding-right: 12px !important;
}

.ld-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 5;
}

.ld-search-icon i {
    color: #666666;
    font-size: 16px;
}

.ld-180iq .btn.btn-pagination {
    border: 1px solid rgb(222, 226, 230) !important;
    box-shadow: none !important;
    transition: var(--ld-transition);
}

.ld-180iq .btn.btn-pagination:hover {
    border: 1px solid rgb(206, 210, 213) !important;
}

.ld-180iq .page-numbers,
.ld-180iq .player-numbers {
    font-size: 14px;
}

.ld-player-card .card {
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    transition: var(--ld-transition);
}

.ld-player-card .card:hover {
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
        rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
    transform: matrix(1, 0, 0, 1, 0, -4);
}

.ld-player-card-header {
    margin-bottom: 16px;
}

.ld-player-avatar {
    height: 64px;
    width: 64px;
}

.ld-player-avatar img {
    height: 64px;
    width: 64px;
    object-fit: cover;
    object-position: top;
    border-radius: 100%;
    border: 2px solid rgb(226, 232, 240);
}

.ld-player-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgb(226, 232, 240);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.ld-player-card .ld-player-info h3.ld-player-name {
    padding: 0;
    margin: 0;
    border: none;
    font-size: 18px;
}

.ld-player-info .ld-player-country {
    font-size: 14px;
}

.ld-player-info .ld-player-nickname {
    font-size: 12px;
    margin-bottom: 0;
}

.ld-stat-label {
    font-size: 14px;
}

.ld-stat-value {
    font-size: 14px;
    font-weight: 400;
}

.ld-stat-value.ld-prize-money {
    font-size: 16px;
}

.ld-180iq .card {
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    transition: var(--ld-transition);
    border-radius: 0.5rem;
}

.ld-180iq .card .card-header {
    background: transparent !important;
    border-bottom: none !important;
}

.ld-180iq .card .card-header .card-title,
.ld-180iq .card .card-header .ld-section-icon {
    color: #343434;
    font-size: 24px;
}

.ld-180iq .btn.back-btn {
    transition: var(--ld-transition);
}

.ld-180iq .btn.back-btn:hover {
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    border: 1px solid rgb(225, 231, 239);
}

.ld-180iq .ld-profile-content .ld-player-avatar {
    width: 128px;
    height: 128px;
    object-fit: cover;
    object-position: top;
    border: 2px solid rgb(226, 232, 240);
}

.ld-180iq .ld-profile-content .ld-player-avatar-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 2.5rem;
    width: 128px;
    height: 128px;
    object-fit: cover;
    object-position: top;
    border: 2px solid rgb(226, 232, 240);
}

h1.ld-player-display-name {
    font-size: 30px;
}

h2.ld-player-display-name {
    font-size: 24px;
}

.ld-180iq .ld-player-profile-section h3 {
    font-size: 18px;
}

.titles-header,
.prizemoney-header {
    font-size: 15px;
    margin-bottom: 10px;
}

.titles-header i,
.prizemoney-header i {
    font-size: 18px;
}

.ld-highlight-value {
    font-size: 18px;
}

.ld-ranking-value {
    font-size: 16px;
}

.ld-180iq .ld-index-title h1 {
    font-size: 30px;
}

.ld-180iq .ld-tournament-card a.ld-tournament-card-link,
.ld-180iq .ld-tournament-card a.ld-tournament-card-link:hover {
    text-decoration: none;
}

.ld-180iq .ld-tournament-card a.ld-tournament-card-link .card:hover {
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
        rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
    transform: matrix(1, 0, 0, 1, 0, -4);
}

.ld-180iq h3.ld-tournament-name {
    font-size: 18px;
    font-weight: 600;
    border: none;
}

h1.ld-tournament-display-name {
    font-size: 30px;
}

.ld-180iq .overview-title {
    font-size: 18px;
}

/* ==========================================================================
   Matches Specific Styles
   ========================================================================== */

/* Matches Index Styles */
.ld-matches-index .ld-matches-controls {
    align-items: flex-start;
}

.ld-matches-filters .ld-filter-group {
    min-width: 150px;
}

.ld-matches-filters .ld-filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.ld-match-card .card {
    transition: var(--ld-transition);
    border: 1px solid var(--ld-border-color);
}

.ld-match-card .card:hover {
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
        rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
    transform: translateY(-2px);
}

.ld-match-card .ld-tournament-details h6 a {
    color: var(--ld-primary-color);
    font-weight: 600;
}

.ld-match-card .ld-tournament-details h6 a:hover {
    color: var(--ld-orange-color);
}

.ld-match-card .ld-match-player.ld-winner {
    background-color: rgba(40, 167, 69, 0.05);
    border-radius: 4px;
    padding: 8px;
}

.ld-match-card .ld-match-player.ld-winner .fw-semibold {
    color: var(--ld-success-color) !important;
}

.ld-match-card .ld-match-score {
    font-size: 1.5rem;
    font-weight: 700;
}

.ld-match-card .ld-match-meta {
    border-color: var(--ld-border-color);
}

/* Match Status Badges */
.ld-match-status-completed {
    background-color: var(--ld-success-color) !important;
}

/* ==========================================================================
   Enhanced Match Card Styles (Reference Design)
   ========================================================================== */

.ld-match-card {
    transition: all 0.2s ease-in-out;
}

.ld-match-card .card:hover {
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
        rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
    transform: matrix(1, 0, 0, 1, 0, -4);
}

.ld-match-card .ld-match-tournament {
    color: #595959;
    font-weight: 600;
    font-size: 16px;
}

.ld-match-players .ld-player-avatar img,
.ld-match-players .ld-player-avatar > div {
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.ld-match-players .ld-player-info .fw-bold {
    font-size: 16px;
    line-height: 1.2;
}

.ld-match-score .h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.ld-match-score .text-muted {
    font-size: 1.5rem;
    opacity: 0.6;
}

/* Winner highlighting */
.ld-match-players .text-success {
    color: var(--ld-success-color) !important;
    font-weight: 700 !important;
}

/* Status badges styling */
.ld-match-status .badge {
    font-size: 12px;
    padding: 6px 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ld-match-status .bg-success {
    background-color: var(--ld-success-color) !important;
}

.ld-match-status .bg-danger {
    background-color: #dc3545 !important;
}

.ld-match-status .bg-secondary {
    background-color: #6c757d !important;
}

/* Match footer styling */
.ld-match-footer {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.ld-match-footer small {
    font-size: 13px;
    color: #6c757d;
}

.ld-match-status-live {
    background-color: var(--ld-error-color) !important;
    animation: pulse 2s infinite;
}

.ld-match-status-scheduled {
    background-color: var(--ld-primary-color) !important;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.ld-match-round-final {
    background-color: #ffc107 !important;
    color: #212529 !important;
    font-weight: 600;
}

.ld-match-round-semi-final {
    background-color: #fd7e14 !important;
    color: white !important;
}

.ld-match-round-quarter-final {
    background-color: #6f42c1 !important;
    color: white !important;
}

/* Matches Single Page Styles */
.ld-match-display-title {
    font-size: 2rem;
    color: var(--ld-text-color);
}

.ld-match-result-section .ld-player-result.ld-winner {
    position: relative;
}

.ld-match-result-section .ld-player-result.ld-winner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border-radius: 12px;
    z-index: -1;
}

.ld-match-result-section .ld-score-display {
    padding: 20px 0;
}

.ld-match-result-section .ld-score-numbers .display-4 {
    font-size: 3rem;
    line-height: 1;
}

.ld-match-result-section .ld-winner-badge {
    margin-top: 1rem;
}

.ld-statistics-table {
    font-size: 0.95rem;
}

.ld-statistics-table th {
    background-color: var(--ld-bg-light);
    font-weight: 600;
    border-bottom: 2px solid var(--ld-border-color);
}

.ld-statistics-table td {
    border-color: var(--ld-border-color);
}

.ld-key-moments-content,
.ld-statistical-highlights-content,
.ld-tournament-significance-content {
    line-height: 1.6;
}

.ld-key-moments-content h3,
.ld-statistical-highlights-content h3,
.ld-tournament-significance-content h3 {
    color: var(--ld-primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.ld-key-moments-content ul,
.ld-statistical-highlights-content ul {
    padding-left: 1.5rem;
}

.ld-key-moments-content li,
.ld-statistical-highlights-content li {
    margin-bottom: 0.5rem;
}

/* Match Information Sidebar */
.ld-match-information-section .ld-info-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ld-match-information-section .ld-info-item:last-child {
    border-bottom: none;
}

.ld-match-statistics-section .ld-stat-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ld-match-statistics-section .ld-stat-item:last-child {
    border-bottom: none;
}

.ld-player-comparison-section .ld-comparison-stat {
    padding: 0.5rem 0;
}

.ld-quick-actions-section .ld-action-link > span {
    transition: var(--ld-transition);
}

.ld-quick-actions-section a.ld-action-link:hover > span {
    color: #f60 !important;
}

.ld-match-players .ld-player-avatar {
    height: 60px;
    width: 60px;
}

.ld-match-players .ld-player-avatar img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    object-position: top;
    border-radius: 100%;
    border: 2px solid rgb(226, 232, 240);
}

.ld-match-players .ld-player-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgb(226, 232, 240);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.ld-match-players .ld-player-info h3.ld-player-name {
    padding: 0;
    margin: 0;
    border: none;
    font-size: 18px;
}

/* Clickable match items */
.ld-180iq .ld-match-clickable {
    transition: var(--ld-transition);
    cursor: pointer;
}

.ld-180iq .ld-match-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Link styling for clickable matches */
.ld-180iq a.text-decoration-none {
    color: inherit !important;
    text-decoration: none !important;
}

.ld-180iq a.text-decoration-none:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.ld-180iq a.text-decoration-none:focus {
    color: inherit !important;
    text-decoration: none !important;
}

.ld-180iq a.text-decoration-none:visited {
    color: inherit !important;
    text-decoration: none !important;
}

/* Override any text colors within clickable matches */
.ld-180iq a.text-decoration-none .fw-bold,
.ld-180iq a.text-decoration-none .text-muted,
.ld-180iq a.text-decoration-none .text-secondary,
.ld-180iq a.text-decoration-none .ld-match-opponent,
.ld-180iq a.text-decoration-none .ld-match-tournament,
.ld-180iq a.text-decoration-none .ld-match-score,
.ld-180iq a.text-decoration-none .ld-match-date {
    color: inherit !important;
}

/* Ensure Bootstrap text utility classes maintain their colors */
.ld-180iq a.text-decoration-none .text-muted {
    color: var(--bs-gray-600) !important;
}

.ld-180iq a.text-decoration-none .text-secondary {
    color: var(--bs-gray-600) !important;
}

/* Tournament Match Items - Clickable */
.ld-180iq .ld-tournament-match-item {
    transition: var(--ld-transition);
    cursor: pointer;
}

.ld-180iq .ld-tournament-match-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Match Details */

.ld-180iq h1.ld-match-display-name {
    font-size: 30px;
}

.ld-180iq .ld-match-result-section h3 {
    font-size: 18px;
    font-weight: 600;
}

.ld-180iq .match-score {
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
}

.ld-180iq .ld-profile-content h4 {
    font-size: 16px;
}

.ld-180iq .stat-highlights ul li {
    list-style: disc;
    margin-bottom: 10px;
}

/* ==========================================================================
   Rankings Table Styles - Optimized for Horizontal Scroll
   ========================================================================== */

/* Rankings table row styles */
.ld-180iq .ld-ranking-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
    vertical-align: middle;
}

.ld-180iq .ld-ranking-row:hover {
    background-color: #f8fafc !important;
}

/* .ld-180iq .ld-player-name:hover {
    color: #0ea5e9 !important;
} */

.ld-ranking-row .ld-player-avatar {
    height: 40px;
    width: 40px;
}

.ld-ranking-row .ld-player-avatar img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    object-position: top;
    border-radius: 100%;
    border: 2px solid rgb(226, 232, 240);
}

.ld-ranking-row .ld-player-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgb(226, 232, 240);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.ld-ranking-row .ld-player-info h3.ld-player-name {
    padding: 0;
    margin: 0;
    border: none;
    font-size: 18px;
}

/* Card styling for rankings */

.ld-180iq .ls-1 {
    letter-spacing: 0.025em;
}

/* Ensure all table cells are vertically centered */
.ld-180iq .table td {
    vertical-align: middle;
}

.ld-180iq .table th {
    vertical-align: middle;
}

/* Optimized horizontal scrolling */
.ld-180iq .table-responsive {
    border-radius: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Custom scrollbar for webkit browsers */
.ld-180iq .table-responsive::-webkit-scrollbar {
    height: 8px;
}

.ld-180iq .table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.ld-180iq .table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.ld-180iq .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Ensure table maintains minimum width for readability */
.ld-180iq .table {
    min-width: 700px;
}

/* Ensure proper spacing for movement icons */
.ld-180iq .d-inline-flex svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Comparison Matrix Styles
   ========================================================================== */

.ld-comparison-matrix {
    max-width: 1200px;
    margin: 0 auto;
}

.ld-comparison-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ld-comparison-header h2 {
    color: var(--ld-primary-color);
    margin-bottom: 0.5rem;
}

.ld-comparison-header p {
    color: var(--ld-light-text);
    font-size: 1.1rem;
}

/* Player Selection Area */
.ld-player-selection {
    background: var(--ld-white);
    border-radius: var(--ld-border-radius);
    padding: 2rem;
    box-shadow: var(--ld-box-shadow);
    margin-bottom: 2rem;
}

.ld-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ld-clear-btn {
    background: var(--ld-error-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--ld-border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--ld-transition);
}

.ld-clear-btn:hover {
    background: #c82333;
}

.ld-players-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* Show dashed border only when slot is empty */
.ld-player-slot {
    border: 2px dashed var(--ld-border-color);
    border-radius: var(--ld-border-radius);
    min-height: 220px;
    height: 220px; /* Force exact height to match selected player */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ld-transition);
    box-sizing: border-box;
    width: 100%; /* Ensure full width */
}

.ld-empty-slot {
    text-align: center;
    padding: 2rem;
    color: var(--ld-light-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.ld-player-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ld-slot-label {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.ld-search-btn {
    border: 1px solid #f60 !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--ld-border-radius);
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 1rem;
    transition: var(--ld-transition);
}

.ld-search-btn:hover {
    background-color: #f60 !important;
    border-color: #f60 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.ld-player-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--ld-primary-color);
    font-size: 1.2rem;
}

.ld-player-nickname {
    font-style: italic;
    color: var(--ld-light-text);
    margin-bottom: 0.5rem;
}

.ld-player-country {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--ld-light-text);
}

.ld-player-country img {
    width: 20px;
    height: auto;
    margin-right: 0.5rem;
    border: none;
    border-radius: 2px;
}

.ld-remove-player {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--ld-error-color);
    color: white;
    border: none;
    border-radius: 5px !important;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ld-transition);
}

.ld-remove-player:hover {
    background: #c82333;
}

.ld-remove-player i {
    line-height: 30px;
}

/* Modal Styles */
.ld-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.ld-modal {
    background: var(--ld-white);
    border-radius: var(--ld-border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.ld-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--ld-border-color);
}

.ld-modal-header h3 {
    margin: 0;
    color: var(--ld-primary-color);
}

.ld-modal-close {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--ld-light-text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--ld-transition);
}

.ld-modal-close:hover {
    background: var(--ld-bg-light);
    color: var(--ld-text-color);
}

.ld-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.ld-search-container {
    margin-bottom: 1.5rem;
}

.ld-player-search {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--ld-border-color);
    border-radius: var(--ld-border-radius);
    font-size: 1rem;
    transition: var(--ld-transition);
}

.ld-player-search:focus {
    outline: none;
    border-color: var(--ld-primary-color);
    box-shadow: 0 0 0 3px rgba(16, 78, 132, 0.1);
}

/* Players Grid in Modal */
.ld-modal-players-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 400px;
    max-height: 400px;
    overflow-y: auto;
}

.ld-player-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--ld-border-color);
    border-radius: var(--ld-border-radius);
    cursor: pointer;
    transition: var(--ld-transition);
    background: var(--ld-white);
    width: 100%;
}

.ld-player-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--ld-bg-light);
}

.ld-player-option img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--ld-border-color);
    flex-shrink: 0;
    background: var(--ld-bg-light);
}

.ld-player-fallback {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ld-bg-light);
    border: 2px solid var(--ld-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
    color: var(--ld-light-text);
}

.ld-player-info {
    flex: 1;
}

.ld-player-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--ld-primary-color);
    font-size: 1rem;
}

.ld-modal .ld-player-nickname {
    font-style: italic;
    color: var(--ld-light-text);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    display: none; /* Hide nickname in modal to save space */
}

.ld-player-country {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--ld-light-text);
    font-weight: 500;
}

.ld-player-country img {
    width: 20px;
    height: auto;
    margin-right: 0.5rem;
    border: none;
    border-radius: 2px;
}

/* Comparison Results */
.ld-comparison-results {
    background: var(--ld-white);
    border-radius: var(--ld-border-radius);
    padding: 2rem;
    box-shadow: var(--ld-box-shadow);
    margin-bottom: 2rem;
}

.ld-comparison-title {
    text-align: center;
    color: #333;
    margin-bottom: 2.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.ld-comparison-stat-label {
    text-align: center;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #666;
    font-size: 0.9rem;
}

.ld-matrix-stat-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1rem;
    align-items: center;
}

.ld-matrix-stat-value.player1-side {
    text-align: right;
}

.ld-matrix-stat-value.player2-side {
    text-align: left;
}

.ld-matrix-stat-bar-center {
    flex: 1;
}

.ld-comparison-stat-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2937;
}

.ld-matrix-stat-progress {
    height: 10px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.ld-matrix-stat-fill-combined {
    height: 100%;
    display: flex;
    border-radius: 6px;
    overflow: hidden;
}

.ld-matrix-stat-fill {
    height: 100%;
    transition: width 0.3s ease-out;
}

.ld-matrix-stat-fill.player1-fill {
    background: #10b981; /* Tailwind green-500 - dart-green equivalent */
    border-radius: 6px 0 0 6px; /* Rounded left, square right */
}

.ld-matrix-stat-fill.player2-fill {
    background: #ef4444; /* Tailwind red-500 */
    border-radius: 0 6px 6px 0; /* Square left, rounded right */
}

.ld-matrix-stat-fill.winning {
    background: #10b981 !important;
}

.ld-matrix-stat-fill.losing {
    background: #ef4444 !important;
}

.ld-matrix-stat-fill.equal {
    background: #64748b !important; /* Tailwind slate-500 */
}

/* Trending Comparisons */
.ld-trending-comparisons {
    background: var(--ld-white);
    border-radius: var(--ld-border-radius);
    padding: 2rem;
    box-shadow: var(--ld-box-shadow);
}

.ld-trending-comparisons h3 {
    color: var(--ld-primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ld-trending-icon {
    font-size: 1.2rem;
}

.ld-trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ld-trending-item {
    border: 2px solid var(--ld-border-color);
    border-radius: var(--ld-border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--ld-transition);
}

.ld-trending-item:hover {
    border-color: var(--ld-orange-color);
    box-shadow: var(--ld-box-shadow);
}

.ld-trending-title {
    font-weight: 600;
    color: var(--ld-text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.ld-trending-count {
    color: var(--ld-light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ld-trending-compare {
    background: var(--ld-orange-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--ld-border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--ld-transition);
}

.ld-trending-compare:hover {
    background: #e55502;
    transform: translateY(-2px);
}

/* Loading and Error States */
.ld-loading {
    text-align: center;
    padding: 2rem;
    color: var(--ld-light-text);
    font-style: italic;
}

/* Loading Skeleton */
.ld-player-skeleton {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--ld-border-color);
    border-radius: var(--ld-border-radius);
    background: var(--ld-white);
    width: 100%;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

/* Modal specific skeleton styling to match player options */
.ld-players-list .ld-player-skeleton {
    padding: 0.75rem;
    border-bottom: 1px solid var(--ld-border-color);
    border: none;
    border-radius: 0;
}

.ld-skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ld-bg-light);
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Modal skeleton avatar to match player options */
.ld-players-list .ld-skeleton-avatar {
    width: 40px;
    height: 40px;
}

.ld-skeleton-info {
    flex: 1;
}

.ld-skeleton-name {
    height: 16px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: 60%;
}

.ld-skeleton-country {
    height: 14px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    width: 40%;
}

/* Skeleton for Player Cards */
.ld-player-card-skeleton {
    background: var(--ld-white);
    border-radius: var(--ld-border-radius);
    padding: 1.5rem;
    box-shadow: var(--ld-box-shadow);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.ld-player-card-skeleton .ld-skeleton-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.ld-player-card-skeleton .ld-skeleton-avatar {
    width: 80px;
    height: 80px;
    margin-right: 1rem;
}

.ld-player-card-skeleton .ld-skeleton-player-info {
    flex: 1;
}

.ld-player-card-skeleton .ld-skeleton-player-name {
    height: 20px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: 70%;
}

.ld-player-card-skeleton .ld-skeleton-player-nickname {
    height: 16px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: 50%;
}

.ld-player-card-skeleton .ld-skeleton-player-country {
    height: 14px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    width: 40%;
}

.ld-player-card-skeleton .ld-skeleton-stats {
    margin-top: 1rem;
}

.ld-player-card-skeleton .ld-skeleton-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ld-player-card-skeleton .ld-skeleton-stat-label {
    height: 14px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    width: 40%;
}

.ld-player-card-skeleton .ld-skeleton-stat-value {
    height: 16px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    width: 25%;
}

/* Skeleton for Tournament Cards */
.ld-tournament-card-skeleton {
    background: var(--ld-white);
    border-radius: var(--ld-border-radius);
    padding: 1.5rem;
    box-shadow: var(--ld-box-shadow);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.ld-tournament-card-skeleton .ld-skeleton-tournament-name {
    height: 18px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    width: 80%;
}

.ld-tournament-card-skeleton .ld-skeleton-tournament-date {
    height: 14px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: 60%;
}

.ld-tournament-card-skeleton .ld-skeleton-tournament-location {
    height: 14px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    width: 50%;
}

/* Skeleton for Rankings Table */
.ld-ranking-row-skeleton {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--ld-border-color);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.ld-ranking-row-skeleton .ld-skeleton-rank {
    height: 16px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    width: 30px;
}

.ld-ranking-row-skeleton .ld-skeleton-player {
    display: flex;
    align-items: center;
}

.ld-ranking-row-skeleton .ld-skeleton-player .ld-skeleton-avatar {
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
}

.ld-ranking-row-skeleton .ld-skeleton-value {
    height: 16px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    width: 60px;
}

/* Skeleton for Match Cards */
.ld-match-card-skeleton {
    background: var(--ld-white);
    border-radius: var(--ld-border-radius);
    padding: 1.5rem;
    box-shadow: var(--ld-box-shadow);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.ld-match-card-skeleton .ld-skeleton-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ld-match-card-skeleton .ld-skeleton-tournament {
    height: 14px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    width: 40%;
}

.ld-match-card-skeleton .ld-skeleton-date {
    height: 14px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    width: 25%;
}

.ld-match-card-skeleton .ld-skeleton-players {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ld-match-card-skeleton .ld-skeleton-player-section {
    display: flex;
    align-items: center;
    flex: 1;
}

.ld-match-card-skeleton .ld-skeleton-vs {
    height: 16px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    width: 30px;
    margin: 0 1rem;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

.ld-error {
    text-align: center;
    padding: 2rem;
    color: var(--ld-error-color);
    background: rgba(220, 53, 69, 0.1);
    border-radius: var(--ld-border-radius);
}

.ld-no-results {
    text-align: center;
    padding: 2rem;
    color: var(--ld-light-text);
    font-style: italic;
}

/* Comparison Result Skeleton */
.ld-comparison-skeleton {
    background: var(--ld-white);
    border-radius: var(--ld-border-radius);
    padding: 2rem;
    box-shadow: var(--ld-box-shadow);
    margin-bottom: 2rem;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.ld-comparison-skeleton .ld-skeleton-comparison-title {
    height: 24px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    width: 60%;
    margin: 0 auto 2rem auto;
}

.ld-comparison-skeleton .ld-skeleton-stat {
    margin-bottom: 2rem;
}

.ld-comparison-skeleton .ld-skeleton-stat-label {
    height: 16px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    width: 40%;
    margin: 0 auto 1rem auto;
}

.ld-comparison-skeleton .ld-skeleton-stat-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.ld-comparison-skeleton .ld-skeleton-stat-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ld-comparison-skeleton .ld-skeleton-stat-bar:first-child {
    flex-direction: row-reverse;
}

.ld-comparison-skeleton .ld-skeleton-stat-value {
    height: 18px;
    background: var(--ld-bg-light);
    border-radius: 4px;
    width: 50px;
}

.ld-comparison-skeleton .ld-skeleton-stat-progress {
    flex: 1;
    height: 24px;
    background: var(--ld-bg-light);
    border-radius: 12px;
}

/* ==========================================================================
   Comparison Matrix Styles
   ========================================================================== */

/* Player Search Modal */
.ld-player-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.ld-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ld-modal-content {
    background: white;
    border-radius: var(--ld-border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.ld-modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--ld-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ld-modal-header h3 {
    margin: 0;
    color: var(--ld-text-color);
}

.ld-modal-close {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--ld-light-text);
    transition: var(--ld-transition);
}

.ld-modal-close:hover {
    color: var(--ld-text-color);
}

.ld-modal-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.ld-search-input-container {
    margin-bottom: 1rem;
}

.ld-player-search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--ld-border-color);
    border-radius: var(--ld-border-radius);
    font-size: 1rem;
    transition: var(--ld-transition);
}

.ld-player-search-input:focus {
    outline: none;
    border-color: var(--ld-primary-color);
    box-shadow: 0 0 0 2px rgba(16, 78, 132, 0.1);
}

.ld-players-list {
    max-height: 300px;
    overflow-y: auto;
}

.ld-player-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--ld-border-color);
    cursor: pointer;
    transition: var(--ld-transition);
}

.ld-player-option:hover {
    background-color: var(--ld-bg-light);
}

.ld-player-option-avatar {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.ld-player-option-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ld-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ld-border-color);
    font-size: 2rem;
    color: var(--ld-light-text);
}

.ld-player-option-info {
    flex: 1;
    min-width: 0;
}

.ld-player-option-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--ld-text-color);
}

.ld-player-option-country {
    font-size: 0.875rem;
    color: var(--ld-light-text);
}

/* Selected Player Display */
.ld-selected-player {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e1e7ef;
    border-radius: var(--ld-border-radius);
    position: relative;
    transition: var(--ld-transition);
    min-height: 220px; /* Use min-height to match ld-player-slot */
    height: 220px; /* Enforce exact height */
    box-sizing: border-box;
    width: 100%; /* Ensure full width */
}

/* Hide dashed border when player slot contains selected player */
.ld-player-slot:has(.ld-selected-player) {
    border: 2px solid transparent;
}

/* Fallback for browsers that don't support :has() */
.ld-player-slot.has-selected-player {
    border: 2px solid transparent;
}

/* Force dashed border when empty (higher specificity) */
.ld-player-slot:not(.has-selected-player) {
    border: 2px dashed var(--ld-border-color) !important;
}

/* Also handle the :has() selector version */
.ld-player-slot:not(:has(.ld-selected-player[style*='flex'])) {
    border: 2px dashed var(--ld-border-color) !important;
}

.ld-selected-avatar {
    width: 120px;
    height: 120px;
    margin-right: 1rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgb(226, 232, 240);
}

.ld-selected-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ld-selected-info {
    flex: 1;
    min-width: 0;
}

.ld-selected-name {
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--ld-text-color);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.ld-selected-nickname {
    font-size: 1rem;
    color: var(--ld-light-text);
    font-style: italic;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.ld-selected-country {
    font-size: 1rem;
    color: var(--ld-light-text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.2;
}

/* Comparison Matrix Layout */

.ld-players-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}

.ld-player-slot {
    min-height: 120px;
    border: 2px dashed var(--ld-border-color);
    border-radius: var(--ld-border-radius);
    transition: var(--ld-transition);
}

/* Hide dashed border when player is selected - applies to this section too */
.ld-player-slot:has(.ld-selected-player) {
    border: 2px solid transparent;
}

.ld-player-slot.has-selected-player {
    border: 2px solid transparent;
}

/* Force dashed border when empty */
.ld-player-slot:not(.has-selected-player) {
    border: 2px dashed var(--ld-border-color) !important;
}

.ld-empty-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    height: 100%;
    gap: 1rem;
}

.ld-slot-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--ld-text-color);
    font-size: 1.1rem;
}

.ld-vs-divider {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--ld-primary-color);
    text-align: center;
}

/* Loading and Error States */
.ld-loading,
.ld-no-results {
    text-align: center;
    padding: 2rem;
    color: var(--ld-light-text);
}

/* Comparison Stats Progress Bars */
.ld-matrix-stat-comparison {
    margin-bottom: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e1e7efac;
}

.ld-matrix-stat-comparison:last-of-type {
    margin-bottom: 0;
    border-bottom: none;
}

.ld-matrix-stat-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ld-matrix-stat-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ld-matrix-stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ld-primary-color), #0d4270);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.player2-fill {
    background: linear-gradient(90deg, var(--ld-success-color), #1e7e34);
}
