/* ============================================================
   VSHORT THEME — Chinese Vertical Short Drama
   ============================================================ */

:root{
    --vs-bg: #0a0a0e;
    --vs-bg-2: #14141c;
    --vs-bg-3: #1c1c28;
    --vs-text: #f5f5fa;
    --vs-text-2: #aaa8b8;
    --vs-text-3: #6f6d80;
    --vs-accent: #ff2d55;
    --vs-accent-2: #ec4899;
    --vs-border: rgba(255,255,255,0.06);
    --vs-border-2: rgba(255,255,255,0.12);
    --vs-shadow: 0 8px 28px rgba(0,0,0,.6);
    --vs-radius: 14px;
    --vs-radius-sm: 10px;
}

/* Preset overrides */
body.preset-dark-2 { --vs-bg:#0b0814; --vs-accent:#a855f7; --vs-accent-2:#7c3aed; }
body.preset-dark-3 { --vs-bg:#0e0a14; --vs-accent:#ec4899; --vs-accent-2:#f472b6; }
body.preset-dark-4 { --vs-bg:#0a0a06; --vs-accent:#fbbf24; --vs-accent-2:#f59e0b; }

/* Luxury Gradient presets */
body.preset-grad-1 { --vs-bg:#0a0608; --vs-accent:#dc2626; --vs-accent-2:#ef4444; }   /* Imperial Red */
body.preset-grad-2 { --vs-bg:#06100c; --vs-accent:#10b981; --vs-accent-2:#34d399; }   /* Jade Empress */
body.preset-grad-3 { --vs-bg:#0a0805; --vs-accent:#d4af37; --vs-accent-2:#fbbf24; }   /* Dynasty Gold */
body.preset-grad-4 { --vs-bg:#0e0810; --vs-accent:#f472b6; --vs-accent-2:#ec4899; }   /* Sakura Pink */
body.preset-grad-5 { --vs-bg:#050a18; --vs-accent:#3b82f6; --vs-accent-2:#60a5fa; }   /* Midnight Sapphire */
body.preset-grad-6 { --vs-bg:#0e0612; --vs-accent:#9333ea; --vs-accent-2:#a855f7; }   /* Velvet Plum */
body.preset-grad-7 { --vs-bg:#100806; --vs-accent:#fb923c; --vs-accent-2:#f59e0b; }   /* Sunset Drama */
body.preset-grad-8 { --vs-bg:#040c10; --vs-accent:#06b6d4; --vs-accent-2:#0ea5e9; }   /* Ocean Pearl */
body.preset-grad-9 { --vs-bg:#0c0608; --vs-accent:#e11d48; --vs-accent-2:#f43f5e; }   /* Rosewood Noir */
body.preset-grad-10{ --vs-bg:#040c0a; --vs-accent:#5eead4; --vs-accent-2:#2dd4bf; }   /* Obsidian Mint */

/* 🎨 Color-themed presets (เพิ่มใหม่) */
body.preset-solid-jade   { --vs-bg:#06120e; --vs-accent:#00a86b; --vs-accent-2:#10b981; }   /* หยกเขียวจีน */
body.preset-solid-green  { --vs-bg:#061410; --vs-accent:#16a34a; --vs-accent-2:#22c55e; }   /* เขียวมรกต */
body.preset-solid-purple { --vs-bg:#0e0820; --vs-accent:#7c3aed; --vs-accent-2:#a855f7; }   /* ม่วงราชวงศ์ */
body.preset-solid-brown  { --vs-bg:#120a06; --vs-accent:#92400e; --vs-accent-2:#b45309; }   /* น้ำตาลกาแฟ */
body.preset-solid-red    { --vs-bg:#0e0406; --vs-accent:#dc2626; --vs-accent-2:#ef4444; }   /* แดงเข้ม */
body.preset-solid-pink   { --vs-bg:#140810; --vs-accent:#ec4899; --vs-accent-2:#f472b6; }   /* ชมพูหวาน */
body.preset-solid-black  { --vs-bg:#000000; --vs-accent:#ffffff; --vs-accent-2:#d4d4d8; }   /* ดำ pure + accent ขาว */

/* ☀️ LIGHT preset (ขาว) — override text/border/bg-secondary ทั้งหมด */
body.preset-solid-white{
    --vs-bg: #f7f7fb;
    --vs-bg-2: #ffffff;
    --vs-bg-3: #eef0f4;
    --vs-text: #1a1a26;
    --vs-text-2: #4a4a5e;
    --vs-text-3: #8a8a9e;
    --vs-accent: #e11d48;
    --vs-accent-2: #be123c;
    --vs-border: rgba(0,0,0,.08);
}
body.preset-solid-white .vshort-nav{
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(247,247,251,.85));
    border-bottom-color: rgba(0,0,0,.06);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
body.preset-solid-white .vshort-search{
    background: #fff;
    border-color: rgba(0,0,0,.1);
}
body.preset-solid-white .vshort-search input{ color: var(--vs-text); }
body.preset-solid-white .vshort-card,
body.preset-solid-white .vshort-onpage-content{
    background: #ffffff;
    border-color: rgba(0,0,0,.08);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
body.preset-solid-white .vshort-footer{
    background: #ffffff;
    color: var(--vs-text-2);
    border-top: 1px solid rgba(0,0,0,.06);
}
/* บางจุดต้องบังคับสี text ที่ inherit ขาวออก */
body.preset-solid-white .vshort-card-title,
body.preset-solid-white .vshort-info-title,
body.preset-solid-white .vshort-section-title{ color: var(--vs-text); }

*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

html,body{
    margin:0; padding:0;
    background: var(--vs-bg);
    color: var(--vs-text);
    font-family: 'Noto Sans Thai', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; border: 0; background: transparent; color: inherit; cursor: pointer; }
input{ font-family: inherit; }

/* ===== Navbar — สีเข้ากับ theme preset ===== */
.vshort-nav{
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--vs-accent) 8%, transparent),
            transparent 60%),
        color-mix(in srgb, var(--vs-bg) 88%, transparent);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid color-mix(in srgb, var(--vs-accent) 18%, var(--vs-border));
    box-shadow: 0 4px 18px -8px color-mix(in srgb, var(--vs-accent) 25%, transparent);
}
/* Accent line ใต้ navbar — โทนสี theme */
.vshort-nav::after{
    content: '';
    position: absolute; left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--vs-accent),
        var(--vs-accent-2),
        transparent);
    opacity: .6;
}

.vshort-brand{
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform .15s;
}
.vshort-brand:hover{ transform: scale(1.02); }
.vshort-brand img{
    height: 60px; width: auto;
    filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--vs-accent) 35%, transparent));
}
.vshort-brand strong{
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--vs-text), var(--vs-accent));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.vshort-search{
    flex: 1; display: flex; align-items: center; gap: 8px;
    background: color-mix(in srgb, var(--vs-accent) 6%, var(--vs-bg-2));
    padding: 8px 14px; border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--vs-accent) 12%, var(--vs-border));
    transition: border-color .2s, background .2s;
}
.vshort-search:focus-within{
    border-color: var(--vs-accent);
    background: color-mix(in srgb, var(--vs-accent) 10%, var(--vs-bg-2));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--vs-accent) 12%, transparent);
}
.vshort-search i{ color: var(--vs-accent); font-size: .85rem; }
.vshort-search input{
    flex:1; min-width: 0; background: transparent; color: var(--vs-text);
    border: 0; outline: 0; font-size: .9rem;
}
.vshort-search input::placeholder{ color: var(--vs-text-3); }

/* ===== Hero ===== */
.vshort-hero{
    padding: 22px 16px 12px;
    background: linear-gradient(180deg, rgba(255,45,85,.10), transparent 70%);
}
.vshort-hero-title{
    margin: 0 0 4px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, var(--vs-text), var(--vs-accent));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.vshort-hero-sub{
    margin: 0;
    color: var(--vs-text-2);
    font-size: .82rem;
}

/* ===== Tabs ===== */
.vshort-tabs{
    display: flex; gap: 8px;
    padding: 6px 12px 12px;
    overflow-x: auto;
    justify-content: center;        /* fallback: จัดกลางเมื่อพอดี */
    justify-content: safe center;   /* overflow → ชิดซ้าย (กัน item ซ้ายโดนตัด) แล้วเลื่อนได้ */
    scrollbar-width: thin;          /* โชว์ scrollbar บางๆ ให้รู้ว่าเลื่อนได้ (Firefox) */
    scrollbar-color: color-mix(in srgb, var(--vs-accent) 55%, transparent) transparent;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 12px;
}
/* Chrome/Safari — scrollbar บางๆ สีเน้น ให้รู้ว่าเลื่อนได้ */
.vshort-tabs::-webkit-scrollbar{ height: 5px; }
.vshort-tabs::-webkit-scrollbar-track{ background: transparent; }
.vshort-tabs::-webkit-scrollbar-thumb{
    background: color-mix(in srgb, var(--vs-accent) 50%, transparent);
    border-radius: 6px;
}
.vshort-tabs::-webkit-scrollbar-thumb:hover{ background: color-mix(in srgb, var(--vs-accent) 78%, transparent); }
.vshort-tab{
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding: 7px 14px;
    background: var(--vs-bg-2);
    border: 1px solid var(--vs-border);
    border-radius: 20px;
    color: var(--vs-text-2);
    font-size: .8rem;
    font-weight: 500;
    transition: all .15s ease;
    white-space: nowrap;
}
.vshort-tab.is-active{
    background: linear-gradient(135deg, var(--vs-accent), var(--vs-accent-2));
    color: #fff;
    border-color: var(--vs-accent);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--vs-accent) 35%, transparent);
}

/* ===== Main ===== */
.vshort-main{ padding-bottom: 60px; }

/* ===== Grid ===== */
.vshort-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px;
}
@media (min-width: 480px){ .vshort-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px){ .vshort-grid{ grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 16px; } }
@media (min-width: 1200px){ .vshort-grid{ grid-template-columns: repeat(6, 1fr); max-width: 1400px; margin: 0 auto; } }

/* ===== Card ===== */
.vshort-card{
    background: var(--vs-bg-2);
    border-radius: var(--vs-radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--vs-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
    border: 1px solid var(--vs-border);
}
.vshort-card:hover{ transform: translateY(-2px); border-color: var(--vs-border-2); }

.vshort-card-cover{
    position: relative;
    display: block;
    aspect-ratio: 9 / 16; /* แนวตั้ง */
    overflow: hidden;
    background: var(--vs-bg-3);
}
.vshort-card-img{
    width:100%; height:100%;
    position: relative;
    isolation: isolate;            /* สร้าง stacking context ของตัวเอง — กัน z-index ของ img หลุดไปทับ badges/info ที่เป็น sibling */
    background-size: cover; background-position: center;
    overflow: hidden;
}
/* พื้นหลังเบลอ (รูปเดียวกัน) เติมเต็มกรอบ 9:16 — กันขอบดำว่างเวลารูปไม่ใช่แนวตั้ง */
.vshort-card-img::before{
    content: ""; position: absolute; inset: 0;
    background-image: inherit;
    background-size: cover; background-position: center;
    filter: blur(16px) brightness(.55);
    transform: scale(1.15);
}
.vshort-card-img img{
    position: relative; z-index: 1;
    width: 100%; height: 100%; object-fit: contain;  /* โชว์รูปเต็ม ไม่ถูก crop/บีบ */
    transition: transform .4s ease;
}
.vshort-card:hover .vshort-card-img img{ transform: scale(1.04); }

.vshort-card-shade{
    position: absolute; inset: auto 0 0 0; height: 60%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
    pointer-events: none;
}

.vshort-card-badges{
    position: absolute; top: 8px; left: 8px;
    display: flex; flex-direction: column; gap: 4px;
}
.vshort-card-side-badges{
    position: absolute; top: 8px; right: 8px;
    display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
}

.vshort-badge{
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .65rem;
    font-weight: 600;
    line-height: 1.6;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.vshort-badge-new{ background: rgba(255,45,85,.85); color: #fff; }
.vshort-badge-end{ background: rgba(100,116,139,.85); color: #fff; }
.vshort-badge-onair{ background: rgba(34,197,94,.85); color: #fff; }
.vshort-badge-dub{ background: rgba(245,158,11,.85); color: #fff; }
.vshort-badge-sub{ background: rgba(59,130,246,.85); color: #fff; }
.vshort-badge-eps{ background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.vshort-badge-year{ background: rgba(168,85,247,.7); color: #fff; }
.vshort-badge-view{ background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.15); }

.vshort-card-info{
    position: absolute; bottom: 8px; left: 10px; right: 10px;
    color: #fff;
    z-index: 2;
}
.vshort-card-title{
    margin: 0 0 4px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.vshort-card-meta{
    display: flex; gap: 10px;
    font-size: .65rem; color: rgba(255,255,255,.85);
}
.vshort-card-meta i{ margin-right: 3px; opacity: .8; }

.vshort-card-actions{
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 6px;
    background: var(--vs-bg-2);
}

/* ===== Button ===== */
.vshort-btn{
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    border: 0;
    white-space: nowrap;
}
.vshort-btn-primary{
    background: var(--vs-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,45,85,.3);
}
.vshort-btn-primary:hover{ filter: brightness(1.1); transform: translateY(-1px); }
.vshort-btn-ghost{
    background: var(--vs-bg-3);
    color: var(--vs-text-2);
    border: 1px solid var(--vs-border);
}
.vshort-btn-ghost:hover{ color: var(--vs-text); background: var(--vs-border); }

/* ===== Pagination ===== */
.vshort-pagination{
    display: flex; justify-content: center;
    padding: 28px 14px 8px;
}
.vshort-pagination nav, .vshort-pagination ul{
    display: flex; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.vshort-pagination a, .vshort-pagination span{
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 12px;
    background: var(--vs-bg-2); border: 1px solid var(--vs-border);
    color: var(--vs-text); border-radius: 8px;
    font-size: .8rem; font-weight: 600;
}
.vshort-pagination .active span{ background: var(--vs-accent); color:#fff; border-color: var(--vs-accent); }
.vshort-pagination .disabled span{ opacity:.4; }

/* ===== Empty ===== */
.vshort-empty{
    padding: 80px 20px;
    text-align: center;
    color: var(--vs-text-3);
}
.vshort-empty i{ font-size: 3rem; margin-bottom: 14px; opacity: .5; }
.vshort-empty p{ font-size: .9rem; }

/* ============================================================
   PLAYER (Phase 4)
   ============================================================ */

.vshort-player-wrapper{
    position: relative;
    width: 100%;
    background: #000;
}
/* Desktop — full width left-right, player ตรงกลาง พร้อม cinema bg ดำสองข้าง */
@media (min-width: 992px){
    .vshort-player-wrapper{
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 0;
        background:
            radial-gradient(ellipse at center, rgba(0,0,0,.5), #000 75%),
            #000;
        padding: 30px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.vshort-player-stage{
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    overflow: hidden;
}
/* Mobile: ให้ player กินเต็มพื้นที่ — แต่ไม่บังคับ ผู้ใช้กดเต็มจอเอง */
@media (max-width: 991px){
    .vshort-player-stage{
        max-height: calc(100vh - 60px);
    }
}
/* Desktop — player ขนาดควบคุม + cinema-style พื้นดำเต็มจอ */
@media (min-width: 992px){
    .vshort-player-stage{
        max-width: 460px;
        max-height: calc(100vh - 80px);
        border-radius: var(--vs-radius);
        box-shadow:
            0 30px 80px -10px rgba(0,0,0,.9),
            0 0 0 1px rgba(255,255,255,.04),
            0 0 80px -20px color-mix(in srgb, var(--vs-accent) 30%, transparent);
    }
}

.vshort-video{
    width: 100% !important; height: 100% !important;
    object-fit: contain;
    background: #000;
    display: block;
}
.vshort-video.video-js .vjs-control-bar,
.vshort-video.video-js .vjs-big-play-button{ display: none !important; } /* ใช้ custom controls */

/* Loading spinner */
.vshort-loading{
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.7);
    z-index: 6;
}
.vshort-spinner{
    width: 48px; height: 48px;
    border: 3px solid rgba(255,255,255,.2);
    border-top-color: var(--vs-accent);
    border-radius: 50%;
    animation: vshort-spin 0.8s linear infinite;
}
@keyframes vshort-spin{ to { transform: rotate(360deg); } }

/* ===== Overlays ===== */
.vshort-overlay{
    position: absolute;
    left: 0; right: 0;
    z-index: 7;
    padding: 12px 14px;
    pointer-events: none; /* container ไม่รับ click */
}
.vshort-overlay > *{ pointer-events: auto; }
.vshort-overlay-top{
    top: 0;
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.35) 55%, transparent);
    /* เว้นระยะจากขอบบนให้หายใจ + บวก safe-area ของจอมีติ่ง (notch) */
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    padding-bottom: 22px;
}
.vshort-overlay-bottom{
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0));
}

.vshort-overlay-btn{
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.5);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all .15s;
}
.vshort-overlay-btn:hover, .vshort-overlay-btn:active{ background: rgba(255,255,255,.2); }

.vshort-overlay-title{
    flex: 1; min-width: 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.vshort-overlay-show{
    font-size: 1.12rem; font-weight: 700; line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vshort-overlay-ep{
    font-size: .85rem; color: rgba(255,255,255,.85); margin-top: 2px;
}

/* ===== Auto-hide controls + title ===== */
.vshort-overlay-top,
.vshort-overlay-bottom{
    transition: opacity .28s ease, transform .28s ease;
}
.vshort-player-wrapper.vshort-ui-hidden .vshort-overlay-top{
    opacity: 0; transform: translateY(-12px);
}
.vshort-player-wrapper.vshort-ui-hidden .vshort-overlay-bottom{
    opacity: 0; transform: translateY(12px);
}
/* ซ่อนแล้วต้องกดทะลุไม่ได้ (รวม fullscreen ที่ลูกถูกตั้ง pointer-events:auto) */
.vshort-player-wrapper.vshort-ui-hidden .vshort-overlay-top,
.vshort-player-wrapper.vshort-ui-hidden .vshort-overlay-top *,
.vshort-player-wrapper.vshort-ui-hidden .vshort-overlay-bottom,
.vshort-player-wrapper.vshort-ui-hidden .vshort-overlay-bottom *{
    pointer-events: none !important;
}

/* ===== Logo ในมุมขวาบนของ player (จางๆ ตลอด) ===== */
.vshort-player-logo{
    position: absolute; top: 10px; right: 10px;
    z-index: 9;
    max-width: 22%;
    opacity: .5;
    transition: opacity .2s ease;
    line-height: 0;
    pointer-events: auto;
}
.vshort-player-logo:hover{ opacity: .9; }
/* ถ้ามี site logo อยู่ด้วย → ดัน ads logo ลงต่ำ ไม่ทับกัน */
.vshort-player-stage:has(.vshort-player-site-logo) .vshort-player-logo{
    top: 70px;
}

/* Site logo (โลโก้เว็บ) — มุมขวาบน */
.vshort-player-site-logo{
    position: absolute; top: 10px; right: 10px;
    z-index: 10;
    max-width: 28%;
    line-height: 0;
    pointer-events: auto;
    transition: opacity .2s ease;
    opacity: .9;
}
.vshort-player-site-logo:hover{ opacity: 1; }
.vshort-player-site-logo img{
    display: block; width: 100%; height: auto;
    max-height: 54px; object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.7));
}
.vshort-player-logo img{
    display: block; width: 100%; height: auto;
    max-height: 48px; object-fit: contain;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.6));
}

/* Progress */
.vshort-progress{
    position: relative;
    height: 4px;
    background: rgba(255,255,255,.2);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 10px;
    touch-action: none; /* ลากบนมือถือได้โดยไม่เลื่อนหน้า */
}
/* ขยายพื้นที่กด/ลากให้ใหญ่ขึ้น (มองเห็นยังบางเท่าเดิม) */
.vshort-progress::before{
    content: "";
    position: absolute; left: 0; right: 0; top: -12px; bottom: -12px;
}
.vshort-progress:hover{ height: 6px; }
.vshort-progress-fill{
    position: absolute; left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, var(--vs-accent), var(--vs-accent-2));
    border-radius: 2px;
    width: 0;
    transition: width .1s linear;
}
.vshort-progress-time{
    position: absolute; left: 0; right: 0; top: -18px;
    display: flex; justify-content: space-between;
    font-size: .65rem; color: rgba(255,255,255,.7);
    pointer-events: none;
}

/* Controls */
.vshort-controls{
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.vshort-ctrl{
    flex: 0 0 auto;
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: all .15s;
}
.vshort-ctrl:hover{ background: rgba(255,255,255,.18); }
.vshort-ctrl:active{ transform: scale(.94); }
.vshort-ctrl-main{
    width: 58px; height: 58px;
    background: var(--vs-accent);
    border-color: var(--vs-accent);
    font-size: 1.3rem;
    box-shadow: 0 6px 22px rgba(255,45,85,.45);
}
.vshort-ctrl-main:hover{ background: var(--vs-accent); filter: brightness(1.1); }
.vshort-ctrl-eps{
    width: auto; padding: 0 16px; border-radius: 22px;
    gap: 6px;
}
.vshort-ctrl-label{ font-size: .78rem; font-weight: 600; }
/* ปุ่มเลื่อน ±3 วิ — ตัวเลข 3 ซ้อนกลางไอคอนลูกศรหมุน */
.vshort-ctrl-seek{ position: relative; }
.vshort-ctrl-seek .vshort-seek-num{
    position: absolute; top: 54%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: .56rem; font-weight: 800; line-height: 1;
    pointer-events: none;
}

/* ===== ปุ่มเสียง ===== */
/* .vshort-ctrl ตั้ง display:inline-flex ไว้ ซึ่งจะทับ [hidden] ของ UA stylesheet
   (specificity เท่ากันแต่ author style ชนะ) — ต้องประกาศเองไม่งั้นปุ่มที่สั่งซ่อนจะยังโผล่ */
.vshort-ctrl[hidden]{ display: none !important; }

/* ปุ่มเสียง + แถบเลื่อนที่โผล่ขึ้นมาเหนือปุ่ม */
.vshort-vol{ position: relative; flex: 0 0 auto; display: inline-flex; }
.vshort-vol-pop{
    position: absolute; bottom: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) translateY(6px);
    z-index: 9;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(20,20,24,.92);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0,0,0,.5);
    opacity: 0; pointer-events: none;
    transition: opacity .16s, transform .16s;
}
.vshort-vol.is-open .vshort-vol-pop{
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
/* ลูกศรเล็กๆ ชี้ลงหาปุ่ม */
.vshort-vol-pop::after{
    content: ''; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(20,20,24,.92);
}
.vshort-vol-pop-num{
    font-size: .72rem; font-weight: 700; color: #fff;
    min-width: 36px; text-align: right;
    font-variant-numeric: tabular-nums;
}

/* แถบเลื่อนระดับเสียง — --vol คือ % ที่ JS อัปเดตเพื่อระบายสีฝั่งซ้ายของแทร็ก */
.vshort-vol-range{
    --vol: 100%;
    -webkit-appearance: none; appearance: none;
    width: 116px; height: 20px;
    background: transparent; border: 0; margin: 0;
    cursor: pointer; touch-action: none;
}
.vshort-vol-range::-webkit-slider-runnable-track{
    height: 5px; border-radius: 999px;
    background: linear-gradient(to right,
        var(--vs-accent) 0 var(--vol), rgba(255,255,255,.24) var(--vol) 100%);
}
.vshort-vol-range::-webkit-slider-thumb{
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px; margin-top: -5.5px;
    border-radius: 50%; background: #fff;
    border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.vshort-vol-range::-moz-range-track{
    height: 5px; border-radius: 999px; background: rgba(255,255,255,.24);
}
.vshort-vol-range::-moz-range-progress{
    height: 5px; border-radius: 999px; background: var(--vs-accent);
}
.vshort-vol-range::-moz-range-thumb{
    width: 16px; height: 16px; border: 0;
    border-radius: 50%; background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.vshort-vol-range:focus{ outline: none; }
.vshort-vol-range:focus-visible::-webkit-slider-thumb{ box-shadow: 0 0 0 3px rgba(255,255,255,.35); }

/* คำแนะนำตอนเริ่มเล่น */
.vshort-hint{
    position: absolute; left: 50%; top: 32%;
    transform: translate(-50%, -50%) scale(.94);
    z-index: 8;
    display: flex; align-items: center; gap: 9px;
    padding: 10px 18px;
    background: rgba(0,0,0,.7);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    color: #fff; font-size: .8rem; font-weight: 600;
    white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
}
.vshort-hint.is-visible{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vshort-hint i{ font-size: .95rem; color: var(--vs-accent); }

/* ป้ายบอกระดับเสียง กลางจอ โผล่แวบเดียว */
.vshort-vol-toast{
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.92);
    z-index: 8;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    background: rgba(0,0,0,.72);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: #fff;
    opacity: 0; pointer-events: none;
    transition: opacity .18s, transform .18s;
}
.vshort-vol-toast.is-visible{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vshort-vol-toast i{ font-size: 1rem; width: 20px; text-align: center; }
.vshort-vol-bar{
    width: 96px; height: 5px;
    background: rgba(255,255,255,.22);
    border-radius: 999px; overflow: hidden;
}
.vshort-vol-bar span{
    display: block; height: 100%; width: 100%;
    background: var(--vs-accent);
    border-radius: 999px;
    transition: width .12s;
}
.vshort-vol-num{
    font-size: .74rem; font-weight: 700;
    min-width: 38px; text-align: right;
    font-variant-numeric: tabular-nums;
}

/* แถวปุ่มมี 8 ตัว (เสียงยุบเหลือปุ่มเดียว) — ย่อตามความกว้างจอ ถ้ายังไม่พอให้ตกบรรทัด */
.vshort-controls{ flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 480px){
    .vshort-controls{ gap: 6px; }
    .vshort-ctrl{ width: 40px; height: 40px; font-size: .95rem; }
    .vshort-ctrl-main{ width: 52px; height: 52px; font-size: 1.2rem; }
    .vshort-ctrl-eps{ padding: 0 12px; }
}
@media (max-width: 380px){
    .vshort-controls{ gap: 4px; }
    .vshort-ctrl{ width: 36px; height: 36px; font-size: .88rem; }
    .vshort-ctrl-main{ width: 48px; height: 48px; font-size: 1.1rem; }
    /* ซ่อนแค่คำว่า "ตอน" ไอคอนยังอยู่ */
    .vshort-ctrl-eps{ width: 36px; padding: 0; border-radius: 50%; }
    .vshort-ctrl-eps .vshort-ctrl-label{ display: none; }
    .vshort-vol-bar{ width: 76px; }
}

/* ===== Episode Panel — bottom sheet on mobile / side panel on desktop ===== */
.vshort-eps-backdrop{
    position: absolute; inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none;
    transition: opacity .2s;
    z-index: 8;
}
.vshort-eps-backdrop.is-open{ opacity: 1; pointer-events: auto; }

.vshort-eps-panel{
    position: absolute;
    background: var(--vs-bg-2);
    border-top: 1px solid var(--vs-border-2);
    z-index: 9;
    display: flex; flex-direction: column;
    transform: translateY(100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.vshort-eps-panel[aria-hidden="false"]{ transform: translateY(0); }

/* Mobile (default) — bottom sheet */
.vshort-eps-panel{
    left: 0; right: 0; bottom: 0;
    height: 65%;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

/* Desktop — side panel ขวา */
@media (min-width: 992px){
    .vshort-eps-panel{
        top: 0; right: 0; bottom: 0; left: auto;
        height: 100%; width: 320px; max-width: 60%;
        border-top-left-radius: 0; border-top-right-radius: 0;
        border-top: 0;
        border-left: 1px solid var(--vs-border-2);
        transform: translateX(100%);
    }
    .vshort-eps-panel[aria-hidden="false"]{ transform: translateX(0); }
}

.vshort-eps-panel-head{
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--vs-border);
}
.vshort-eps-panel-head h2{
    margin: 0; font-size: .95rem; font-weight: 600;
}
.vshort-eps-close{
    width: 32px; height: 32px;
    border-radius: 50%;
    color: var(--vs-text-2);
    font-size: 1rem;
    transition: all .15s;
}
.vshort-eps-close:hover{ background: var(--vs-border); color: var(--vs-text); }

.vshort-eps-list{
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 20px;
    -webkit-overflow-scrolling: touch;
}
.vshort-ep-item{
    display: grid;
    grid-template-columns: 36px 1fr 22px;
    gap: 10px; align-items: center;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border-radius: var(--vs-radius-sm);
    color: var(--vs-text);
    text-align: left;
    font-size: .85rem;
    transition: background .15s;
}
.vshort-ep-item:hover{ background: var(--vs-bg-3); }
.vshort-ep-item.is-current{
    background: linear-gradient(90deg, rgba(255,45,85,.18), rgba(255,45,85,.04));
    color: var(--vs-accent);
    font-weight: 600;
}
.vshort-ep-item.is-current .vshort-ep-num{ background: var(--vs-accent); color: #fff; }
.vshort-ep-item.is-watched .vshort-ep-status{ color: var(--vs-accent); opacity: 1; }

.vshort-ep-num{
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--vs-bg-3);
    color: var(--vs-text-2);
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 700;
}
.vshort-ep-name{
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vshort-ep-status{
    opacity: .15;
    font-size: .9rem;
    color: var(--vs-text-3);
}

/* ===== End overlay ===== */
/* ============================================================
   END OVERLAY — Premium card + 4 action buttons (2x2 grid)
   ============================================================ */
.vshort-end-overlay{
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at center,
            color-mix(in srgb, var(--vs-accent) 15%, rgba(0,0,0,.9)) 0%,
            rgba(0,0,0,.95) 70%);
    z-index: 10;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: vshortEndOverlayFadeIn .35s ease-out;
}
.vshort-end-overlay[aria-hidden="false"]{ display: flex; }
@keyframes vshortEndOverlayFadeIn{
    from{ opacity: 0; }
    to  { opacity: 1; }
}

.vshort-end-card{
    text-align: center;
    color: #fff;
    max-width: 380px;
    width: 100%;
    padding: 28px 22px;
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--vs-accent) 6%, rgba(18,18,28,.95)),
        rgba(8,8,14,.95));
    border: 1px solid color-mix(in srgb, var(--vs-accent) 30%, rgba(255,255,255,.08));
    border-radius: 20px;
    box-shadow:
        0 30px 80px -20px rgba(0,0,0,.7),
        0 0 0 1px rgba(255,255,255,.04),
        inset 0 1px 0 rgba(255,255,255,.06);
    animation: vshortEndCardEnter .5s cubic-bezier(.34,1.4,.64,1) backwards;
}
@keyframes vshortEndCardEnter{
    from{ opacity: 0; transform: translateY(20px) scale(.92); }
    to  { opacity: 1; transform: translateY(0) scale(1); }
}

/* Icon with animated rings */
.vshort-end-icon-wrap{
    position: relative;
    width: 80px; height: 80px;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
}
.vshort-end-icon-wrap i{
    font-size: 3.5rem;
    color: var(--vs-accent);
    position: relative; z-index: 2;
    filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--vs-accent) 50%, transparent));
    animation: vshortEndIconPop .6s cubic-bezier(.34,1.6,.64,1) .15s backwards;
}
@keyframes vshortEndIconPop{
    0%  { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100%{ transform: scale(1); opacity: 1; }
}
.vshort-end-icon-ring,
.vshort-end-icon-ring-2{
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid var(--vs-accent);
    opacity: 0;
    animation: vshortEndRingExpand 2s ease-out infinite;
}
.vshort-end-icon-ring-2{
    animation-delay: 1s;
}
@keyframes vshortEndRingExpand{
    0%  { transform: scale(.6); opacity: .7; }
    100%{ transform: scale(1.6); opacity: 0; }
}

.vshort-end-title{
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--vs-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -.01em;
    animation: vshortEndCardEnter .5s ease-out .2s backwards;
}
.vshort-end-subtitle{
    margin: 0 0 24px;
    font-size: .88rem;
    line-height: 1.6;
    color: rgba(255,255,255,.75);
    animation: vshortEndCardEnter .5s ease-out .3s backwards;
}
.vshort-end-subtitle strong{
    color: var(--vs-accent);
    font-weight: 700;
}

/* Actions — 2x2 grid */
.vshort-end-actions{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    animation: vshortEndCardEnter .5s ease-out .4s backwards;
}
.vshort-end-btn{
    display: inline-flex;
    align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    color: #fff;
    white-space: nowrap;
    font-family: inherit;
}
.vshort-end-btn i{ font-size: .95rem; }
.vshort-end-btn span{ overflow: hidden; text-overflow: ellipsis; }

/* Primary — gradient accent (ดูซ้ำ) */
.vshort-end-btn-primary{
    background: linear-gradient(135deg,
        var(--vs-accent),
        color-mix(in srgb, var(--vs-accent) 75%, #000));
    box-shadow:
        0 6px 18px color-mix(in srgb, var(--vs-accent) 35%, transparent),
        inset 0 1px 0 rgba(255,255,255,.15);
}
.vshort-end-btn-primary:hover{
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow:
        0 10px 26px color-mix(in srgb, var(--vs-accent) 50%, transparent),
        inset 0 1px 0 rgba(255,255,255,.2);
}

/* Secondary — purple gradient (สุ่ม) */
.vshort-end-btn-secondary{
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow:
        0 6px 18px rgba(139,92,246,.35),
        inset 0 1px 0 rgba(255,255,255,.15);
}
.vshort-end-btn-secondary:hover{
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow:
        0 10px 26px rgba(139,92,246,.5),
        inset 0 1px 0 rgba(255,255,255,.2);
    color: #fff;
}

/* Outline — transparent with border (ดูอื่น/หน้าหลัก) */
.vshort-end-btn-outline{
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
}
.vshort-end-btn-outline:hover{
    transform: translateY(-2px);
    background: rgba(255,255,255,.1);
    border-color: var(--vs-accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.3);
}

.vshort-end-btn:active{
    transform: translateY(0);
}

/* Mobile narrow */
@media (max-width: 380px){
    .vshort-end-card{ padding: 22px 16px; max-width: 320px; }
    .vshort-end-icon-wrap{ width: 64px; height: 64px; margin-bottom: 14px; }
    .vshort-end-icon-wrap i{ font-size: 2.8rem; }
    .vshort-end-title{ font-size: 1.15rem; }
    .vshort-end-subtitle{ font-size: .82rem; margin-bottom: 18px; }
    .vshort-end-btn{ padding: 10px 12px; font-size: .82rem; gap: 6px; }
    .vshort-end-btn i{ font-size: .88rem; }
}

/* ===== Fullscreen mode =====
   ต้อง override ทั้ง flex/padding ของ wrapper (desktop) และ max-width:460px ของ stage
   ไม่งั้นภาพจะถูกบีบเหลือกล่องเล็กกลางจอ (เสียงเล่นแต่ภาพไม่เต็ม/ไม่ขึ้น) */
.vshort-player-wrapper.is-fullscreen{
    display: block !important; padding: 0 !important;
    width: 100vw !important; height: 100vh !important; height: 100dvh !important;
    max-width: none !important; max-height: none !important;
    margin: 0 !important; border-radius: 0 !important; background: #000;
}
.vshort-player-wrapper.is-fullscreen .vshort-player-stage{
    width: 100vw !important; height: 100vh !important; height: 100dvh !important;
    max-width: none !important; max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important; box-shadow: none !important;
}
.vshort-player-wrapper.is-fullscreen .vshort-video{
    width: 100% !important; height: 100% !important; object-fit: contain !important;
}
/* กัน controls (ปิดเต็มจอ/seek) กดไม่ได้ใน fullscreen — ยก overlay ขึ้นเหนือ video เสมอ */
.vshort-player-wrapper.is-fullscreen .vshort-overlay{ z-index: 2147483646; }
.vshort-player-wrapper.is-fullscreen .vshort-overlay > *{ pointer-events: auto; }
.vshort-player-wrapper:fullscreen .vshort-overlay{ z-index: 2147483646; }
.vshort-player-wrapper:fullscreen .vshort-overlay > *{ pointer-events: auto; }
.vshort-player-wrapper:-webkit-full-screen .vshort-overlay{ z-index: 2147483646; }
.vshort-player-wrapper:-webkit-full-screen .vshort-overlay > *{ pointer-events: auto; }
.vshort-player-wrapper.is-theater-fallback .vshort-overlay{ z-index: 2147483646; }
.vshort-player-wrapper.is-theater-fallback .vshort-overlay > *{ pointer-events: auto; }

/* รองรับ native :fullscreen ตรงๆ (กรณี JS ใส่ class ไม่ทัน) — แยก block กัน selector ทั้งชุดถูกทิ้งถ้า browser ไม่รู้จัก pseudo */
.vshort-player-wrapper:fullscreen{ display:block !important; padding:0 !important; width:100vw !important; height:100vh !important; height:100dvh !important; max-width:none !important; max-height:none !important; margin:0 !important; border-radius:0 !important; background:#000; }
.vshort-player-wrapper:fullscreen .vshort-player-stage{ width:100vw !important; height:100vh !important; height:100dvh !important; max-width:none !important; max-height:none !important; aspect-ratio:auto !important; border-radius:0 !important; box-shadow:none !important; }
.vshort-player-wrapper:fullscreen .vshort-video{ width:100% !important; height:100% !important; object-fit:contain !important; }

.vshort-player-wrapper:-webkit-full-screen{ display:block !important; padding:0 !important; width:100vw !important; height:100vh !important; height:100dvh !important; max-width:none !important; max-height:none !important; margin:0 !important; border-radius:0 !important; background:#000; }
.vshort-player-wrapper:-webkit-full-screen .vshort-player-stage{ width:100vw !important; height:100vh !important; height:100dvh !important; max-width:none !important; max-height:none !important; aspect-ratio:auto !important; border-radius:0 !important; box-shadow:none !important; }
.vshort-player-wrapper:-webkit-full-screen .vshort-video{ width:100% !important; height:100% !important; object-fit:contain !important; }

/* Theater mode fallback (iOS Safari ที่ไม่มี Fullscreen API) */
.vshort-player-wrapper.is-theater-fallback{
    position: fixed !important;
    inset: 0;
    display: block !important; padding: 0 !important;
    width: 100vw !important; height: 100vh !important; height: 100dvh !important;
    max-width: none !important; max-height: none !important;
    margin: 0 !important; border-radius: 0 !important;
    z-index: 99999;
    background: #000;
}
.vshort-player-wrapper.is-theater-fallback .vshort-player-stage{
    width: 100vw !important; height: 100vh !important; height: 100dvh !important;
    max-width: none !important; max-height: none !important;
    aspect-ratio: auto !important; border-radius: 0 !important; box-shadow: none !important;
}
.vshort-player-wrapper.is-theater-fallback .vshort-video{
    width: 100% !important; height: 100% !important; object-fit: contain !important;
}

/* ============================================================
   SERIES INFO (Phase 3)
   ============================================================ */

.vshort-info{
    padding: 20px 14px;
    max-width: 1100px;
    margin: 0 auto;
}
.vshort-info-inner{
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
@media (min-width: 768px){
    .vshort-info-inner{ grid-template-columns: 180px 1fr; gap: 24px; }
}
.vshort-info-poster{
    position: relative;
    isolation: isolate;            /* กัน z-index ของ img หลุดไปทับ score badge */
    border-radius: var(--vs-radius);
    overflow: hidden;
    aspect-ratio: 9/16;
    background: var(--vs-bg-2);
    background-size: cover; background-position: center;
    box-shadow: var(--vs-shadow);
}
/* พื้นหลังเบลอ (รูปเดียวกัน) เติมเต็มกรอบ — กันขอบดำเวลารูปไม่ใช่แนวตั้ง */
.vshort-info-poster::before{
    content: ""; position: absolute; inset: 0;
    background-image: inherit;
    background-size: cover; background-position: center;
    filter: blur(18px) brightness(.5);
    transform: scale(1.15);
}
.vshort-info-poster img{
    position: relative; z-index: 1;
    width:100%; height:100%;
    object-fit: contain;            /* โชว์รูปเต็มไม่ถูก crop */
    display: block;
}

.vshort-info-meta{ min-width: 0; }
.vshort-info-title{
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}
@media (min-width: 768px){ .vshort-info-title{ font-size: 1.8rem; } }
.vshort-info-badges{
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-bottom: 16px;
}
.vshort-info-actions{
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.vshort-info-actions .vshort-btn{ padding: 10px 16px; font-size: .82rem; }
.vshort-info-desc{
    color: var(--vs-text-2);
    font-size: .85rem; line-height: 1.7;
    background: var(--vs-bg-2);
    padding: 14px 16px;
    border-radius: var(--vs-radius-sm);
    border: 1px solid var(--vs-border);
}

/* ===== Episode pills (outer list — for SEO) ===== */
.vshort-eps-section-title{
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
}
.vshort-eps-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}
.vshort-ep-pill{
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 10px 6px;
    background: var(--vs-bg-2);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius-sm);
    color: var(--vs-text);
    text-align: center;
    transition: all .15s;
}
.vshort-ep-pill:hover{
    background: var(--vs-bg-3);
    border-color: var(--vs-accent);
    transform: translateY(-1px);
}
.vshort-ep-pill-num{
    font-size: .9rem; font-weight: 700;
    color: var(--vs-accent);
}
.vshort-ep-pill-name{
    font-size: .65rem; color: var(--vs-text-3);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.vshort-footer{
    margin-top: 40px;
    padding: 20px 16px;
    border-top: 1px solid var(--vs-border);
    background: var(--vs-bg-2);
}
.vshort-footer-inner{
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    max-width: 1100px; margin: 0 auto;
}
.vshort-footer-brand{
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; color: var(--vs-text);
}
.vshort-footer-meta{ color: var(--vs-text-3); font-size: .78rem; }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.vshort-card-skeleton{ pointer-events: none; }
.vshort-skel-img{
    width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--vs-bg-2), var(--vs-bg-3), var(--vs-bg-2));
    background-size: 200% 100%;
    animation: vshort-skel 1.4s ease-in-out infinite;
}
@keyframes vshort-skel{
    0%{ background-position: 200% 0; }
    100%{ background-position: -200% 0; }
}

/* ============================================================
   ENHANCED LANDING PAGE — Hero Carousel, Stats, Sections, CTA
   ============================================================ */

/* ===== Hero Carousel ===== */
.vshort-hero-section{
    position: relative;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    margin-bottom: 18px;
}
.vshort-hero-carousel{
    position: relative;
    height: 460px;
    overflow: hidden;
}
@media (max-width: 767px){
    .vshort-hero-carousel{ height: 260px; }
    .vshort-hero-section{ border-radius: 0 0 16px 16px; margin-bottom: 12px; }
    .vshort-hero-content{ grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 14px; }
    .vshort-hero-title-main{ font-size: 1.05rem; margin: 0 0 4px; }
    .vshort-hero-desc{ font-size: .76rem; margin: 0 0 10px; -webkit-line-clamp: 2; }
    .vshort-hero-badges{ margin-bottom: 4px; }
    .vshort-hero-actions .vshort-btn-lg{ padding: 8px 14px; font-size: .8rem; }
}
@media (max-width: 380px){
    .vshort-hero-carousel{ height: 230px; }
    .vshort-hero-content{ grid-template-columns: 96px 1fr; padding: 14px 12px; }
    .vshort-hero-title-main{ font-size: .98rem; }
    .vshort-hero-desc{ font-size: .72rem; }
}

.vshort-hero-slide{
    position: absolute; inset: 0;
    opacity: 0; transform: scale(1.04);
    transition: opacity .6s ease, transform .8s ease;
    pointer-events: none;
}
.vshort-hero-slide.is-active{
    opacity: 1; transform: scale(1);
    pointer-events: auto;
}
.vshort-hero-bg{
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: blur(18px) brightness(.5) saturate(1.2);
    transform: scale(1.15);
}
.vshort-hero-overlay{
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at top right, rgba(255,45,85,.18), transparent 50%),
        linear-gradient(180deg, rgba(10,10,14,.4), rgba(10,10,14,.85));
}
.vshort-hero-content{
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    padding: 30px 18px;
    max-width: 1100px; margin: 0 auto;
    height: 100%;
    align-items: center;
}
@media (min-width: 768px){
    .vshort-hero-content{ grid-template-columns: 200px 1fr; gap: 28px; padding: 40px 30px; }
}
@media (min-width: 1100px){
    .vshort-hero-content{ grid-template-columns: 240px 1fr; gap: 36px; padding: 50px 40px; }
}

.vshort-hero-poster{
    position: relative;
    aspect-ratio: 9/16;
    border-radius: var(--vs-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
    transform: rotate(-2deg);
    transition: transform .3s;
}
.vshort-hero-slide.is-active .vshort-hero-poster{ transform: rotate(0deg); }
.vshort-hero-poster img{ width:100%; height:100%; object-fit: cover; }
.vshort-hero-flag{
    position: absolute; top: 8px; left: 8px;
    background: linear-gradient(135deg, var(--vs-accent), var(--vs-accent-2));
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .65rem; font-weight: 700;
    box-shadow: 0 4px 14px rgba(255,45,85,.45);
    animation: vshort-pulse 1.5s ease-in-out infinite;
}
@keyframes vshort-pulse{
    0%, 100%{ transform: scale(1); }
    50%{ transform: scale(1.06); }
}

.vshort-hero-text{ min-width: 0; color: #fff; }
.vshort-hero-badges{
    display: flex; gap: 4px; flex-wrap: wrap;
    margin-bottom: 8px;
}
.vshort-hero-title-main{
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,.8);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px){ .vshort-hero-title-main{ font-size: 1.9rem; } }
@media (min-width: 1100px){ .vshort-hero-title-main{ font-size: 2.4rem; } }
.vshort-hero-desc{
    margin: 0 0 16px;
    font-size: .82rem;
    color: rgba(255,255,255,.85);
    line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px){ .vshort-hero-desc{ font-size: .92rem; -webkit-line-clamp: 3; } }
.vshort-hero-actions{ display: flex; gap: 8px; flex-wrap: wrap; }
.vshort-btn-lg{ padding: 11px 18px; font-size: .85rem; }

/* Hero navigation */
.vshort-hero-dots{
    position: absolute; bottom: 14px; left: 0; right: 0; z-index: 3;
    display: flex; justify-content: center; gap: 6px;
}
.vshort-hero-dot{
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.3);
    border: 0; padding: 0;
    transition: all .2s;
}
.vshort-hero-dot.is-active{
    width: 24px;
    background: var(--vs-accent);
}
.vshort-hero-nav{
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    background: rgba(0,0,0,.4); backdrop-filter: blur(8px);
    border-radius: 50%; color: #fff; z-index: 3;
    display: none; align-items: center; justify-content: center;
    transition: background .2s;
}
@media (min-width: 768px){ .vshort-hero-nav{ display: flex; } }
.vshort-hero-nav:hover{ background: var(--vs-accent); }
.vshort-hero-prev{ left: 12px; }
.vshort-hero-next{ right: 12px; }

/* ===== Stats Bar ===== */
.vshort-stats{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 14px;
    margin: 18px 0 6px;
    max-width: 1100px; margin-left: auto; margin-right: auto;
}
.vshort-stat-item{
    background: linear-gradient(135deg, var(--vs-bg-2), var(--vs-bg-3));
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    padding: 14px 8px;
    text-align: center;
    transition: transform .15s, border-color .2s;
}
.vshort-stat-item:hover{
    transform: translateY(-2px);
    border-color: var(--vs-accent);
}
.vshort-stat-num{
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--vs-accent);
    line-height: 1;
    margin-bottom: 4px;
}
.vshort-stat-num small{ font-size: .65rem; opacity: .7; }
.vshort-stat-label{
    font-size: .68rem;
    color: var(--vs-text-2);
    line-height: 1.3;
}
@media (min-width: 768px){
    .vshort-stats{ gap: 14px; }
    .vshort-stat-item{ padding: 18px 12px; }
    .vshort-stat-num{ font-size: 1.7rem; }
    .vshort-stat-label{ font-size: .8rem; }
}

/* ===== Section wrapper ===== */
.vshort-section{
    padding: 20px 0 8px;
    max-width: 1400px;
    margin: 0 auto;
}
.vshort-section-head{
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    margin-bottom: 14px;
}
.vshort-section-title{
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex; align-items: center; gap: 8px;
}
@media (min-width: 768px){ .vshort-section-title{ font-size: 1.35rem; } }
.vshort-section-sub{
    font-size: .78rem;
    color: var(--vs-text-3);
}

/* ===== Horizontal scroll row (Hot section) ===== */
.vshort-row-scroll{
    display: flex; gap: 12px;
    overflow-x: auto;
    padding: 4px 14px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.vshort-row-scroll::-webkit-scrollbar{ height: 6px; }
.vshort-row-scroll::-webkit-scrollbar-thumb{ background: var(--vs-bg-3); border-radius: 3px; }
.vshort-row-scroll::-webkit-scrollbar-track{ background: transparent; }

.vshort-rank-card{
    flex: 0 0 218px;
    display: grid;
    grid-template-columns: 34px 56px 1fr;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--vs-bg-2), color-mix(in srgb, var(--vs-bg-2) 65%, #000));
    border: 1px solid var(--vs-border);
    border-radius: 13px;
    overflow: hidden;
    color: var(--vs-text);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    scroll-snap-align: start;
    padding: 7px 12px 7px 2px;
}
.vshort-rank-card:hover{
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--vs-accent) 55%, transparent);
    box-shadow: 0 10px 24px -6px rgba(0,0,0,.5),
                0 0 0 1px color-mix(in srgb, var(--vs-accent) 30%, transparent);
}
.vshort-rank-num{
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(180deg, var(--vs-accent), color-mix(in srgb, var(--vs-accent) 8%, transparent));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--vs-accent);
    font-style: italic;
    line-height: 1;
}
.vshort-rank-cover{
    position: relative;
    aspect-ratio: 9/16;
    overflow: hidden;
    border-radius: 8px;
    align-self: center;
    background: var(--vs-bg-3);
    box-shadow: 0 4px 12px -4px rgba(0,0,0,.55);
}
.vshort-rank-cover img{ width:100%; height:100%; object-fit: cover; display: block; }
.vshort-rank-flag{
    position: absolute; top: 4px; left: 4px;
    background: var(--vs-accent); color: #fff;
    font-size: .5rem; font-weight: 700; line-height: 1;
    padding: 2px 5px; border-radius: 5px;
}
.vshort-rank-info{
    display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 4px;
}
.vshort-rank-title{
    font-size: .82rem; font-weight: 600; line-height: 1.3;
    overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.vshort-rank-meta{
    display: flex; gap: 10px; flex-wrap: wrap;
    font-size: .66rem; color: var(--vs-text-3);
}
.vshort-rank-meta span{ display: inline-flex; align-items: center; gap: 3px; }

/* ===== Card play icon on hover ===== */
.vshort-card-play{
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    z-index: 2;
    pointer-events: none;
    background: rgba(0,0,0,.3);
}
.vshort-card-play i{
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--vs-accent);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 6px 22px rgba(255,45,85,.55);
    transform: scale(.85);
    transition: transform .25s;
}
.vshort-card:hover .vshort-card-play{ opacity: 1; }
.vshort-card:hover .vshort-card-play i{ transform: scale(1); }

/* ===== CTA Banner ===== */
.vshort-cta{
    margin: 30px 14px;
    padding: 24px 22px;
    background:
        radial-gradient(ellipse at top right, rgba(255,45,85,.18), transparent 60%),
        linear-gradient(135deg, var(--vs-bg-2), var(--vs-bg-3));
    border: 1px solid var(--vs-border-2);
    border-radius: 20px;
    box-shadow: var(--vs-shadow);
}
.vshort-cta-inner{
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
@media (min-width: 768px){
    .vshort-cta-inner{ grid-template-columns: 1fr auto; gap: 30px; }
}
.vshort-cta-eyebrow{
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,45,85,.12);
    color: var(--vs-accent);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: .72rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.vshort-cta-title{
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}
@media (min-width: 768px){ .vshort-cta-title{ font-size: 1.6rem; } }
.vshort-cta-desc{
    margin: 0;
    color: var(--vs-text-2);
    font-size: .85rem;
    line-height: 1.6;
}
.vshort-cta-stats{
    display: flex; gap: 18px;
    justify-content: space-around;
}
@media (min-width: 768px){ .vshort-cta-stats{ gap: 24px; } }
.vshort-cta-stats > div{ text-align: center; }
.vshort-cta-stats strong{
    display: block;
    font-size: 1.4rem;
    color: var(--vs-accent);
    font-weight: 800;
}
.vshort-cta-stats span{
    font-size: .68rem;
    color: var(--vs-text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Hero overlay tabs (extend existing tabs) ===== */
.vshort-tabs{ padding: 14px 12px 12px; }
.vshort-tab i{ font-size: .7rem; margin-right: 2px; }

/* ===== Scroll reveal ===== */
.vshort-reveal{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}
.vshort-reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
}

/* ===== Hero on small screens ===== */
@media (max-width: 480px){
    .vshort-hero-content{ grid-template-columns: 100px 1fr; gap: 12px; padding: 20px 14px; }
    .vshort-hero-title-main{ font-size: 1.05rem; }
    .vshort-hero-desc{ font-size: .76rem; -webkit-line-clamp: 2; }
    .vshort-btn-lg{ padding: 9px 14px; font-size: .76rem; }
}

/* ============================================================
   FIXED BOTTOM NAVIGATION
   ============================================================ */
body{
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0)); /* เผื่อพื้นที่ให้ bottom nav (ไม่บัง footer) */
}
/* footer ต้องมี margin-bottom เผื่อ bottom-nav บัง */
.vshort-footer{
    margin-bottom: calc(70px + env(safe-area-inset-bottom, 0));
}

.vshort-bottom-nav{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0));
    /* สีพื้นปรับตาม theme preset + tint accent เล็กน้อย */
    background:
        linear-gradient(180deg,
            transparent 0%,
            color-mix(in srgb, var(--vs-accent) 5%, var(--vs-bg)) 50%),
        color-mix(in srgb, var(--vs-bg) 92%, transparent);
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    border-top: 1px solid color-mix(in srgb, var(--vs-accent) 22%, var(--vs-border-2));
    box-shadow:
        0 -8px 28px -4px color-mix(in srgb, var(--vs-accent) 18%, transparent),
        0 -2px 6px rgba(0,0,0,.4);
}
/* Top accent line — โทนสี theme */
.vshort-bottom-nav::before{
    content: '';
    position: absolute; left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--vs-accent),
        var(--vs-accent-2),
        transparent);
    opacity: .55;
}

.vshort-bnav-item{
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    color: var(--vs-text-3);
    font-size: .62rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s, transform .15s;
    border-radius: 10px;
}
.vshort-bnav-item i{
    font-size: 1.2rem;
    line-height: 1;
    transition: transform .15s, color .2s;
}
.vshort-bnav-item span{
    font-size: .65rem;
    transition: color .2s;
}
.vshort-bnav-item:hover, .vshort-bnav-item:active{
    color: var(--vs-text);
}
.vshort-bnav-item:hover i{ transform: translateY(-1px); }

/* Active state — ใช้สี accent + indicator dot + glow */
.vshort-bnav-item.is-active{
    color: var(--vs-accent);
}
.vshort-bnav-item.is-active i{
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--vs-accent) 50%, transparent));
}
.vshort-bnav-item.is-active::before{
    content: '';
    position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
    width: 22px; height: 3px;
    background: linear-gradient(90deg, var(--vs-accent), var(--vs-accent-2));
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--vs-accent) 50%, transparent);
}

