/**
 * LANDU Style Banner Demo
 * Hero banner carousel for LANDU Video Center
 * Version: 7.0 - Cinematic Overlays & Exact Replication
 */

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'HarmonyOS Sans', 'Harmony_Regular', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #111214;
    /* LANDU Dark BG */
    color: #fff;
    overflow-x: hidden;
}

/* ==================== Main Container ==================== */
.landu-banner-demo-section {
    width: 100%;
    background: #111214;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.landu-banner-demo-container {
    width: 100%;
    /* Max width matches standard large screens but typically full width on LANDU homepage */
    /* They use a fluid container with max constraints on content */
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ==================== Main Banner (Top Area) ==================== */
.landu-banner-main {
    position: relative;
    width: 100%;
    /* Aspect ratio or fixed height. LANDU banner is often ~550px-650px depending on screen */
    height: 600px;
    background: #111214;
    overflow: hidden;
}

/* Background Media Area */
.landu-banner-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.landu-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.landu-banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.landu-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Focus on center/top often looks better for posters */
    object-position: center top;
}

/* Video Player */
.landu-banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.landu-banner-video.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ==================== Cinematic Gradients (The "Look") ==================== */
.landu-gradient-overlay {
    position: absolute;
    pointer-events: none;
    z-index: 4;
}

/* Top Gradient: Subtle darkening at top for header visibility */
.landu-gradient-overlay.gradient-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(180deg, rgba(17, 18, 20, 0.8) 0%, rgba(17, 18, 20, 0) 100%);
}

/* Left Gradient: Strong darkening for text readability */
.landu-gradient-overlay.gradient-left {
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(17, 18, 20, 1) 0%,
            rgba(17, 18, 20, 0.9) 15%,
            rgba(17, 18, 20, 0.6) 40%,
            rgba(17, 18, 20, 0) 100%);
}

/* Bottom Gradient: Seamless blend into thumbnail area */
.landu-gradient-overlay.gradient-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(0deg, #111214 0%, rgba(17, 18, 20, 0.8) 40%, rgba(17, 18, 20, 0) 100%);
}

/* ==================== Content Layer ==================== */
.landu-banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    padding-left: 60px;
    /* Standard left spacing */
    padding-bottom: 90px;
    /* Space for bottom area */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

/* Interactive elements inside content need pointer-events */
.landu-banner-content {
    /* We handle pointer events on children */
}

.landu-content-slide {
    position: absolute;
    bottom: 80px;
    /* Position above the thumbnail list */
    left: 60px;
    width: 500px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    /* Ease-out-cubicish */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: auto;
}

.landu-content-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Logo / Title */
.landu-banner-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* If using image logo, title text might be hidden or styled differently */
}

.landu-banner-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

/* Meta Tags & Ranking */
.landu-banner-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

/* Badge Styles */
.landu-badge {
    height: 20px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.landu-badge.rank-1 {
    background: linear-gradient(90deg, #FF6000 0%, #FF2100 100%);
    color: #fff;
}

.landu-badge.vip {
    background: linear-gradient(90deg, #E6CFA0 0%, #D4A047 100%);
    color: #583808;
}

.landu-badge.green {
    background-color: #00CC55;
    color: #fff;
}

/* Description Text */
.landu-banner-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 460px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Tag List (Category) */
.landu-tag-list {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.landu-tag-item:not(:last-child)::after {
    content: "|";
    margin: 0 8px;
    opacity: 0.4;
}

/* Controls (Buttons) */
.landu-banner-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.2s;
    /* Delayed fade in */
}

.landu-content-slide.active .landu-banner-actions {
    opacity: 1;
    transform: translateY(0);
}

.landu-btn {
    height: 40px;
    padding: 0 24px;
    border-radius: 20px;
    background: #00CC55;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, background 0.2s;
}

.landu-btn:hover {
    background: #00b34a;
    transform: scale(1.05);
}

.landu-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.landu-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== Thumbnail Navigation (Bottom) ==================== */
.landu-banner-thumbnails {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    /* Pull up into the banner area */
    padding: 0 60px 40px;
    display: flex;
    justify-content: flex-start;
}

/* If wide screen, align with content */
@media (min-width: 1600px) {
    .landu-banner-thumbnails {
        padding-left: 60px;
    }
}

.landu-thumbnails-list {
    display: flex;
    gap: 12px;
}

.landu-thumbnail-item {
    width: 160px;
    /* Slightly wider than 152 for modern look, or stick to 152 */
    cursor: pointer;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.landu-thumbnail-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    /* Border placeholder */
    background: #252628;
}

.landu-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.landu-thumbnail-item:hover .landu-thumbnail-img {
    opacity: 1;
}

.landu-thumbnail-item.active .landu-thumbnail-img {
    opacity: 1;
}

/* Active State Border -> LANDU standard is often white or brand color */
.landu-thumbnail-item.active .landu-thumbnail-img-wrap {
    border-color: #fff;
}

/* Text under thumbnail matches LANDU standard */
.landu-thumbnail-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.landu-thumbnail-item.active .landu-thumbnail-text,
.landu-thumbnail-item:hover .landu-thumbnail-text {
    color: #fff;
}

/* Progress Bar (The Key Interaction) */
.landu-thumb-progress {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 5;
    display: none;
}

.landu-thumbnail-item.active .landu-thumb-progress {
    display: block;
}

.landu-thumb-progress-inner {
    height: 100%;
    width: 0%;
    background: #00CC55;
    /* LANDU Green for active progress */
    box-shadow: 0 0 4px rgba(0, 204, 85, 0.5);
}

.landu-thumbnail-item.active .landu-thumb-progress-inner {
    /* Animation duration set dynamically by JS usually, but here fixed default */
    animation: thumbProgress 16s linear forwards;
}

@keyframes thumbProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* Pause on hover */
.landu-banner-main:hover~.landu-banner-thumbnails .landu-thumb-progress-inner,
.landu-banner-thumbnails:hover .landu-thumb-progress-inner {
    animation-play-state: paused;
}

/* Volume Control */
.landu-volume-control {
    position: absolute;
    bottom: 120px;
    right: 40px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.landu-volume-control:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.volume-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.volume-icon.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1280px) {
    .landu-banner-main {
        height: 50vw;
        /* Keep aspect ratio on smaller screens */
        min-height: 400px;
    }

    .landu-banner-thumbnails {
        margin-top: -40px;
        padding-left: 30px;
    }

    .landu-banner-content {
        padding-left: 30px;
    }

    .landu-content-slide {
        left: 30px;
        bottom: 60px;
    }
}
