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

:root {
    --primary: #FF4500;
    --secondary: #1a1a1a;
    --dark: #0d0d0d;
    --gradient: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    --accent: #FF6B35;
    --text: #ffffff;
    --text-muted: #999;
    --card-bg: rgba(26, 26, 26, 0.95);
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--gradient);
    min-height: 100vh;
    padding-bottom: 70px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-badge {
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.app-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(255, 69, 0, 0.3));
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 69, 0, 0.3);
    transform: scale(1.05);
}

/* Contenedor del carrusel de partidos destacados */
.featured-match-container {
    position: relative;
    margin: 15px;
}

/* Carrusel de partidos */
.featured-carousel {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 20px;
}

/* Cada partido en el carrusel */
.featured-match {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    border-radius: 20px;
    overflow: hidden;
}

.featured-match.active {
    opacity: 1;
    visibility: visible;
}

/* Botones de navegación del carrusel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-nav i {
    font-size: 16px;
}

/* Indicadores del carrusel */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.carousel-indicators .indicator.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

.match-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.match-score {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.team-logo {
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.score-display {
    background: rgba(0, 0, 0, 0.85);
    padding: 12px 28px;
    border-radius: 20px;
    border: 2px solid var(--primary);
    min-width: 90px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.score {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 2px;
    white-space: nowrap;
}

.match-info {
    position: absolute;
    bottom: 60px;
    left: 20px;
    right: 20px;
    z-index: 2;
    text-align: center;
}

.match-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.match-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.badge-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.play-badge-icon {
    background: rgba(255, 30, 30, 0.9) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: playPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 30, 30, 0.6);
}

.play-badge-icon:hover {
    background: rgba(255, 50, 50, 1) !important;
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(255, 30, 30, 0.9);
}

.play-badge-icon:active {
    transform: scale(0.95);
}

.play-badge-icon i {
    font-size: 12px;
    margin-left: 2px;
}

@keyframes playPulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 30, 30, 0.6);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 30, 30, 0.9);
        transform: scale(1.05);
    }
}

.live-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    animation: pulse 2s infinite;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

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

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(255, 69, 0, 0); }
}

.tabs-container {
    padding: 20px 15px 10px;
}

.tabs {
    display: flex;
    background: var(--card-bg);
    border-radius: 30px;
    padding: 5px;
    gap: 5px;
}

.tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background: var(--primary);
    color: white;
}

.content-container {
    padding: 0 15px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.match-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.3);
}

.match-card-bg {
    height: 100px;
    overflow: hidden;
    position: relative;
}

.match-card-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 26, 0.9) 100%);
}

.match-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-card-content {
    padding: 12px;
}

.teams {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

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

.team-badge {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.team span {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.match-score-mini {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.match-time {
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
}

.watch-btn {
    width: 100%;
    background: var(--primary);
    border: none;
    padding: 10px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    background: var(--accent);
    transform: scale(1.02);
}

.leagues-section {
    padding: 25px 15px;
}

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

.section-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
}

.crown-btn {
    background: transparent;
    border: none;
    color: #FFD700;
    font-size: 18px;
    cursor: pointer;
}

.leagues-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.leagues-container::-webkit-scrollbar {
    display: none;
}

.league-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.league-btn:hover {
    transform: scale(1.1);
}

.league-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff !important;
}

.league-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.league-btn.active .league-icon {
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
    transform: scale(1.1);
}

.league-btn span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.news-section {
    padding: 25px 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.news-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.news-content {
    padding: 12px;
}

.news-content h4 {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text);
}

.streaming-section {
    padding: 25px 15px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
    letter-spacing: 1px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.channel-card-mini {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.channel-card-mini:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.3);
}

.channel-icon-mini {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.channel-card-mini h4 {
    font-size: 13px;
    margin-bottom: 8px;
}

.status-live-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.status-live-mini .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: blink 1s infinite;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    z-index: 1000;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-btn:hover, .nav-btn.active {
    color: var(--primary);
    background: rgba(255, 69, 0, 0.1);
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    margin-top: 2px;
    text-transform: capitalize;
}

.search-icon {
    color: #22c55e !important;
}

/* ============================================
   REPRODUCTOR FULLSCREEN - DISEÑO INMERSIVO
   ============================================ */

.player-modal-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 2000;
    flex-direction: column;
    overflow-y: auto;
}

.player-modal-fullscreen.active {
    display: flex;
}

.player-video-container {
    position: relative;
    width: 100%;
    min-height: 56.25vw;
    max-height: 70vh;
    background: #000;
    flex-shrink: 0;
}

.player-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.player-video-container .loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Overlay superior con título y controles */
.player-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 20;
    pointer-events: none;
}

.player-overlay-top > * {
    pointer-events: auto;
}

.player-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.player-back-btn:hover {
    background: rgba(255, 69, 0, 0.8);
    transform: scale(1.1);
}

.player-title-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}

.player-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.5);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

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

.player-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.player-close-btn:hover {
    background: rgba(255, 69, 0, 0.8);
    transform: rotate(90deg) scale(1.1);
}

/* Controles inferiores del video */
.player-overlay-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 20;
    pointer-events: none;
}

.player-overlay-controls > * {
    pointer-events: auto;
}

.player-controls-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.player-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
}

.player-control-btn i {
    font-size: 18px;
}

.player-control-btn span {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-control-btn:hover {
    background: rgba(255, 69, 0, 0.6);
    border-color: rgba(255, 69, 0, 0.8);
    transform: translateY(-2px);
}

.player-control-btn.radio-btn:hover {
    background: rgba(233, 69, 96, 0.6);
    border-color: rgba(233, 69, 96, 0.8);
}

.player-control-btn.radio-btn.active {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    border-color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.5);
    animation: radioPulse 2s ease-in-out infinite;
}

.player-control-btn.fullscreen-btn:hover {
    background: rgba(46, 204, 113, 0.6);
    border-color: rgba(46, 204, 113, 0.8);
}

/* Sección de estadísticas debajo del video */
.player-stats-section {
    flex: 1;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
    padding: 0;
    overflow-y: auto;
}

.player-stats-section::-webkit-scrollbar {
    width: 4px;
}

.player-stats-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.player-stats-section::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.player-stats-section .match-stats-section {
    margin: 0;
    padding: 16px;
    border-top: none;
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .player-video-container {
        min-height: 56.25vw;
        max-height: 50vh;
    }
    
    .player-overlay-top {
        padding: 8px 12px;
    }
    
    .player-back-btn,
    .player-close-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .player-title {
        font-size: 12px;
    }
    
    .player-live-badge {
        font-size: 9px;
        padding: 3px 10px;
    }
    
    .player-control-btn {
        padding: 8px 12px;
        min-width: 60px;
    }
    
    .player-control-btn i {
        font-size: 16px;
    }
    
    .player-control-btn span {
        font-size: 9px;
    }
}

/* Animación de entrada */
@keyframes playerSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.player-modal-fullscreen.active .player-video-container {
    animation: playerSlideIn 0.3s ease;
}

.modal-body {
    position: relative;
    height: 500px;
    background: black;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#modalIframe {
    width: 100%;
    height: 100%;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.modal-actions-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Container para estadísticas en el modal del reproductor */
.modal-stats-container {
    max-height: 350px;
    overflow-y: auto;
    padding: 0 15px 15px;
    background: rgba(0, 0, 0, 0.2);
}

.modal-stats-container::-webkit-scrollbar {
    width: 4px;
}

.modal-stats-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.modal-stats-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.modal-stats-container .match-stats-section {
    margin-top: 10px;
    border-top: none;
    padding-top: 10px;
}

.modal-stats-container .stats-header {
    margin-bottom: 15px;
}

.modal-stats-container .stats-teams-header {
    padding: 12px;
}

.modal-stats-container .stats-team-logo {
    width: 40px;
    height: 40px;
}

.modal-stats-container .stats-score-display {
    font-size: 24px;
    padding: 6px 16px;
}

@media (max-width: 480px) {
    .modal-stats-container {
        max-height: 280px;
        padding: 0 10px 10px;
    }
    
    .modal-stats-container .stats-team-logo {
        width: 32px;
        height: 32px;
    }
    
    .modal-stats-container .stats-score-display {
        font-size: 20px;
        padding: 5px 12px;
    }
    
    .modal-stats-container .stats-team-name {
        font-size: 10px;
    }
}

.modal-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.modal-action-btn:hover::before {
    width: 100px;
    height: 100px;
}

.modal-action-btn:hover {
    background: rgba(255, 69, 0, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

.modal-action-btn:active {
    transform: translateY(0);
}

.modal-action-btn i {
    position: relative;
    z-index: 1;
}

.modal-share {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(238, 90, 111, 0.15));
    border-color: rgba(255, 107, 107, 0.3);
}

.modal-share:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(238, 90, 111, 0.3));
    border-color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.modal-chat-btn {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(126, 34, 206, 0.15));
    border-color: rgba(147, 51, 234, 0.3);
}

.modal-chat-btn:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(126, 34, 206, 0.3));
    border-color: #9333ea;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.5);
}