/* CTA button — กลาง เด่น ใช้ gradient theme */
.vshort-bnav-cta{
    position: relative;
}
.vshort-bnav-cta i{
    background: linear-gradient(135deg, var(--vs-accent), var(--vs-accent-2));
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 8px 22px -2px color-mix(in srgb, var(--vs-accent) 55%, transparent),
        0 0 0 3px color-mix(in srgb, var(--vs-accent) 18%, transparent),
        0 0 0 6px color-mix(in srgb, var(--vs-bg) 90%, transparent);
    margin-top: -16px;
    margin-bottom: 2px;
    font-size: 1.15rem;
    transition: transform .2s, box-shadow .2s;
}
.vshort-bnav-cta:hover i{
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 12px 28px -2px color-mix(in srgb, var(--vs-accent) 65%, transparent),
        0 0 0 3px color-mix(in srgb, var(--vs-accent) 28%, transparent),
        0 0 0 6px color-mix(in srgb, var(--vs-bg) 90%, transparent);
}
.vshort-bnav-cta:hover span{ color: var(--vs-accent); }

/* Hide on desktop player fullscreen */
.vshort-player-wrapper.is-fullscreen ~ .vshort-bottom-nav,
.vshort-player-wrapper.is-theater-fallback ~ .vshort-bottom-nav{
    display: none;
}

