* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 89, 16, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 89, 16, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 45, 114, 0.8) 0%, #001a4d 100%),
        linear-gradient(to bottom, #001233 0%, #002D72 50%, #001a4d 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Stadium lights effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 25% 0%, rgba(255, 200, 100, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 75% 0%, rgba(255, 200, 100, 0.15) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Animated stars/sparkles */
body::after {
    content: '✨⭐✨⚡✨⭐✨⚡✨⭐';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    font-size: 2em;
    text-align: center;
    opacity: 0.6;
    animation: twinkle 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    letter-spacing: 80px;
    padding: 20px;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    position: relative;
}

.logo-container {
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.mets-logo {
    font-size: 4em;
    display: inline-block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.mets-colors {
    display: inline-block;
    font-size: 1.2em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.speed-icon {
    display: inline-block;
    animation: zap 1.5s ease-in-out infinite;
}

@keyframes zap {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

header h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow:
        0 0 20px rgba(255, 89, 16, 0.8),
        0 0 40px rgba(255, 89, 16, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    text-transform: uppercase;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(255, 89, 16, 0.8),
            0 0 40px rgba(255, 89, 16, 0.5),
            0 4px 12px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow:
            0 0 30px rgba(255, 89, 16, 1),
            0 0 60px rgba(255, 89, 16, 0.7),
            0 4px 12px rgba(0, 0, 0, 0.8);
    }
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.back-button {
    display: inline-block;
    color: white;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Homepage Styles */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px;
    box-shadow:
        0 0 40px rgba(255, 89, 16, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 3px rgba(255, 89, 16, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid #FF5910;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '⚾';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8em;
    opacity: 0.08;
    transform: rotate(-15deg);
    pointer-events: none;
}

.game-card:not(.coming-soon):hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow:
        0 0 60px rgba(255, 89, 16, 0.8),
        0 0 100px rgba(255, 89, 16, 0.4),
        0 30px 80px rgba(0, 0, 0, 0.5);
    border-color: #FFB366;
}

.game-card.coming-soon {
    opacity: 0.6;
}

.game-card h2 {
    margin-bottom: 15px;
    font-size: 2.5em;
    font-weight: 900;
    letter-spacing: 1px;
    color: #FF5910;
    text-shadow:
        0 0 10px rgba(255, 89, 16, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.game-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.rules-section {
    text-align: left;
    margin: 20px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 16px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05),
                0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 45, 114, 0.1);
}

.rules-section h3 {
    color: #002D72;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.rules-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-section li {
    padding: 5px 0;
    color: #333;
    font-size: 0.95em;
}

.hint-preview {
    text-align: center;
    margin: 20px 0;
}

.hint-preview .jersey-number {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: #002D72;
    color: #FF5910;
    font-size: 3em;
    font-weight: bold;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #FF5910;
}

.play-button, .button {
    display: inline-block;
    background: linear-gradient(135deg, #FF5910 0%, #FF8C42 100%);
    color: white;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 900;
    border: 3px solid #FFB366;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 30px rgba(255, 89, 16, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(255, 89, 16, 0.6),
            0 10px 30px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow:
            0 0 50px rgba(255, 89, 16, 1),
            0 10px 30px rgba(0, 0, 0, 0.4);
    }
}

.play-button::before, .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.play-button:hover, .button:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow:
        0 0 60px rgba(255, 89, 16, 1),
        0 0 100px rgba(255, 140, 66, 0.8),
        0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: #FFCC99;
    animation: none;
}

.play-button:hover::before, .button:hover::before {
    opacity: 1;
}

.play-button.disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    cursor: not-allowed;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.play-button.disabled:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.leaderboards-section {
    margin-top: 60px;
    padding: 40px 20px;
}

.leaderboards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.leaderboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.leaderboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2);
}

.leaderboard-card h3 {
    background: linear-gradient(135deg, #002D72 0%, #FF5910 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 800;
}

.view-leaderboard-btn {
    display: inline-block;
    background: linear-gradient(135deg, #002D72 0%, #FF5910 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(255, 89, 16, 0.4);
}

.view-leaderboard-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 89, 16, 0.5);
}

footer {
    text-align: center;
    color: white;
    padding: 20px;
    font-size: 1.2em;
    margin-top: 40px;
}

/* Stats Bar */
.stats-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    font-size: 2em;
    font-weight: 800;
    background: linear-gradient(135deg, #002D72 0%, #FF5910 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leaderboard-button {
    padding: 12px 28px;
    background: linear-gradient(135deg, #FF5910 0%, #FF8C42 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(255, 89, 16, 0.3);
}

.leaderboard-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 89, 16, 0.4);
}

/* Game Page Styles */
.game-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hint-section {
    text-align: center;
    margin-bottom: 30px;
}

.hint-section h3 {
    color: #002D72;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.hints-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hint-box {
    background: linear-gradient(135deg, #002D72 0%, #FF5910 100%);
    border: 4px solid #FFB366;
    border-radius: 20px;
    padding: 25px;
    min-width: 150px;
    box-shadow:
        0 0 40px rgba(255, 89, 16, 0.6),
        0 12px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 140, 66, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.hint-box::before {
    content: '⭐';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.5em;
    opacity: 0.3;
    animation: twinkle 2s ease-in-out infinite;
}

.hint-box:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 0 60px rgba(255, 89, 16, 1),
        0 16px 40px rgba(0, 0, 0, 0.6);
    border-color: #FFCC99;
}

.hint-label {
    font-size: 1em;
    color: #FFFFFF;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hint-value {
    font-size: 2.5em;
    font-weight: 900;
    color: #FFCC99;
    text-shadow:
        0 0 20px rgba(255, 204, 153, 0.8),
        2px 2px 6px rgba(0, 0, 0, 0.6);
}

.guesses-section {
    margin-bottom: 30px;
    min-height: 300px;
}

#guessesGrid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guess-row {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #002D72;
}

.guess-row.correct {
    background: #d4edda;
    border-left-color: #28a745;
}

.guess-row.incorrect {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.guess-player {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #002D72;
}

.guess-feedback {
    color: #666;
    font-size: 0.95em;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.autocomplete-wrapper {
    flex: 1;
    position: relative;
}

#playerInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 3px solid #002D72;
    border-radius: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#playerInput:focus {
    border-color: #FF5910;
    box-shadow: 0 8px 20px rgba(255, 89, 16, 0.3),
                0 0 0 4px rgba(255, 89, 16, 0.1);
    transform: translateY(-2px);
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #002D72;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.autocomplete-list.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1em;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #002D72;
    color: white;
}

.autocomplete-item-name {
    font-weight: bold;
}

.autocomplete-item-details {
    font-size: 0.85em;
    color: #666;
    margin-top: 3px;
}

.autocomplete-item:hover .autocomplete-item-details,
.autocomplete-item.active .autocomplete-item-details {
    color: #FFB380;
}

#submitGuess {
    padding: 15px 35px;
    background: linear-gradient(135deg, #002D72 0%, #FF5910 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(255, 89, 16, 0.4);
}

#submitGuess:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 89, 16, 0.5);
}

#submitGuess:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    cursor: not-allowed;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: none;
}

.feedback-section {
    text-align: center;
    min-height: 30px;
    color: #dc3545;
    font-weight: bold;
}

/* Success Notification */
.success-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 40px 60px;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2);
    z-index: 2000;
    display: none;
    border: 4px solid #28a745;
    animation: successSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-notification.show {
    display: block;
}