.modal-radio-btn {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.15), rgba(255, 107, 107, 0.15));
    border-color: rgba(233, 69, 96, 0.3);
    transition: all 0.3s ease;
}

.modal-radio-btn:hover {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.3), rgba(255, 107, 107, 0.3));
    border-color: #e94560;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.5);
}

.modal-radio-btn.active {
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%) !important;
    border-color: #ff6b6b;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.6);
    animation: radioPulse 2s ease-in-out infinite;
}

.modal-radio-btn.active i {
    color: #fff;
    animation: radioWave 1s ease-in-out infinite;
}

@keyframes radioPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(233, 69, 96, 0.6);
    }
    50% {
        box-shadow: 0 4px 30px rgba(233, 69, 96, 0.9);
    }
}

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

.modal-primary-btn {
    background: linear-gradient(135deg, #00ff41 0%, #00b32d 100%);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.2);
    position: relative;
    overflow: hidden;
}

.modal-primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.modal-primary-btn:hover::before {
    left: 100%;
}

.modal-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.4);
    background: linear-gradient(135deg, #00b32d 0%, #00ff41 100%);
}

.modal-primary-btn:active {
    transform: translateY(0);
}

.modal-primary-btn i {
    font-size: 13px;
}

.modal-primary-btn span {
    position: relative;
    z-index: 1;
}

.settings-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--secondary);
    z-index: 2000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}

.settings-panel.active {
    right: 0;
}

