/* public/css/video.css */

/* --- VIDEO CARD CHUNG --- */
.video-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #000;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(196, 153, 99, 0.3);
}

/* Ảnh thumbnail */
.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.video-card:hover .video-thumb {
    transform: scale(1.1); /* Phóng to ảnh nhẹ khi hover */
    opacity: 0.6; /* Làm tối ảnh đi chút để nổi nút Play */
}

/* --- NÚT PLAY (Hiệu ứng sóng nước) --- */
.play-btn-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.play-btn-overlay i {
    color: #fff;
    font-size: 1.5rem;
    margin-left: 4px; /* Căn chỉnh icon tam giác cho cân */
}

.video-card:hover .play-btn-overlay {
    width: 80px; height: 80px;
    background: #c49963; /* Màu brand */
    border-color: #c49963;
    animation: pulse-play 1.5s infinite;
}

@keyframes pulse-play {
    0% { box-shadow: 0 0 0 0 rgba(196, 153, 99, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(196, 153, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(196, 153, 99, 0); }
}

/* --- BADGE CATEGORY --- */
.video-tag {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* --- TIKTOK / SHORTS STYLE (Dọc) --- */
.video-card-vertical {
    aspect-ratio: 9/16;
}

/* --- YOUTUBE STYLE (Ngang) --- */
.video-card-horizontal {
    aspect-ratio: 16/9;
}

/* --- VIDEO TITLE (Nằm đè lên ảnh dưới cùng) --- */
.video-info-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    transform: translateY(10px);
    transition: 0.3s;
}

.video-card:hover .video-info-overlay {
    transform: translateY(0);
}

.video-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- MODAL VIDEO (LIGHTBOX) --- */
.video-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fade-in 0.3s;
}

.video-modal-content {
    width: 100%;
    max-width: 900px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: -40px; right: 0;
    color: #fff;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================= SHORTS VIEWER ================= */

.shorts-viewer{
    position:fixed;
    inset:0;
    background:#000;
    z-index:99999;

    display:flex;
    justify-content:center;
    align-items:center;
}

/* video */
.shorts-iframe{
    width:min(420px,100%);
    height:100vh;
    border:none;
}

/* overlay nhận gesture */
.shorts-overlay{
    position:absolute;
    inset:0;
    z-index:2;
}

/* close */
.shorts-close{
    position:absolute;
    top:20px;
    right:20px;
    z-index:3;
    font-size:28px;
    color:white;
    background:none;
    border:none;
}

/* pause icon */
.pause-indicator{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    font-size:70px;
    color:white;
    opacity:.85;
    pointer-events:none;
}

/* hint */
.shorts-hint{
    position:absolute;
    bottom:80px;
    left:50%;
    transform:translateX(-50%);
    z-index:3;
    color:white;
    font-size:14px;
    opacity:.85;
    text-align:center;
    pointer-events:none;
}

.shorts-hint .arrow{
    font-size:28px;
    margin-top:6px;
    animation:bounce 1.2s infinite;
}

@keyframes bounce{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-10px)}
}


/* ===============================
   MOBILE FILTER LAYOUT (1 + 2x2)
================================= */

@media (max-width: 576px){

    .video-filter-group{
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }

    /* tất cả */
    .video-filter-group .btn:first-child{
        grid-column: 1 / -1;   /* chiếm full hàng */
        justify-self: center;  /* nằm giữa */
        width: 70%;
    }

    /* các nút còn lại */
    .video-filter-group .btn:not(:first-child){
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 14px;
    }

    /* tất cả nút mobile */
    .video-filter-group .btn{
        white-space: nowrap;      /* KHÔNG cho xuống dòng */
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 14px;
    }

    /* riêng nút sofa nhỏ chữ hơn 1 chút */
    .video-filter-group .btn:nth-child(3){
        font-size: 12.5px;
        letter-spacing: -0.2px;
    }

}






