/* NCAAF Team Comparison Tool Styles */

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f8fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin: 0;
}

.logo-small {
    max-width: 150px;
    height: auto;
    margin: 15px auto;
    display: block;
}

.ncaaf-logo {
    max-width: 120px;
}

/* Selection Container */
.selection-container {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.selection-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.selection-row label {
    font-weight: 600;
    color: #374151;
    min-width: 90px;
}

.selection-row select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 650px;
    box-sizing: border-box;
    background-color: #fff;
    cursor: pointer;
}

.selection-row select:hover {
    border-color: #9ca3af;
}

.selection-row select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.selection-row select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.6;
}

#game-select-container {
    min-height: 50px;
}

#game-select-container select {
    width: 650px;
}

.conference-indicator {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.conference-indicator.show {
    display: block;
}

/* Tab Container */
.tab-container {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-buttons {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    padding: 12px 24px;
    background: #f8f9fa;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #656565;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    max-width: 180px;
}

.tab-button.active {
    background: #fff;
    color: #013369;
    border-bottom-color: #013369;
}

.tab-button:hover {
    background: #e9ecef;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Teams Header */
.teams-header {
    display: none; /* Hidden by default until game is selected */
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    border-radius: 10px;
}

.teams-header.show {
    display: grid; /* Show when game is selected */
}

.team-info {
    text-align: center;
}

.team-logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.team-record {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 8px;
}

/* Team record color classes */
.team-record.better-stat {
    background-color: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.4);
    color: #065f46;
}

.team-record.worse-stat {
    background-color: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #991b1b;
}

.team-record.tied-stat {
    background-color: rgba(245, 158, 11, 0.15);
    border: 2px solid rgba(245, 158, 11, 0.4);
    color: #92400e;
}

.vs-divider {
    font-size: 2rem;
    font-weight: 900;
    color: #9ca3af;
}

/* Team Selector for Rankings Tab */
.team-selector-wrapper {
    margin: 10px 0;
}

.team-selector {
    width: 100%;
    padding: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #3b82f6;
}

/* NFL-Style Standings Comparison */
.standings-comparison-nfl-style {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}

.nfl-comparison-cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.nfl-team-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.nfl-away-card {
    border-left: 5px solid #3b82f6;
}

.nfl-home-card {
    border-right: 5px solid #10b981;
}

.nfl-card-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
}

.nfl-card-record {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 10px 0;
}

.nfl-win-rate-box {
    background: #fef3c7;
    color: #92400e;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    margin: 15px 0;
}

.nfl-stats-grid {
    margin: 15px 0;
}

.nfl-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e5e7eb;
}

.nfl-stat-row .nfl-stat-label {
    font-weight: 500;
    color: #374151;
}

.nfl-stat-row .nfl-stat-value {
    font-weight: 600;
    color: #111827;
}

/* Win Percentage Box - NFL Style */
.win-percentage {
    background: #fef3c7;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #92400e;
    margin: 15px 0;
}