/* ============================================================
   SIDE MENU (slide-up overlay จาก bottom nav)
   ============================================================ */
.vshort-side-menu{
    position: fixed; inset: 0;
    z-index: 101;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}
.vshort-side-menu[aria-hidden="false"]{
    pointer-events: auto;
    opacity: 1;
}
.vshort-side-menu-backdrop{
    position: absolute; inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.vshort-side-menu-panel{
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, var(--vs-bg-2), var(--vs-bg-3));
    border-top: 1px solid var(--vs-border-2);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
}
.vshort-side-menu[aria-hidden="false"] .vshort-side-menu-panel{
    transform: translateY(0);
}
.vshort-side-menu-head{
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--vs-border);
}
.vshort-side-menu-head h3{
    margin: 0;
    font-size: 1rem; font-weight: 700;
}
.vshort-side-menu-close{
    width: 34px; height: 34px;
    border-radius: 50%;
    color: var(--vs-text-2);
    font-size: 1rem;
    background: transparent;
    transition: all .15s;
}
.vshort-side-menu-close:hover{ background: var(--vs-bg-3); color: var(--vs-text); }
.vshort-side-menu-list{
    display: flex; flex-direction: column;
    padding: 8px 12px 14px;
}
.vshort-side-menu-list a{
    display: flex; align-items: center; gap: 12px;
    padding: 14px 14px;
    border-radius: 10px;
    color: var(--vs-text);
    font-size: .9rem;
    transition: background .15s;
}
.vshort-side-menu-list a:hover{
    background: var(--vs-bg-3);
}
.vshort-side-menu-list a i{
    width: 26px;
    color: var(--vs-accent);
    font-size: .95rem;
}