.settings-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.settings-header button {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

.settings-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.setting-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Botón Eliminar Caché */
.setting-item-btn {
    justify-content: center;
    margin-top: 15px;
    padding-top: 20px;
}

.clear-cache-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.clear-cache-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71d2a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.clear-cache-btn:active {
    transform: translateY(0);
}

.clear-cache-btn i {
    font-size: 16px;
}

/* Modal de Confirmación Eliminar Caché */
.clear-cache-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.clear-cache-modal.active {
    display: flex;
}

.clear-cache-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.clear-cache-container {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 20px;
    padding: 30px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.clear-cache-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-cache-icon i {
    font-size: 32px;
    color: #ffc107;
}

.clear-cache-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.clear-cache-message {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 25px;
}

.clear-cache-buttons {
    display: flex;
    gap: 12px;
}

.clear-cache-cancel,
.clear-cache-confirm {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-cache-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.clear-cache-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.clear-cache-confirm {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.clear-cache-confirm:hover {
    background: linear-gradient(135deg, #c82333, #a71d2a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }

    .bottom-nav {
        max-width: 100%;
    }
}

/* Tabla de Posiciones */
.standings-section {
    padding: 20px;
    margin-top: 20px;
}

.standings-table {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
}

.standings-loading {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.standings-header {
    background: rgba(139, 69, 19, 0.3);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    border-radius: 8px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.standings-header .standings-row {
    border-bottom: none;
}

.standings-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.standings-row {
    position: relative;
    display: grid;
    grid-template-columns: 4px 50px 1fr 40px 40px 40px 40px 60px;
    gap: 8px;
    padding: 12px 15px 12px 0;
    align-items: center;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.standings-row:hover {
    background: rgba(40, 40, 40, 0.9);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.standings-header.standings-row {
    background: rgba(139, 69, 19, 0.3);
    border: none;
}

.position-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 10px 0 0 10px;
}

.zona-calificacion-directa .position-indicator {
    background: linear-gradient(180deg, #00d9b3 0%, #00b894 100%);
}

.zona-calificacion .position-indicator {
    background: linear-gradient(180deg, #00b894 0%, #00a085 100%);
}

.zona-repechaje .position-indicator {
    background: linear-gradient(180deg, #ff9500 0%, #ff8000 100%);
}

.zona-media .position-indicator {
    background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%);
}

.zona-descenso .position-indicator {
    background: linear-gradient(180deg, #ff4757 0%, #e84118 100%);
}

.pos {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
}

.pos-number {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.zona-calificacion-directa .pos-number {
    background: linear-gradient(135deg, #00d9b3 0%, #00b894 100%);
    box-shadow: 0 4px 12px rgba(0, 217, 179, 0.4);
}

.zona-calificacion .pos-number {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
}

.zona-repechaje .pos-number {
    background: linear-gradient(135deg, #ff9500 0%, #ff8000 100%);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.4);
}

.zona-media .pos-number {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.zona-descenso .pos-number {
    background: linear-gradient(135deg, #ff4757 0%, #e84118 100%);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

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

.team-logo-small {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name-standings {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.95);
}

.stat {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.stat.points {
    font-weight: 700;
    font-size: 15px;
    color: #ff4757;
    background: rgba(255, 71, 87, 0.15);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.standings-pos {
    font-weight: 600;
    color: var(--primary);
}

.standings-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.standings-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.standings-team-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.standings-stat {
    text-align: center;
    font-size: 13px;
}

.standings-pts {
    font-weight: 700;
    color: var(--primary);
}

.standings-info-message {
    background: rgba(255, 69, 0, 0.15);
    border-left: 3px solid var(--primary);
    padding: 12px 15px;
    margin: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.standings-info-message i {
    color: var(--primary);
    font-size: 16px;
}

.news-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.news-modal.active {
    display: flex;
}

.news-modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.news-modal-header h3 {
    font-size: 18px;
    color: var(--text);
    margin: 0;
}

.close-news-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
}

.close-news-modal:hover {
    background: rgba(255, 69, 0, 0.3);
    transform: rotate(90deg);
}

.news-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.news-modal-body img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.news-modal-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.news-modal-text p {
    margin-bottom: 12px;
}

.league-btn.locked {
    opacity: 0.6;
}

.league-btn.locked .league-icon {
    opacity: 0.7;
}

.league-btn.locked:hover {
    transform: scale(1.05);
}

.news-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-card:active {
    transform: scale(0.98);
}

/* ===== PARTIDOS EN VIVO - DISEÑO REFINADO Y CREATIVO ===== */

.match-card-live {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(13, 13, 13, 0.98));
    border-radius: 16px;
    border: 1px solid rgba(255, 69, 0, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.match-card-live:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 69, 0, 0.5);
    box-shadow: 
        0 16px 48px rgba(255, 69, 0, 0.25),
        0 0 0 1px rgba(255, 69, 0, 0.3);
}

.live-badge-floating {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 
        0 4px 16px rgba(255, 0, 0, 0.4),
        0 0 20px rgba(255, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.live-dot-pulse {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
    animation: pulseGlow 1.5s ease-out infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.match-bg-wrapper {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.match-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(1.2);
    transition: all 0.6s ease;
}

.match-card-live:hover .match-bg-img {
    transform: scale(1.1);
    filter: brightness(0.7) saturate(1.4);
}

.match-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(13, 13, 13, 0.95) 100%
    );
}

.match-info-wrapper {
    padding: 14px;
    position: relative;
}

.match-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-time-badge i {
    font-size: 10px;
    opacity: 0.8;
}

.teams-vs-container {
    margin: 12px 0;
}

.team-name-live {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.vs-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0;
}

.vs-circle {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.vs-text {
    font-size: 10px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 2px;
    padding: 0 4px;
}

.multi-channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2), rgba(255, 107, 53, 0.2));
    border: 1px solid rgba(255, 69, 0, 0.4);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    margin: 8px 0;
}

.multi-channel-badge i {
    font-size: 9px;
}

.channel-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 10px 0;
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-display i {
    color: var(--primary);
    font-size: 10px;
}

.btn-watch-live {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #FF4500 0%, #FF6B35 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(255, 69, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-watch-live:hover .btn-glow {
    transform: translateX(100%);
}

.btn-watch-live:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 24px rgba(255, 69, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-watch-live:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(255, 69, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-watch-live i {
    font-size: 16px;
}

.btn-watch-live span {
    font-weight: 800;
}

/* ===== MODAL FLOTANTE ULTRACANALES ===== */

.live-channel-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.live-channel-modal.active {
    display: flex;
}

.live-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(12px) saturate(1.2);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(12px) saturate(1.2);
    }
}

.live-modal-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 90vh;
    max-height: 650px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 69, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.live-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(
        135deg,
        rgba(255, 69, 0, 0.12) 0%,
        rgba(255, 107, 53, 0.08) 100%
    );
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
    backdrop-filter: blur(10px);
}

.live-modal-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.live-modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-pulse-mini {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 
        0 0 0 0 rgba(255, 0, 0, 1),
        0 0 12px rgba(255, 0, 0, 0.8);
    animation: pulseMini 1.5s ease-out infinite;
}

@keyframes pulseMini {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7), 0 0 12px rgba(255, 0, 0, 0.8);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0), 0 0 12px rgba(255, 0, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0), 0 0 12px rgba(255, 0, 0, 0.8);
    }
}

.live-modal-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.channels-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.channels-info i {
    color: var(--primary);
    font-size: 10px;
}

.live-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.live-modal-close:hover {
    background: linear-gradient(135deg, #FF4500, #FF6B35);
    border-color: #FF4500;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 69, 0, 0.4);
}

.live-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.live-modal-body {
    height: calc(100% - 76px);
    display: flex;
    flex-direction: column;
    background: #000;
}

.live-stream-container {
    flex: 1;
    position: relative;
    background: #000;
}

.live-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .live-modal-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .live-modal-header {
        padding: 14px 16px;
    }
    
    .live-modal-title {
        font-size: 13px;
    }
    
    .channels-info {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .live-modal-close {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ========== Estilos para Información de Goles y Marcadores Mejorados ========== */

/* Información de goles en las tarjetas */
.goles-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px;
    margin: 8px 0;
    font-size: 10px;
}

.goles-equipo {
    margin-bottom: 6px;
}

.goles-equipo:last-child {
    margin-bottom: 0;
}

.goles-equipo-nombre {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 11px;
}

.gol-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    margin: 2px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.gol-item i {
    color: var(--primary);
    font-size: 10px;
}

.gol-jugador {
    flex: 1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
}

.gol-minuto {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 9px;
}

/* Reloj del partido en las tarjetas */
.match-clock {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(76, 175, 80, 0.95);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    animation: pulse 2s infinite;
}

/* Badge de EN VIVO en las tarjetas */
.live-badge-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53935;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
    animation: pulse 2s infinite;
}

.live-badge-corner .live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

/* Tarjeta de partido en vivo */
.live-match-card {
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
}

.live-match-card:hover {
    border-color: rgba(76, 175, 80, 0.8);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

/* Badge de hora del partido */
.match-time-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 153, 0, 0.95);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.4);
}

.match-time-badge i {
    font-size: 10px;
}

/* Hora en el featured match */
.match-time-display {
    background: rgba(255, 153, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px rgba(255, 153, 0, 0.3);
}

.match-time-display i {
    font-size: 12px;
}

/* Texto VS mejorado */
.vs-text {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* Información del estadio en tarjetas */
.match-venue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.match-venue i {
    font-size: 9px;
}

/* Botón secundario para partidos próximos */
.watch-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.watch-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Estilos para la tabla de posiciones */
.standings-header {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.standings-row {
    display: grid;
    grid-template-columns: 40px 1fr repeat(5, 45px);
    gap: 8px;
    padding: 12px 15px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.standings-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.standings-row.header-row {
    background: rgba(255, 69, 0, 0.2);
    font-weight: 700;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.standings-row.playoff-zone {
    border-left: 3px solid #4caf50;
}

.standings-row.relegation-zone {
    border-left: 3px solid #f44336;
}

.pos {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

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

.team-logo-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team-name-standings {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.stat.points {
    font-weight: 700;
    color: var(--primary);
}

/* Estilos para noticias */
.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.2);
}

.news-image {
    height: 120px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 12px;
}

.news-content h4 {
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    font-size: 11px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Modal de noticias */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal.active {
    display: flex;
}

.news-modal-content {
    background: var(--secondary);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.news-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-modal-header h3 {
    font-size: 18px;
    color: var(--text);
}

.close-news-modal {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.news-modal-body {
    padding: 20px;
}

.news-modal-body img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.news-modal-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 14px;
}

/* Mensaje informativo para tabla */
.standings-info-message {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.standings-info-message i {
    color: #ff9900;
    font-size: 14px;
}

/* Grid de noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Loading states */
.standings-loading,
.news-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Mejora para no-matches */
.no-matches {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .standings-row {
        grid-template-columns: 35px 1fr repeat(5, 40px);
        gap: 6px;
        padding: 10px 12px;
    }
    
    .team-logo-small {
        width: 20px;
        height: 20px;
    }
    
    .team-name-standings {
        font-size: 11px;
    }
    
    .stat {
        font-size: 11px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation keyframes for slideUp/Down */
@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

/* Modal de Selección de Canales */
.channel-selector-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2500;
    align-items: center;
    justify-content: center;
}

.channel-selector-modal.active {
    display: flex;
}

.channel-selector-content {
    width: 95%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--secondary);
    border-radius: 20px;
    overflow: hidden;
    animation: modalIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.channel-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.channel-selector-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    text-align: center;
    margin: 0 10px;
}

.close-channel-selector {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
}

.close-channel-selector:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.channel-selector-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.channel-option {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.channel-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.channel-number {
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

.channel-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.stream-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stream-option-btn {
    flex: 1;
    min-width: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stream-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
}

.stream-option-btn:active {
    transform: translateY(0);
}

.stream-option-btn i {
    font-size: 14px;
}

@media (max-width: 480px) {
    .channel-selector-header h3 {
        font-size: 14px;
    }
    
    .channel-number {
        min-width: 50px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .channel-name {
        font-size: 13px;
    }
    
    .stream-option-btn {
        min-width: 80px;
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ==================== MATCH STATISTICS SECTION ==================== */
.match-stats-section {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.stats-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.stats-header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.stats-header-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Match Teams Header in Stats */
.stats-teams-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

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

.stats-team-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    object-fit: contain;
}

.stats-team-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0 15px;
}

.stats-score-display {
    font-size: 28px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 8px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.stats-match-status {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Statistics Bars Container */
.stats-bars-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-value {
    min-width: 35px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.stat-value.home {
    text-align: right;
}

.stat-value.away {
    text-align: left;
}

.stat-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-bar-dual {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.stat-bar-home {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 4px 0 0 4px;
    transition: width 0.5s ease;
}

.stat-bar-away {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4 0%, #2ecc71 100%);
    border-radius: 0 4px 4px 0;
    transition: width 0.5s ease;
}

/* Match Events Timeline */
.match-events-section {
    margin-top: 20px;
}

.events-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.events-header i {
    color: var(--primary);
    font-size: 16px;
}

.events-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.events-timeline::-webkit-scrollbar {
    width: 4px;
}

.events-timeline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.events-timeline::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateX(5px);
}

.event-item.home-event {
    border-left: 3px solid var(--primary);
}

.event-item.away-event {
    border-right: 3px solid #4ecdc4;
    flex-direction: row-reverse;
}

.event-minute {
    min-width: 40px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.event-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.event-icon.goal {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.event-icon.yellow-card {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #333;
}

.event-icon.red-card {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.event-icon.substitution {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.event-icon.var {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.event-icon.penalty {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.event-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-player {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.event-type {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.event-team-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
}

/* No Events Message */
.no-events-message {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
}

.no-events-message i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-events-message p {
    font-size: 13px;
}

/* Stats Toggle Tabs */
.stats-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.stats-tab {
    flex: 1;
    padding: 10px 15px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stats-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.stats-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.stats-tab i {
    font-size: 14px;
}

/* Stats Tab Content */
.stats-tab-content {
    display: none;
}

.stats-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Cards Summary */
.cards-summary {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    margin-bottom: 15px;
}

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

.cards-team-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cards-display {
    display: flex;
    gap: 12px;
}

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

.card-icon {
    width: 24px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.card-icon.yellow {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #333;
}

.card-icon.red {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.card-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

/* Stats Loading */
.stats-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 15px;
}

.stats-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.stats-loading p {
    font-size: 13px;
    color: var(--text-muted);
}

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

/* Responsive Stats */
@media (max-width: 480px) {
    .stats-header-title {
        font-size: 14px;
    }
    
    .stats-team-logo {
        width: 35px;
        height: 35px;
    }
    
    .stats-team-name {
        font-size: 10px;
        max-width: 60px;
    }
    
    .stats-score-display {
        font-size: 22px;
        padding: 6px 15px;
    }
    
    .stat-value {
        font-size: 12px;
        min-width: 28px;
    }
    
    .event-item {
        padding: 8px 10px;
    }
    
    .event-minute {
        min-width: 35px;
        height: 28px;
        font-size: 11px;
    }
    
    .event-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .event-player {
        font-size: 12px;
    }
    
    .stats-tab {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .stats-tab i {
        font-size: 12px;
    }
}

/* ==================== QR CODE MODAL ==================== */
.channel-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

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

.qr-modal-btn,
.share-modal-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
    font-size: 18px;
}

.qr-modal-btn:hover,
.share-modal-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.qr-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.qr-modal-content {
    background: var(--secondary);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.qr-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.close-qr-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
}

.close-qr-modal:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.qr-modal-body {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrCodeContainer {
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrCodeContainer img,
#qrCodeContainer canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.qr-info {
    text-align: center;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0 10px;
}

.qr-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.1);
}

.download-qr-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-qr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.5);
}

.download-qr-btn:active {
    transform: translateY(0);
}

.download-qr-btn i {
    font-size: 16px;
}

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

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

@media (max-width: 480px) {
    .qr-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .qr-modal-header h3 {
        font-size: 16px;
    }
    
    .qr-container {
        padding: 15px;
    }
    
    .qr-info {
        font-size: 13px;
    }
}

/* ==================== MODO CLARO COMPLETO ==================== */
body.light-mode {
    --primary: #FF4500;
    --secondary: #f5f5f7;
    --dark: #ffffff;
    --gradient: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    --accent: #FF6B35;
    --text: #1a1a1a;
    --text-muted: #666666;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border: rgba(0, 0, 0, 0.1);
    background: #f0f0f5 !important;
}

body.light-mode .app-container {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
}

body.light-mode .app-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .score-badge {
    background: var(--primary);
    color: white;
}

body.light-mode .icon-btn {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .icon-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .featured-carousel-container {
    background: linear-gradient(135deg, #e8e8ed 0%, #d8d8dd 100%);
}

body.light-mode .featured-match {
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f5 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .match-overlay {
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(240,240,245,0.95) 100%);
}

body.light-mode .match-title {
    color: #1a1a1a;
    text-shadow: none;
}

body.light-mode .score-display .score {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary);
}

body.light-mode .live-badge {
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

body.light-mode .carousel-prev,
body.light-mode .carousel-next {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .carousel-prev:hover,
body.light-mode .carousel-next:hover {
    background: white;
    color: var(--primary);
}

body.light-mode .tabs-container {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .tab {
    color: #666;
}

body.light-mode .tab.active {
    color: var(--primary);
    background: rgba(255, 69, 0, 0.1);
}

body.light-mode .match-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light-mode .match-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.15);
}

body.light-mode .match-card-bg::after {
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.95) 100%);
}

body.light-mode .team span {
    color: #333;
}

body.light-mode .vs-text {
    color: #666;
}

body.light-mode .match-venue {
    color: #888;
}

body.light-mode .watch-btn.secondary {
    background: rgba(255, 69, 0, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 69, 0, 0.3);
}

body.light-mode .watch-btn.secondary:hover {
    background: var(--primary);
    color: white;
}

body.light-mode .match-card-creative {
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f7 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .match-card-creative:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.15);
}

body.light-mode .match-card-creative .card-header::after {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.95) 100%);
}

body.light-mode .creative-date {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .creative-date .date-number {
    color: #1a1a1a;
}

body.light-mode .creative-date .date-month {
    color: #666;
}

body.light-mode .team-creative .team-logo-wrapper {
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .match-card-creative:hover .team-logo-wrapper {
    border-color: rgba(255, 107, 53, 0.4);
    background: rgba(255, 107, 53, 0.05);
}

body.light-mode .team-creative .team-name {
    color: #333;
}

body.light-mode .venue-creative {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .venue-creative span {
    color: #666;
}

body.light-mode .btn-upcoming-creative {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

body.light-mode .leagues-section {
    background: rgba(255, 255, 255, 0.5);
}

body.light-mode .section-header h3 {
    color: #1a1a1a;
}

body.light-mode .league-icon {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light-mode .league-btn span {
    color: #333;
}

body.light-mode .important-matches-btn-container {
    background: rgba(255, 255, 255, 0.5);
}

body.light-mode .bottom-nav {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .nav-btn {
    color: #666;
}

body.light-mode .nav-btn.active {
    color: var(--primary);
}

body.light-mode .nav-btn span {
    color: inherit;
}

body.light-mode .settings-panel {
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .settings-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .settings-header h2 {
    color: #1a1a1a;
}

body.light-mode .close-settings {
    color: #666;
}

body.light-mode .close-settings:hover {
    color: #1a1a1a;
}

body.light-mode .settings-option {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .settings-option h4 {
    color: #1a1a1a;
}

body.light-mode .settings-option p {
    color: #666;
}

body.light-mode .modal-content,
body.light-mode .player-modal-content,
body.light-mode .channel-selector-content,
body.light-mode .important-matches-content {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .modal-header,
body.light-mode .channel-selector-header,
body.light-mode .important-modal-header {
    background: #f5f5f7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
}

body.light-mode .modal-header h3,
body.light-mode .important-modal-header h3 {
    color: #1a1a1a;
}

body.light-mode .close-modal,
body.light-mode .close-important-modal {
    color: #666;
}

body.light-mode .close-modal:hover,
body.light-mode .close-important-modal:hover {
    color: var(--primary);
}

body.light-mode .modal-body,
body.light-mode .channel-selector-body {
    color: #333;
    background: white;
}

body.light-mode .channel-option,
body.light-mode .channel-card-mini {
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .channel-option:hover,
body.light-mode .channel-card-mini:hover {
    background: rgba(255, 69, 0, 0.05);
    border-color: var(--primary);
}

body.light-mode .channel-name {
    color: #1a1a1a;
}

body.light-mode .channel-quality {
    color: #666;
}

body.light-mode .important-match-card,
body.light-mode .important-match-card-new {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .important-match-card:hover,
body.light-mode .important-match-card-new:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.15);
}

body.light-mode .match-card-live {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .match-card-live:hover {
    border-color: var(--primary);
}

body.light-mode .live-match-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .live-match-card:hover {
    border-color: var(--primary);
}

body.light-mode .match-time-badge {
    background: rgba(255, 69, 0, 0.1);
    color: var(--primary);
}

body.light-mode .news-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .news-card:hover {
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.15);
}

body.light-mode .news-content h4 {
    color: #1a1a1a;
}

body.light-mode .news-content p {
    color: #666;
}

body.light-mode .news-meta {
    color: #888;
}

body.light-mode .standings-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .standings-table th {
    background: #f5f5f7;
    color: #1a1a1a;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .standings-table td {
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .standings-table tbody tr:hover {
    background: rgba(255, 69, 0, 0.05);
}

body.light-mode .search-modal-content {
    background: white;
}

body.light-mode .search-input-wrapper {
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .search-input-wrapper input {
    color: #1a1a1a;
}

body.light-mode .search-input-wrapper input::placeholder {
    color: #999;
}

body.light-mode .search-match-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .search-match-card:hover {
    border-color: var(--primary);
}

body.light-mode .toast {
    background: rgba(0, 0, 0, 0.85);
    color: white;
}

body.light-mode .goleadores-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .goleador-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .goleador-nombre {
    color: #1a1a1a;
}

body.light-mode .goleador-equipo {
    color: #666;
}

body.light-mode .no-matches {
    color: #666 !important;
}

body.light-mode .loading-matches p {
    color: #666;
}

body.light-mode .qr-modal-content {
    background: white;
}

body.light-mode .qr-modal-header {
    background: #f5f5f7;
    color: #1a1a1a;
}

body.light-mode .qr-container {
    background: #f5f5f7;
}

body.light-mode .qr-info {
    color: #666;
}

body.light-mode .news-modal-content {
    background: white;
}

body.light-mode .news-modal-header {
    background: #f5f5f7;
}

body.light-mode .news-modal-header h3 {
    color: #1a1a1a;
}

body.light-mode .news-modal-body {
    color: #333;
}

body.light-mode .lineups-section {
    background: rgba(255, 255, 255, 0.5);
}

body.light-mode .lineup-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .lineup-header {
    background: #f5f5f7;
}

body.light-mode .lineup-team-name {
    color: #1a1a1a;
}

body.light-mode .player-name {
    color: #333;
}

body.light-mode .player-number {
    color: #666;
}

/* ==================== MODO OSCURO ==================== */
body.dark-mode {
    --bg: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --text: #e5e5e5;
    --text-secondary: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);
}

body.dark-mode .header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .match-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

body.dark-mode .match-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .featured-match {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

body.dark-mode .tab-button {
    color: var(--text-secondary);
}

body.dark-mode .tab-button.active {
    color: var(--primary);
}

body.dark-mode .league-btn {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

body.dark-mode .league-btn.active {
    background: var(--primary);
    color: white;
}

body.dark-mode .standings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

body.dark-mode .standings-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

body.dark-mode .standings-table td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

body.dark-mode .standings-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

body.dark-mode .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.3);
}

body.dark-mode .settings-panel {
    background: rgba(10, 10, 10, 0.98);
    border-left: 1px solid var(--border);
}

body.dark-mode .settings-option {
    border-bottom: 1px solid var(--border);
}

body.dark-mode .settings-option h4 {
    color: var(--text);
}

body.dark-mode .settings-option p {
    color: var(--text-secondary);
}

body.dark-mode .modal-content,
body.dark-mode .player-modal-content,
body.dark-mode .channel-selector-content {
    background: var(--bg-secondary);
}

body.dark-mode .modal-header,
body.dark-mode .channel-selector-header {
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

body.dark-mode .modal-body,
body.dark-mode .channel-selector-body {
    color: var(--text-secondary);
}

body.dark-mode .channel-option {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

body.dark-mode .channel-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

body.dark-mode .bottom-nav {
    background: rgba(10, 10, 10, 0.98);
    border-top: 1px solid var(--border);
}

body.dark-mode .nav-button {
    color: var(--text-secondary);
}

body.dark-mode .nav-button.active {
    color: var(--primary);
}

body.dark-mode h2, 
body.dark-mode h3 {
    color: var(--text);
}

body.dark-mode .section-header h2 {
    color: var(--text);
}

body.dark-mode .news-content h4 {
    color: var(--text);
}

body.dark-mode .news-content p {
    color: var(--text-secondary);
}

/* ==================== BOTÓN PARTIDOS IMPORTANTES ==================== */
.important-matches-btn-container {
    padding: 15px;
    margin-top: 10px;
}

.important-matches-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF4500 0%, #FF6B35 50%, #FFD700 100%);
    border: none;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 24px rgba(255, 69, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.important-matches-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.important-matches-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(255, 69, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.important-matches-btn:active {
    transform: translateY(-1px);
}

.btn-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-icon-wrapper i:first-child {
    color: #FFD700;
    animation: starPulse 2s infinite;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px #FFD700);
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 10px #FFD700);
    }
}

.btn-icon-wrapper i:last-child {
    color: white;
}

.btn-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.btn-title {
    font-size: 16px;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.btn-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.btn-arrow {
    font-size: 18px;
    color: white;
    transition: transform 0.3s ease;
}

.important-matches-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ==================== MODAL PARTIDOS IMPORTANTES - CARRUSEL HORIZONTAL ==================== */
.important-matches-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.important-matches-modal.active {
    display: flex;
}

.important-modal-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(20px);
    animation: carouselFadeIn 0.4s ease-out;
}

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

.important-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: carouselSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes carouselSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.important-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.important-modal-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.important-modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.important-modal-title-wrapper i {
    font-size: 24px;
    color: #FFD700;
    animation: starGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes starGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.important-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(255, 69, 0, 0.5);
}

.important-modal-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    margin-left: 36px;
}

.close-important-modal {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.close-important-modal:hover {
    background: rgba(255, 69, 0, 0.8);
    border-color: rgba(255, 69, 0, 1);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.5);
}

.important-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.loading-matches {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.loading-matches p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Carrusel Container */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 80px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    width: 100%;
    height: 100%;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.9), rgba(255, 107, 53, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(255, 69, 0, 0.4);
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(255, 69, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 107, 53, 1), rgba(255, 69, 0, 1));
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-indicator.active {
    background: linear-gradient(135deg, #FF4500, #FFD700);
    width: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
}

.carousel-indicator:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

/* Counter Display */
.carousel-counter {
    position: absolute;
    top: 80px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.carousel-counter span {
    color: #FF4500;
    font-weight: 800;
}

/* Match Cards for Carousel */
.important-match-card,
.important-match-card-new {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    height: auto;
    max-height: 420px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: center;
    transform: scale(0.85);
    opacity: 0.6;
    filter: blur(1px);
    position: relative;
}

.important-match-card-new::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.important-match-card-new.active {
    transform: scale(1.05);
    opacity: 1;
    filter: blur(0);
    border-color: rgba(255, 69, 0, 0.6);
    box-shadow: 
        0 20px 60px rgba(255, 69, 0, 0.3),
        0 0 80px rgba(255, 69, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.important-match-card-new.active::before {
    background: linear-gradient(135deg, #FF4500, #FFD700, #FF4500);
    opacity: 1;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.important-match-card-new.adjacent {
    transform: scale(0.92);
    opacity: 0.8;
    filter: blur(0);
}

.important-match-card-new:hover:not(.active) {
    transform: scale(0.9);
    opacity: 0.9;
    border-color: rgba(255, 69, 0, 0.3);
}

.match-image-container {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.match-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.important-match-card-new.active .match-bg-image {
    transform: scale(1.1);
}

.match-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(13, 13, 13, 1) 100%
    );
}

.match-info-container {
    padding: 16px;
    position: relative;
}

.match-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.league-badge {
    background: linear-gradient(135deg, rgba(0, 100, 255, 0.9), rgba(0, 150, 255, 0.9));
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 100, 255, 0.3);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.status-live {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.9), rgba(200, 0, 0, 0.9));
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    animation: liveGlow 1.5s ease-in-out infinite;
}

@keyframes liveGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.8); }
}

.status-badge.status-finished {
    background: rgba(128, 128, 128, 0.3);
    color: #aaa;
    border: 1px solid rgba(128, 128, 128, 0.4);
}

.status-badge.status-upcoming {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.3), rgba(255, 200, 0, 0.3));
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.5);
}

.match-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.important-match-card-new.active .match-title {
    font-size: 16px;
}

.match-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.match-date i {
    color: var(--primary);
}

.match-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.channel-info i {
    color: var(--primary);
}

.btn-ver {
    background: linear-gradient(135deg, #FF4500, #FF6B35);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.btn-ver:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.6);
}

.btn-ver i {
    font-size: 11px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .important-modal-header {
        padding: 12px 16px;
    }
    
    .important-modal-title {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .important-modal-subtitle {
        display: none;
    }
    
    .carousel-container {
        padding: 20px 50px;
        gap: 15px;
    }
    
    .important-match-card-new {
        flex: 0 0 260px;
        min-width: 260px;
        max-width: 260px;
        max-height: 380px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-nav.prev {
        left: 8px;
    }
    
    .carousel-nav.next {
        right: 8px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        padding: 8px 15px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .carousel-indicator.active {
        width: 24px;
    }
    
    .carousel-counter {
        top: 70px;
        right: 16px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .match-image-container {
        height: 140px;
    }
}

@media (max-width: 400px) {
    .important-match-card-new {
        flex: 0 0 240px;
        min-width: 240px;
        max-width: 240px;
    }
    
    .carousel-container {
        padding: 20px 40px;
    }
}

.no-channels-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    text-align: center;
    width: 100%;
}

/* Estilos para la información del canal */
.match-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    padding: 8px 12px;
    background: rgba(255, 69, 0, 0.15);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.match-channel i {
    color: var(--primary);
    font-size: 14px;
}

.match-channel.no-channel {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

.match-channel.no-channel i {
    color: rgba(255, 255, 255, 0.3);
}

/* Botón Ver deshabilitado */
.btn-ver.btn-disabled {
    background: linear-gradient(135deg, #666, #888);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.btn-ver.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Punto animado para EN VIVO */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

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

.important-match-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-live {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
}

.status-live .live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.status-upcoming {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 165, 0, 0.4);
    color: #ffa500;
}

.status-finished {
    background: rgba(128, 128, 128, 0.2);
    border: 1px solid rgba(128, 128, 128, 0.4);
    color: #888;
}

.important-match-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.important-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

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

.important-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: transparent;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

.important-team-name {
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-align: center;
}

.important-match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.important-match-vs {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.important-match-channels {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.important-match-channels i {
    color: var(--primary);
    font-size: 14px;
}

.important-channels-count {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.important-no-channels {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.important-no-matches {
    text-align: center;
    padding: 60px 20px;
}

.important-no-matches i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
}

.important-no-matches p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .important-matches-btn {
        padding: 16px 18px;
    }
    
    .btn-title {
        font-size: 14px;
    }
    
    .btn-subtitle {
        font-size: 10px;
    }
    
    .important-modal-container {
        max-width: 100%;
        border-radius: 20px;
    }
    
    .important-modal-title {
        font-size: 16px;
    }
    
    .important-team-logo {
        width: 36px;
        height: 36px;
    }
}

/* ==================== ESTILOS DE BÚSQUEDA CREATIVOS ==================== */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal.active {
    display: block;
    opacity: 1;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 69, 0, 0.15) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    animation: overlayFade 0.4s ease;
}

@keyframes overlayFade {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px) saturate(180%);
    }
}

.search-modal-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(13, 13, 13, 0.98) 50%, 
        rgba(26, 26, 26, 0.98) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite, slideUpModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes slideUpModal {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.search-modal-header {
    padding: 24px 20px 20px;
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0.15) 0%, 
        rgba(255, 107, 53, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 69, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.search-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.1) 0%, transparent 70%);
    animation: headerGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerGlow {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 30px);
    }
}

.search-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.search-modal-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-modal-title i {
    color: #FF4500;
    font-size: 26px;
}

.search-input-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1;
}

.search-input-wrapper:focus-within {
    border-color: #FF4500;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 40px rgba(255, 69, 0, 0.5), 
                0 8px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.search-input-icon {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input-icon i {
    color: #FF4500;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.search-input-wrapper:focus-within .search-input-icon i {
    transform: scale(1.1);
}

.search-icon {
    color: #FF4500;
    font-size: 18px;
    margin-right: 12px;
}

.search-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 1;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 69, 0, 0.5);
    color: white;
    transform: translateY(-2px);
}

.filter-chip.active {
    background: linear-gradient(135deg, #FF4500, #FF6B35);
    border-color: #FF4500;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.filter-chip i {
    font-size: 12px;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    color: white;
    font-size: 16px;
    outline: none;
    font-family: 'Poppins', -apple-system, sans-serif;
    -webkit-user-select: text;
    user-select: text;
    pointer-events: auto;
    padding: 16px 20px 16px 0;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.clear-search-btn {
    background: rgba(255, 69, 0, 0.2);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #FF4500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.clear-search-btn:hover {
    background: rgba(255, 69, 0, 0.3);
    transform: scale(1.1);
}

.close-search-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.close-search-modal:hover {
    background: rgba(255, 69, 0, 0.3);
    transform: rotate(90deg);
}

.search-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.search-modal-body::-webkit-scrollbar {
    width: 8px;
}

.search-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.search-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 69, 0, 0.5);
    border-radius: 10px;
}

.search-welcome {
    text-align: center;
    padding: 40px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.search-welcome-animation {
    position: relative;
    margin: 0 auto 32px;
    width: 100px;
    height: 100px;
}

.search-icon-animated {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #FF4500, #FF6B35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 15px 40px rgba(255, 69, 0, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.search-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 69, 0, 0.3);
    border-radius: 50%;
    animation: waveAnimation 3s ease-out infinite;
}

.wave:nth-child(2) {
    animation-delay: 1s;
}

.wave:nth-child(3) {
    animation-delay: 2s;
}

@keyframes waveAnimation {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 15px 40px rgba(255, 69, 0, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 20px 50px rgba(255, 69, 0, 0.6);
    }
}

.search-welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF4500, #FF6B35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.3);
    animation: pulse 2s infinite;
}

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

.search-welcome-title {
    color: white;
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-welcome-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.search-welcome h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.search-welcome p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.search-categories {
    margin-top: 20px;
}

.search-category-section {
    margin-bottom: 32px;
    text-align: left;
}

.search-category-section h4 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 4px;
}

.search-category-section h4 i {
    color: #FF4500;
    font-size: 18px;
}

.search-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.search-tag-pro {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.search-tag-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.search-tag-pro:hover::before {
    left: 100%;
}

.search-tag-pro:hover {
    background: rgba(255, 69, 0, 0.25);
    border-color: #FF4500;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.3);
}

.search-tag-pro i {
    font-size: 16px;
}

.live-dot-search {
    color: #4caf50;
    animation: blink 1.5s infinite;
}

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

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.search-tag {
    background: rgba(255, 69, 0, 0.15);
    border: 1px solid rgba(255, 69, 0, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: rgba(255, 69, 0, 0.3);
    border-color: #FF4500;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

.search-tag i {
    color: #FF4500;
    font-size: 14px;
}

.search-loading {
    text-align: center;
    padding: 80px 20px;
}

.search-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 69, 0, 0.2);
    border-top-color: #FF4500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.search-loading p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.3);
}

.search-no-results h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 12px;
}

.search-no-results p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-bottom: 12px;
}

.no-results-suggestion {
    margin-top: 24px;
    font-weight: 600;
    color: white;
}

.no-results-suggestion-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-results-suggestion-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.search-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-tips li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.search-tips li::before {
    content: "•";
    color: #e94560;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 0;
}

.search-tips li strong {
    color: #e94560;
    font-weight: 600;
}

.search-results-header {
    background: rgba(255, 69, 0, 0.15);
    border: 1px solid rgba(255, 69, 0, 0.3);
    padding: 16px 20px;
    border-radius: 15px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-results-header i {
    color: #4caf50;
    font-size: 18px;
}

.search-section {
    margin-bottom: 32px;
}

.search-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 69, 0, 0.2);
}

.search-section-title i {
    color: #FF4500;
    font-size: 18px;
}

.search-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.search-team-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-team-card:hover {
    background: rgba(255, 69, 0, 0.15);
    border-color: #FF4500;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.2);
}

.search-team-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: transparent;
    border-radius: 10px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

.search-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-team-info {
    flex: 1;
}

.search-team-name {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.search-team-full {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.search-match-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-match-card:hover {
    background: rgba(255, 69, 0, 0.15);
    border-color: #FF4500;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.2);
}

.search-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.search-match-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.search-match-team:last-child {
    flex-direction: row-reverse;
    text-align: right;
}

.search-match-team img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    padding: 2px;
}

.search-match-score {
    color: #FF4500;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.search-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.search-status-badge.live {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.search-status-badge.live i {
    animation: blink 1s infinite;
}

.search-status-badge.scheduled {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.search-status-badge.finished {
    background: rgba(128, 128, 128, 0.15);
    color: #888;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

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

.search-league-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.search-league-card:hover {
    background: rgba(255, 69, 0, 0.15);
    border-color: #FF4500;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.2);
}

.search-league-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.search-league-icon.active {
    background: linear-gradient(135deg, #FF4500, #FF6B35);
    color: white;
}

.search-league-icon.locked {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

.search-league-info {
    flex: 1;
}

.search-league-name {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.search-league-status {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.search-league-premium {
    color: #ffd700;
    font-size: 18px;
}

/* ==================== ESTILOS MEJORADOS DE RESULTADOS ==================== */

.search-results-header {
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0.2) 0%, 
        rgba(255, 107, 53, 0.15) 100%);
    border: 1px solid rgba(255, 69, 0, 0.4);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.search-results-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.search-results-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF4500, #FF6B35);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.4);
    animation: iconBounce 2s ease-in-out infinite;
}

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

.search-results-text {
    flex: 1;
}

.search-results-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.search-results-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.search-section-featured {
    margin-bottom: 32px;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0.1) 0%, 
        rgba(255, 69, 0, 0.05) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 69, 0, 0.2);
}

.search-section-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #FF4500, #FF6B35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.search-section-icon.live-pulse {
    background: linear-gradient(135deg, #ff0000, #ff4444);
    animation: pulseLive 1.5s ease-in-out infinite;
}

@keyframes pulseLive {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 0, 0, 0.7);
        transform: scale(1.1);
    }
}

.search-section-badge {
    background: linear-gradient(135deg, #FF4500, #FF6B35);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255, 69, 0, 0.3);
}

.search-match-live {
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0.15) 0%, 
        rgba(255, 69, 0, 0.1) 100%);
    border: 2px solid rgba(255, 69, 0, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.search-match-live::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff0000, #ff4444);
    animation: liveBar 2s ease-in-out infinite;
}

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

.search-match-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-dot-pulse {
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    animation: liveDotPulse 1.5s infinite;
}

@keyframes liveDotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.search-match-score-big {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FF4500, #FF6B35);
    padding: 8px 16px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.score-num {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.score-sep {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.search-match-time {
    text-align: center;
    color: #ff4444;
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(255, 0, 0, 0.15);
    border-radius: 10px;
    display: inline-block;
}

/* ==================== PARTIDOS IMPORTANTES ==================== */

.search-important-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.search-important-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0) 0%, 
        rgba(255, 69, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.search-important-card:hover::before {
    opacity: 1;
}

.search-important-card:hover {
    transform: translateX(8px) translateY(-2px);
    border-color: #FF4500;
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.3);
}

.search-important-card.is-live {
    border: 2px solid rgba(255, 69, 0, 0.4);
    background: linear-gradient(135deg, 
        rgba(255, 69, 0, 0.1) 0%, 
        rgba(255, 69, 0, 0.05) 100%);
}

.search-important-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.search-important-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.search-important-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}

.search-important-liga {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
}

.search-important-liga i {
    color: #ffd700;
}

.search-important-channels {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4caf50;
    font-weight: 600;
    background: rgba(76, 175, 80, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
}

.search-important-channels i {
    color: #4caf50;
}

.search-important-channels-none {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* ==================== TARJETAS DE PARTIDOS MEJORADAS (ESTILO IMAGEN) ==================== */

.search-match-important-card {
    position: relative;
    background: #1a1a2e;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-match-important-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #FF4500;
    box-shadow: 0 12px 35px rgba(255, 69, 0, 0.4);
}

.search-match-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.imgur.com/9YpJQXz.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.search-match-important-card:hover .search-match-bg {
    opacity: 0.6;
    transform: scale(1.05);
}

.search-match-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(26, 26, 46, 0.7) 0%, 
        rgba(26, 26, 46, 0.85) 50%, 
        rgba(26, 26, 46, 0.95) 100%);
}

.search-match-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.search-badge-liga {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.search-badge-live {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.5);
    animation: pulseBadgeLive 1.5s ease-in-out infinite;
}

@keyframes pulseBadgeLive {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(220, 38, 38, 0.5);
    }
    50% {
        box-shadow: 0 2px 20px rgba(220, 38, 38, 0.8);
    }
}

.search-badge-live i {
    animation: blinkDot 1.5s infinite;
}

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

.search-badge-scheduled {
    background: linear-gradient(135deg, #ca8a04, #eab308);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.4);
}

.search-badge-finished {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(107, 114, 128, 0.4);
}

.search-match-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 8px 0;
}

.search-match-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.search-match-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.search-match-channel i {
    color: #FF4500;
}

.search-match-score-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.score-number {
    font-size: 22px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.score-separator {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.search-match-time-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.search-match-time-display i {
    color: #eab308;
}

.search-match-btn {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.search-match-btn:hover {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.6);
}

.search-match-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.search-match-btn.disabled {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.search-match-btn.disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.search-match-no-channels {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-style: italic;
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .search-modal-header {
        padding: 16px;
    }
    
    .search-input-wrapper {
        padding: 10px 16px;
    }
    
    .search-input {
        font-size: 15px;
    }
    
    .search-teams-grid {
        grid-template-columns: 1fr;
    }
    
    .search-welcome {
        padding: 40px 20px;
    }
    
    .search-welcome-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .search-welcome h3 {
        font-size: 20px;
    }
    
    .close-search-modal {
        width: 40px;
        height: 40px;
    }
}

/* ===========================
   LINEUPS SECTION - Professional Football Field
   =========================== */

.lineups-section {
    padding: 20px;
    margin-top: 20px;
}

.lineups-info-message {
    background: rgba(255, 69, 0, 0.15);
    border-left: 3px solid var(--primary);
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.lineups-info-message i {
    color: var(--primary);
    font-size: 16px;
}

.lineups-loading {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

/* Match Selector Buttons */
.lineups-matches-selector {
    margin: 15px 0;
}

.lineups-match-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

.lineups-match-tabs::-webkit-scrollbar {
    height: 4px;
}

.lineups-match-tabs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.lineup-match-tab {
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lineup-match-tab:hover {
    border-color: rgba(255, 69, 0, 0.3);
    transform: translateY(-2px);
}

.lineup-match-tab.active {
    border-color: var(--primary);
    background: rgba(255, 69, 0, 0.1);
}

.lineup-match-tab-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
}

.lineup-match-tab-teams img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.lineup-match-tab-info {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.lineup-match-tab-info i {
    font-size: 10px;
}

.lineup-match-tab.pending {
    opacity: 0.7;
}

.lineup-match-tab-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.lineup-match-tab-badge.available {
    background: #00ff41;
    color: #000;
}

.lineup-match-tab-badge.pending {
    background: rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

/* Lineups Container */
.lineups-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
}

/* Match Header */
.lineup-match-header {
    text-align: center;
    margin-bottom: 20px;
}

.lineup-match-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.lineup-match-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.lineup-match-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lineup-match-meta-item i {
    color: var(--primary);
}

/* Teams Lineup Display */
.lineups-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.lineup-team {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.lineup-team-header {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 69, 0, 0.3);
}

.lineup-team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
}

.lineup-team-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.lineup-team-formation {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* Football Field Visualization */
.football-field {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(180deg, 
        #2d5016 0%, 
        #3a6b1e 25%, 
        #2d5016 50%, 
        #3a6b1e 75%, 
        #2d5016 100%
    );
    border-radius: 8px;
    overflow: hidden;
    padding: 20px 10px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.football-field::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(transparent 49.5%, rgba(255, 255, 255, 0.2) 49.5%, rgba(255, 255, 255, 0.2) 50.5%, transparent 50.5%),
        radial-gradient(circle at 50% 50%, transparent 19%, rgba(255, 255, 255, 0.2) 19%, rgba(255, 255, 255, 0.2) 20%, transparent 20%);
    pointer-events: none;
}

.field-half {
    position: relative;
    height: 50%;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.field-half:last-child {
    border-bottom: none;
}

.field-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
}

.field-line.penalty-box {
    width: 60%;
    height: 15%;
    left: 20%;
    bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    background: transparent;
}

.field-line.goal-box {
    width: 40%;
    height: 8%;
    left: 30%;
    bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    background: transparent;
}

/* Player Positions */
.field-players {
    position: relative;
    height: 100%;
    width: 100%;
}

.field-row {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.player-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.player-marker:hover {
    transform: scale(1.1);
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.player-avatar::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

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

.player-name {
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Formation-specific positioning */
.formation-4-3-3 .field-row:nth-child(1) { top: 5%; }
.formation-4-3-3 .field-row:nth-child(2) { top: 25%; }
.formation-4-3-3 .field-row:nth-child(3) { top: 50%; }
.formation-4-3-3 .field-row:nth-child(4) { top: 75%; }

.formation-4-4-2 .field-row:nth-child(1) { top: 5%; }
.formation-4-4-2 .field-row:nth-child(2) { top: 30%; }
.formation-4-4-2 .field-row:nth-child(3) { top: 60%; }
.formation-4-4-2 .field-row:nth-child(4) { top: 85%; }

.formation-4-2-3-1 .field-row:nth-child(1) { top: 5%; }
.formation-4-2-3-1 .field-row:nth-child(2) { top: 25%; }
.formation-4-2-3-1 .field-row:nth-child(3) { top: 50%; }
.formation-4-2-3-1 .field-row:nth-child(4) { top: 70%; }
.formation-4-2-3-1 .field-row:nth-child(5) { top: 90%; }

.formation-3-5-2 .field-row:nth-child(1) { top: 5%; }
.formation-3-5-2 .field-row:nth-child(2) { top: 30%; }
.formation-3-5-2 .field-row:nth-child(3) { top: 60%; }
.formation-3-5-2 .field-row:nth-child(4) { top: 85%; }

/* Goalkeeper special styling */
.player-marker.goalkeeper .player-avatar {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

/* No lineup available message */
.lineup-not-available {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.lineup-not-available i {
    font-size: 48px;
    color: rgba(255, 69, 0, 0.3);
    margin-bottom: 16px;
}

.lineup-not-available h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
}

.lineup-not-available p {
    font-size: 13px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lineups-display {
        grid-template-columns: 1fr;
    }

    .lineup-match-tab {
        min-width: 160px;
    }

    .player-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .player-name {
        font-size: 9px;
        padding: 3px 6px;
        max-width: 60px;
    }

    .lineup-team-logo {
        width: 40px;
        height: 40px;
    }

    .lineup-team-name {
        font-size: 14px;
    }

    .lineup-match-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .lineups-section {
        padding: 15px;
    }

    .lineups-container {
        padding: 15px;
    }

    .player-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border: 2px solid #fff;
    }

    .player-name {
        font-size: 8px;
        padding: 2px 5px;
        max-width: 50px;
    }

    .football-field {
        padding: 15px 5px;
    }
}

/* ========== MEDIA QUERIES COMPREHENSIVAS PARA RESPONSIVE DESIGN ========== */

/* Móviles pequeños - 320px - 374px */
@media (max-width: 374px) {
    .app-header {
        padding: 12px 15px;
    }
    
    .app-logo {
        height: 42px;
    }
    
    .score-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .featured-carousel {
        height: 240px;
    }
    
    .team-logo {
        width: 60px;
        height: 60px;
    }
    
    .score-display {
        padding: 8px 16px;
    }
    
    .score {
        font-size: 20px;
    }
    
    .match-title {
        font-size: 14px;
    }
    
    .tab {
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .matches-grid {
        gap: 10px;
    }
    
    .match-card-content {
        padding: 10px;
    }
    
    .team-badge {
        width: 24px;
        height: 24px;
    }
    
    .watch-btn {
        padding: 8px;
        font-size: 10px;
    }
    
    .league-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .league-btn span {
        font-size: 10px;
    }
    
    .section-header h3 {
        font-size: 12px;
    }
    
    .standings-row {
        grid-template-columns: 35px 1fr 35px 35px 35px 45px;
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .standings-team-logo {
        width: 20px;
        height: 20px;
    }
    
    .important-matches-btn {
        padding: 12px;
    }
    
    .btn-title {
        font-size: 11px;
    }
    
    .btn-subtitle {
        font-size: 9px;
    }
}

/* Móviles estándar - 375px - 480px */
@media (min-width: 375px) and (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
    
    .featured-carousel {
        height: 260px;
    }
    
    .matches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tabletas - 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .app-container {
        max-width: 100%;
        padding-bottom: 80px;
    }
    
    .app-header {
        padding: 18px 25px;
    }
    
    .app-logo {
        height: 55px;
    }
    
    .score-badge {
        padding: 5px 14px;
        font-size: 13px;
    }
    
    .icon-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .featured-match-container {
        margin: 20px;
    }
    
    .featured-carousel {
        height: 350px;
    }
    
    .team-logo {
        width: 85px;
        height: 85px;
    }
    
    .score-display {
        padding: 12px 25px;
    }
    
    .score {
        font-size: 28px;
    }
    
    .match-title {
        font-size: 22px;
    }
    
    .badge-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .tabs-container {
        padding: 25px 20px 15px;
    }
    
    .tab {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .content-container {
        padding: 0 20px;
    }
    
    .matches-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .match-card-bg {
        height: 120px;
    }
    
    .match-card-content {
        padding: 14px;
    }
    
    .team-badge {
        width: 32px;
        height: 32px;
    }
    
    .team span {
        font-size: 11px;
    }
    
    .watch-btn {
        padding: 12px;
        font-size: 12px;
    }
    
    .leagues-section {
        padding: 30px 20px;
    }
    
    .section-header h3 {
        font-size: 16px;
    }
    
    .leagues-container {
        gap: 20px;
    }
    
    .league-icon {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }
    
    .league-btn span {
        font-size: 12px;
    }
    
    .news-section {
        padding: 30px 20px;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .news-card img {
        height: 140px;
    }
    
    .news-content h4 {
        font-size: 14px;
    }
    
    .streaming-section {
        padding: 30px 20px;
    }
    
    .channels-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .channel-icon-mini {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .standings-section {
        padding: 25px;
    }
    
    .standings-row {
        grid-template-columns: 45px 1fr 50px 50px 50px 60px;
        padding: 14px 18px;
        font-size: 13px;
    }
    
    .standings-team-logo {
        width: 28px;
        height: 28px;
    }
    
    .standings-team-name {
        font-size: 14px;
    }
    
    .bottom-nav {
        padding: 14px 25px;
    }
    
    .nav-btn {
        font-size: 24px;
        padding: 10px 18px;
    }
    
    .important-matches-btn-container {
        padding: 0 20px;
    }
    
    .important-matches-btn {
        padding: 16px 20px;
    }
    
    .btn-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .btn-title {
        font-size: 13px;
    }
    
    .btn-subtitle {
        font-size: 11px;
    }
}

/* Laptop / Desktop pequeño - 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .app-container {
        max-width: 768px;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }
    
    .app-header {
        padding: 20px 30px;
    }
    
    .app-logo {
        height: 60px;
    }
    
    .featured-carousel {
        height: 400px;
    }
    
    .team-logo {
        width: 90px;
        height: 90px;
    }
    
    .score {
        font-size: 32px;
    }
    
    .match-title {
        font-size: 24px;
    }
    
    .matches-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    
    .channels-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
    
    .leagues-container {
        justify-content: center;
        gap: 25px;
    }
    
    .league-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .standings-row {
        grid-template-columns: 50px 2fr 60px 60px 60px 70px;
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .standings-team-name {
        font-size: 15px;
    }
    
    .modal-content {
        max-width: 1000px;
    }
    
    .modal-body {
        height: 600px;
    }
}

/* Desktop grande - 1025px+ */
@media (min-width: 1025px) {
    .app-container {
        max-width: 900px;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    }
    
    .app-header {
        padding: 22px 35px;
    }
    
    .app-logo {
        height: 65px;
    }
    
    .score-badge {
        padding: 6px 16px;
        font-size: 14px;
    }
    
    .featured-match-container {
        margin: 25px;
    }
    
    .featured-carousel {
        height: 450px;
        border-radius: 24px;
    }
    
    .team-logo {
        width: 100px;
        height: 100px;
        padding: 10px;
    }
    
    .score-display {
        padding: 15px 30px;
    }
    
    .score {
        font-size: 36px;
    }
    
    .match-title {
        font-size: 26px;
    }
    
    .badge-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .tabs-container {
        padding: 30px 25px 20px;
    }
    
    .tab {
        padding: 16px 28px;
        font-size: 15px;
    }
    
    .content-container {
        padding: 0 25px;
    }
    
    .matches-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-top: 20px;
    }
    
    .match-card {
        border-radius: 18px;
    }
    
    .match-card-bg {
        height: 130px;
    }
    
    .match-card-content {
        padding: 16px;
    }
    
    .team-badge {
        width: 36px;
        height: 36px;
    }
    
    .team span {
        font-size: 12px;
    }
    
    .watch-btn {
        padding: 14px;
        font-size: 13px;
        border-radius: 14px;
    }
    
    .leagues-section,
    .news-section,
    .streaming-section {
        padding: 35px 25px;
    }
    
    .section-header h3 {
        font-size: 18px;
    }
    
    .leagues-container {
        justify-content: center;
        gap: 30px;
        padding: 15px 0;
    }
    
    .league-icon {
        width: 75px;
        height: 75px;
        font-size: 30px;
    }
    
    .league-btn span {
        font-size: 13px;
    }
    
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .news-card {
        border-radius: 18px;
    }
    
    .news-card img {
        height: 150px;
    }
    
    .news-content {
        padding: 14px;
    }
    
    .news-content h4 {
        font-size: 15px;
    }
    
    .channels-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .channel-card-mini {
        border-radius: 18px;
        padding: 25px;
    }
    
    .channel-icon-mini {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .channel-card-mini h4 {
        font-size: 15px;
    }
    
    .standings-section {
        padding: 30px 25px;
    }
    
    .standings-table {
        border-radius: 16px;
    }
    
    .standings-row {
        grid-template-columns: 60px 2fr 70px 70px 70px 80px;
        padding: 18px 25px;
        font-size: 15px;
    }
    
    .standings-header {
        font-size: 13px;
    }
    
    .standings-team-logo {
        width: 32px;
        height: 32px;
    }
    
    .standings-team-name {
        font-size: 16px;
    }
    
    .bottom-nav {
        padding: 16px 30px;
    }
    
    .nav-btn {
        font-size: 26px;
        padding: 12px 20px;
    }
    
    .important-matches-btn-container {
        padding: 0 25px;
        margin: 20px 0;
    }
    
    .important-matches-btn {
        padding: 20px 25px;
        border-radius: 18px;
    }
    
    .btn-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .btn-icon-wrapper i {
        font-size: 26px;
    }
    
    .btn-title {
        font-size: 16px;
    }
    
    .btn-subtitle {
        font-size: 13px;
    }
    
    .btn-arrow {
        font-size: 22px;
    }
    
    .modal-content {
        max-width: 1100px;
        border-radius: 24px;
    }
    
    .modal-body {
        height: 650px;
    }
    
    .settings-panel {
        width: 350px;
    }
}

/* Orientación horizontal en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .featured-carousel {
        height: 200px;
    }
    
    .app-header {
        padding: 10px 15px;
    }
    
    .team-logo {
        width: 60px;
        height: 60px;
    }
    
    .score {
        font-size: 18px;
    }
    
    .match-title {
        font-size: 14px;
    }
    
    .bottom-nav {
        padding: 8px 15px;
    }
    
    .nav-btn {
        font-size: 18px;
        padding: 6px 12px;
    }
}

/* Mejorar touch targets en dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .icon-btn,
    .nav-btn,
    .tab,
    .watch-btn,
    .league-btn,
    .close-modal,
    .close-news-modal {
        min-height: 44px;
        min-width: 44px;
    }
    
    .match-card,
    .news-card,
    .channel-card-mini {
        cursor: default;
    }
}

/* Mejoras para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
    body {
        background: #000;
    }
}

/* Animaciones reducidas para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .app-header,
    .bottom-nav,
    .icon-btn,
    .watch-btn,
    .important-matches-btn {
        display: none;
    }
    
    .app-container {
        max-width: 100%;
        box-shadow: none;
    }
    
    .match-card,
    .news-card {
        page-break-inside: avoid;
    }
}

/* ========================================
   TARJETAS CREATIVAS - PRÓXIMOS PARTIDOS
   ======================================== */

.match-card-creative {
    background: linear-gradient(145deg, #1e1e2e 0%, #151520 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 69, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.match-card-creative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF4500, #FF6B35, #FFD700);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.match-card-creative:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.25),
                0 0 30px rgba(255, 107, 53, 0.1);
}

.match-card-creative:hover::before {
    opacity: 1;
}

.match-card-creative .card-header {
    position: relative;
    height: 85px;
    overflow: hidden;
}

.match-card-creative .card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) saturate(1.2);
    transition: all 0.4s ease;
}

.match-card-creative:hover .card-header img {
    filter: brightness(0.6) saturate(1.4);
    transform: scale(1.1);
}

.match-card-creative .card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(21, 21, 32, 0.95) 100%);
}

/* Fecha Creativa - Esquina superior izquierda */
.creative-date {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 50px;
}

.creative-date .date-day {
    font-size: 9px;
    font-weight: 600;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.creative-date .date-number {
    font-size: 18px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.creative-date .date-month {
    font-size: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hora Creativa - Esquina superior derecha */
.creative-time {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #FF4500 0%, #FF6B35 100%);
    border-radius: 20px;
    padding: 5px 10px;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.creative-time i {
    font-size: 10px;
    color: white;
    animation: clockPulse 2s ease-in-out infinite;
}

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

.creative-time .time-value {
    font-size: 11px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

/* Contenido de la tarjeta */
.match-card-creative .card-content {
    padding: 15px 12px 12px;
    position: relative;
}

/* Teams Container Creativo */
.teams-creative {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

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

.team-creative .team-logo-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.match-card-creative:hover .team-logo-wrapper {
    border-color: rgba(255, 107, 53, 0.4);
    background: rgba(255, 107, 53, 0.1);
}

.team-creative .team-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-creative .team-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* VS Creativo */
.vs-creative {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
}

.vs-creative .vs-badge {
    font-size: 12px;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.vs-creative .vs-line {
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Estadio */
.venue-creative {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 10px;
}

.venue-creative i {
    font-size: 10px;
    color: #FF6B35;
}

.venue-creative span {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Botón Próximamente Creativo */
.btn-upcoming-creative {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.15) 0%, rgba(255, 107, 53, 0.1) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 10px;
    border-radius: 12px;
    color: #FF6B35;
    font-weight: 600;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-upcoming-creative i {
    font-size: 11px;
}

.btn-upcoming-creative:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.3);
}

/* Animación de entrada */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-card-creative {
    animation: slideUpFade 0.5s ease forwards;
}

.match-card-creative:nth-child(2) {
    animation-delay: 0.1s;
}

.match-card-creative:nth-child(3) {
    animation-delay: 0.2s;
}

.match-card-creative:nth-child(4) {
    animation-delay: 0.3s;
}

/* Efecto Shine */
.match-card-creative .shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.match-card-creative:hover .shine-effect {
    left: 200%;
}

/* Responsive para tarjetas creativas */
@media (max-width: 380px) {
    .match-card-creative .card-header {
        height: 75px;
    }
    
    .creative-date {
        padding: 4px 8px;
        min-width: 42px;
    }
    
    .creative-date .date-number {
        font-size: 16px;
    }
    
    .creative-time {
        padding: 4px 8px;
    }
    
    .creative-time .time-value {
        font-size: 10px;
    }
    
    .team-creative .team-logo-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .team-creative .team-name {
        font-size: 10px;
    }
}