/* Win percentage color classes */
.win-percentage.better-stat {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.win-percentage.worse-stat {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.win-percentage.tied-stat {
    background-color: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400e;
}

/* Stat Item Boxes - EXACT NFL colors */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 4px;
    background: #f8fafc;
}

.stat-item .label {
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.stat-item .value {
    font-weight: 600;
    color: #111827;
    font-size: 1.05rem;
}

/* Better stat styling - EXACT NFL green */
.stat-item.better-stat {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
}

/* Worse stat styling - EXACT NFL red/pink */
.stat-item.worse-stat {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
}

.nfl-streak-section {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

.nfl-streak-label {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.nfl-last-five {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 400;
}

/* VS Section with Insights */
.nfl-vs-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0;
    min-width: 140px;
}

.nfl-vs-badge {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    font-size: 1rem;
    font-weight: 900;
    padding: 0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.nfl-insight-box {
    background: #fef3c7;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 6px;
    font-size: 0.85rem;
    border-left: 4px solid #f59e0b;
    color: #2563eb;
    font-weight: 600;
    text-align: center;
}

/* Responsive for NFL cards */
@media (max-width: 1024px) {
    .nfl-comparison-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nfl-vs-section {
        transform: rotate(0deg);
    }
}

/* Projections Styles */
.projections-comparison {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}

.projection-team-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.projection-team-card.nfl-away-card {
    border-left: 5px solid #3b82f6;
}

.projection-team-card.nfl-home-card {
    border-right: 5px solid #10b981;
}

.projection-section {
    margin: 20px 0;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 8px;
}

.projection-section h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.projection-record {
    font-size: 2rem;
    font-weight: 900;
    color: #1f2937;
    margin: 5px 0;
}

.projection-conf-record {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.projection-insight-box {
    background: #fef3c7;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
    text-align: left;
    border-left: 4px solid #f59e0b;
}

.projection-insight-box strong {
    color: #92400e;
}

.odds-section {
    margin-top: 20px;
}

.odds-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 6px;
    background: #f8fafc;
}

.odds-item.better-stat {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
}

.odds-item.worse-stat {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
}

.odds-item.tied-stat {
    background-color: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
}

.odds-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.odds-value {
    font-weight: 700;
    color: #111827;
    font-size: 1.05rem;
}

/* Old Standings Styles (keeping for backwards compatibility) */
.standings-comparison {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}

.callout-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.conference-callout {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.team-standings-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
}

.team-standings-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.team-standings-card.away-team {
    border-left: 5px solid #3b82f6;
}

.team-standings-card.home-team {
    border-right: 5px solid #10b981;
}

.conference-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.team-record-large {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 10px 0;
}

.win-percentage {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 20px;
}

.record-breakdown {
    margin: 15px 0;
}

.record-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.record-item .label {
    font-weight: 500;
    color: #374151;
}

.record-item .value {
    font-weight: 600;
    color: #111827;
}

.record-item .value.positive {
    color: #10b981;
}

.record-item .value.negative {
    color: #ef4444;
}

.record-item .value.winning-streak {
    color: #10b981;
    font-weight: 700;
}

.record-item .value.losing-streak {
    color: #ef4444;
    font-weight: 700;
}

/* Conference Standings Table */
.conference-standings-section {
    margin-top: 40px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 25px;
    border: 2px solid #e2e8f0;
}

.conference-standings-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3b82f6;
}

.conference-standings-table-wrapper {
    overflow-x: auto;
}

.conference-standings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.conference-standings-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.conference-standings-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conference-standings-table th.rank-col {
    text-align: center;
    width: 50px;
}

.conference-standings-table th.team-col {
    width: 200px;
}

.conference-standings-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.conference-standings-table tbody tr:hover {
    background-color: #f9fafb;
}

.conference-standings-table tbody tr:last-child {
    border-bottom: none;
}

.conference-standings-table td {
    padding: 12px 10px;
    font-size: 0.95rem;
    color: #374151;
}

.conference-standings-table td.rank-col {
    text-align: center;
    font-weight: 700;
    color: #6b7280;
}

.conference-standings-table td.team-col {
    font-weight: 600;
    color: #1f2937;
}

.conference-standings-table .win-pct {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 400;
}

.conference-standings-table .positive {
    color: #10b981;
    font-weight: 700;
}

.conference-standings-table .negative {
    color: #ef4444;
    font-weight: 700;
}

.conference-standings-table .winning-streak {
    color: #10b981;
    font-weight: 600;
}

.conference-standings-table .losing-streak {
    color: #ef4444;
    font-weight: 600;
}

/* Highlight matchup teams in standings table */
.conference-standings-table tr.highlight-away {
    background-color: #dbeafe !important;
    border-left: 4px solid #3b82f6;
}

.conference-standings-table tr.highlight-home {
    background-color: #d1fae5 !important;
    border-left: 4px solid #10b981;
}

.team-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.team-badge.away-badge {
    background-color: #3b82f6;
    color: white;
}

.team-badge.home-badge {
    background-color: #10b981;
    color: white;
}

/* Different conferences - side by side tables */
.conference-tables-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .conference-tables-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Projections Styles */
.projections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.projection-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}

.projection-card h3 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
}

.projection-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.projection-item .label {
    font-weight: 500;
    color: #374151;
}

.projection-item .value {
    font-weight: 700;
    color: #111827;
}

.odds-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

.odds-highlight .label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.odds-highlight .value {
    font-size: 2rem;
    font-weight: 900;
}

/* Game Logs Styles */
.game-logs-comparison {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}

.game-log-team-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
}

