/* Estilos para el contenedor principal del grid */
.mlb-predictions-grid-container {
    font-family: sans-serif;
    padding: 20px;
}

.mlb-predictions-grid-container h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 1rem!important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    white-space: normal;
}

/* Estilos para la lista que actuará como el grid */
.mlb-predictions-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); /* Cards responsivas con ancho mínimo de 350px */
    gap: 20px;
    justify-content: start;
}

/* Estilos para cada card de juego */
.game-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}


/* Estilos para el encabezado de la card (hora y equipos) */
.card-header {
    background-color: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-header .game-time-h {
    font-weight: bold;
    color: #333;
}

.card-header .teams-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header .teams-header .team {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-header .teams-header .team img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}

.card-header .teams-header .team .team-name {
    font-weight: bold;
    color: #555;
    text-align: center;
}

.card-header .teams-header .team .team-record {
    font-size: 0.8em;
    color: #777;
}

.card-header .teams-header .vs-separator-m {
    font-size: 1.2em;
    color: #999;
    margin: 0 10px;
}

/* Estilos para las secciones dentro de la card */
.card-section {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.card-section:last-child {
    border-bottom: none;
}

/* Estilos para el título en móvil */
.card-section h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 1rem!important;
    word-wrap: break-word; /* Fuerza el salto de palabras largas */
    overflow-wrap: break-word; /* Alternativa moderna */
    hyphens: auto; /* Agrega guiones para palabras largas (si el navegador lo soporta) */
    max-width: 100%; /* Asegura que no exceda el ancho del contenedor */
    white-space: normal;

}
.prediction-item-published {
    padding: 6px;
}

/* Media query para móviles */
@media (max-width: 767px) {
    .card-section h2 {
        font-size: 1em; /* Reduce ligeramente el tamaño en móviles */
        line-height: 1.3; /* Mejor espaciado entre líneas */
        padding: 0 5px; /* Pequeño padding para evitar que toque los bordes */
    }
    
    .mlb-predictions-grid-container {
        padding: 10px 0px 0px;
    }

  
    /* Específico para el título de pronósticos */
    .manual-prediction-section h2 {
        white-space: normal; /* Permite múltiples líneas */
        text-overflow: initial; /* Anula cualquier ellipsis */
    }

    .game-card {
        white-space: nowrap;
    }

    .card-section {
        padding: 7px;
    }

    .team-name {
        white-space: normal; /* Permite múltiples líneas en móviles */
        font-size: 0.85rem!important;
    }
    
    .team {
        flex-direction: column;
        padding: 0 3px;
    }
    
    .team img {
        width: 25px;
        height: 25px;
    }
    
    .vs-separator-m {
        font-size: 0.9rem;
    }
}
/* Estilos para la sección de lanzadores */
.pitchers-section-model {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    /* margin: -61px; */
}

.pitchers-section-model .pitcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pitchers-section-model .pitcher .pitcher-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}

.pitchers-section-model .pitcher .pitcher-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pitchers-section-model .pitcher .pitcher-name {
    font-weight: bold;
    color: #444;
    font-size: 0.9em;
}

.pitchers-section-model .pitcher .pitcher-details,
.pitchers-section-model .pitcher .pitcher-record,
.pitchers-section-model .pitcher .pitcher-era,
.pitchers-section-model .pitcher .no-stats {
    font-size: 0.8em;
    color: #777;
}

/* Estilos para la sección de predicción automática */
.prediction-section-model .prediction-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.prediction-section-model .prediction-item .prediction-label {
    font-weight: bold;
    color: #555;
}

.prediction-section-model .prediction-item .prediction-value {
    color: #333;
}

.prediction-section-model .pitcher-analysis {
    margin-top: 10px;
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
}

/* Estilos para la sección de predicción manual */
.manual-prediction-section .no-prediction {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9em;
    padding: 10px 0;
    text-align: center;
}

.manual-prediction-section .prediction-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0;
}

.manual-prediction-section .prediction-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Over/Under Styles */
.over-under-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.over-under-section label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #555;
}

.over-under-section select {
    width: 100%;
    padding: 5px;
    font-size: 13px;
}

/* Prediction Display Styles */
.prediction-item .prediction-value.over {
    color: #28a745; /* Verde para Over */
}

.prediction-item .prediction-value.under {
    color: #dc3545; /* Rojo para Under */
}

.prediction-item.odds-item {
    display: flex; /* Utiliza flexbox para centrar el contenido */
    justify-content: center; /* Centra horizontalmente el contenido */
    align-items: center; /* Centra verticalmente el contenido (si es necesario) */
    /* Otros estilos que desees aplicar al contenedor */
    padding: 10px; /* Ejemplo de espaciado interno */
    margin: 10px 0; /* Ejemplo de margen superior e inferior */
    border: 1px solid #eee; /* Ejemplo de borde */
    border-radius: 5px; /* Ejemplo de esquinas redondeadas */
    background-color: #f9f9f9; /* Ejemplo de color de fondo */
}