/* Desktop: side menu เป็น centered modal แทน bottom sheet */
@media (min-width: 768px){
    .vshort-side-menu-panel{
        left: 50%; right: auto; bottom: 50%;
        transform: translate(-50%, 50%) translateY(40px);
        width: 420px; max-width: 90vw;
        max-height: 80vh;
        border-radius: 18px;
        border: 1px solid var(--vs-border-2);
    }
    .vshort-side-menu[aria-hidden="false"] .vshort-side-menu-panel{
        transform: translate(-50%, 50%) translateY(0);
    }
}

/* ============================================================
   PAGINATION (เลขหน้า)
   ============================================================ */
.vshort-pager{
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 28px 14px 24px;
    margin: 0 auto;
    list-style: none;
    width: 100%;
    text-align: center;
}
.vshort-pagination{
    display: flex; justify-content: center; align-items: center;
    width: 100%;
}
.vshort-pager-btn,
.vshort-pager-num{
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 8px;
    background: var(--vs-bg-2);
    border: 1px solid var(--vs-border);
    color: var(--vs-text);
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
    user-select: none;
}
.vshort-pager-btn:hover,
.vshort-pager-num:hover{
    background: var(--vs-bg-3);
    border-color: var(--vs-accent);
    color: var(--vs-accent);
    transform: translateY(-1px);
}
.vshort-pager-num.is-current{
    background: linear-gradient(135deg, var(--vs-accent), var(--vs-accent-2));
    border-color: var(--vs-accent);
    color: #fff;
    cursor: default;
    box-shadow: 0 4px 14px rgba(255,45,85,.4);
}
.vshort-pager-num.is-current:hover{
    transform: none;
}
.vshort-pager-btn.is-disabled{
    opacity: .35;
    pointer-events: none;
}
.vshort-pager-dots{
    color: var(--vs-text-3);
    padding: 0 4px;
    font-weight: 700;
}
.vshort-pager-edge{
    background: transparent;
    border-color: var(--vs-border-2);
}

