/* ========== FINAL GIRL ISLE ANALYTICS STYLING ========== */
/* Modern, polished analytics interface design */

/* ========== MODAL & CONTAINER ========== */
.analytics-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.analytics-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.analytics-modal-header {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.analytics-modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.analytics-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.analytics-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.analytics-modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
}

/* ========== NAVIGATION TABS ========== */
.analytics-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 30px;
}

.analytics-tab {
    background: none;
    border: none;
    color: #ccc;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.analytics-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.analytics-tab.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.analytics-tab .icon {
    font-size: 1.1rem;
}

/* ========== CONTENT AREAS ========== */
.analytics-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.analytics-content {
    flex: 1;
    overflow: hidden;
}

.analytics-view {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 30px;
}

.analytics-view.active {
    display: block;
}

.analytics-view::-webkit-scrollbar {
    width: 8px;
}

.analytics-view::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.analytics-view::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.analytics-view::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========== OVERVIEW DASHBOARD ========== */
.overview-dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.metric-card.players { border-left: 4px solid #2196F3; }
.metric-card.season { border-left: 4px solid #4CAF50; }
.metric-card.analytics { border-left: 4px solid #FF9800; }
.metric-card.live { border-left: 4px solid #f44336; }

.metric-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.metric-label {
    color: #ccc;
    font-size: 0.9rem;
}

.overview-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.overview-section h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* ========== LEADERBOARD ========== */
.leaderboard-compact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leader-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.leader-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.leader-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    width: 30px;
    text-align: center;
}

.leader-info {
    flex: 1;
}

.leader-name {
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
}

.leader-archetype {
    color: #ccc;
    font-size: 0.85rem;
}

.leader-ratings {
    flex: 2;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 8px 15px;
    position: relative;
    overflow: hidden;
}

.rating-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 20px;
    transition: width 0.3s ease;
    opacity: 0.7;
}

.rating-label, .rating-value {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========== INSIGHTS GRID ========== */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.insight-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-card.strategic { background: rgba(33, 150, 243, 0.1); border-color: rgba(33, 150, 243, 0.3); }
.insight-card.challenge { background: rgba(255, 152, 0, 0.1); border-color: rgba(255, 152, 0, 0.3); }
.insight-card.social { background: rgba(76, 175, 80, 0.1); border-color: rgba(76, 175, 80, 0.3); }
.insight-card.neutral { background: rgba(158, 158, 158, 0.1); border-color: rgba(158, 158, 158, 0.3); }

.insight-icon {
    font-size: 1.5rem;
}

.insight-text {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.insight-text strong {
    color: #4CAF50;
}

.insight-text small {
    color: #ccc;
}

/* ========== PLAYER STATISTICS ========== */
.player-stats-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    height: 100%;
}

.player-selection h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.player-card-analytics {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-card-analytics:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4CAF50;
}

.player-card-analytics.selected {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.player-portrait-small img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

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

.player-name-small {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.player-rating-small {
    color: #4CAF50;
    font-size: 0.8rem;
    font-weight: 600;
}

.player-status {
    font-size: 1.2rem;
}

/* ========== PLAYER DETAIL DASHBOARD ========== */
.player-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
}

.select-player-message {
    text-align: center;
    padding: 50px 20px;
    color: #ccc;
}

.message-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.select-player-message h3 {
    color: #fff;
    margin-bottom: 10px;
}

.player-detail-dashboard {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-portrait img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4CAF50;
}

.player-identity {
    flex: 1;
}

.player-identity h2 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.archetype {
    color: #ccc;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.status-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid;
}

.badge.alive { background: rgba(76, 175, 80, 0.2); border-color: #4CAF50; color: #4CAF50; }
.badge.eliminated { background: rgba(244, 67, 54, 0.2); border-color: #f44336; color: #f44336; }
.badge.threat { background: rgba(255, 152, 0, 0.2); border-color: #FF9800; color: #FF9800; }
.badge.beast { background: rgba(156, 39, 176, 0.2); border-color: #9C27B0; color: #9C27B0; }

.winner-potential {
    text-align: center;
}

.potential-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#4CAF50 0% var(--potential), rgba(255, 255, 255, 0.1) var(--potential) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 10px;
}

.potential-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: #1a1a1a;
    border-radius: 50%;
}

.potential-value {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.potential-label {
    position: relative;
    z-index: 1;
    color: #ccc;
    font-size: 0.8rem;
}

/* ========== RATINGS SECTION ========== */
.ratings-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ratings-section h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.ratings-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-category {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-category.strategic { background: rgba(33, 150, 243, 0.1); }
.rating-category.social { background: rgba(76, 175, 80, 0.1); }
.rating-category.challenge { background: rgba(255, 152, 0, 0.1); }

.rating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.rating-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.rating-name {
    color: #fff;
    font-weight: 500;
    flex: 1;
}

.rating-score {
    color: #4CAF50;
    font-weight: 600;
}

.rating-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.rating-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-details {
    color: #ccc;
}

/* ========== KEY STATS ========== */
.key-stats-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.key-stats-section h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
}

.stat-label {
    color: #ccc;
    font-size: 0.8rem;
}

/* ========== STRATEGIC MOVES TIMELINE ========== */
.strategic-moves-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.strategic-moves-section h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.moves-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.move-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.move-item.success { background: rgba(76, 175, 80, 0.1); }
.move-item.failed { background: rgba(244, 67, 54, 0.1); }

.move-episode {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
    width: 50px;
}

.move-content {
    flex: 1;
}

.move-type {
    color: #fff;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.move-description {
    color: #ccc;
    font-size: 0.9rem;
}

.move-impact {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.move-impact.positive { background: rgba(76, 175, 80, 0.2); color: #4CAF50; }
.move-impact.negative { background: rgba(244, 67, 54, 0.2); color: #f44336; }

/* ========== SEASON ANALYSIS ========== */
.season-analysis-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.season-header {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.season-header h2 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 600;
}

.season-header p {
    color: #ccc;
    margin: 0;
    font-size: 1.1rem;
}

.season-metrics, .power-rankings, .episode-progression {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.season-metrics h3, .power-rankings h3, .episode-progression h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* ========== QUALITY METRICS ========== */
.quality-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quality-metric {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-name {
    color: #fff;
    font-weight: 500;
    width: 150px;
}

.metric-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.metric-fill.strategic { background: linear-gradient(90deg, #2196F3, #64B5F6); }
.metric-fill.unpredictable { background: linear-gradient(90deg, #FF9800, #FFB74D); }
.metric-fill.entertainment { background: linear-gradient(90deg, #9C27B0, #BA68C8); }
.metric-fill.chemistry { background: linear-gradient(90deg, #4CAF50, #81C784); }

.metric-score {
    color: #4CAF50;
    font-weight: 600;
    width: 60px;
    text-align: right;
}

/* ========== POWER RANKINGS ========== */
.rankings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ranking-position {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    width: 30px;
    text-align: center;
}

.ranking-player {
    flex: 1;
}

.player-name {
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
}

.player-archetype {
    color: #ccc;
    font-size: 0.85rem;
}

.ranking-metrics {
    display: flex;
    gap: 10px;
}

.metric-mini {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.metric-mini.strategic { background: rgba(33, 150, 243, 0.2); color: #2196F3; }
.metric-mini.social { background: rgba(76, 175, 80, 0.2); color: #4CAF50; }
.metric-mini.challenge { background: rgba(255, 152, 0, 0.2); color: #FF9800; }

.ranking-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    width: 60px;
    text-align: right;
}

.trend-arrow {
    font-size: 1.2rem;
}

/* ========== CHART PLACEHOLDER ========== */
.chart-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.chart-info {
    color: #ccc;
}

.chart-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.chart-info h4 {
    color: #fff;
    margin: 0 0 10px 0;
}

.chart-info p {
    margin: 0 0 10px 0;
}

/* ========== FRANCHISE HALL OF FAME ========== */
.franchise-hall-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hall-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(218, 165, 32, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.hall-header h2 {
    color: #FFD700;
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 600;
}

.hall-header p {
    color: #ccc;
    margin: 0;
    font-size: 1.1rem;
}

.hall-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hall-section h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.hall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.hall-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.hall-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hall-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.hall-crown {
    position: absolute;
    top: -5px;
    right: 10px;
    font-size: 1.5rem;
}

.hall-portrait img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4CAF50;
}

.hall-info {
    text-align: center;
}

.hall-name {
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
}

.hall-rating {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
}

.hall-seasons {
    color: #ccc;
    font-size: 0.8rem;
}

.hall-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* ========== FRANCHISE STATS ========== */
.franchise-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.franchise-stats h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.franchise-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.franchise-metric {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.franchise-metric .metric-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.franchise-metric .metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
}

.franchise-metric .metric-label {
    color: #ccc;
    font-size: 0.8rem;
}

/* ========== LIVE PREDICTIONS ========== */
.predictions-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.predictions-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(139, 195, 74, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.predictions-header h2 {
    color: #4CAF50;
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 600;
}

.predictions-header p {
    color: #ccc;
    margin: 0;
    font-size: 1.1rem;
}

.winner-predictions, .elimination-risk, .prediction-insights {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.winner-predictions h3, .elimination-risk h3, .prediction-insights h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* ========== PREDICTIONS LIST ========== */
.predictions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prediction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.prediction-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.prediction-item.frontrunner {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.prediction-rank {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
    width: 40px;
    text-align: center;
}

.prediction-player {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.player-portrait-mini img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

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

.prediction-probability {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.probability-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.probability-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.probability-value {
    color: #4CAF50;
    font-weight: 600;
    width: 50px;
}

.prediction-factors {
    color: #ccc;
    font-size: 0.8rem;
    text-align: right;
    width: 120px;
}

/* ========== ELIMINATION RISK ========== */
.risk-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.risk-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.risk-item.high-risk { background: rgba(244, 67, 54, 0.1); }
.risk-item.medium-risk { background: rgba(255, 152, 0, 0.1); }
.risk-item.low-risk { background: rgba(76, 175, 80, 0.1); }

.risk-indicator {
    font-size: 1.2rem;
}

.risk-player {
    color: #fff;
    font-weight: 500;
    flex: 1;
}

.risk-level {
    color: #4CAF50;
    font-weight: 600;
    width: 80px;
}

.risk-reason {
    color: #ccc;
    font-size: 0.8rem;
    width: 120px;
}

/* ========== FACTORS GRID ========== */
.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.factor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.factor-icon {
    font-size: 2rem;
}

.factor-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
}

.factor-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .player-stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .players-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        max-height: none;
    }
}

@media (max-width: 768px) {
    .analytics-modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .analytics-modal-body {
        padding: 0;
    }
    
    .analytics-view {
        padding: 20px 15px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .analytics-nav {
        flex-wrap: wrap;
        padding: 0 15px;
    }
    
    .analytics-tab {
        font-size: 0.8rem;
        padding: 12px 15px;
    }
    
    .player-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .hall-grid,
    .factors-grid,
    .franchise-metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* ========== RELATIONSHIP HEAT MAP ========== */
.relationship-container {
    padding: 20px;
}

.relationship-header {
    text-align: center;
    margin-bottom: 30px;
}

.relationship-header h2 {
    color: #fff;
    margin-bottom: 10px;
}

.relationship-header p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.heat-map-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.heat-map-filter {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.heat-map-filter.active,
.heat-map-filter:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

.heat-map-section {
    margin: 30px 0;
}

.heat-map-section h3 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.heat-map-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.ally { background: #10b981; }
.legend-color.friend { background: #3b82f6; }
.legend-color.neutral { background: #6b7280; }
.legend-color.tension { background: #f59e0b; }
.legend-color.enemy { background: #ef4444; }

.heat-map-grid {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.heat-map-table {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    overflow: auto;
}

.heat-map-header,
.heat-map-row {
    display: flex;
}

.heat-map-cell {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.heat-map-cell.corner {
    background: rgba(255, 255, 255, 0.1);
}

.heat-map-cell.header,
.heat-map-cell.row-header {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-gold);
    font-weight: bold;
}

.heat-map-cell.self {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.heat-map-cell.relationship {
    color: #fff;
    position: relative;
}

.heat-map-cell.relationship:hover {
    transform: scale(1.1);
    z-index: 10;
    border-color: #fff;
}

.heat-map-cell.ally { background: #10b981; }
.heat-map-cell.friend { background: #3b82f6; }
.heat-map-cell.neutral { background: #6b7280; }
.heat-map-cell.tension { background: #f59e0b; }
.heat-map-cell.enemy { background: #ef4444; }

/* Alliance Network */
.alliance-network-section,
.top-relationships-section,
.rivalry-analysis-section {
    margin: 40px 0;
}

.alliance-network-section h3,
.top-relationships-section h3,
.rivalry-analysis-section h3 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.alliance-network {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.alliance-group {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.alliance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.alliance-name {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.1rem;
}

.alliance-strength {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.alliance-members {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.alliance-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.member-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.alliance-bonds {
    margin-top: 15px;
}

.bond-connection {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 3px 0;
}

/* Relationships List */
.relationships-list,
.rivalries-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.relationship-item,
.rivalry-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.relationship-players,
.rivalry-players {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.player-name {
    color: #fff;
    font-weight: 500;
}

.relationship-connector,
.rivalry-connector {
    font-size: 1.2rem;
}

.relationship-strength,
.rivalry-intensity {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar,
.intensity-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill,
.intensity-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.strength-fill.ally,
.intensity-fill.ally { background: #10b981; }
.strength-fill.friend,
.intensity-fill.friend { background: #3b82f6; }
.strength-fill.neutral,
.intensity-fill.neutral { background: #6b7280; }
.strength-fill.tension,
.intensity-fill.tension { background: #f59e0b; }
.strength-fill.enemy,
.intensity-fill.enemy { background: #ef4444; }

.strength-value,
.intensity-value {
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-width: 50px;
}

.relationship-label,
.rivalry-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    min-width: 120px;
}

/* Empty States */
.no-alliances,
.no-rivalries {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.no-alliances-icon,
.no-rivalries-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}