body {
    background-color: #f8f8f8;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: grid;
    grid-template-columns: 240px 1fr 350px;
    height: 100vh;
    gap: 0;
}

@media (max-width: 1023.98px) {
    .app-container {
        grid-template-columns: 1fr;
    }
}

.video-wrapper {
    background-color: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-video {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.product-list {
    background-color: #fff;
    border-left: 1px solid #e3e3e3;
    overflow-y: auto;
}

.nav-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.btn-prev {
    top: 20px;
}

.btn-next {
    bottom: 70px;
}

.interaction-bar {
    position: absolute;
    right: 8px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 12px;
    cursor: pointer;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background: #2f2f2f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.overlay-toggle {
    transition: transform 220ms ease, opacity 220ms ease;
    will-change: transform, opacity;
}

.ui-hidden .overlay-toggle {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
}

.timeline-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 18;
    padding: 10px 14px 12px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-time {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    min-width: 44px;
    text-align: center;
    user-select: none;
}

.timeline-range {
    width: 100%;
    height: 4px;
    appearance: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.35);
    outline: none;
}

.timeline-range::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: #fff;
    border: 0;
}

.timeline-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: #fff;
    border: 0;
}

.product-balloon {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 5px 12px;
    width: min(280px, 75vw);
    height: 90px;
    overflow: hidden;
    transition: width 240ms ease, height 240ms ease, padding 240ms ease, border-radius 240ms ease;
}

.product-balloon.is-collapsed {
    height: 36px;
    width: 150px;
    min-width: 100px;
    max-width: 200px;
    padding: 6px 10px;
    border-radius: 14px;
}

.product-balloon-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.product-balloon.is-collapsed .product-balloon-title {
    display: none;
}

.product-balloon-thumbs {
    display: flex;
    gap: 8px;
    overflow: hidden;
    align-items: center;
}

.product-balloon-thumb {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.product-balloon.is-collapsed .product-balloon-thumb {
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

.product-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.product-sheet-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.product-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 61;
    background: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transform: translateY(110%);
    transition: transform 240ms ease;
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-sheet.is-open {
    transform: translateY(0);
}

.product-sheet-scroll {
    overflow: auto;
    padding: 12px 14px 18px 14px;
}

.volume-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.volume-control {
    height: 40px;
    padding: 8px 10px;
    gap: 10px;
    width: 42px;
    overflow: hidden;
    transition: width 220ms ease, padding 220ms ease;
}

.volume-control.is-expanded {
    width: 196px;
    padding: 8px 12px;
}

.volume-btn svg {
    width: 22px;
    height: 22px;
}

.volume-range {
    width: 130px;
    height: 4px;
    appearance: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.35);
    outline: none;
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
}

.volume-control.is-expanded .volume-range {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.volume-range::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: #fff;
    border: 0;
}

.volume-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: #fff;
    border: 0;
}

.clip-fx-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 44;
    overflow: hidden;
}

.clip-float-heart {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    color: #ff2d55;
    font-size: 42px;
    opacity: 0;
    animation: clipHeart 900ms ease-out forwards;
}

.clip-float-heart svg {
    width: 1em;
    height: 1em;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

@keyframes clipHeart {
    0% { opacity: 0; transform: translate(-50%, -10%) scale(0.6); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -220%) scale(1.6); }
}