.game-log-team-card.nfl-away-card {
    border-left: 5px solid #3b82f6;
}

.game-log-team-card.nfl-home-card {
    border-right: 5px solid #10b981;
}

.game-log-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.game-log-stat-box {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.game-log-stat-box .stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 5px;
}

.game-log-stat-box .stat-value {
    font-size: 1.3rem;
    color: #1f2937;
    font-weight: 700;
}

.strength-of-schedule {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #f59e0b;
}

.sos-title {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sos-metric {
    font-size: 0.95rem;
    color: #78350f;
    margin: 4px 0;
}

.sos-metric strong {
    font-weight: 900;
    color: #92400e;
    font-size: 1.1rem;
}

.game-log-list {
    margin-top: 20px;
}

.game-log-list-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.game-log-item {
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #e5e7eb;
    padding: 12px;
    transition: all 0.2s ease;
}

.game-log-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(2px);
}

.game-log-item.win {
    border-left-color: #10b981;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05) 0%, white 100%);
}

.game-log-item.loss {
    border-left-color: #ef4444;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.05) 0%, white 100%);
}

.game-log-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.game-week {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

.game-result-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.game-log-item.win .game-result-badge {
    background: #10b981;
    color: white;
}

.game-log-item.loss .game-result-badge {
    background: #ef4444;
    color: white;
}

.game-log-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-opponent {
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 600;
}

.opp-rank-badge {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 6px;
}

/* Location badges for home/away/neutral */
.location-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid #047857;
}

.away-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: 1px solid #b45309;
}

.neutral-badge {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: 1px solid #374151;
}

.game-score {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 700;
}

.game-margin {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
    margin-left: 4px;
}

/* Old game logs styles (keeping for backwards compatibility) */
.game-logs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.game-log-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}

.game-log-card h3 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
}

.game-log-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 600;
}