.vshort-pager-info{
    text-align: center;
    margin: 4px auto 16px;
    color: var(--vs-text-3);
    font-size: .78rem;
}
.vshort-pager-info strong{
    color: var(--vs-accent);
}

/* Mobile: smaller pagination */
@media (max-width: 480px){
    .vshort-pager-btn,
    .vshort-pager-num{
        min-width: 34px; height: 34px;
        font-size: .78rem;
    }
    .vshort-pager-edge{ display: none; } /* ซ่อนปุ่ม First/Last บนมือถือ ประหยัดที่ */
}

/* ============================================================
   PAGE INDICATOR — แสดงเมื่ออยู่หน้า paginate (page > 1)
   ============================================================ */
.vshort-page-indicator{
    margin: 14px 14px 4px;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--vs-accent) 14%, transparent),
            color-mix(in srgb, var(--vs-accent-2) 6%, transparent) 60%),
        var(--vs-bg-2);
    border: 1px solid color-mix(in srgb, var(--vs-accent) 25%, var(--vs-border));
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow:
        0 8px 24px -8px color-mix(in srgb, var(--vs-accent) 30%, transparent),
        inset 0 1px 0 rgba(255,255,255,.04);
    position: relative;
    overflow: hidden;
}
.vshort-page-indicator::before{
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--vs-accent), var(--vs-accent-2));
}