.success-content h2 {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 2.5em;
    font-weight: 800;
}

.success-content p {
    color: #002D72;
    font-size: 1.2em;
    font-weight: bold;
}

@keyframes successSlideIn {
    from {
        transform: translate(-50%, -60%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 45px;
    border-radius: 30px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 35px;
    color: #002D72;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: rgba(255, 89, 16, 0.15);
    color: #FF5910;
    transform: rotate(90deg);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: #002D72;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.modal-content p {
    margin-bottom: 30px;
    font-size: 1.2em;
    color: #666;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-buttons button,
.modal-buttons .button {
    padding: 15px 30px;
    font-size: 1.1em;
}

#playAgain {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

#playAgain:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(40, 167, 69, 0.5);
}

.share-button {
    background: #000;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    font-size: 1.1em;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.share-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.share-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#shareButton {
    background: #000;
}

#shareButton:hover {
    background: #1a1a1a;
}

#tiktokButton {
    background: linear-gradient(135deg, #000000 0%, #ee1d52 100%);
}

#tiktokButton:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #ff2d68 100%);
}

#redditButton, #dailyLimitRedditButton {
    background: linear-gradient(135deg, #FF4500 0%, #ff6a33 100%);
}

#redditButton:hover, #dailyLimitRedditButton:hover {
    background: linear-gradient(135deg, #ff6a33 0%, #ff8c66 100%);
}

