* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #0a2f2a 0%, #06402e 50%, #022218 100%);
    font-family: 'Poppins', 'Impact', 'Arial Black', 'Segoe UI', sans-serif;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== MENU DE CANALES ========== */
.menu-screen {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    position: relative;
}

.hero-mundial {
    background: radial-gradient(circle at 30% 20%, #e6a017, #9e6018);
    border-radius: 50px 50px 30px 30px;
    padding: 45px 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.5), inset 0 1px 4px rgba(255,215,0,0.5);
    border-bottom: 6px solid #ffdd88;
    position: relative;
    overflow: hidden;
}

.hero-mundial::after {
    content: "ARGENTINA   BRASIL   ALEMANIA   FRANCIA   INGLATERRA   ESPAÑA   URUGUAY   MEXICO";
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: #fff8e0;
    background: #00000066;
    padding: 4px;
    font-family: monospace;
    font-weight: bold;
}

.hero-mundial h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #FFF9C4, #FFE600);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 4px 4px 0px #8b4f1a;
    margin-bottom: 15px;
}

.hero-mundial p {
    font-size: 1.2rem;
    background: #000000aa;
    display: inline-block;
    padding: 8px 28px;
    border-radius: 60px;
    backdrop-filter: blur(4px);
    font-weight: bold;
}

.card-loco {
    background: #1a2a24dd;
    backdrop-filter: blur(5px);
    border-radius: 40px;
    padding: 24px 20px;
    margin: 20px 0 35px;
    text-align: center;
    border: 2px solid #e6b422;
    box-shadow: 0 8px 0 #5a3a15;
}

.card-loco .texto-bizarro {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Impact', 'Arial Black', sans-serif;
    color: #ffdf80;
    text-transform: uppercase;
}

.card-loco .sub-raya {
    font-size: 0.9rem;
    color: #cce6b0;
    margin-top: 10px;
}

.anuncio-mundial-only {
    background: #000000bb;
    border-left: 12px solid #e6b422;
    border-right: 12px solid #e6b422;
    padding: 20px 15px;
    margin: 25px 0 35px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    font-family: 'Arial Black', monospace;
    backdrop-filter: blur(3px);
    border-radius: 30px;
}

.anuncio-mundial-only span {
    font-size: 0.85rem;
    display: block;
    color: #ffe0a3;
    margin-top: 10px;
}

.canales-mundial {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    margin: 40px 0 45px;
}

.card-canal {
    background: linear-gradient(145deg, #0e2a20, #061f15);
    width: 290px;
    border-radius: 48px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid #e6b422;
    box-shadow: 0 18px 25px -8px black;
    cursor: pointer;
}

.card-canal:hover {
    transform: scale(1.02);
    border-color: #ffdd77;
    box-shadow: 0 0 18px #f5b042;
}

.cabecera-canal {
    background: #e6b422;
    padding: 20px 10px;
    text-align: center;
    border-bottom: 4px solid #a5681a;
}

.cabecera-canal h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1f2c1a;
    text-shadow: 1px 1px 0px #ffcd6b;
}

.cabecera-canal .badge-mundial {
    background: #2a5a2e;
    color: white;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 8px;
}

.cuerpo-canal {
    padding: 24px 18px 30px;
    text-align: center;
}

.cuerpo-canal p {
    color: #e2f0da;
    font-size: 0.85rem;
    margin-bottom: 25px;
    line-height: 1.4;
}

.btn-ver {
    background: #e6b422;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 0;
    width: 85%;
    border-radius: 60px;
    font-family: 'Arial Black', sans-serif;
    color: #001e0e;
    cursor: pointer;
    transition: 0.07s linear;
    box-shadow: 0 5px 0 #784e1a;
}

.btn-ver:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #784e1a;
}

.footer-mundial {
    background: #062010dd;
    border-radius: 40px;
    padding: 22px;
    text-align: center;
    margin-top: 40px;
    border-top: 3px solid #e6b422;
}

.banderas-linea {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 15px 0 5px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #ffdd88;
}

.banderas-linea span {
    background: #00000066;
    padding: 3px 10px;
    border-radius: 30px;
}

.footer-mundial strong {
    color: #ffd966;
}

/* ========== REPRODUCTOR + CHAT ========== */
.reproductor-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.top-bar {
    background: #0a1a14dd;
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e6b422;
    flex-shrink: 0;
}

.top-bar h1 {
    font-size: 1rem;
    color: #ffdf80;
}

.back-btn {
    background: #1f2a48;
    border: none;
    color: #ffdd99;
    padding: 6px 15px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
}

.back-btn:hover {
    background: #f5a623;
    color: #0a0f1e;
}

.flex-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 2px;
    background: #000;
}

.player-section {
    flex: 3;
    display: flex;
    flex-direction: column;
    background: #000000;
    min-width: 0;
}

.iframe-box {
    position: relative;
    width: 100%;
    background: #000;
    flex: 1;
    min-height: 0;
}

.iframe-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.options-toolbar {
    background: #111827;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #e6b422;
    flex-shrink: 0;
}

.options-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.options-group label {
    font-weight: bold;
    font-size: 0.7rem;
    color: #ffdd99;
}

select {
    background: #0f172a;
    color: white;
    padding: 5px 10px;
    border-radius: 40px;
    border: 1px solid #f5a623;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.7rem;
}

.ctrl-btn {
    background: #1f2a48;
    border: none;
    color: #ffdd99;
    padding: 5px 12px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.1s;
    font-size: 0.7rem;
}

.ctrl-btn:hover {
    background: #f5a623;
    color: #0a0f1e;
}

.chat-sidebar {
    flex: 1.2;
    background: #0f1422;
    display: flex;
    flex-direction: column;
    border-left: 2px solid #e6b422;
    min-width: 320px;
}

.chat-header-bar {
    background: #1a1f2e;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 0.75rem;
    border-bottom: 1px solid #f5a623;
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-embed {
    flex: 1;
    width: 100%;
    background: #0a0e1a;
    min-height: 0;
}

.chat-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Ocultar chat */
.chat-hidden .chat-sidebar {
    display: none;
}

.chat-hidden .player-section {
    flex: 1;
}

/* Pantalla completa del iframe */
.iframe-box:fullscreen {
    background: black;
}

.iframe-box:fullscreen iframe {
    height: 100vh;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-mundial h1 {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
    .card-loco .texto-bizarro {
        font-size: 1rem;
    }
    .canales-mundial {
        gap: 20px;
    }
    .card-canal {
        width: 260px;
    }
    .flex-container {
        flex-direction: column;
    }
    .chat-sidebar {
        min-width: auto;
        height: 35vh;
        border-left: none;
        border-top: 2px solid #e6b422;
    }
    .player-section {
        flex: 2;
    }
    .options-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}