.game-log-details {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Rankings Styles */
.rankings-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.control-label {
    font-weight: 600;
    color: #374151;
}

.period-selector {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    background-color: white;
    cursor: pointer;
}

.rankings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.rankings-category {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.rankings-category h3 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #3b82f6;
}

.ranking-stat {
    display: grid;
    grid-template-columns: 1fr 100px 100px 100px 100px;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

.ranking-stat .stat-name {
    font-weight: 600;
    color: #374151;
}

.ranking-stat .stat-value {
    text-align: center;
    font-weight: 600;
    color: #111827;
}

.ranking-stat .stat-rank {
    text-align: center;
    font-weight: 700;
    color: #3b82f6;
}

.better {
    color: #10b981 !important;
    font-weight: 900;
}

.worse {
    color: #ef4444 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .teams-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vs-divider {
        transform: rotate(90deg);
    }

    .projections-grid,
    .game-logs-grid,
    .rankings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .selection-row {
        flex-direction: column;
        align-items: stretch;
    }

    .selection-row label {
        min-width: auto;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        text-align: left;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 1.1rem;
}

/* Error State */
.error {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* ========================================
/* ========================================
   RANKINGS TAB - EXACT NFL STYLING
   ======================================== */

/* Rankings Tab Controls - Dark Gradient Header */
.rankings-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.control-label {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.period-selector {
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border: 2px solid #357abd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 180px;
    max-width: 250px;
    width: auto;
}

.period-selector:hover {
    background: linear-gradient(135deg, #357abd 0%, #2d6ba3 100%);
    border-color: #2d6ba3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.period-selector:focus {
    border-color: #66b3ff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.period-selector option {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 10px;
}

/* Rankings Main Container */
.rankings-comparison {
    width: 100%;
}

.rankings-section {
    margin-bottom: 30px;
}

.rankings-section h3 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 10px;
    font-weight: 800;
}

.rankings-note {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3b82f6;
    font-size: 0.95rem;
    color: #1e40af;
}

/* Rankings Insights Section */
.rankings-insights-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 5px solid #f59e0b;
}

.rankings-insights-section h4 {
    font-size: 1.3rem;
    color: #92400e;
    margin-bottom: 15px;
    font-weight: 800;
}

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insight-item {
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #78350f;
    border-left: 3px solid #f59e0b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.insight-item strong {
    color: #92400e;
    font-weight: 700;
}

/* Rankings Table Container */
.rankings-table-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Team Headers Above Table */
.rankings-teams-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 10px;
}

.rankings-team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rankings-team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.rankings-team-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1f2937;
}

.rankings-team-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rankings-vs-divider {
    font-size: 2rem;
    font-weight: 900;
    color: #9ca3af;
    padding: 0 30px;
}

/* Ranking Advantage Box */
.ranking-advantage-box {
    background: #f8fafc;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #10b981;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.advantage-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1f2937;
    text-align: center;
    margin-bottom: 8px;
}

.advantage-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
}

.advantage-header-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.advantage-tables-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
}

.advantage-table-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0; /* Allows flex items to shrink below content size */
    width: 100%;
    overflow: hidden; /* Prevents content from overflowing */
}

.advantage-team-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e40af;
    text-align: center;
    margin-bottom: 10px;
}

.advantage-count {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e40af;
}

.advantage-pct {
    font-size: 1rem;
    color: #3b82f6;
    font-weight: 700;
}

.significant-advantages {
    font-size: 0.85rem;
    color: #dc2626;
    font-weight: 700;
    margin-top: 5px;
    padding: 4px 8px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.push-count {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
    margin-top: 5px;
    padding: 4px 8px;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.significant-note {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.95rem;
}

.advantage-divider {
    font-size: 1.2rem;
    font-weight: 700;
    color: #6b7280;
}

.advantage-summary {
    text-align: center;
    font-size: 1rem;
    color: #1e40af;
    padding: 12px;
    background: white;
    border-radius: 6px;
}

.top-edges-section {
    margin-top: 15px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.top-edges-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 10px;
}

.top-edges-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-edges-list li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.top-edges-list li:last-child {
    border-bottom: none;
}

/* Edge Table Sections (Strong Edges) */
.edge-table-section {
    background: white;
    border-radius: 6px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto; /* Allow horizontal scroll if needed */
}

.edge-table-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 10px;
    text-align: center;
}

.edge-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: fixed;
    max-width: 100%;
    box-sizing: border-box;
}

.edge-table thead {
    background: #f3f4f6;
}