#dailyLimitTikTokButton {
    background: linear-gradient(135deg, #000000 0%, #ee1d52 100%);
}

#dailyLimitTikTokButton:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #ff2d68 100%);
}

.streak-message {
    margin: 20px 0;
    padding: 15px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    font-weight: bold;
    color: #856404;
}

.streak-message.new-record {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* Leaderboard Styles */
.leaderboard-modal {
    max-width: 600px;
    width: 90%;
}

.leaderboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    border: 2px solid #002D72;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button.active {
    background: #002D72;
    color: white;
}

.tab-button:hover:not(.active) {
    background: #e0e0e0;
}

.leaderboard-content {
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 5px solid #002D72;
}

.leaderboard-entry.current-user {
    background: #fff3cd;
    border-left-color: #FF5910;
}

.leaderboard-rank {
    font-size: 1.5em;
    font-weight: bold;
    color: #002D72;
    min-width: 50px;
}

.leaderboard-rank.gold {
    color: #FFD700;
}

.leaderboard-rank.silver {
    color: #C0C0C0;
}

.leaderboard-rank.bronze {
    color: #CD7F32;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: bold;
    color: #002D72;
    margin-bottom: 5px;
}

.leaderboard-stats {
    color: #666;
    font-size: 0.9em;
}

.leaderboard-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #FF5910;
    min-width: 80px;
    text-align: right;
}

.close-button {
    margin-top: 20px;
    padding: 12px 35px;
    background: linear-gradient(135deg, #002D72 0%, #FF5910 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(255, 89, 16, 0.4);
}

.close-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 89, 16, 0.5);
}

.empty-leaderboard {
    text-align: center;
    padding: 40px;
    color: #999;
}

.name-prompt {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.name-prompt input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 2px solid #002D72;
    border-radius: 5px;
    margin-bottom: 10px;
}

.name-prompt button {
    padding: 10px 20px;
    background: #002D72;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.name-prompt button:hover {
    background: #001f4d;
}

/* Email Form Styles */
.email-form {
    margin: 20px 0;
}

.email-form input[type="email"],
.email-form input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 3px solid #002D72;
    border-radius: 15px;
    margin-bottom: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.email-form input[type="email"]:focus,
.email-form input[type="text"]:focus {
    border-color: #FF5910;
    box-shadow: 0 8px 20px rgba(255, 89, 16, 0.3),
                0 0 0 4px rgba(255, 89, 16, 0.1);
    transform: translateY(-2px);
}

.email-form button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #002D72 0%, #FF5910 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(255, 89, 16, 0.4);
}

.email-form button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 89, 16, 0.5);
}

.privacy-note {
    font-size: 0.85em;
    color: #999;
    text-align: center;
    margin-top: 10px;
}

/* Featured Prediction Banner - Home Page */
.featured-prediction-section {
    margin-bottom: 30px;
}

