.modern-spinner { width:40px;height:40px;position:relative;margin:0 auto;animation:spin-container 2s linear infinite; }
.modern-spinner div { width:6px;height:18px;border-radius:3px;position:absolute;top:1px;left:17px;transform-origin:20px 20px;opacity:0.2; }
.modern-spinner div:nth-child(1)  { background:#ff0000; transform:rotate(0deg);   animation:pulse 1.2s linear infinite; animation-delay:0s; }
.modern-spinner div:nth-child(2)  { background:#ff1a1a; transform:rotate(30deg);  animation:pulse 1.2s linear infinite; animation-delay:-0.1s; }
.modern-spinner div:nth-child(3)  { background:#ff3333; transform:rotate(60deg);  animation:pulse 1.2s linear infinite; animation-delay:-0.2s; }
.modern-spinner div:nth-child(4)  { background:#ff4d4d; transform:rotate(90deg);  animation:pulse 1.2s linear infinite; animation-delay:-0.3s; }
.modern-spinner div:nth-child(5)  { background:#ff6666; transform:rotate(120deg); animation:pulse 1.2s linear infinite; animation-delay:-0.4s; }
.modern-spinner div:nth-child(6)  { background:#ff8080; transform:rotate(150deg); animation:pulse 1.2s linear infinite; animation-delay:-0.5s; }
.modern-spinner div:nth-child(7)  { background:#ff9999; transform:rotate(180deg); animation:pulse 1.2s linear infinite; animation-delay:-0.6s; }
.modern-spinner div:nth-child(8)  { background:#ffb3b3; transform:rotate(210deg); animation:pulse 1.2s linear infinite; animation-delay:-0.7s; }
.modern-spinner div:nth-child(9)  { background:#ffcccc; transform:rotate(240deg); animation:pulse 1.2s linear infinite; animation-delay:-0.8s; }
.modern-spinner div:nth-child(10) { background:#ffe6e6; transform:rotate(270deg); animation:pulse 1.2s linear infinite; animation-delay:-0.9s; }
.modern-spinner div:nth-child(11) { background:#ff9999; transform:rotate(300deg); animation:pulse 1.2s linear infinite; animation-delay:-1s; }
.modern-spinner div:nth-child(12) { background:#ff4d4d; transform:rotate(330deg); animation:pulse 1.2s linear infinite; animation-delay:-1.1s; }

@keyframes spin-container {0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}
@keyframes pulse {0%,100%{opacity:0.2;box-shadow:0 0 2px currentColor;}50%{opacity:1;box-shadow:0 0 8px currentColor,0 0 12px currentColor;}}

.player-card {
    position: relative;
}

.player-card .star-icon {
    position: static;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    cursor: pointer;
    color: #707070;
    font-size: 1.05rem;
    line-height: 1;
    user-select: none;
    border-radius: 999px;
    border: 1px solid #d9d9d9;
    background: rgba(255, 255, 255, 0.9);
    flex: 0 0 auto;
    transition: color 0.2s ease, transform 0.2s ease;
}

.player-card.is-favorite {
    border-left: 4px solid #f1c40f !important;
    background: linear-gradient(90deg, rgba(241, 196, 15, 0.12), rgba(247, 245, 245, 1) 70%);
}

.player-card.is-favorite .star-icon {
    color: #f1c40f;
    font-size: 0;
}

.player-card.is-favorite .star-icon::before {
    content: "★";
    font-size: 1.15rem;
}

.favorites-section {
    width: 100%;
    margin: 0 0 18px 0;
}

.favorites-section-title {
    width: 90%;
    max-width: 800px;
    margin: 0 auto 10px auto;
    font-size: 0.95rem;
    font-weight: 800;
    color: #6a5400;
    letter-spacing: 0.3px;
}

.favorites-cards .player-card {
    margin-bottom: 16px !important;
}


/* The Action Bar Container */
.upw-action-bar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    margin-top: 12px;
}

/* Premium Pill Buttons */

.upw-action-bar--two-buttons .upw-action-btn {
    flex: 1 1 0;
}
.upw-action-btn {
    flex: 1;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #444;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.upw-action-btn:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.upw-action-btn.is-active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Icon Styling (Using WordPress Dashicons) */
.upw-action-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Content Sections - Hidden by Default */
.upw-expandable-section {
    display: none;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- Professional Player Stats Grid --- */
.upw-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px;
}

@media (min-width: 600px) {
    .upw-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

.upw-stat-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.upw-stat-label {
    font-size: 0.6rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.upw-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #222;
}

.upw-stat-card.rating-highlight {
    background: #fdf2f2;
    border-color: #ffcccc;
}

.upw-stat-card.rating-highlight .upw-stat-value {
    color: #cc2603;
}

/* --- Professional Match Comparison Stats --- */
.upw-match-stats-list {
    padding: 10px;
}

.upw-match-team-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    margin-bottom: 10px;
    padding: 0 12px;
}

.upw-match-team-left,
.upw-match-team-right {
    font-size: 0.84rem;
    font-weight: 800;
    color: #444;
    text-transform: uppercase;
    line-height: 1.1;
    overflow-wrap: break-word;
}

.upw-match-team-left {
    text-align: left;
}

.upw-match-team-right {
    text-align: right;
}

.upw-match-team-center {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.upw-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
}

.upw-match-val-left,
.upw-match-val-right {
    font-weight: 700;
    font-size: 0.9rem;
    width: 48px;
    text-align: center;
}

.upw-match-label {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    position: relative;
}

.upw-match-row::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 58px;
    right: 58px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
}

.upw-match-row.home-dominant::after {
    background: linear-gradient(to right, #cc2603 50%, #f0f0f0 50%);
}

.upw-match-row.away-dominant::after {
    background: linear-gradient(to left, #222 50%, #f0f0f0 50%);
}

.upw-watch-row-full {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.upw-watch-row-full::before {
    content: '';
    width: min(72%, 420px);
    border-top: 1px solid #d6d6d6;
    margin-bottom: 10px;
}

.watch-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
    justify-content: center;
}

.watch-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 999px;
    background: #f2f2f2;
    color: #cc2603;
    font-size: .75rem;
    line-height: 1;
    text-decoration: none;
    min-width: 84px;
    min-height: 46px;
}

.watch-pill img {
    width: 72px;
    height: 30px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.watch-station-item.over-limit-hidden {display:none;}
.watch-more-toggle {cursor:pointer;border:none;background:#e9e9e9;font-size:.75rem;white-space:nowrap;}
.watch-more-toggle.hidden {display:none;}


.player-info-container {
    position: relative;
    overflow: visible;
}


.player-lineup-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: calc(clamp(18px, 2.6vw, 30px) + 28px);
    margin-left: -8px;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.1;
}

.player-lineup-status::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.16);
    flex: 0 0 auto;
}

.fixture-info-container {
    position: static;
    padding-top: 20px;
}

.fixture-card-container {
    position: static;
    overflow: visible;
    width: 100%;
}

.fixture-status-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.12);
    z-index: 3;
}

.fixture-status-badge.live-badge,
.fixture-status-badge.is-live {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
    animation: livePulse 1.4s ease-in-out infinite;
}

.badge-time,
.badge-score {
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.badge-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-flag {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.matchup-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-top: 12px;
}

.matchup-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
}

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

.team-right {
    justify-content: flex-end;
    text-align: right;
}

.matchup-mini-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 24px;
}

.team-abbr {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matchup-vs {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.55;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fixture-score-container {
    display: none;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.fixture-score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #123e7a;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(18, 62, 122, 0.18);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}



@media (min-width: 768px) {
    .fixture-info-container {
        padding-top: 58px;
    }

    .matchup-container {
        padding-top: 4px;
        justify-content: center;
        gap: 18px;
    }

    .matchup-team {
        flex: 0 1 auto;
        gap: 10px;
    }

    .matchup-mini-logo {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .team-abbr {
        font-size: 1.12rem;
    }

    .fixture-status-badge {
        top: 8px;
        right: 12px;
        padding: 6px 12px;
        font-size: 0.8rem;
        gap: 7px;
    }

    .badge-flag {
        width: 18px;
        height: 13px;
    }

    .player-lineup-status {
        margin-top: calc(clamp(22px, 1.8vw, 34px) + 28px);
        font-size: 0.76rem;
    }

    .upw-match-team-row {
        padding: 0 24px;
    }


    .upw-match-row {
        padding: 0 24px;
    }

    .upw-match-val-left,
    .upw-match-val-right {
        width: 60px;
    }

    .upw-match-row::after {
        left: 92px;
        right: 92px;
    }
}

@media (max-width: 600px) {
    .fixture-info-container {
        padding-top: 42px;
    }

    .fixture-status-badge {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 0.66rem;
        gap: 3px;
    }

    .badge-flag {
        width: 12px;
        height: 8px;
    }

    .matchup-container {
        padding-top: 0;
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }

    .fixture-score-container {
        margin-top: 8px;
    }

    .fixture-score-pill {
        min-width: 48px;
        padding: 5px 12px;
        font-size: 0.85rem;
    }

    .matchup-team {
        gap: 6px;
        flex: 0 0 auto;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .matchup-vs {
        width: auto;
        text-align: center;
    }

    .team-left,
    .team-right {
        text-align: center;
    }

    .team-right {
        flex-direction: row-reverse;
    }

    .team-abbr {
        font-size: 0.92rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.2;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .watch-pill {
        min-width: 78px;
        min-height: 42px;
        padding: 7px 12px;
    }

    .watch-pill img {
        width: 64px;
        height: 26px;
    }

    .matchup-mini-logo {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .team-abbr {
        max-width: 100%;
    }

}

/* Premium Empty State V2 */
.no-matches-container-v2 {
    position: relative;
    width: calc(100% - 44px);
    padding: 42px 18px;
    margin: 24px auto;
    max-width: 860px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    overflow: hidden;
}

.empty-state-content {
    position: relative;
    z-index: 1;
}

.status-pill {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(240, 240, 240, 0.95);
    color: #777;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    margin-bottom: 24px;
}

/* Radar Animation */
.radar-scan {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
}

.radar-scan::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4d4d;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 18px rgba(255, 77, 77, 0.6);
}

.radar-scan .circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #ff4d4d;
    border-radius: 50%;
    opacity: 0;
    animation: radar-pulse 3.6s infinite;
}

.radar-scan .circle:nth-child(2) {
    animation-delay: 1.2s;
}

.radar-scan .circle:nth-child(3) {
    animation-delay: 2.4s;
}

@keyframes radar-pulse {
    0% {
        transform: scale(0.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.no-matches-title-v2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.no-matches-subtext {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 auto 8px;
    max-width: 360px;
}

.next-match-prompt-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.next-match-button-v2 {
    position: relative;
    cursor: pointer;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.next-match-button-v2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24%;
    height: 200%;
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-220%) skewX(-22deg);
    transition: transform 0.45s ease;
}

.next-match-button-v2 .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

.next-match-button-v2:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    background: #000;
    color: #fff;
}

.next-match-button-v2:hover::after {
    transform: translateX(460%) skewX(-22deg);
}

@media (max-width: 600px) {
    .no-matches-container-v2 {
        width: calc(100% - 44px);
        margin: 20px auto;
        padding: 34px 14px;
    }
}