.edge-table th {
    padding: 6px 8px;
    text-align: center;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.edge-table td {
    padding: 5px 2px;
    border-bottom: 1px solid #f3f4f6;
}

.edge-table .row-even {
    background: #ffffff;
}

.edge-table .row-odd {
    background: #f9fafb;
}

.edge-stat-col {
    text-align: left;
    font-weight: 500;
    color: #1f2937;
    font-size: 0.78rem;
    width: 35%;
    max-width: 35%;
    padding-left: 4px;
    padding-right: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.edge-rank-col {
    text-align: center;
    font-weight: 600;
    color: #3b82f6;
    width: 15%;
    max-width: 15%;
    font-size: 0.8rem;
}

.edge-vs-col {
    text-align: center;
    color: #9ca3af;
    font-size: 0.75rem;
    width: 10%;
    max-width: 10%;
}

.edge-delta-col {
    text-align: center;
    font-weight: 700;
    width: 15%;
    max-width: 15%;
    font-size: 0.8rem;
}

.edge-delta-col.delta-positive {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.edge-delta-col.delta-negative {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

/* Pushes Section (Single Shared Table) */
.pushes-section {
    margin: 20px auto 0;
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #e5e7eb;
    max-width: 70%;
}

.pushes-title {
    font-size: 1rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 12px;
    text-align: center;
}

.pushes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.pushes-table thead {
    background: #f9fafb;
}

.pushes-table th {
    padding: 8px 10px;
    text-align: center;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.8rem;
}

.pushes-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
}

.pushes-table .row-even {
    background: #ffffff;
}

.pushes-table .row-odd {
    background: #fafafa;
}

.push-stat-col {
    text-align: left;
    font-weight: 500;
    color: #1f2937;
    width: 35%;
}

.push-rank-col {
    text-align: center;
    font-weight: 600;
    color: #3b82f6;
    width: 12%;
}

.push-delta-col {
    text-align: center;
    font-weight: 600;
    width: 12%;
}

.push-delta-yellow {
    color: #b45309;
    background: rgba(251, 191, 36, 0.15);
    font-weight: 700;
}

/* Rankings Comparison Table */
.rankings-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Table Header - Purple Gradient */
.rankings-comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.rankings-comparison-table .stat-header-left {
    text-align: left !important;
    padding-left: 15px !important;
}

.rankings-comparison-table .stat-header-right {
    text-align: right !important;
    padding-right: 15px !important;
}

/* Table Body */
.rankings-comparison-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

/* Rank value cells need special handling for rounded appearance */
.rankings-comparison-table td.rank-value {
    padding: 12px 10px;
    text-align: center;
}

/* Section Separators - Purple Gradient */
.section-separator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.section-header {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: white !important;
    text-align: center !important;
    padding: 15px 10px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none !important;
}

/* Table Body Rows */
.rankings-comparison-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.rankings-comparison-table tbody tr:hover:not(.section-separator) {
    background-color: #f9fafb;
}

.stat-label-left {
    text-align: left;
    font-weight: 600;
    color: #374151;
    padding-left: 15px !important;
}

.stat-label-right {
    text-align: right;
    font-weight: 600;
    color: #374151;
    padding-right: 15px !important;
}

/* Stat Values - Full Cell Backgrounds (NO ROUNDED CORNERS) */
.rankings-comparison-table .stat-value {
    padding: 12px 10px !important;
    display: table-cell !important;
    vertical-align: middle !important;
    height: 100% !important;
    box-sizing: border-box !important;
    font-weight: 700;
    border-radius: 0 !important;
}

/* Stat Value Color Classes - EXACT NFL (NO ROUNDED CORNERS) */
.stat-better {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #065f46 !important;
    font-weight: 600;
    border-radius: 0 !important;
}

.stat-equal {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #92400e !important;
    font-weight: 600;
    border-radius: 0 !important;
}

.stat-worse {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #991b1b !important;
    font-weight: 600;
    border-radius: 0 !important;
}

.stat-neutral {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-bottom: none !important;
    border-top: none !important;
    border-radius: 0 !important;
}

/* Rank Values - Full Cell Backgrounds (SAME AS STAT VALUES) */
.rank-value {
    padding: 12px 10px !important;
    display: table-cell !important;
    vertical-align: middle !important;
    height: 100% !important;
    box-sizing: border-box !important;
    font-weight: 700;
    text-align: center;
}

/* Ranking Color Classes - 5-Tier System for 136 Teams */
.ranking-excellent {
    background-color: rgba(5, 150, 105, 0.20) !important;
    border: 1px solid rgba(5, 150, 105, 0.4) !important;
    color: #064e3b !important;
    font-weight: 600;
}

.ranking-good {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #065f46 !important;
    font-weight: 600;
}

.ranking-average {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #92400e !important;
    font-weight: 600;
}

.ranking-below-average {
    background-color: rgba(249, 115, 22, 0.15) !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
    color: #9a3412 !important;
    font-weight: 600;
}

.ranking-poor {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #991b1b !important;
    font-weight: 600;
}

.ranking-neutral {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6 !important;
    font-weight: 600;
}

/* Advantage Cell */
.advantage-cell {
    padding: 8px !important;
}

.advantage-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.no-advantage {
    color: #9ca3af;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ========================================
   CONTEXT AND STYLE SECTION - PREMIUM DESIGN
   ======================================== */

/* Main Container */
.context-style-box {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid #10b981;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay - removed for clean look */
.context-style-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

/* Header Section - Match Paired Ranking Advantage styling */
.context-header {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
}

.context-title-wrapper {
    text-align: center;
}

.context-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 8px 0;
    text-align: center;
}

.context-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 20px 0;
    font-style: italic;
    text-align: center;
}

/* Team Cards Grid */
.style-tags-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Team Style Cards */
.team-style-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-style-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

/* Away card styling */
.away-card {
    border-left: 5px solid #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

/* Home card styling */
.home-card {
    border-right: 5px solid #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

/* Team Card Header */
.team-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.team-label {
    font-size: 0.95rem;
    font-weight: 900;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.team-badge {
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.away-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.home-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

/* Tags Container */
.tags-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual Tag Card */
.tag-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.tag-card:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateX(3px);
}

/* Tag Header */
.tag-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.tag-emoji {
    font-size: 1.2rem;
    line-height: 1;
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.style-tag {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.3);
}

/* Tag Stats Row */
.tag-stats {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.rank-badge {
    flex: 1;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #3b82f6;
    border-radius: 6px;
    padding: 4px 6px;
    text-align: center;
}

.rank-label {
    display: block;
    font-size: 0.6rem;
    color: #1e40af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 1px;
}

.rank-number {
    display: block;
    font-size: 0.95rem;
    font-weight: 900;
    color: #1e3a8a;
}

.percentile-badge {
    flex: 1;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.percentile-value {
    font-size: 0.85rem;
    font-weight: 900;
    color: #92400e;
}

/* Tag Explanation */
.tag-explanation {
    display: flex;
    align-items: start;
    gap: 4px;
    padding: 6px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 4px;
    font-size: 0.7rem;
    color: #065f46;
    line-height: 1.4;
}

.explanation-icon {
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* No Tags Card */
.no-tags-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 12px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    text-align: center;
}

.no-tags-icon {
    font-size: 1.5rem;
    opacity: 0.5;
}

.no-tags-text {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    font-style: italic;
}

/* VS Divider */
.vs-divider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.vs-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
    border: 3px solid white;
}

/* Responsive Design for Context Section */
@media (max-width: 1200px) {
    .style-tags-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vs-divider-container {
        margin: 20px 0;
    }

    .vs-circle {
        transform: rotate(0deg);
    }
}

@media (max-width: 768px) {
    .context-style-box {
        padding: 20px 15px;
    }

    .context-icon {
        font-size: 2rem;
    }

    .context-title {
        font-size: 1.2rem;
    }

    .context-subtitle {
        font-size: 0.8rem;
    }

    .team-label {
        font-size: 1.1rem;
    }

    .tag-emoji {
        font-size: 1.5rem;
    }

    .style-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .rank-number {
        font-size: 1.1rem;
    }

    .percentile-value {
        font-size: 0.95rem;
    }

    .tag-explanation {
        font-size: 0.8rem;
        padding: 8px;
    }

    .team-style-card {
        padding: 15px;
    }
}

/* ========================================
   END CONTEXT AND STYLE SECTION
   ======================================== */
