/* styles.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* Header Styles */
.header {
    background: #0f172a;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

.site-logo {
    height: 42px;
    width: auto;
    display: block;
}

.desktop-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6b46c1, #9333ea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text {
    color: white;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    border-bottom-color: #22c55e;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    position: relative;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 40px 10px 15px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    width: 280px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    color: white;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.45);
}

.search-box input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    background: rgba(255,255,255,0.15);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-results.active {
    display: block;
}

.search-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #666;
}

.search-loading.active {
    display: flex;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: #6b46c1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.search-section {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.search-section:last-child {
    border-bottom: none;
}

.search-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 16px 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: #f8f5ff;
}

.search-result-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    background: #f5f5f5;
    padding: 4px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 12px;
    color: #888;
}

.search-match-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-match-item:hover {
    background: #f8f5ff;
}

.search-match-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.search-match-team-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
}

.search-match-vs {
    color: #999;
    font-size: 12px;
    font-weight: 600;
}

.search-match-time {
    font-size: 12px;
    color: #6b46c1;
    font-weight: 600;
}

.search-no-results {
    padding: 24px 16px;
    text-align: center;
    color: #888;
}

.search-no-results-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.user-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: white;
    transition: background 0.2s;
}

.user-icon:hover {
    background: rgba(255,255,255,0.2);
}

/* Grid Layout */
.main-container {
    padding: 30px 0;
}

.grid-layout {
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    gap: 25px;
    align-items: start;
    max-width: 100%;
}

/* Center Content */
.center-content {
    min-width: 0;
    width: 100%;
}

/* Sidebar Styles */
.left-sidebar,
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-sidebar {
    position: sticky;
    top: 20px;
}

/* Match Card */
.match-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.league-name {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.5px;
}

.live-badge {
    background: #ff0000;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.match-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.team {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

img {
    min-width: 1px;
    min-height: 1px;
}

img[src*="fallbacks"] {
    opacity: 0.45;
    filter: grayscale(1);
}

.team-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f3f4f6;
    object-fit: contain;
}

.team-name {
    font-size: 16px;
    font-weight: 600;
}

.score {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #6b46c1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #5a38a3;
}

/* Featured Match Card - Modern Design */
.featured-match-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

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

.featured-league {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.featured-league-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
    background: rgba(255,255,255,0.2);
    padding: 2px;
}