.vshort-pi-inner{
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}
@media (max-width: 600px){
    .vshort-pi-inner{
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
}

.vshort-pi-back{
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: color-mix(in srgb, var(--vs-accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--vs-accent) 32%, transparent);
    border-radius: 20px;
    color: var(--vs-accent);
    text-decoration: none;
    font-size: .82rem; font-weight: 600;
    transition: all .15s;
}
.vshort-pi-back:hover{
    background: var(--vs-accent);
    color: #fff;
    transform: translateX(-2px);
}
.vshort-pi-back i{ font-size: .75rem; }

.vshort-pi-center{
    display: inline-flex; align-items: baseline; gap: 6px;
    justify-content: center;
}
.vshort-pi-page-label{
    font-size: .78rem;
    color: var(--vs-text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.vshort-pi-page-num{
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--vs-accent), var(--vs-accent-2));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.vshort-pi-page-total{
    font-size: 1rem;
    color: var(--vs-text-2);
    font-weight: 600;
}

.vshort-pi-meta{
    display: flex; gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
@media (max-width: 600px){
    .vshort-pi-meta{ justify-content: center; }
}
.vshort-pi-filter,
.vshort-pi-count{
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--vs-border);
    border-radius: 14px;
    font-size: .72rem;
    color: var(--vs-text-2);
}
.vshort-pi-filter{
    color: var(--vs-accent);
    border-color: color-mix(in srgb, var(--vs-accent) 30%, transparent);
}
.vshort-pi-filter i,
.vshort-pi-count i{ font-size: .65rem; }

/* ============================================================
   MOVIE DETAIL PAGE ENHANCEMENTS
   ============================================================ */

/* Score badge on poster */
.vshort-info-poster{ position: relative; }
.vshort-info-score{
    position: absolute; bottom: 8px; left: 8px;
    z-index: 2;                  /* ต้องสูงกว่า img (z:1) ไม่งั้นโดน poster ทับ */
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fbbf24;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: .72rem;
    font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid rgba(251,191,36,.3);
}

/* Eyebrow text (above title) */
.vshort-info-eyebrow{
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .72rem; font-weight: 600;
    color: var(--vs-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.vshort-info-dot{
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--vs-text-3);
    display: inline-block;
}
.vshort-info-dot.is-live{
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: vshort-pulse 1.5s ease-in-out infinite;
}

/* Icon-only button */
.vshort-btn-icon{
    width: 40px; height: 40px; padding: 0;
    justify-content: center;
    flex: 0 0 auto;
}

/* Description with read-more */
.vshort-info-desc-text{
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: -webkit-line-clamp .3s;
}
.vshort-info-desc-text.is-expanded{
    -webkit-line-clamp: unset;
    display: block;
}
.vshort-desc-toggle{
    margin-top: 10px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--vs-border);
    border-radius: 16px;
    color: var(--vs-accent);
    font-size: .76rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all .15s;
}
.vshort-desc-toggle:hover{
    background: rgba(255,45,85,.1);
    border-color: var(--vs-accent);
}

/* Info Stats Bar — under poster + meta */
.vshort-info-stats{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 22px 0 26px;
    padding: 16px;
    background: linear-gradient(135deg, var(--vs-bg-2), var(--vs-bg-3));
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
}
@media (min-width: 768px){
    .vshort-info-stats{ grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 18px 22px; }
}
.vshort-info-stat{
    display: flex; align-items: center; gap: 12px;
    padding: 8px 10px;
    border-radius: var(--vs-radius-sm);
    background: rgba(255,255,255,.02);
    border: 1px solid transparent;
    transition: all .15s;
}
.vshort-info-stat:hover{
    background: rgba(255,255,255,.04);
    border-color: var(--vs-border);
}
.vshort-info-stat i{
    width: 40px; height: 40px;
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(255,45,85,.15), rgba(255,45,85,.05));
    border-radius: 10px;
    color: var(--vs-accent);
    font-size: 1.1rem;
}
.vshort-info-stat strong{
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--vs-text);
    line-height: 1.1;
}
.vshort-info-stat span{
    display: block;
    font-size: .68rem;
    color: var(--vs-text-3);
    margin-top: 2px;
}

