/* Estilos para as páginas de transmissões esportivas */

/* Estilos para a navegação */
.nav-links {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(229, 9, 20, 0.2);
}

.nav-link.active {
    background-color: #e50914;
    color: white;
}

/* Estilos para o slider de transmissões */
.jogos-slider {
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.slider-container {
    overflow: hidden;
    width: 100%;
    height: 300px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slider-slide {
    flex: 0 0 100%;
    position: relative;
    height: 100%;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6); /* Aumenta a visibilidade da imagem de fundo */
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.9));
    color: white;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide-title {
    font-size: 2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
}

.slide-time {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #ddd;
    text-align: center;
    width: 100%;
}

.live-indicator {
    color: red;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.slide-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    text-align: center;
    margin-top: 12px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 2;
}

.slider-control {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.slider-control:hover {
    background-color: rgba(229, 9, 20, 0.8);
}

/* Estilos para a grade de transmissões */
.jogos-title {
    margin: 30px 0 20px;
    font-size: 1.8em;
    color: #fff;
    text-align: center;
}

.jogos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.jogos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

/* Media Query para telas menores (versão mobile) */
@media (max-width: 768px) {
    .jogo-card {
        width: 100%; /* Ocupa 100% da largura do contêiner */
        margin: 0 auto; /* Centraliza o card */
    }

    .slide-content {
        justify-content: flex-start; /* Alinha ao topo */
        padding-top: 20px;
    }

    .slide-title {
        font-size: 1.5em; /* Reduz o tamanho do título */
        margin-bottom: 5px;
    }

    .slide-time {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .slide-actions {
        margin-top: 10px;
        text-align: center;
    }
}

.transmissao-card, .jogo-card {
    background-color: #282828;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    /* A largura será controlada pelo grid, então removemos a largura fixa */
}

.transmissao-card:hover, .jogo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.transmissao-image, .jogo-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.transmissao-info, .jogo-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.transmissao-title, .jogo-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0 5px;
    color: #E0E0E0;
    text-align: center;
}

.jogo-date {
    font-size: 0.9rem;
    color: #B0B0B0;
    text-align: center;
    margin-bottom: 10px;
}

.transmissao-time {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 15px;
    text-align: center;
}

.transmissao-actions, .jogo-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

/* Estilo para o indicador de ao vivo */
.ao-vivo-agora {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e50914;
    font-weight: bold;
    font-size: 0.85em;
    margin-bottom: 15px; /* Adicionado para dar espaço antes dos botões */
}

.em-breve {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc107; /* Cor amarela para indicar 'em breve' */
    font-weight: bold;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.status-live {
    color: red;
    font-weight: bold;
    margin-right: 10px;
}

.status-soon {
    color: #ff6600;
    font-weight: bold;
    margin-right: 10px;
}

.status-scheduled {
    color: #0066cc;
    font-weight: bold;
    margin-right: 10px;
}

/* Estilos para os títulos de categoria na grade de transmissões */
.jogos-category-title {
    width: 100%;
    padding: 10px 0;
    margin: 15px 0 10px 0;
    font-size: 1.2rem;
    color: #fff;
    border-bottom: 2px solid #333;
    text-align: left;
}

/* Estilo para o ícone pulsante */
.pulse-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #e50914;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(229, 9, 20, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    }
}

/* Estilos para quando não há transmissões */
.no-games {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/soccer-background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1000;
    margin: 0;
    padding: 0;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.no-transmissoes {
    position: static;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    margin: 0;
    padding: 0;
    z-index: 1;
}

.no-games-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(26, 26, 26, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(229, 9, 20, 0.5);
}

.no-transmissoes-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.no-transmissoes .btn-back {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1.1em;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
    text-decoration: none;
}

.no-transmissoes .btn-back:hover {
    background-color: #ff0a16;
    transform: scale(1.05);
}

.no-transmissoes-image {
    display: none; /* Ocultamos a imagem no-games.svg pois usaremos o fundo */
}

.no-transmissoes h2, .no-games h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.no-transmissoes p, .no-games p {
    font-size: 1.3em;
    color: #ddd;
    margin-bottom: 25px;
}

/* Estilos para o indicador de carregamento */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #e50914;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

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

/* Estilos para a página de assistir ao vivo */
.transmissoes-ao-vivo-list {
    margin-top: 20px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.transmissao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid red;
    transition: background-color 0.3s;
    background-color: #222222;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 9.9);
}

.transmissao-item:hover {
    background-color: #2E1819;
    border-bottom: 1px solid white;
}

.transmissao-item.current {
    background-color: #210103;
    border-bottom: 1px solid white;
}
.transmissao-item.current:hover {
    border-bottom: 1px solid red;
}

.transmissao-item h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
}

.jogo-time span {
    font-size: 0.85em;
    color: #aaa;
}

.btn-watch {
    width: 100%;
    max-width: 150px;
    text-align: center;
    background-color: #e50914;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.4s;
    margin: 5px;
    text-decoration: none;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
}

.player-option {
    background-color: transparent !important;
    border: 1px solid #fff !important;
    color: #fff !important;
}

.player-option.active {
    background-color: #e50914 !important;
    border-color: #e50914 !important;
}

.btn-watch-small {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 8px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
    text-decoration: none;
    transition: background-color 0.3s;
    border-bottom: 1px solid red;
    border-top: 1px solid red;
}

.btn-watch-small:hover {
    background-color: #222;
}

.watching-now {
    font-size: 0.85em;
    color: #e50914;
    font-weight: bold;
}

.no-transmissoes-message, .error-message {
    padding: 20px;
    text-align: center;
    color: #aaa;
}

.error-message {
    color: #e50914;
}

.player-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 0;
    position: static;
    z-index: 1;
    margin: 0;
}

.player-error p {
    margin-bottom: 20px;
    color: #aaa;
}

/* Estilos para seleção de players */
.player-options {
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none; /* Adicionado para permitir cliques no player */
}

.player-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 0.9em;
}

.player-option {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto; /* Adicionado para tornar os botões clicáveis */
}

.player-option:hover {
    background-color: #555;
}

.player-option.active {
    background-color: #e50914;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
    .slider-container {
        height: 250px;
    }
    
    .slide-title {
        font-size: 1.5em;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .transmissoes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 200px;
    }
    
    .slide-title {
        font-size: 1.2em;
    }
    
    .slide-time {
        font-size: 1em;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide-actions {
        gap: 10px;
    }
    
    .no-transmissoes-content {
        max-width: 90%;
        padding: 25px;
    }
    
    .no-transmissoes h2 {
        font-size: 1.8em;
    }
    
    .no-transmissoes p {
        font-size: 1.1em;
    }
    
    .no-transmissoes .btn-back {
        padding: 10px 20px;
        font-size: 1em;
    }
    
    .jogos-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-control {
        width: 30px;
        height: 30px;
        font-size: 1.2em;
    }
}