/* ===========================
   viewimage - Clean CSS v1.0
   =========================== */

/* --- Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #000;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #fdfdfd;
}

a { color: #367a9c; text-decoration: none; }
a:hover { color: #fff; }

img { vertical-align: middle; border: 0; }

/* --- Logo --- */
.logo {
    margin: auto;
    text-align: center;
    padding-top: 10px;
}

/* --- Buttons --- */
.button_cont {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    padding: 5px;
}

.go_to_video,
.go_to_image {
    display: inline-block;
    border-radius: 4px;
    border: none;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-size: 22px;
    padding: 20px;
    width: auto;
    min-width: 200px;
    transition: all 0.4s;
    cursor: pointer;
    margin: 5px;
    text-decoration: none;
}

.go_to_video {
    background: linear-gradient(to right, #67b26b, #4ca2cb);
}

.go_to_image {
    background: linear-gradient(to right, #fc1b55, #005555);
}

.go_to_video span,
.go_to_image span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.4s;
}

.go_to_video span::after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.go_to_image span::after {
    content: '\25bc';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.go_to_video:hover span,
.go_to_image:hover span {
    color: #000;
    padding-right: 25px;
}

.go_to_video:hover span::after,
.go_to_image:hover span::after {
    opacity: 1;
    right: 0;
}

/* --- Image viewer --- */
.qc {
    text-align: center;
    margin-top: 10px;
}

.view-content {
    display: block;
    text-align: center;
    margin: auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* --- Footer --- */
.footer {
    text-align: center;
    color: #fff;
    margin-top: 20px;
    padding-bottom: 15px;
}

/* --- Actress List --- */
.vi-actress-list {
    max-width: 1100px !important;
    margin: 15px auto !important;
    text-align: center !important;
    display: block !important;
}

.vi-actress-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
}

.vi-actress-item {
    display: inline-block !important;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    text-decoration: none !important;
    color: #ccc !important;
    transition: transform 0.2s, color 0.2s;
    float: none !important;
}

.vi-actress-item:hover {
    transform: scale(1.05);
    color: #fff !important;
}

/* Container cố định 200x300, cắt overflow */
.vi-actress-thumb {
    width: 200px !important;
    height: 300px !important;
    border-radius: 6px;
    overflow: hidden !important;
    position: relative !important;
}

/*
 * Crop nửa phải của ảnh bìa DVD:
 * - Ảnh gốc ratio ~2:3 ngang (cover DVD đầy đủ)
 * - Set width: 200% container → ảnh rộng 400px trong khung 200px
 * - Set height: 100% → ảnh cao vừa khít 300px
 * - object-position không đáng tin vì WP theme đè
 * - Thay vào đó: margin-left: -100% dịch ảnh sang trái → chỉ thấy nửa phải
 */
.vi-actress-thumb img {
    width: 200% !important;
    height: 100% !important;
    min-width: 200% !important;
    min-height: 300px !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block !important;
    margin-left: -100% !important;
    border-radius: 0 !important;
}

.vi-actress-item span {
    display: block !important;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.3;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    width: 200px;
}

/* --- Mobile --- */
@media all and (max-width: 480px) {
    .go_to_video,
    .go_to_image {
        font-size: 12px;
        padding: 12px;
    }

    .vi-actress-row {
        gap: 3px !important;
    }

    .vi-actress-item {
        width: 65px !important;
        min-width: 65px !important;
        max-width: 65px !important;
    }

    .vi-actress-thumb {
        width: 65px !important;
        height: 97px !important;
    }

    .vi-actress-thumb img {
        min-height: 97px !important;
    }

    .vi-actress-item span {
        font-size: 8px;
        width: 65px;
    }
}