/* Episode section header */
.vshort-eps-section{
    margin-top: 20px;
}
.vshort-eps-section-head{
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 14px;
}
.vshort-eps-section-title i{
    color: var(--vs-accent);
    margin-right: 4px;
}
.vshort-eps-section-sub{
    font-size: .78rem;
    color: var(--vs-text-3);
    background: var(--vs-bg-2);
    padding: 3px 12px;
    border-radius: 10px;
    border: 1px solid var(--vs-border);
}

/* Episode pill — improved with checkmark */
.vshort-ep-pill{ position: relative; }
.vshort-ep-pill-check{
    position: absolute;
    top: 4px; right: 4px;
    font-size: .7rem;
    color: var(--vs-accent);
    opacity: 0;
    transition: opacity .15s;
}
.vshort-ep-pill.is-watched .vshort-ep-pill-check{ opacity: 1; }
.vshort-ep-pill.is-current{
    background: linear-gradient(135deg, rgba(255,45,85,.18), rgba(255,45,85,.05));
    border-color: var(--vs-accent);
}
.vshort-ep-pill.is-current .vshort-ep-pill-num{ color: #fff; background: var(--vs-accent); padding: 1px 6px; border-radius: 4px; }

/* Related section — recommended series */
.vshort-related-section{
    padding-top: 30px;
    padding-bottom: 30px;
    border-top: 1px solid var(--vs-border);
    margin-top: 30px;
}
.vshort-section-link{
    color: var(--vs-accent);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
}
.vshort-section-link:hover{ color: var(--vs-accent-2); }

/* Horizontal scroll cards (related ตอนใหม่) */
.vshort-related-card{
    flex: 0 0 140px;
    background: transparent;
    color: var(--vs-text);
    text-decoration: none;
    transition: transform .15s;
}
@media (min-width: 768px){ .vshort-related-card{ flex: 0 0 160px; } }
.vshort-related-card:hover{ transform: translateY(-3px); }
.vshort-related-cover{
    position: relative;
    aspect-ratio: 9/16;
    border-radius: var(--vs-radius);
    overflow: hidden;
    background: var(--vs-bg-3);
    margin-bottom: 8px;
    box-shadow: var(--vs-shadow);
}
.vshort-related-cover img{
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s;
}
.vshort-related-card:hover .vshort-related-cover img{ transform: scale(1.05); }
.vshort-related-flag{
    position: absolute; top: 6px; left: 6px;
    background: linear-gradient(135deg, var(--vs-accent), var(--vs-accent-2));
    color: #fff;
    font-size: .6rem; font-weight: 700;
    padding: 3px 7px; border-radius: 5px;
    box-shadow: 0 4px 12px rgba(255,45,85,.4);
}
.vshort-related-play{
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    background: rgba(0,0,0,.3);
}
.vshort-related-card:hover .vshort-related-play{ opacity: 1; }
.vshort-related-play i{
    width: 40px; height: 40px;
    background: var(--vs-accent);
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    box-shadow: 0 4px 14px rgba(255,45,85,.5);
}
.vshort-related-info{ padding: 0 2px; }
.vshort-related-title{
    font-size: .82rem;
    font-weight: 600;
    color: var(--vs-text);
    margin-bottom: 3px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.vshort-related-meta{
    display: flex; gap: 8px;
    font-size: .65rem; color: var(--vs-text-3);
}

/* Related grid — full-width grid below scroll row */
.vshort-grid-related{
    padding: 0 14px;
}
@media (min-width: 1200px){
    .vshort-grid-related{ max-width: 1100px; margin: 0 auto; }
}

/* ============================================================
   ADS — Banner ads renderer
   ============================================================ */
.vshort-ads{
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    padding: 10px 14px;
    max-width: 1100px; margin: 0 auto;
}
.vshort-ads img{
    max-width: 100%;
    height: auto;
    border-radius: var(--vs-radius-sm);
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
    display: block;
}
.vshort-ad-link{ display: inline-block; transition: transform .15s; }
.vshort-ad-link:hover{ transform: translateY(-2px); }
.vshort-ad-code{
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
}
/* Banner layout — 1 or 2 per row (จาก banner_setting)
   ⚠ ใช้ !important เพื่อ override .vshort-ad-code { max-width:728px } + .vshort-ad-link { display:inline-block } เดิม */
.vshort-ads-1col > *,
.vshort-ads-1col > .vshort-ad-link,
.vshort-ads-1col > .vshort-ad-code{
    flex: 1 1 100% !important;
    max-width: 100% !important;
    display: block !important;
    width: 100% !important;
}
.vshort-ads-2col > *,
.vshort-ads-2col > .vshort-ad-link,
.vshort-ads-2col > .vshort-ad-code{
    flex: 0 1 calc(50% - 5px) !important;    /* flex-basis 50% - gap/2 */
    max-width: calc(50% - 5px) !important;   /* override .vshort-ad-code:728px */
    width: calc(50% - 5px) !important;
    min-width: 0 !important;
    display: block !important;               /* override inline-block ของ .vshort-ad-link */
    box-sizing: border-box;
}
.vshort-ads-2col > .vshort-ad-link img,
.vshort-ads-2col > .vshort-ad-code img{
    width: 100% !important;                  /* รูปเต็มความกว้าง cell */
    height: auto !important;
    max-width: 100% !important;
    display: block;
}
/* Mobile — 2col fallback เป็น 1 อัน/แถว ถ้าจอเล็กมาก */
@media (max-width: 480px){
    .vshort-ads-2col > *,
    .vshort-ads-2col > .vshort-ad-link,
    .vshort-ads-2col > .vshort-ad-code{
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Position-specific spacing */
.vshort-ads-a{ padding-top: 12px; padding-bottom: 4px; }
.vshort-ads-bcat{ padding: 18px 14px; }
.vshort-ads-footer{
    padding: 22px 14px;
    background: var(--vs-bg-2);
    border-top: 1px solid var(--vs-border);
    margin: 24px auto 0;        /* auto = centered horizontally */
    max-width: none;             /* ขยายเต็มจอเพื่อให้ bg ดูเป็น footer ban */
    width: 100%;
    text-align: center;          /* fallback กรณี ad code (non-flex) */
}
.vshort-ads-footer > *{
    margin-left: auto;
    margin-right: auto;          /* บังคับให้ a/img/iframe centered */
}
.vshort-ads-m1{ padding: 10px 14px 6px; }
.vshort-ads-m2{ padding: 6px 14px 12px; }

/* ============================================================
   PREROLL VIDEO AD — with CTA button + skip
   ============================================================ */
.vshort-preroll{
    position: absolute; inset: 0;
    z-index: 12;
    background: #000;
    display: none;
    align-items: center; justify-content: center;
}
.vshort-preroll.is-active{ display: flex; }
.vshort-preroll video{
    width: 100%; height: 100%;
    object-fit: contain;
}

/* Ad badge (top-left) */
.vshort-preroll-badge{
    position: absolute; top: 12px; left: 12px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    color: rgba(255,255,255,.85);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .03em;
}
.vshort-preroll-badge i{ font-size: .6rem; color: #facc15; }

/* Actions row — "สมัครเลย" + "ข้ามโฆษณา" อยู่แถวเดียวกัน กลาง-ล่าง */
.vshort-preroll-actions{
    position: absolute;
    left: 50%; bottom: 18px;
    transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center;
    gap: 12px; z-index: 13;
    width: max-content; max-width: calc(100% - 24px);
    flex-wrap: nowrap;
}

/* CTA "สมัครเลย" — eye-catching (อยู่ในแถว actions) */
.vshort-preroll-cta{
    position: relative;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--vs-accent), var(--vs-accent-2));
    color: #fff;
    text-decoration: none;
    border-radius: 32px;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow:
        0 12px 36px -6px color-mix(in srgb, var(--vs-accent) 60%, transparent),
        0 0 0 4px rgba(255,255,255,.05),
        inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .2s, box-shadow .2s;
    animation: vshort-cta-pulse 2s ease-in-out infinite;
    white-space: nowrap;
}
.vshort-preroll-cta:hover{
    transform: translateY(-3px) scale(1.05);
    color: #fff;
    box-shadow:
        0 18px 42px -4px color-mix(in srgb, var(--vs-accent) 70%, transparent),
        0 0 0 6px rgba(255,255,255,.1),
        inset 0 1px 0 rgba(255,255,255,.3);
}
.vshort-preroll-cta:active{ transform: translateY(-1px) scale(1.02); }
.vshort-preroll-cta i:first-child{
    font-size: 1rem;
    animation: vshort-bolt 1.5s ease-in-out infinite;
}
.vshort-preroll-cta-arrow{ transition: transform .2s; }
.vshort-preroll-cta:hover .vshort-preroll-cta-arrow{ transform: translateX(4px); }

@keyframes vshort-cta-pulse{
    0%,100%{ box-shadow: 0 12px 36px -6px color-mix(in srgb, var(--vs-accent) 60%, transparent), 0 0 0 4px rgba(255,255,255,.05), inset 0 1px 0 rgba(255,255,255,.25); }
    50%    { box-shadow: 0 16px 44px -4px color-mix(in srgb, var(--vs-accent) 80%, transparent), 0 0 0 8px color-mix(in srgb, var(--vs-accent) 12%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }
}
@keyframes vshort-bolt{
    0%,100%{ transform: scale(1) rotate(0deg); }
    50%    { transform: scale(1.15) rotate(-8deg); }
}

/* Skip button — 2 states (counting / ready), อยู่ในแถว actions */
.vshort-preroll-skip{
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 22px;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    transition: all .2s;
}
.vshort-preroll-skip-counting,
.vshort-preroll-skip-ready{
    display: inline-flex; align-items: center; gap: 6px;
}
.vshort-preroll-skip-counting strong{
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 6px;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 800;
}

/* counting state — show "ข้ามใน 5", hide "ข้ามโฆษณา", cursor disabled */
.vshort-preroll-skip[data-state="counting"]{
    cursor: not-allowed;
    color: rgba(255,255,255,.75);
}
.vshort-preroll-skip[data-state="counting"] .vshort-preroll-skip-ready{ display: none; }

/* ready state — opposite */
.vshort-preroll-skip[data-state="ready"]{
    cursor: pointer;
    background: rgba(0,0,0,.8);
    border-color: rgba(255,255,255,.3);
}
.vshort-preroll-skip[data-state="ready"]:hover{
    background: var(--vs-accent);
    border-color: var(--vs-accent);
    transform: translateX(3px);
}
.vshort-preroll-skip[data-state="ready"] .vshort-preroll-skip-counting{ display: none; }

/* Mobile — ปุ่มเล็กลง + actions row ชิดล่างขึ้น */
@media (max-width: 480px){
    .vshort-preroll-actions{ bottom: 12px; gap: 8px; }
    .vshort-preroll-cta{
        padding: 11px 18px;
        font-size: .82rem;
    }
    .vshort-preroll-skip{
        padding: 9px 14px;
        font-size: .75rem;
    }
}

/* ============================================================
   OVERLAY AD — floating ad on player
   ============================================================ */
.vshort-overlay-ad{
    position: absolute;
    left: 50%; bottom: 84px;
    z-index: 8;
    max-width: 220px;
    background: var(--vs-bg-2);
    border: 1px solid color-mix(in srgb, var(--vs-accent) 30%, transparent);
    border-radius: var(--vs-radius-sm);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
}
.vshort-overlay-ad.is-visible{
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.vshort-overlay-ad.is-hidden{
    opacity: 0;
    pointer-events: none;
}
.vshort-overlay-ad img{
    width: 100%;
    height: auto;
    display: block;
}
.vshort-overlay-ad-close{
    position: absolute; top: 4px; right: 4px;
    width: 22px; height: 22px;
    background: rgba(0,0,0,.7);
    color: #fff;
    border-radius: 50%;
    font-size: .7rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.vshort-overlay-ad-close:hover{ background: var(--vs-accent); }

@media (min-width: 992px){
    .vshort-overlay-ad{ max-width: 200px; }
}


/* ============================================================
   LAUNCH BANNER — อยู่นอก player wrapper, ซ่อน player ทั้งก้อน
   ============================================================ */
/* ซ่อน player ทั้งก้อนจนกว่าจะกด play (เริ่มต้นมี class vshort-pending) */
.vshort-player-wrapper.vshort-pending{ display: none !important; }

/* ตอนโฆษณา preroll → ซ่อน control overlay + โลโก้ทั้ง 2 ตัว เพื่อไม่ให้บัง (preroll มีปุ่มข้าม/CTA ของตัวเอง) */
.vshort-player-wrapper.vshort-preroll-on .vshort-overlay-top,
.vshort-player-wrapper.vshort-preroll-on .vshort-overlay-bottom,
.vshort-player-wrapper.vshort-preroll-on .vshort-player-logo,
.vshort-player-wrapper.vshort-preroll-on .vshort-player-site-logo{
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.vshort-launch-banner{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 720px;
    margin: 0 auto 16px;
    border-radius: var(--vs-radius);
    overflow: hidden;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: #000;
    box-shadow: var(--vs-shadow);
}
.vshort-launch-bg{
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: brightness(.45) blur(2px);
    transform: scale(1.08);
}
.vshort-launch-content{
    position: relative; z-index: 1;
    text-align: center; color: #fff;
    padding: 22px; max-width: 92%;
}
.vshort-launch-title{
    font-size: 1.3rem; font-weight: 700; line-height: 1.3;
    margin: 0 0 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,.85);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.vshort-launch-meta{
    display: flex; justify-content: center; gap: 14px;
    font-size: .82rem; color: rgba(255,255,255,.85);
    margin-bottom: 18px;
}
.vshort-launch-meta span{ display: inline-flex; align-items: center; gap: 5px; }
.vshort-launch-play{
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 30px;
    border: none; border-radius: 32px;
    background: var(--vs-accent);
    color: #fff; font-size: 1rem; font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 14px 40px color-mix(in srgb, var(--vs-accent) 55%, transparent),
        0 0 0 4px rgba(255,255,255,.06);
    transition: transform .2s, box-shadow .2s;
    animation: vshort-launch-pulse 2.4s ease-in-out infinite;
}
.vshort-launch-play:hover{ transform: scale(1.04); }
.vshort-launch-play:active{ transform: scale(.96); }
.vshort-launch-play i{ font-size: 1.1rem; }
.vshort-launch-hint{
    margin-top: 14px;
    font-size: .78rem; color: rgba(255,255,255,.75);
    letter-spacing: .02em;
}
@keyframes vshort-launch-pulse{
    0%,100%{ box-shadow: 0 14px 40px color-mix(in srgb, var(--vs-accent) 55%, transparent), 0 0 0 4px rgba(255,255,255,.06); }
    50%   { box-shadow: 0 14px 52px color-mix(in srgb, var(--vs-accent) 78%, transparent), 0 0 0 10px color-mix(in srgb, var(--vs-accent) 12%, transparent); }
}
@media (max-width: 480px){
    .vshort-launch-banner{ aspect-ratio: 16 / 10; border-radius: 10px; }
    .vshort-launch-title{ font-size: 1.05rem; }
    .vshort-launch-play{ padding: 12px 24px; font-size: .92rem; }
}

/* ============================================================
   INTEREP — โฆษณาคั่นเปลี่ยนตอน (ระหว่าง ep ปัจจุบันจบ → ep ถัดไป)
   ============================================================ */
.vshort-interep{
    position: absolute; inset: 0;
    z-index: 14;
    display: none;
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 18px;
    padding: 24px;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.vshort-interep.is-active{ display: flex; }
.vshort-interep-ad{
    position: relative;
    display: block;
    width: 500px; max-width: 92%;
    max-height: 60%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
    transition: transform .2s, box-shadow .2s;
}
.vshort-interep-ad img{
    width: 100%; height: auto; display: block;
    aspect-ratio: 1/1; object-fit: cover;   /* รองรับ 500x500 + รูปสี่เหลี่ยมอื่นก็คงสัดส่วน */
}
.vshort-interep-badge{
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,.7);
    color: #facc15;
    font-size: .68rem; font-weight: 600;
    padding: 3px 9px; border-radius: 12px;
    display: inline-flex; align-items: center; gap: 4px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.vshort-interep-info{
    display: flex; align-items: center; gap: 14px;
    color: #fff; max-width: 92%;
    text-align: center;
}
.vshort-interep-hint{
    font-size: .95rem; font-weight: 600;
    text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.vshort-interep-ring{
    position: relative;
    width: 46px; height: 46px;
    flex-shrink: 0;
}
.vshort-interep-ring svg{ width: 100%; height: 100%; }
.vshort-interep-sec{
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 800;
}

/* Click mode — ซ่อน ring (ไม่มีนับถอยหลัง) + ให้รูปกระพริบ pulse ดึงดูดให้กด */
.vshort-interep[data-mode="click"] .vshort-interep-ring{ display: none; }
.vshort-interep[data-mode="click"] .vshort-interep-ad{
    cursor: pointer;
    animation: vshort-interep-pulse 1.8s ease-in-out infinite;
}
.vshort-interep[data-mode="click"] .vshort-interep-ad:hover{
    transform: scale(1.02);
}
@keyframes vshort-interep-pulse{
    0%,100%{ box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05); }
    50%   { box-shadow: 0 24px 70px color-mix(in srgb, var(--vs-accent) 55%, transparent), 0 0 0 4px color-mix(in srgb, var(--vs-accent) 18%, transparent); }
}

/* Mobile compact */
@media (max-width: 480px){
    .vshort-interep{ padding: 16px; gap: 14px; }
    .vshort-interep-hint{ font-size: .82rem; }
    .vshort-interep-ring{ width: 40px; height: 40px; }
    .vshort-interep-sec{ font-size: .9rem; }
}

/* ============================================================
   ONPAGE SEO SECTIONS — Header/Footer จาก dashboard/seo?type=onpage
   ============================================================ */
.vshort-onpage{
    width: 100%;
    padding: 28px 16px;
    margin: 14px 0;
}
.vshort-onpage-header{
    margin-top: 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.vshort-onpage-footer{
    margin-bottom: 0;
    border-top: 1px solid rgba(255,255,255,.05);
}
.vshort-onpage-inner{
    max-width: 1100px;
    margin: 0 auto;
}
.vshort-onpage-content{
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--vs-bg-2) 90%, var(--vs-accent) 4%),
        color-mix(in srgb, var(--vs-bg-2) 70%, #000 20%));
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    padding: 28px 26px;
    color: var(--vs-text);
    box-shadow:
        0 14px 38px -10px rgba(0,0,0,.5),
        0 0 0 1px color-mix(in srgb, var(--vs-accent) 8%, transparent);
    position: relative;
    overflow: hidden;
}
/* แถบสีบนซ้ายให้ดูพรีเมียม */
.vshort-onpage-content::before{
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--vs-accent), var(--vs-accent-2), transparent);
}

/* Prose typography ภายใน content (รองรับ HTML จาก SEO onpage) */
.vshort-onpage-content > *:first-child{ margin-top: 0; }
.vshort-onpage-content > *:last-child{ margin-bottom: 0; }
.vshort-onpage-content h1,
.vshort-onpage-content h2,
.vshort-onpage-content h3,
.vshort-onpage-content h4{
    color: var(--vs-text);
    font-weight: 700; line-height: 1.3;
    margin: 1.2em 0 .55em;
    letter-spacing: -.005em;
}
.vshort-onpage-content h1{ font-size: 1.55rem; }
.vshort-onpage-content h2{
    font-size: 1.3rem;
    padding-bottom: .35em;
    border-bottom: 2px solid color-mix(in srgb, var(--vs-accent) 35%, transparent);
}
.vshort-onpage-content h3{ font-size: 1.1rem; color: var(--vs-accent); }
.vshort-onpage-content h4{ font-size: .98rem; }
.vshort-onpage-content p{
    font-size: .92rem; line-height: 1.75;
    color: var(--vs-text-2);
    margin: 0 0 1em;
}
.vshort-onpage-content a{
    color: var(--vs-accent);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--vs-accent) 35%, transparent);
    transition: border-color .15s, color .15s;
}
.vshort-onpage-content a:hover{
    color: var(--vs-accent-2);
    border-bottom-color: var(--vs-accent-2);
}
.vshort-onpage-content ul,
.vshort-onpage-content ol{
    padding-left: 1.4em;
    margin: 0 0 1em;
}
.vshort-onpage-content li{
    font-size: .92rem; line-height: 1.7;
    color: var(--vs-text-2);
    margin-bottom: .4em;
}
.vshort-onpage-content strong,
.vshort-onpage-content b{ color: var(--vs-text); font-weight: 700; }
.vshort-onpage-content em,
.vshort-onpage-content i{ color: color-mix(in srgb, var(--vs-text) 90%, var(--vs-accent) 10%); }
.vshort-onpage-content blockquote{
    border-left: 3px solid var(--vs-accent);
    padding: .6em 1em;
    margin: 1em 0;
    color: var(--vs-text-2);
    background: color-mix(in srgb, var(--vs-accent) 4%, transparent);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
.vshort-onpage-content code{
    background: color-mix(in srgb, var(--vs-bg-3) 100%, transparent);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: .85em;
    color: var(--vs-accent-2);
    border: 1px solid var(--vs-border);
}
.vshort-onpage-content img{
    max-width: 100%; height: auto;
    border-radius: 8px;
    margin: .8em 0;
}
.vshort-onpage-content hr{
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--vs-border), transparent);
    margin: 1.5em 0;
}
.vshort-onpage-content table{
    width: 100%; border-collapse: collapse;
    margin: 1em 0;
    font-size: .88rem;
}
.vshort-onpage-content th,
.vshort-onpage-content td{
    padding: 8px 12px;
    border: 1px solid var(--vs-border);
    text-align: left;
}
.vshort-onpage-content th{
    background: color-mix(in srgb, var(--vs-accent) 10%, transparent);
    font-weight: 700;
}

/* Mobile tighter */
@media (max-width: 480px){
    .vshort-onpage{ padding: 18px 12px; margin: 8px 0; }
    .vshort-onpage-content{ padding: 18px 16px; border-radius: 10px; }
    .vshort-onpage-content h1{ font-size: 1.3rem; }
    .vshort-onpage-content h2{ font-size: 1.12rem; }
    .vshort-onpage-content h3{ font-size: 1rem; }
    .vshort-onpage-content p,
    .vshort-onpage-content li{ font-size: .87rem; line-height: 1.65; }
}
