/* YOHO!YOUNG public home: video first, chrome second. */
body { margin: 0; background: #0d0d0d; }

.yh-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    background: #0d0d0d;
}

.yh-video-carousel,
.yh-fallback-bg {
    position: absolute;
    inset: 0;
}

.yh-video-carousel { z-index: 1; }

.yh-video-slide {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity;
}

.yh-video-slide.active { opacity: .78; }
.yh-video-slide.preloading { opacity: 0; }

.yh-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 9, 8, .22), transparent 28%, transparent 72%, rgba(8, 9, 8, .24));
}

.yh-fallback-bg {
    z-index: 0;
    background: #282a27;
}

.yh-carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.yh-indicator {
    width: 28px;
    height: 32px;
    padding: 5px 0;
    border: 0;
    background: linear-gradient(rgba(255,255,255,.42), rgba(255,255,255,.42)) center / 100% 1px no-repeat;
    cursor: pointer;
    opacity: .72;
    transition: width .35s ease, opacity .35s ease, background-size .35s ease;
}

.yh-indicator:hover,
.yh-indicator:focus-visible { opacity: 1; }

.yh-indicator.active {
    width: 54px;
    opacity: 1;
    background-image: linear-gradient(#fff, #fff);
}

.yh-indicator:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 3px;
}

.yh-hero-playback {
    position: absolute;
    right: 28px;
    bottom: 24px;
    z-index: 5;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 50%;
    color: #fff;
    background: rgba(10, 12, 10, .28);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.yh-hero-playback:hover { background: rgba(10, 12, 10, .52); border-color: #fff; }
.yh-hero-playback:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.yh-hero-playback:active { transform: scale(.94); }

@media (max-width: 767px) {
    .yh-hero-section { min-height: 480px; }
    .yh-carousel-indicators { left:16px; bottom:20px; width:calc(100% - 92px); gap:4px; transform:none; }
    .yh-indicator { width:auto; min-width:0; flex:1; }
    .yh-indicator.active { width:auto; flex:1.8; }
    .yh-hero-playback { right: 16px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .yh-video-slide,
    .yh-indicator { transition: none; }
}