.prediction-item.odds-item span.prediction-label {
    /* Estilos específicos para la etiqueta "Cuotas:", si es necesario */
    font-weight: bold;
    color: #333;
}

/* Si deseas centrar solo el texto dentro del span (aunque con flexbox en el div padre ya está centrado) */
.prediction-item.odds-item span {
    text-align: center;
}


.winner-selection .prediction-value {
    font-weight: 600;
    font-size: 16px;
    color: #222;
    line-height: 1.2;
}
/* Estilos para la sección de pronóstico manual */
.manual-prediction-section {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 15px;
}

.selected-team {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.team-logo.selected {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border: 2px solid #28a745;
    border-radius: 50%;
    padding: 2px;
    flex-shrink: 0;
}

.team-name-container {
    display: flex;
    flex-direction: column;
}

.prediction-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 3px;
}

.team-name {
    font-weight: 600;
    font-size: 16px;
    color: #212529;
}


.prediction-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.prediction-label {
    font-weight: 500;
    color: #6c757d;
    margin-right: 8px;
    min-width: 120px;
}

.prediction-value {
    color: #212529;
}

.no-prediction {
    color: #6c757d;
    font-style: italic;
    padding: 10px 0;
    text-align: center;
}

/* Responsive */
/* Media query específica para pantallas muy estrechas */
@media (max-width: 400px) {
    .game-card {
        border-radius: 4px;
        width: calc(100% - 12px);
    }
    
    .card-header {
        padding: 8px;
    }
    
    
}
@media (max-width: 480px) {
    .selected-team {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .team-name-container {
        align-items: center;
    }
    
    .prediction-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .prediction-label {
        margin-bottom: 5px;
        margin-right: 0;
    }
}
.selected-totals {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}


.team-name-container {
    display: flex;
    flex-direction: column;
}

.prediction-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.prediction-value.team-name {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

/* Estilos específicos para over/under */
.prediction-value.team-name:contains("Alta") {
    color: #28a745; /* Verde para Over */
}

.prediction-value.team-name:contains("Baja") {
    color: #dc3545; /* Rojo para Under */
}
/* Contenedor principal - solo aparece cuando hay comentarios */
.prediction-comment-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e1e5eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 15px 0 0 0; /* Solo margen superior */
}

/* Eliminamos el margen inferior del último elemento */
.prediction-item:last-child,
.prediction-comment-card:last-child {
    margin-bottom: 0;
}

/* Resto del CSS permanece igual */
.comment-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f6 100%);
    border-bottom: 1px solid #e1e5eb;
}

.comment-card-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #4a5568;
    overflow-wrap: break-word;
}
/* Gira la flecha 180 grados solo para "Under" */
.selected-totals.under-direction img.team-logo.selected {
    transform: rotate(180deg);
    transition: transform 0.3s ease; /* Animación suave opcional */
}

/* Asegura que la transformación no afecte el layout */
.selected-totals img.team-logo.selected {
    transform-origin: center;
    display: inline-block; /* Necesario para que funcione la transformación */
}
.load-more-wrapper {
    text-align: center;
    margin: 20px 0;
}

#load-more-btn {
    background-color: #e50914;
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

#load-more-btn:hover {
    background-color: #c40812;
}

#load-more-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

#load-more-btn .spinner {
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Estilos específicos para la plantilla single de predicciones MLB */
.mlb-prediction-single-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.mlb-prediction-article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.prediction-post-title {
    text-align: center;
    margin-bottom: 30px;
}

.prediction-post-title h1 {
    color: #1a3e6f;
    margin-bottom: 10px;
    font-size: revert;
}

.title-decoration {
    height: 3px;
    width: 100px;
    background: #d52b1e;
    margin: 0 auto;
}

.prediction-header {
    margin-bottom: 30px;
    text-align: center;
}

.team-matchup {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.team-h {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

/* .team-h.winner-team {
    background: rgba(213, 43, 30, 0.1);
    border: 2px solid #d52b1e;
}
 */
.team-h img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.team-h h3 {
    margin: 0 0 5px;
    color: #333;
}

.team-record {
    color: #666;
    font-size: 0.9em;
}

.vs-separator {
    font-size: 1.5em;
    font-weight: bold;
    color: #1a3e6f;
    text-align: center;
    padding: 0 15px;
}

.game-time {
    font-size: 0.93em;
    color: #333;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.game-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #666;
    font-size: 0.9em;
    margin-top: 15px;
}

.prediction-content {
    margin-top: 30px;
}

/* Sección de lanzadores (específico de MLB) */
.pitchers-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.pitchers-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #1a3e6f;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.pitchers-comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.pitcher-h {
    flex: none;
    min-width: 250px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pitcher-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: center;
}

.pitcher-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #eee;
}