.featured-live-pulse {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

.pulse-text {
    color: white;
}

.featured-matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.featured-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.featured-team-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.featured-team-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.featured-score {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.featured-minute {
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 71, 87, 0.9);
    padding: 4px 12px;
    border-radius: 12px;
    animation: pulse 1.5s infinite;
}

.featured-cta {
    display: block;
    text-align: center;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.featured-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Stats Card - Clean Design */
.stats-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stats-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 18px 0;
    text-align: center;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-box {
    flex: 1;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-number.live {
    color: #dc2626;
}

.stat-name {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
}

.stats-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.goals-highlight {
    font-size: 13px;
    font-weight: 600;
    color: #6b46c1;
}

/* Legacy Summary Card */
.summary-card,
.leagues-card,
.widget-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.summary-card h3,
.leagues-card h3,
.widget-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.count {
    font-weight: 700;
    color: #6b46c1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
    line-height: 1.5;
}

/* League Item */
.league-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.league-item:hover {
    background: #f8f8f8;
}

.league-item img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.league-title {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.league-badge {
    font-size: 16px;
    display: inline-flex;
}

.league-country {
    font-size: 12px;
    color: #666;
}

/* App Banner - Compact & Polished */
.app-banner {
    background: linear-gradient(135deg, #6b46c1 0%, #9333ea 50%, #7c3aed 100%);
    border-radius: 12px;
    padding: 14px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.25);
}

.app-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="85" cy="50" r="35" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="45" r="25" fill="rgba(255,255,255,0.03)"/></svg>') right center/auto 200% no-repeat;
    pointer-events: none;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.banner-content::before {
    content: '⚡';
    font-size: 18px;
    opacity: 0.9;
}

.banner-content h2 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: 0.3px;
}

.banner-content p {
    display: none;
}

.btn-download {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.btn-download:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.banner-image {
    display: none;
}

/* Game of the Day Section */
.game-of-the-day {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-of-the-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/><line x1="10" y1="50" x2="90" y2="50" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>') center/cover;
    pointer-events: none;
}

.gotd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.gotd-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    padding: 8px 16px;
    border-radius: 24px;
    color: #1a1a2e;
    font-weight: 700;
}

.gotd-icon {
    font-size: 20px;
}

.gotd-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gotd-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gotd-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.gotd-league {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gotd-clickable {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border-radius: 12px;
}

.gotd-clickable:hover {
    background: rgba(168, 85, 247, 0.15);
    transform: translateY(-2px);
}

a.gotd-league.gotd-clickable {
    padding: 8px 12px;
    margin: -8px -12px 12px -12px;
}

a.gotd-team.gotd-clickable {
    padding: 12px;
    margin: -12px;
}

a.gotd-team.gotd-clickable:hover .gotd-team-logo {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

a.gotd-team.gotd-clickable:hover .gotd-team-name {
    color: #a78bfa;
}

a.gotd-league.gotd-clickable:hover .gotd-league-name {
    color: #a78bfa;
}

.gotd-league-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.gotd-league-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.gotd-round {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: auto;
}

.gotd-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.gotd-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.gotd-team-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    transition: transform 0.3s ease;
}

.gotd-team-logo:hover {
    transform: scale(1.1);
}

.gotd-team-name {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    max-width: 120px;
}

.gotd-versus {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
}

.gotd-time {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gotd-date-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gotd-score {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 36px;
    font-weight: 700;
}

.gotd-score .score-separator {
    color: rgba(255, 255, 255, 0.4);
}

.gotd-live-badge {
    background: rgba(255, 59, 48, 0.2);
    color: #ff6b6b;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse-live 2s infinite;
}

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

.gotd-venue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 16px;
}

.venue-icon {
    font-size: 14px;
}

.venue-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.gotd-cta {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6b46c1 0%, #9333ea 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.gotd-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 70, 193, 0.4);
}

/* Responsive Game of the Day */
@media (max-width: 768px) {
    .gotd-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .gotd-team-logo {
        width: 56px;
        height: 56px;
    }
    
    .gotd-team-name {
        font-size: 14px;
        max-width: 90px;
    }
    
    .gotd-time {
        font-size: 24px;
    }
    
    .gotd-score {
        font-size: 28px;
    }
}

/* Date Navigation */
.date-nav {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.date-nav h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.date-selector {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    justify-content: space-between;
}

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

.date-btn {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.date-btn:hover {
    border-color: #6b46c1;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(107, 70, 193, 0.15);
}

.date-item {
    position: relative;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.date-item:hover {
    border-color: #6b46c1;
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(107, 70, 193, 0.12);
}

.date-day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.6;
    line-height: 1;
    font-weight: 600;
}

.date-today-badge {
    font-size: 9px;
    text-transform: uppercase;
    color: #6b46c1;
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.date-item.active {
    background: linear-gradient(135deg, #6b46c1 0%, #7c3aed 100%);
    color: white;
    border-color: #6b46c1;
    box-shadow: 0 8px 20px rgba(107, 70, 193, 0.25);
}

.date-item.active .date-month {
    opacity: 0.9;
}

.date-item.active .date-today-badge {
    color: white;
}

/* Date Info Bar */
.date-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f3f4f6;
    padding: 16px 20px;
    border-radius: 10px;
    gap: 16px;
    flex-wrap: wrap;
}

.date-info-context {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.info-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-date {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 600;
}

.info-separator {
    color: #9ca3af;
    font-weight: 700;
}

.info-count {
    font-size: 14px;
    color: #6b46c1;
    font-weight: 600;
}

.date-info-actions {
    display: flex;
    gap: 10px;
}

.btn-calendar-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #6b46c1 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.2);
}

.btn-calendar-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.3);
}

.calendar-icon {
    font-size: 16px;
}

.calendar-label {
    font-size: 14px;
}

/* Matches Section */
.matches-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.section-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-count {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Matches Filter */
.matches-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.matches-filter-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    flex: 1;
    transition: all 0.2s ease;
}

.matches-filter-box:focus-within {
    border-color: #6b46c1;
    background: white;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.matches-filter-icon {
    font-size: 14px;
    opacity: 0.6;
}

.matches-filter-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
}

.matches-filter-box input::placeholder {
    color: #999;
}

.matches-filter-clear {
    background: none;
    border: none;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: none;
}

.matches-filter-clear.visible {
    display: block;
}

.matches-filter-clear:hover {
    background: #e5e7eb;
    color: #666;
}

.matches-filter-count {
    font-size: 13px;
    color: #6b46c1;
    font-weight: 600;
    white-space: nowrap;
}

.matches-filter-hint {
    font-size: 12px;
    color: #888;
    margin: -10px 0 16px 0;
}

/* Filter Results Container */
#filterResults {
    min-height: 100px;
}

#filterResults .league-group {
    margin-bottom: 20px;
}

/* Filter No Results State */
.filter-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 10px 0;
}

.filter-no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.filter-no-results-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.filter-no-results-hint {
    font-size: 14px;
    color: #888;
}

/* Loading spinner for filter */
.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #e0e0e0;
    border-top-color: #6b46c1;
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

/* Auto-refresh animations */
.score-updated {
    animation: scoreFlash 0.5s ease-out;
}

@keyframes scoreFlash {
    0% { background: #6b46c1; color: white; transform: scale(1.1); border-radius: 4px; }
    100% { background: transparent; color: inherit; transform: scale(1); }
}

.count-updated {
    animation: countPulse 0.5s ease-out;
}

@keyframes countPulse {
    0% { transform: scale(1.2); color: #6b46c1; }
    100% { transform: scale(1); }
}

/* Refresh indicator */
.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
    padding: 6px 12px;
    background: rgba(107, 70, 193, 0.1);
    border-radius: 20px;
}

.refresh-indicator-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.refresh-indicator.refreshing .refresh-indicator-dot {
    background: #6b46c1;
}

/* Hidden state for filtered items */
.league-group.hidden,
.match-item.hidden {
    display: none !important;
}

.view-all {
    color: #6b46c1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Match List */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

a.match-item {
    text-decoration: none;
    color: inherit;
}

.match-item {
    display: grid;
    grid-template-columns: 55px 1fr 50px 40px;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    transition: all 0.3s;
    background: white;
    cursor: pointer;
}

.match-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.match-time-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.match-time {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.match-item.is-live {
    border-color: #fecaca;
    background: linear-gradient(to right, #fef2f2, white);
}

.match-item.is-live .match-time {
    color: #dc2626;
}

/* ============================================
   LIVE MATCHES SECTION - NEW DESIGN
   ============================================ */
.live-section {
    margin-bottom: 24px;
}

.live-section .section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-pulse {
    width: 12px;
    height: 12px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    display: inline-block;
}

.live-match-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.live-match {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff 50%);
    border: 1px solid #fecaca;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.live-match:hover {
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
}

.match-info-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.match-time-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.match-league-name {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-teams-live {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.match-teams-live .team-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 12px;
}

.team-logo-live {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
}

.team-name-live {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-score-live {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    min-width: 30px;
    text-align: center;
}

/* Live Pagination */
.live-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 10px;
}

.live-pagination .pagination-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.live-pagination .pagination-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.live-pagination .pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Responsive Live Matches */
@media (max-width: 768px) {
    .live-match {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .match-info-left {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .match-teams-live .team-row {
        grid-template-columns: 28px 1fr auto;
    }
    
    .team-logo-live {
        width: 28px;
        height: 28px;
    }
    
    .team-score-live {
        font-size: 18px;
    }
}

/* ============================================
   LIVE CAROUSEL SECTION - NEW DESIGN
   ============================================ */
.live-carousel-section {
    margin-bottom: 24px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.live-carousel-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-carousel-section .section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.live-carousel-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.carousel-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.carousel-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.carousel-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.live-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.live-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
}

.live-card {
    flex: 0 0 calc(33.333% - 11px);
    min-width: 280px;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 16px;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.live-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.35);
}

.live-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    min-height: 32px;
}

.live-card-league {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
    flex: 1;
    min-width: 0;
}

.live-card-league span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.live-card-league-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.live-card-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(220, 38, 38, 0.9);
    flex-shrink: 0;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.live-card-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.live-card-matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.live-card-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    min-width: 0;
}

.live-card-team-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 3px;
    flex-shrink: 0;
}

.live-card-team-name {
    font-size: 11px;
    font-weight: 600;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-card-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.live-card-score {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

.live-card-minute {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.live-card-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.live-card-cta:hover {
    background: rgba(255,255,255,0.25);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: #764ba2;
}

/* Responsive Live Carousel */
@media (max-width: 1200px) {
    .live-card {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 768px) {
    .live-carousel-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .carousel-nav-btn {
        display: none;
    }
    
    .live-carousel-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .live-carousel-track {
        padding-bottom: 8px;
    }
    
    .live-card {
        flex: 0 0 85%;
        min-width: 260px;
        height: 200px;
    }
}

.match-status {
    background: #ff0000;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    width: fit-content;
}

.match-teams {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.team-row img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.team-row span {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.match-score {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
    width: 50px;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.btn-details {
    background: #6b46c1;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s;
}

.btn-details:hover {
    background: #5a3ba8;
}

.no-matches {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Widget Card */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Scorers List */
.scorers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scorer-item {
    display: grid;
    grid-template-columns: 30px 40px 1fr 40px;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.scorer-item:hover {
    background: #f8f8f8;
}

.rank {
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.scorer-item:nth-child(1) .rank {
    background: #ffd700;
}

.scorer-item:nth-child(2) .rank {
    background: #c0c0c0;
}

.scorer-item:nth-child(3) .rank {
    background: #cd7f32;
}

.player-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.player-info {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-size: 14px;
    font-weight: 600;
}

.player-team {
    font-size: 12px;
    color: #666;
}

.goals {
    font-size: 16px;
    font-weight: 700;
    color: #6b46c1;
}

/* League Table */
.league-table {
    width: 100%;
    border-collapse: collapse;
}

.league-table th {
    text-align: left;
    padding: 12px 8px;
    font-size: 12px;
    color: #666;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
}

.league-table td {
    padding: 12px 8px;
    font-size: 14px;
    border-bottom: 1px solid #f8f8f8;
}

.league-table tr:hover {
    background: #f8f8f8;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.news-item:hover {
    background: #f8f8f8;
}

.news-item img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.news-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.news-content p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.news-time {
    font-size: 11px;
    color: #999;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

.social-links a {
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.footer-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.footer-site-logo {
    height: 36px;
    width: auto;
    display: block;
    opacity: 0.9;
}

.footer-site-logo:hover {
    opacity: 1;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .grid-layout {
        grid-template-columns: 280px 1fr 320px;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }

    .grid-layout > .left-sidebar,
    .grid-layout > .right-sidebar {
        display: none;
    }

    .main-nav {
        gap: 20px;
    }

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* League Groups */
.league-group {
    margin-bottom: 30px;
}

.league-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 10px 10px 0 0;
    border-left: 4px solid #6b46c1;
}

.league-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.league-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.league-header h4 .league-country {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
}

.league-group .match-list {
    background: white;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

/* Compact Match List for Sidebar */
.compact-match-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

a.compact-match-item {
    text-decoration: none;
    color: inherit;
}

.compact-match-item {
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.compact-match-item:hover {
    background: #f3f4f6;
}

.compact-time {
    font-size: 12px;
    font-weight: 600;
    color: #6b46c1;
    min-width: 40px;
}

.compact-teams {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.compact-team {
    display: flex;
    align-items: center;
    gap: 6px;
}

.compact-team img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.compact-team span {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-score {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 45px;
    text-align: center;
    padding: 4px 8px;
    background: white;
    border-radius: 6px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
}

.btn-secondary {
    padding: 10px 20px;
    background: #6b46c1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #5a3aa3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.page-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Match status live indicator */
.match-status.live {
    animation: pulse 2s ease-in-out infinite;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

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

/* ============================================================================
   CALENDAR MODAL STYLES
   ============================================================================ */

.calendar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.calendar-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

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

.calendar-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.btn-calendar-nav {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-calendar-nav:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekdays div {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: 1px solid #e5e7eb;
}

.calendar-day:hover:not(.empty) {
    background: #f3f4f6;
    transform: scale(1.05);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day.today {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 700;
    border-color: #3b82f6;
}

.calendar-day.selected {
    background: #6b46c1;
    color: white;
    font-weight: 700;
    border-color: #6b46c1;
}

.calendar-day.selected:hover {
    background: #5a3aa3;
}

.calendar-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: space-between;
}

.btn-calendar-action {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-calendar-action:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.btn-calendar-action.btn-today {
    background: #6b46c1;
    color: white;
    border-color: #6b46c1;
}

.btn-calendar-action.btn-today:hover {
    background: #5a3aa3;
}

/* Carousel Widgets */
.carousel-widget {
    overflow: hidden;
}

.carousel-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6b46c1, #9333ea);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(107, 70, 193, 0.3);
}

.carousel-arrow:hover {
    background: linear-gradient(135deg, #5a3aa3, #7c3aed);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.4);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.carousel-arrow svg {
    width: 16px;
    height: 16px;
}

.carousel-tabs {
    display: flex;
    gap: 6px;
    flex: 1;
    overflow: hidden;
    scroll-behavior: smooth;
}

.carousel-tab {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 4px;
    border-radius: 8px;
    border: 2px solid transparent;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-tab img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}

.carousel-tab:hover {
    border-color: #d4d4d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.carousel-tab.active {
    border-color: #6b46c1;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.3);
}

.carousel-content {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #6b46c1 #f3f4f6;
}

.carousel-content::-webkit-scrollbar {
    width: 8px;
}

.carousel-content::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f3f4f6, #e5e7eb);
    border-radius: 10px;
}

.carousel-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6b46c1, #9333ea);
    border-radius: 10px;
    border: 2px solid #f3f4f6;
}

.carousel-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5a3aa3, #7c3aed);
}

.carousel-panel {
    display: none;
    padding: 12px;
    animation: fadeIn 0.3s ease;
}

.carousel-panel.active {
    display: block;
}

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

/* Scorers List in Carousel */
.carousel-widget .scorers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.carousel-widget .scorer-item {
    display: grid;
    grid-template-columns: 24px 40px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 10px;
    transition: all 0.2s;
}

.carousel-widget .scorer-item:hover {
    background: #f3f4f6;
    transform: translateX(3px);
}

.carousel-widget .scorer-item .rank {
    font-size: 14px;
    font-weight: 700;
    color: #6b46c1;
    text-align: center;
}

.carousel-widget .scorer-item .player-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.carousel-widget .scorer-item .player-info {
    overflow: hidden;
}

.carousel-widget .scorer-item .player-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-widget .scorer-item .player-team {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-mini-logo {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-widget .scorer-item .goals {
    font-size: 16px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 40px;
    text-align: center;
}

/* League Table in Carousel */
.carousel-widget .league-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.carousel-widget .league-table th {
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.carousel-widget .league-table th:first-child {
    text-align: center;
    width: 30px;
}

.carousel-widget .league-table td {
    padding: 10px 6px;
    border-bottom: 1px solid #f3f4f6;
}

.carousel-widget .league-table tbody tr {
    transition: background 0.2s;
}

.carousel-widget .league-table tbody tr:hover {
    background: #f9fafb;
}

.carousel-widget .league-table .rank-cell {
    text-align: center;
    font-weight: 700;
    color: #6b46c1;
}

.carousel-widget .league-table .team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-widget .league-table .team-cell img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.carousel-widget .league-table .team-cell span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.carousel-widget .league-table .positive {
    color: #059669;
    font-weight: 600;
}

.carousel-widget .league-table .negative {
    color: #dc2626;
    font-weight: 600;
}

.carousel-widget .league-table .points-cell {
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    background: #f3f4f6;
    border-radius: 6px;
    min-width: 35px;
}

/* =============================================
   MOBILE HEADER STYLES
   ============================================= */

/* Hide mobile elements on desktop */
.mobile-header-top,
.mobile-header-bottom,
.mobile-menu,
.mobile-user-icon {
    display: none;
}

/* =============================================
   MOBILE REFINEMENTS
   ============================================= */

@media (max-width: 768px) {
    /* Show mobile elements */
    .mobile-header-top,
    .mobile-header-bottom {
        display: flex;
    }
    
    /* Hide desktop elements */
    .desktop-nav,
    .desktop-actions,
    .desktop-logo {
        display: none !important;
    }
    
    /* Header container */
    .header .container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    /* Mobile Header Row 1: Logo + User */
    .mobile-header-top {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-header-top .logo {
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0;
    }
    
    .mobile-header-top .logo-text {
        display: none;
    }
    
    .mobile-header-top .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .mobile-user-icon {
        display: flex;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        transition: transform 0.2s;
        color: white;
    }
    
    .mobile-user-icon:active {
        transform: scale(0.95);
        background: rgba(255,255,255,0.2);
    }
    
    /* Mobile Header Row 2: Search + Hamburger */
    .mobile-header-bottom {
        width: 100%;
        display: flex;
        gap: 12px;
        align-items: center;
    }
    
    .mobile-search {
        flex: 1;
    }
    
    .mobile-search .search-box {
        width: 100%;
    }
    
    .mobile-search .search-box input {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    /* Hamburger Button */
    .hamburger-btn {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #7c3aed, #a855f7);
        border: none;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
        flex-shrink: 0;
        transition: transform 0.2s, background 0.2s;
    }
    
    .hamburger-btn:active {
        transform: scale(0.95);
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s;
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Mobile Dropdown Menu */
    .mobile-menu {
        display: none;
        width: 100%;
        background: #1e293b;
        border-radius: 12px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
        overflow: hidden;
        margin-top: 4px;
        border: 1px solid rgba(255,255,255,0.08);
    }
    
    .mobile-menu.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mobile-menu-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        transition: background 0.2s;
    }
    
    .mobile-menu-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-link:active {
        background: rgba(255,255,255,0.05);
    }
    
    .mobile-menu-link.active {
        background: linear-gradient(135deg, #7c3aed, #a855f7);
        color: white;
    }
    
    .mobile-menu-link .menu-icon {
        font-size: 18px;
    }
    
    /* App Banner Mobile - Horizontal compact */
    .app-banner {
        flex-direction: row;
        padding: 12px 16px;
        gap: 12px;
        text-align: left;
        margin-bottom: 16px;
    }
    
    .banner-content {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex: 1;
    }
    
    .banner-content::before {
        font-size: 16px;
    }
    
    .banner-content h2 {
        font-size: 13px;
        line-height: 1.2;
    }
    
    .btn-download {
        padding: 8px 14px;
        font-size: 11px;
        flex-shrink: 0;
    }
    
    
    /* Date Navigation Mobile */
    .date-nav {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .date-nav h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    /* Grid layout: arrow | dates | arrow */
    .date-selector {
        display: grid;
        grid-template-columns: 40px 1fr 40px;
        gap: 8px;
        align-items: center;
        margin-bottom: 12px;
    }
    
    /* Fixed arrow buttons */
    .date-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #7c3aed, #a855f7);
        color: white;
        border-radius: 10px;
        border: none;
        cursor: pointer;
    }
    
    .date-btn:active {
        transform: scale(0.95);
    }
    
    /* Date items container */
    .date-items {
        display: flex;
        gap: 4px;
        justify-content: center;
        overflow: hidden;
    }
    
    /* Hide first and last date items on mobile to show only 5 */
    .date-items > .date-item:first-child,
    .date-items > .date-item:last-child {
        display: none;
    }
    
    .date-item {
        padding: 6px 4px;
        min-width: 40px;
        flex: 1;
    }
    
    .date-day {
        font-size: 15px;
    }
    
    .date-month {
        font-size: 9px;
    }
    
    .date-today-badge {
        font-size: 7px;
        padding: 1px 3px;
    }
    
    .date-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .date-info-left {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .info-date,
    .info-count {
        font-size: 13px;
    }
    
    .btn-calendar-modern {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* Date Info Bar Mobile - Compact layout */
    .date-info-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 14px;
        gap: 10px;
    }
    
    .date-info-context {
        flex: 1;
        gap: 4px;
    }
    
    .info-label {
        font-size: 11px;
    }
    
    .info-date {
        font-size: 13px;
        font-weight: 600;
    }
    
    .info-separator {
        display: none;
    }
    
    .info-count {
        display: block;
        font-size: 12px;
        color: #7c3aed;
        font-weight: 600;
    }
    
    .date-info-actions {
        flex-shrink: 0;
    }
    
    .btn-calendar-modern {
        padding: 8px 12px;
        font-size: 11px;
        gap: 4px;
    }
    
    .btn-calendar-modern .calendar-label {
        display: none;
    }
    
    /* Game of the Day Mobile - Compact Layout */
    .game-of-the-day {
        border-radius: 16px;
        margin-bottom: 16px;
    }
    
    /* Header: centralizar badge verticalmente */
    .gotd-header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .gotd-badge {
        padding: 6px 12px;
        font-size: 12px;
        gap: 6px;
    }
    
    .gotd-badge .gotd-icon {
        font-size: 14px;
    }
    
    .gotd-tags {
        display: none;
    }
    
    .gotd-content {
        padding: 12px 16px 16px;
    }
    
    /* Liga: logo + nome + rodada na mesma linha, centralizado */
    .gotd-league {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .gotd-league-logo {
        width: 20px;
        height: 20px;
    }
    
    .gotd-league-name {
        font-size: 13px;
        font-weight: 600;
    }
    
    .gotd-round {
        font-size: 11px;
        color: rgba(255,255,255,0.6);
        margin-left: 0;
    }
    
    .gotd-match {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 0;
    }
    
    .gotd-team {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        flex: 0 0 70px;
    }
    
    .gotd-team-logo {
        width: 44px;
        height: 44px;
        padding: 4px;
    }
    
    .gotd-team-name {
        font-size: 11px;
        max-width: 70px;
        line-height: 1.2;
    }
    
    .gotd-versus {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    .gotd-score {
        font-size: 28px;
        gap: 8px;
    }
    
    .gotd-time {
        font-size: 20px;
    }
    
    .gotd-live-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .gotd-venue {
        font-size: 10px;
        margin-top: 8px;
    }
    
    .gotd-cta {
        margin-top: 12px;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    /* Live Carousel Mobile */
    .live-carousel-section {
        margin-bottom: 16px;
    }
    
    .live-carousel-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0 0 12px;
    }
    
    .live-carousel-section .section-header h3 {
        font-size: 16px;
    }
    
    .section-header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .refresh-indicator {
        font-size: 11px;
    }
    
    .live-carousel-container {
        margin: 0;
    }
    
    .live-carousel-wrapper {
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .live-card {
        flex: 0 0 280px;
        min-width: 280px;
        height: auto;
        min-height: 180px;
        padding: 16px;
        border-radius: 12px;
    }
    
    .live-card-header {
        margin-bottom: 12px;
    }
    
    .live-card-league {
        gap: 6px;
    }
    
    .live-card-league-logo {
        width: 18px;
        height: 18px;
    }
    
    .live-card-league span {
        font-size: 11px;
        max-width: 140px;
    }
    
    .live-card-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .live-card-matchup {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .live-card-team {
        max-width: 85px;
    }
    
    .live-card-team-logo {
        width: 40px;
        height: 40px;
    }
    
    .live-card-team-name {
        font-size: 11px;
        max-width: 75px;
    }
    
    .live-card-score {
        font-size: 26px;
    }
    
    .live-card-minute {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .live-card-cta {
        padding: 10px;
        font-size: 12px;
    }
    
    /* Carousel dots */
    .carousel-dots {
        margin-top: 12px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    /* Match list mobile */
    .match-list {
        border-radius: 12px;
    }
    
    .match-item {
        grid-template-columns: 45px 1fr 40px 30px;
        gap: 8px;
        padding: 12px 10px;
    }
    
    .match-time {
        font-size: 11px;
    }
    
    .match-status {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .team-row {
        gap: 8px;
    }
    
    .team-row img {
        width: 22px;
        height: 22px;
    }
    
    .team-row span {
        font-size: 12px;
    }
    
    .match-score {
        font-size: 14px;
        width: 40px;
    }
    
    .favorite-btn {
        font-size: 16px;
    }
    
    /* Pagination mobile - Compact */
    .pagination {
        gap: 12px;
        padding: 16px 12px;
        background: #f8f9fa;
        border-radius: 10px;
        margin: 20px 0;
    }
    
    .page-btn {
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 8px;
        min-width: auto;
    }
    
    .page-btn .btn-text {
        display: none;
    }
    
    .page-btn .btn-icon {
        font-size: 14px;
    }
    
    .page-info {
        font-size: 13px;
        color: #6b7280;
        font-weight: 500;
        white-space: nowrap;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .header .container {
        padding: 10px 12px;
    }
    
    .search-box input {
        width: 120px;
    }
    
    .app-banner {
        padding: 10px 12px;
    }
    
    .banner-content h2 {
        font-size: 12px;
    }
    
    .btn-download {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .live-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    .date-item {
        padding: 8px 10px;
        min-width: 48px;
    }
    
    .date-day {
        font-size: 16px;
    }
}

/* Login Modal */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.login-modal {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.login-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.login-modal h2 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.login-modal p {
    color: #666;
    margin-bottom: 1.5rem;
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.login-btn.google {
    background: #fff;
    border: 2px solid #e5e7eb;
    color: #1f2937;
}

.login-btn.google:hover {
    border-color: #8b5cf6;
    background: #faf5ff;
}

.login-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 1rem;
}

/* User Dropdown Menu */
.user-dropdown-menu {
    position: fixed;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 280px;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
    overflow: hidden;
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #faf5ff;
}

.user-dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.user-dropdown-name {
    font-weight: 600;
    color: #1f2937;
}

.user-dropdown-email {
    font-size: 0.85rem;
    color: #888;
}

.user-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
}

.user-dropdown-item {
    display: block;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: #1f2937;
    transition: background 0.2s;
}

.user-dropdown-item:hover {
    background: #f9fafb;
}

.user-dropdown-item.logout {
    color: #ef4444;
}

/* User Avatar */
.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-icon, .mobile-user-icon {
    cursor: pointer;
}

.user-icon.logged-in, .mobile-user-icon.logged-in {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
}

.user-initials {
    font-weight: 600;
    font-size: 1rem;
}

/* Favorite Button */
.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
    color: #ccc;
    transition: all 0.2s;
}

.favorite-btn:hover {
    color: #f59e0b;
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #f59e0b;
}

.favorite-btn .favorite-icon {
    display: block;
}

/* Login Form Styles */
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: #f3f4f6;
    padding: 4px;
}

.login-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
}

.login-tab.active {
    background: #fff;
    color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-form {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.login-form.active {
    display: flex;
}

.login-form input {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.login-submit-btn {
    padding: 0.875rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.login-submit-btn:hover {
    opacity: 0.9;
}

.login-error {
    color: #ef4444;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: #999;
    font-size: 0.875rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.login-divider span {
    padding: 0 1rem;
}

/* Hero Favorite Button */
.hero-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-favorite {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.hero-favorite:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.hero-favorite.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}

.hero-favorite .favorite-icon {
    line-height: 1;
}