.featured-prediction-banner {
    background: linear-gradient(135deg, #002D72 0%, #004494 50%, #FF5910 100%);
    color: white;
    border: 3px solid #FF5910;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 30px;
}

.featured-icon {
    text-align: center;
}

.featured-emoji {
    font-size: 80px;
    margin-bottom: 10px;
}

.featured-icon h2 {
    color: white;
    margin: 0;
    font-size: 1.5em;
}

.featured-content {
    text-align: left;
}

.featured-content h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.featured-list {
    margin: 10px 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 20px;
    list-style-position: inside;
}

.featured-list li {
    margin-bottom: 8px;
    font-size: 1em;
}

.featured-cta {
    text-align: center;
}

.featured-button {
    display: inline-block;
    background: white;
    color: #002D72;
    border: 2px solid white;
    font-size: 18px;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-button:hover {
    background: #002D72;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.featured-points {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive Design */
/* Tablet Optimization */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* Featured banner adjustments for tablet */
    .featured-prediction-banner {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px;
    }

    .featured-icon, .featured-content, .featured-cta {
        text-align: center;
    }

    .featured-list {
        columns: 2;
        text-align: left;
        display: inline-block;
        max-width: 500px;
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .back-button {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    .game-card h2 {
        font-size: 1.5em;
    }

    /* Featured banner mobile adjustments */
    .featured-prediction-banner {
        padding: 20px;
        gap: 20px;
    }

    .featured-emoji {
        font-size: 60px;
    }

    .featured-icon h2 {
        font-size: 1.3em;
    }

    .featured-content h3 {
        font-size: 1.2em;
    }

    .featured-list {
        columns: 1;
        max-width: 100%;
        font-size: 0.95em;
    }

    .featured-button {
        font-size: 16px;
        padding: 14px 28px;
        width: 100%;
        max-width: 300px;
    }

    .featured-points {
        font-size: 13px;
    }

    .game-container {
        padding: 20px;
    }

    .hint-section h3 {
        font-size: 1.1em;
    }

    .hints-display {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hint-box {
        padding: 15px;
    }

    .hint-label {
        font-size: 0.9em;
    }

    .hint-value {
        font-size: 1.3em;
    }

    .input-section {
        flex-direction: column;
        gap: 15px;
    }

    #playerInput {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 15px;
        min-height: 50px;
    }

    #submitGuess, .play-button {
        min-height: 50px;
        font-size: 1.1em;
        padding: 15px 25px;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 25px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-buttons {
        flex-direction: column;
        width: 100%;
    }

    .modal-buttons button,
    .modal-buttons .button {
        width: 100%;
        min-height: 50px;
    }

    .share-button {
        width: 100%;
        min-height: 50px;
        min-width: auto;
        justify-content: center;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .stat-item {
        padding: 10px;
    }

    .stat-label {
        font-size: 0.8em;
    }

    .stat-value {
        font-size: 1.5em;
    }

    .leaderboard-button {
        font-size: 0.9em;
        padding: 10px 15px;
        white-space: nowrap;
    }

    .autocomplete-list {
        max-height: 150px;
    }

    .autocomplete-item {
        padding: 12px;
        font-size: 1em;
    }

    .guess-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .leaderboard-entry {
        padding: 12px;
        font-size: 0.95em;
    }

    .leaderboard-rank {
        min-width: 40px;
        height: 40px;
        font-size: 1.1em;
    }

    .leaderboard-name {
        font-size: 0.95em;
    }

    .leaderboard-stats {
        font-size: 0.85em;
    }

    .game-card {
        padding: 25px;
    }

    .rules-section ul {
        font-size: 0.95em;
    }

    .leaderboard-card {
        padding: 25px;
    }

    .view-leaderboard-btn {
        width: 100%;
        padding: 15px;
    }

    /* Fix modal positioning on mobile */
    .modal.show {
        padding: 10px;
    }

    /* Improve touch targets */
    button, .button, a {
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Better text input on mobile */
    input[type="text"],
    input[type="email"] {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Speed Round Specific Styles */
.speed-game-area {
    max-width: 800px;
    margin: 0 auto;
    overflow: visible;
}

.timer-display,
.score-display {
    background: linear-gradient(135deg, #FF5910 0%, #002D72 100%);
    color: white;
    padding: 25px;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(255, 89, 16, 0.4),
                0 0 20px rgba(255, 89, 16, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.timer-display:hover,
.score-display:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(255, 89, 16, 0.5),
                0 0 30px rgba(255, 89, 16, 0.3);
}

.timer-display {
    display: inline-block;
    width: 45%;
    margin-right: 5%;
}

.score-display {
    display: inline-block;
    width: 45%;
}

.timer-label,
.score-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-value,
.score-value {
    font-size: 3em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.6em;
    }

    .container {
        padding: 10px;
    }

    .game-container {
        padding: 15px;
    }

    .modal-content {
        padding: 20px;
    }

    .stat-value {
        font-size: 1.3em;
    }

    .hints-display {
        gap: 10px;
    }

    .hint-box {
        padding: 12px;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .share-button {
        font-size: 1em;
        padding: 12px 20px;
    }

    .timer-display,
    .score-display {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
        padding: 15px;
    }

    .speed-game-area {
        padding-bottom: 20px;
    }
}

/* ============================================
   METS HUB - Live Scores & News Dashboard
   ============================================ */

.hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.hub-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 20px;
    border: 3px solid #FFB366;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.3);
    height: 500px;
    display: flex;
    flex-direction: column;
}

.hub-section > h2,
.hub-section > .section-subtitle,
.hub-section > .roster-header {
    flex-shrink: 0;
}

.hub-section > div[id$="Content"] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 10px;
    padding-right: 5px;
}

/* Custom scrollbar for hub sections */
.hub-section > div[id$="Content"]::-webkit-scrollbar {
    width: 8px;
}

.hub-section > div[id$="Content"]::-webkit-scrollbar-track {
    background: rgba(0, 45, 114, 0.1);
    border-radius: 10px;
}

.hub-section > div[id$="Content"]::-webkit-scrollbar-thumb {
    background: #FF5910;
    border-radius: 10px;
}

.hub-section > div[id$="Content"]::-webkit-scrollbar-thumb:hover {
    background: #002D72;
}

.hub-section h2 {
    color: #002D72;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 3px solid #FF5910;
    padding-bottom: 10px;
}

/* Loading & Error States */
.loading-state,
.error-state,
.no-game,
.no-news,
.no-transactions,
.no-games {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.loading-spinner {
    font-size: 1.2em;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Live Game Card */
.game-card {
    background: linear-gradient(135deg, #002D72 0%, #004494 100%);
    padding: 20px;
    border-radius: 15px;
    color: white;
}

.game-card.live-game {
    border: 3px solid #FF5910;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 89, 16, 0.5); }
    50% { box-shadow: 0 0 40px rgba(255, 89, 16, 0.8); }
}

.game-status {
    text-align: center;
    font-size: 0.9em;
    margin-bottom: 15px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-matchup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.team {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.team.mets-team {
    background: rgba(255, 89, 16, 0.3);
    border: 2px solid #FFB366;
}

.team-name {
    font-weight: bold;
    font-size: 1.1em;
}

.team-score {
    font-size: 2em;
    font-weight: bold;
    color: #FFB366;
}

.vs {
    font-size: 1.2em;
    opacity: 0.7;
}

.live-indicator {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    color: #FF5910;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Standings Table */
.standings-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.standings-row {
    display: grid;
    grid-template-columns: 40px 2fr 1fr 1fr;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 45, 114, 0.05);
    border-radius: 10px;
    align-items: center;
}

.standings-row.mets-row {
    background: linear-gradient(135deg, rgba(0, 45, 114, 0.15) 0%, rgba(255, 89, 16, 0.15) 100%);
    border: 2px solid #FFB366;
    font-weight: bold;
}

.standings-rank {
    font-size: 1.3em;
    font-weight: bold;
    color: #002D72;
    text-align: center;
}

.standings-team {
    color: #002D72;
}

.standings-record,
.standings-gb {
    text-align: center;
    color: #666;
}

/* News Articles */
.news-article {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(0, 45, 114, 0.05);
    border-radius: 10px;
    border-left: 4px solid #FF5910;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.news-article:hover {
    background: rgba(255, 89, 16, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-icon-badge {
    font-size: 2em;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-article.demo {
    opacity: 0.6;
    cursor: default;
}

.news-article.demo:hover {
    transform: none;
}

/* ============================================
   VISUAL NEWS STREAM - Card Layout
   ============================================ */

.news-stream-visual {
    width: 100%;
}

.news-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-card {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #FF5910;
}

/* VIDEO CARDS - Large with thumbnail */
.news-card-video {
    border-left: 4px solid #FF5910;
}

.news-card-thumbnail {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #002D72;
}

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.news-card:hover .video-badge {
    background: rgba(255, 89, 16, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    color: white;
    font-size: 24px;
    margin-left: 4px;
}

.video-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 1.2em;
}

/* TEXT CARDS - Compact with icon */
.news-card-text {
    display: flex;
    gap: 12px;
    padding: 12px;
    align-items: flex-start;
    border-left: 4px solid #002D72;
}

.news-card-text.news-community {
    border-left-color: #FF4500;
}

.news-card-text.news-article {
    border-left-color: #002D72;
}

.news-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    flex-shrink: 0;
    color: white;
}

.news-card-content {
    flex: 1;
    padding: 8px;
}

.news-card-title {
    font-weight: bold;
    color: #002D72;
    margin-bottom: 6px;
    line-height: 1.4;
    font-size: 0.95em;
}

.news-card-preview {
    color: #666;
    font-size: 0.85em;
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.source-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-badge {
    font-size: 0.75em;
    color: #999;
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(0, 45, 114, 0.1) 0%, rgba(255, 89, 16, 0.1) 100%);
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #002D72;
}

.stream-count {
    background: #FF5910;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
}

/* YouTube Channel Cards */
.news-card-video-link {
    border-left: none !important;
}

.news-card-channel {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    color: white;
    position: relative;
    overflow: hidden;
}

.news-card-channel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}

.channel-icon {
    font-size: 3em;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.channel-info {
    flex: 1;
}

.channel-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 4px;
}

.channel-subtitle {
    font-size: 0.9em;
    opacity: 0.9;
}

.channel-arrow {
    font-size: 2em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.news-card-video-link:hover .channel-arrow {
    transform: translateX(5px);
}

/* ============================================
   X-STYLE NEWS FEED
   ============================================ */

.news-feed-stream {
    width: 100%;
}

.feed-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.feed-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #FF5910;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.feed-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    flex-shrink: 0;
}

.feed-source {
    flex: 1;
}

.source-name {
    font-weight: bold;
    color: #002D72;
    font-size: 0.95em;
}

.source-time {
    font-size: 0.8em;
    color: #999;
}

.feed-content {
    margin-top: 8px;
}

.feed-title {
    font-size: 1.05em;
    font-weight: bold;
    color: #002D72;
    margin-bottom: 8px;
    line-height: 1.4;
}

.feed-description {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Video Embeds */
.video-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 12px;
    background: #000;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Article Preview Images */
.article-preview-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    display: block;
}

/* Link Cards */
.feed-cta {
    display: inline-block;
    margin-top: 8px;
    color: #FF5910;
    font-weight: bold;
    font-size: 0.9em;
}

.feed-link:hover .feed-cta {
    text-decoration: underline;
}

/* Feed-specific styles */
.feed-video {
    border-left: 4px solid #FF5910;
}

.feed-article {
    border-left: 4px solid #002D72;
}

.feed-link {
    border-left: 4px solid #999;
}

.feed-social {
    border-left: 4px solid #1DA1F2;
}

.feed-video-embed {
    border-left: 4px solid #FF0000;
}

.feed-article-embed {
    border-left: 4px solid #002D72;
}

/* Twitter Timeline Embed */
.twitter-embed-container {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
}

/* YouTube Playlist Embed */
.youtube-playlist-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 12px;
    background: #000;
}

.youtube-playlist-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.news-title {
    font-weight: bold;
    color: #002D72;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-source {
    font-size: 0.85em;
    color: #666;
}

.news-info {
    padding: 15px;
    background: rgba(255, 89, 16, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.news-info a {
    color: #FF5910;
    font-weight: bold;
}

.news-info code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

/* Transactions */
.transaction-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid rgba(0, 45, 114, 0.1);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-date {
    font-weight: bold;
    color: #FF5910;
    font-size: 0.9em;
}

.transaction-description {
    color: #002D72;
    line-height: 1.4;
}

/* Schedule */
.schedule-item {
    display: grid;
    grid-template-columns: 120px 1fr 100px;
    gap: 15px;
    padding: 12px;
    background: rgba(0, 45, 114, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.schedule-date {
    font-weight: bold;
    color: #002D72;
}

.schedule-matchup {
    color: #666;
}

.schedule-time {
    text-align: right;
    color: #FF5910;
    font-weight: bold;
    font-size: 0.9em;
}

/* Responsive - Hub */
@media (max-width: 768px) {
    .hub-container {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 20px;
    }

    .hub-section {
        padding: 20px;
    }

    .game-matchup {
        flex-direction: column;
        gap: 10px;
    }

    .team {
        width: 100%;
    }

    .standings-row {
        grid-template-columns: 30px 2fr 1fr 1fr;
        gap: 8px;
        font-size: 0.9em;
    }

    .schedule-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .schedule-time {
        text-align: center;
    }

    .transaction-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* Updated Schedule Layout */
.schedule-game {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 45, 114, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #FF5910;
    transition: all 0.3s ease;
}

.schedule-game:hover {
    background: rgba(255, 89, 16, 0.1);
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.schedule-date-time {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 120px;
}

.schedule-date {
    font-weight: bold;
    color: #002D72;
    font-size: 0.95em;
}

.schedule-time {
    color: #FF5910;
    font-size: 0.85em;
    font-weight: 600;
}

.schedule-matchup {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.schedule-location {
    color: #666;
    font-size: 0.9em;
    font-weight: bold;
}

.schedule-opponent {
    color: #002D72;
    font-weight: bold;
    font-size: 1.05em;
}

@media (max-width: 768px) {
    .schedule-game {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .schedule-date-time {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .schedule-matchup {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ============================================
   INTERACTIVE ROSTER STYLES
   ============================================ */

.roster-section {
    grid-column: 1 / -1;
}

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

.roster-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(0, 45, 114, 0.1);
    border: 2px solid transparent;
    border-radius: 20px;
    color: #002D72;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.filter-btn:hover {
    background: rgba(255, 89, 16, 0.1);
    border-color: #FF5910;
}

.filter-btn.active {
    background: linear-gradient(135deg, #002D72 0%, #FF5910 100%);
    color: white;
    border-color: #FFB366;
}

#rosterContent {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

#rosterContent::-webkit-scrollbar {
    width: 8px;
}

#rosterContent::-webkit-scrollbar-track {
    background: rgba(0, 45, 114, 0.1);
    border-radius: 10px;
}

#rosterContent::-webkit-scrollbar-thumb {
    background: #FF5910;
    border-radius: 10px;
}

#rosterContent::-webkit-scrollbar-thumb:hover {
    background: #002D72;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 45, 114, 0.05);
    border-radius: 10px;
    border-left: 4px solid #FF5910;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-card:hover {
    background: rgba(255, 89, 16, 0.1);
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.player-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #FF5910;
    min-width: 45px;
    text-align: center;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: bold;
    color: #002D72;
    margin-bottom: 3px;
}

.player-position {
    font-size: 0.85em;
    color: #666;
}

.player-status {
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.player-status.active {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.player-status.inactive {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.roster-count {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    padding: 10px;
    border-top: 2px solid rgba(0, 45, 114, 0.1);
}

/* Player Details Modal */
.player-detail-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.player-detail-number {
    font-size: 4em;
    font-weight: bold;
    color: #FF5910;
    line-height: 1;
}

.player-detail-info h2 {
    color: #002D72;
    margin-bottom: 8px;
}

.player-meta,
.player-bio {
    color: #666;
    margin: 5px 0;
    font-size: 0.95em;
}

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

.stat-box {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 45, 114, 0.1) 0%, rgba(255, 89, 16, 0.1) 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 179, 102, 0.3);
}

.stat-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #002D72;
}

.no-stats {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .roster-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .roster-filters {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
    }

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

    .player-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   UNIFIED NEWS STREAM STYLES
   ============================================ */

.news-stream {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(0, 45, 114, 0.1) 0%, rgba(255, 89, 16, 0.1) 100%);
    border-radius: 10px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #002D72;
}

.stream-count {
    font-size: 0.85em;
    color: #FF5910;
}

.news-content {
    flex: 1;
}

.source-icon {
    font-size: 1.1em;
}

.source-name {
    font-weight: 600;
}

.source-time {
    font-weight: normal;
}

/* Different styles for different source types */
.news-official {
    border-left-color: #002D72;
}

.news-social {
    border-left-color: #1DA1F2;
    background: rgba(29, 161, 242, 0.03);
}

.news-social:hover {
    background: rgba(29, 161, 242, 0.08);
}

.news-media {
    border-left-color: #FF5910;
}

.news-community {
    border-left-color: #FF4500;
    background: rgba(255, 69, 0, 0.03);
}

.news-community:hover {
    background: rgba(255, 69, 0, 0.08);
}

.section-subtitle {
    margin: -10px 0 15px 0;
    font-size: 0.85em;
    color: #666;
    font-weight: normal;
}