.pitcher-info h4 {
    margin: 0 0 5px;
    color: #333;
}

.jersey-number {
    color: #666;
    font-size: 0.9em;
}

.pitcher-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat {
    padding: 5px 10px;
}

.stat-label {
    display: block;
    font-size: 0.8em;
    color: #666;
}

.stat-value {
    font-weight: bold;
    color: #1a3e6f;
}

.pitcher-advantage {
    margin-top: 20px;
    text-align: center;
    font-style: italic;
    color: #d52b1e;
}

/* Resto de estilos (similares a NBA pero con colores MLB) */
.prediction-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.prediction-winner, .over-under-prediction {
    flex: 1;
    min-width: 250px;
}

.prediction-winner h3, .over-under-prediction h3 {
    color: #1a3e6f;
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.winner-card {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 7px;
    border-radius: 8px;
    margin-top: 15px;
}

.winner-card img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.ou-card {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}

.ou-card.alta {
    background: rgba(0, 128, 0, 0.1);
    color: #006400!important;
}

.ou-card.baja {
    background: rgba(255, 0, 0, 0.1);
    color: #d52b1e!important;
}

.expert-analysis, .editor-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.expert-analysis h3, .editor-content h3 {
    color: #1a3e6f;
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.prediction-footer {
    color: #666;
    font-size: 0.9em;
    text-align: center;
}

/* Responsive */
/* Media Query para dispositivos móviles */
@media (max-width: 768px) {
    .mlb-prediction-single-container {
        padding: 5px; /* Menos padding en los bordes */
    }
    
    .mlb-prediction-article {
        padding: 20px 15px; /* Más compacto */
    }
    
    .prediction-post-title h1 {
        font-size: 1.8em; /* Título más pequeño */
    }
    
    .team-h {
        min-width: 0; /* Eliminar mínimo */
        padding: 10px; /* Más compacto */
    }
    
    .game-time {
        display: block;
        margin-top: 3px;
    }
    .nba-predictions-grid .game-time {
        display: flex;
        justify-content: space-between;
        font-weight: bold;
    }
    /* Ajustes adicionales para contenido interno */
    .prediction-content {
        margin-top: 20px;
    }
    
    .pitchers-section,
    .expert-analysis, 
    .editor-content {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .winner-card,
    .ou-card {
        padding: 12px;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .prediction-post-title h1 {
        font-size: 1.5em; /* Título aún más pequeño */
    }
    
    .team-h h3 {
        font-size: 1em; /* Nombre equipo más pequeño */
    }
    
    .team-h img {
        width: 50px;
        height: 50px;
    }
}
.container-main-x789 {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    white-space: nowrap;

}

.title-heading-x789 {
    text-align: center;
    color: #1a3e6f;
    border-bottom: 2px solid #d52b1e;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.item-card-x789 {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 20px;
    white-space: nowrap;
}

.header-section-x789 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.date-text-x789 {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.teams-wrapper-x789 {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 15px;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.team-item-x789 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-logo-x789 {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.vs-text-x789 {
    color: #888;
    font-weight: bold;
}

.predictions-section-x789 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prediction-item-x789 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
}

.prediction-logo-x789 {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.prediction-details-x789 {
    display: flex;
    gap: 5px;
}

.prediction-label-x789 {
    color: #555;
}

.type-winner-x789 {
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
}

.type-over_under-x789 {
    background-color: #f6ffed;
    border-left: 4px solid #52c41a;
}

.notice-box-x789 {
    text-align: center;
    padding: 20px;
    background: #fff8e6;
    border: 1px solid #ffe58f;
    border-radius: 4px;
}
.author-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    margin: 30px 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}
.author-image img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}
.author-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}
.author-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}
.breadcrumbs {
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #193e75;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs [aria-current="page"] {
    color: #333;
    font-weight: 500;
}

.featured-image-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.featured-image-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.featured-image-container-single {
    text-align: center;
}

.featured-image-container-single img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.responsive-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}
.responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.parley-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #FFD700; /* Dorado */
    color: #000;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Estilos para resaltar selecciones de parlay */
.game-card.parley-selection {
    border-left: 5px solid #FFD700; /* Borde dorado para la tarjeta completa */
}

.prediction-item.parley-selection,
.selected-totals.parley-selection {
    background-color: #FFFBEB; /* Fondo amarillo claro para el mercado específico */
    border: 1px dashed #FFD700;
    padding: 5px;
    border-radius: 4px;
}
