/* ==========================================================
   SEKCE YOUTUBE VIDEO
   ========================================================== */
.video-vozu-section h2 {
    margin-bottom: 15px;
}

.jc-youtube-input-wrap {
    margin-bottom: 15px;
}

.jc-youtube-input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #555;
    background-color: #1e1e24;
    color: #fff;
    font-size: 15px;
    box-sizing: border-box; /* 🛑 DŮLEŽITÉ: Zabrání přetečení inputu na mobilu mimo obrazovku */
}

/* Zajišťuje absolutně responzivní poměr stran 16:9 pro video */
.jc-youtube-preview {
    width: 100%;
    max-width: 900px; 
    margin: 0 auto; 
    aspect-ratio: 16 / 9; 
    border-radius: 8px;
    background: #2a2a35;
    border: 1px solid #444;
    display: none; /* V základu skryté */
    overflow: hidden;
    position: relative;
}

.jc-youtube-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================
   RESPONZIVITA (Tablety a Mobily)
   ========================================================== */

/* Pro menší notebooky a tablety na šířku (do 992px) */
@media (max-width: 992px) {
    .video-vozu-section h2 {
        font-size: 20px;
    }
}

/* Pro klasické tablety a velké mobily na šířku (do 768px) */
@media (max-width: 768px) {
    .jc-youtube-input {
        padding: 10px;
        font-size: 14px;
    }
    .video-vozu-section h2 {
        margin-bottom: 12px;
    }
}

/* Pro klasické mobily na výšku (do 480px) */
@media (max-width: 480px) {
    .video-vozu-section h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .jc-youtube-input {
        padding: 8px;
        font-size: 13px;
    }
    .jc-youtube-preview {
        border-radius: 4px; /* Menší zaoblení rohů na malém displeji vypadá lépe */
    }
}

/* ==========================================================
   Video vozu 2.0 – karta s nahledem a stavem
========================================================== */
body.jc .video-vozu-section {
    max-width: none !important;
    margin: 24px 10px 34px !important;
    padding: 26px !important;
    border: 1px solid rgba(255,255,255,.70) !important;
    border-radius: 14px !important;
    background:
      radial-gradient(circle at 16% 0%, rgba(69,145,213,.12), transparent 30%),
      linear-gradient(135deg, #353544 0%, #30303d 100%) !important;
    box-shadow: 0 16px 36px rgba(0,0,0,.42) !important;
    color: #f5f7fb !important;
}

body.jc .video-vozu-section .jc-video-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

body.jc .video-vozu-section .jc-video-kicker {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(31,41,55,.72);
    color: #9fb8d8;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

body.jc .video-vozu-section h2 {
    margin: 0 !important;
    color: #f5f7fb !important;
    font-size: clamp(27px, 2.25vw, 38px) !important;
    font-weight: 900 !important;
    letter-spacing: -.035em !important;
    line-height: 1.08 !important;
}

body.jc .video-vozu-section .jc-video-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(148,163,184,.14);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

body.jc .video-vozu-section.has-video .jc-video-status {
    border-color: rgba(52,211,153,.36);
    background: rgba(16,185,129,.20);
    color: #d1fae5;
}

body.jc .video-vozu-section .jc-youtube-input-wrap {
    position: relative;
    margin: 0 0 16px !important;
    padding: 16px !important;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(26,26,34,.48);
}

body.jc .video-vozu-section .jc-youtube-input-wrap::before {
    content: "▶";
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(201,59,24,.18);
    border: 1px solid rgba(201,59,24,.32);
    color: #fed7aa;
    font-size: 15px;
}

body.jc .video-vozu-section .jc-youtube-input {
    height: 56px !important;
    padding: 0 16px 0 60px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 13px !important;
    background: #1f2028 !important;
    color: #f8fafc !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
}

body.jc .video-vozu-section .jc-youtube-input::placeholder {
    color: rgba(226,232,240,.42);
}

body.jc .video-vozu-section .jc-youtube-input:focus {
    outline: none !important;
    border-color: rgba(69,145,213,.72) !important;
    box-shadow: 0 0 0 3px rgba(69,145,213,.16) !important;
}

body.jc .video-vozu-section .jc-youtube-preview {
    max-width: none !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 16px !important;
    background:
      radial-gradient(circle at 50% 40%, rgba(69,145,213,.12), transparent 36%),
      #1d1d27 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 12px 26px rgba(0,0,0,.28) !important;
}

body.jc .video-vozu-section:not(.has-video) .jc-youtube-preview {
    display: block !important;
}

body.jc .video-vozu-section:not(.has-video) .jc-youtube-preview::before {
    content: "🎬 Vlož YouTube odkaz a náhled se zobrazí tady";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: rgba(226,232,240,.72);
    font-size: clamp(16px, 1.5vw, 22px);
    font-weight: 850;
    text-align: center;
}

body.jc .video-vozu-section:not(.has-video) .jc-youtube-preview iframe {
    display: none !important;
}

body.jc .video-vozu-section.has-video .jc-youtube-preview {
    display: block !important;
}

body.jc .video-vozu-section .jc-youtube-external-card {
    display: none;
}

body.jc .video-vozu-section .jc-youtube-preview.is-external {
    display: block !important;
    background:
      linear-gradient(180deg, rgba(15,23,42,.28), rgba(15,23,42,.82)),
      var(--yt-thumb),
      #1d1d27 !important;
    background-size: cover !important;
    background-position: center !important;
}

body.jc .video-vozu-section .jc-youtube-preview.is-external iframe {
    display: none !important;
}

body.jc .video-vozu-section .jc-youtube-preview.is-external .jc-youtube-external-card {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    color: #f8fafc;
    text-decoration: none;
    text-align: left;
}

body.jc .video-vozu-section .jc-youtube-preview.is-external .jc-youtube-play {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #c93b18, #a72c12);
    box-shadow: 0 10px 24px rgba(0,0,0,.32);
    font-size: 24px;
}

body.jc .video-vozu-section .jc-youtube-preview.is-external strong {
    display: block;
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 900;
    line-height: 1.1;
}

body.jc .video-vozu-section .jc-youtube-preview.is-external small {
    display: block;
    margin-top: 6px;
    color: rgba(226,232,240,.72);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 768px) {
    body.jc .video-vozu-section {
        margin: 16px 10px 26px !important;
        padding: 12px !important;
        border-radius: 14px !important;
    }

    body.jc .video-vozu-section .jc-video-head {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 14px;
    }

    body.jc .video-vozu-section .jc-video-status {
        width: fit-content;
    }

    body.jc .video-vozu-section .jc-youtube-input-wrap {
        padding: 12px !important;
    }

    body.jc .video-vozu-section .jc-youtube-input-wrap::before {
        left: 24px;
    }

    body.jc .video-vozu-section .jc-youtube-input {
        height: 52px !important;
        padding-left: 56px !important;
        font-size: 14px !important;
    }

    body.jc .video-vozu-section .jc-youtube-preview {
        border-radius: 14px !important;
    }
}
