
.wpvw{--wpvw-bg:#0f172a;--wpvw-card:#ffffff;--wpvw-border:rgba(15,23,42,.08);--wpvw-text:#0f172a;--wpvw-muted:#64748b;max-width:1180px;margin:0 auto;padding:20px}
.wpvw-title{margin:0 0 18px;font-size:clamp(28px,4vw,42px);line-height:1.08;font-weight:800;color:var(--wpvw-text);letter-spacing:-.03em}
.wpvw-player{background:linear-gradient(180deg,#111827,#0f172a);border-radius:26px;padding:16px;box-shadow:0 24px 60px rgba(15,23,42,.18);margin-bottom:22px}
.wpvw-player-frame{position:relative;border-radius:18px;overflow:hidden;background:#000}
.wpvw-player-frame:before{content:"";display:block;padding-top:56.25%}
.wpvw-player-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.wpvw-player-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 4px 4px}
.wpvw-current-title{font-size:clamp(16px,2vw,20px);font-weight:600;}
.wpvw-open-modal{border:none;border-radius:999px;padding:12px 18px;background:#fff;color:#0f172a;font-weight:700;cursor:pointer;transition:transform .18s ease,opacity .18s ease}
.wpvw-open-modal:hover{transform:translateY(-1px);opacity:.95}

.wpvw-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.wpvw-card{display:grid;grid-template-columns:180px 1fr;gap:14px;width:100%;text-align:left;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border:1px solid var(--wpvw-border);border-radius:20px;padding:12px;cursor:pointer;box-shadow:0 10px 30px rgba(15,23,42,.06);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.wpvw-card:hover{transform:translateY(-3px);box-shadow:0 18px 34px rgba(15,23,42,.1);border-color:rgba(15,23,42,.14)}
.wpvw-card.is-active{border-color:#111827;box-shadow:0 16px 36px rgba(15,23,42,.12)}
.wpvw-thumb{display:block}
.wpvw-thumb img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px}
.wpvw-meta{display:flex;flex-direction:column;justify-content:center;gap:8px;min-width:0}
.wpvw-card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:17px;line-height:1.35;color:var(--wpvw-text);font-weight:700}
.wpvw-date{font-size:13px;color:var(--wpvw-muted)}

.wpvw-modal[hidden]{display:none}
.wpvw-modal{position:fixed;inset:0;z-index:999999}
.wpvw-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.78);backdrop-filter:blur(4px)}
.wpvw-dialog{position:relative;z-index:2;width:min(1120px,92vw);margin:4vh auto;background:#000;border-radius:24px;padding:18px;box-shadow:0 30px 80px rgba(0,0,0,.45)}
.wpvw-modal-frame{position:relative;border-radius:16px;overflow:hidden}
.wpvw-modal-frame:before{content:"";display:block;padding-top:56.25%}
.wpvw-modal-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.wpvw-close{position:absolute;right:10px;top:10px;z-index:3;width:42px;height:42px;border:none;border-radius:999px;background:rgba(255,255,255,.15);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.wpvw-error{padding:16px 18px;border-radius:16px;background:#fff4f4;border:1px solid #fecaca;color:#991b1b}
@media (max-width:1100px){
  .wpvw-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media (max-width:700px){
  .wpvw-grid{grid-template-columns:1fr !important}
}
@media (max-width:640px){
  .wpvw{padding:14px}
  .wpvw-player{padding:12px;border-radius:20px}
  .wpvw-player-bar{flex-direction:column;align-items:flex-start}
  .wpvw-card{grid-template-columns:1fr}
}

.wpvw[data-columns="1"] .wpvw-grid{grid-template-columns:repeat(1,minmax(0,1fr))}
.wpvw[data-columns="2"] .wpvw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.wpvw[data-columns="3"] .wpvw-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.wpvw[data-columns="4"] .wpvw-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.wpvw[data-columns="3"] .wpvw-card,
.wpvw[data-columns="4"] .wpvw-card{grid-template-columns:1fr}


/* Layout variants */
.wpvw-layout-minimal{--wpvw-bg:#ffffff;--wpvw-card:#ffffff;--wpvw-border:#e5e7eb;--wpvw-text:#111827;--wpvw-muted:#6b7280}
.wpvw-layout-minimal .wpvw-player{background:#fff;border:1px solid #e5e7eb;box-shadow:0 10px 30px rgba(15,23,42,.06)}
.wpvw-layout-minimal .wpvw-current-title{font-size:clamp(16px,2vw,20px);font-weight:600;}
.wpvw-layout-minimal .wpvw-open-modal{background:#111827;color:#fff}
.wpvw-layout-minimal .wpvw-card{background:#fff;border-radius:14px;box-shadow:none}
.wpvw-layout-minimal .wpvw-card:hover{box-shadow:0 8px 20px rgba(15,23,42,.06)}
.wpvw-layout-minimal .wpvw-thumb img{border-radius:10px}
.wpvw-layout-minimal .wpvw-title{font-size:clamp(24px,3.3vw,34px)}

.wpvw-layout-cards{--wpvw-text:#0f172a;--wpvw-muted:#64748b}
.wpvw-layout-cards .wpvw-player{background:linear-gradient(135deg,#1d4ed8,#0f172a);box-shadow:0 24px 55px rgba(29,78,216,.18)}
.wpvw-layout-cards .wpvw-grid{gap:20px}
.wpvw-layout-cards .wpvw-card{border-radius:24px;padding:14px;background:linear-gradient(180deg,#ffffff,#f8fafc);box-shadow:0 16px 36px rgba(15,23,42,.08)}
.wpvw-layout-cards .wpvw-card:hover{transform:translateY(-5px);box-shadow:0 24px 42px rgba(15,23,42,.12)}
.wpvw-layout-cards .wpvw-thumb img{border-radius:18px}
.wpvw-layout-cards .wpvw-card-title{font-size:18px}
.wpvw-layout-cards .wpvw-open-modal{background:#dbeafe;color:#1e3a8a}

.wpvw-layout-premium .wpvw-player{background:linear-gradient(180deg,#111827,#0f172a)}


.wpvw{--wpvw-accent:#14b8a6;--wpvw-surface:#f6f7f8;--wpvw-radius:20px;background:var(--wpvw-surface)}
.wpvw-title{text-align:var(--wpvw-title-align,left)}
.wpvw-player-copy{display:flex;flex-direction:column;gap:6px}
.wpvw-kicker{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--wpvw-accent)}
.wpvw-current-date{font-size:14px;color:var(--wpvw-muted)}

.wpvw-layout-cards{padding:34px 28px;border-radius:0;box-shadow:none}
.wpvw-layout-cards .wpvw-title{margin:0 0 28px;text-align:center;color:var(--wpvw-accent);font-size:clamp(30px,4vw,52px)}
.wpvw-layout-cards .wpvw-player{max-width:860px;margin:0 auto 24px;background:transparent;box-shadow:none;padding:0}
.wpvw-layout-cards .wpvw-player-frame{border-radius:6px;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.wpvw-layout-cards .wpvw-player-bar{max-width:860px;margin:0 auto;padding:14px 0 0;align-items:flex-start}
.wpvw-layout-cards .wpvw-kicker{position:relative;padding-left:14px}
.wpvw-layout-cards .wpvw-kicker:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:4px;height:14px;background:var(--wpvw-accent);border-radius:999px}
.wpvw-layout-cards .wpvw-current-title{font-size:clamp(16px,2vw,20px);font-weight:600;}
.wpvw-layout-cards .wpvw-current-date{color:#6b7280}
.wpvw-layout-cards .wpvw-open-modal{background:#fff;border:1px solid rgba(0,0,0,.08);color:var(--wpvw-text);box-shadow:0 4px 16px rgba(15,23,42,.06)}
.wpvw-layout-cards .wpvw-grid{max-width:1040px;margin:10px auto 0;gap:18px}
.wpvw-layout-cards .wpvw-card{padding:0;background:transparent;border:none;border-radius:0;box-shadow:none;transform:none}
.wpvw-layout-cards .wpvw-card:hover{transform:none;box-shadow:none}
.wpvw-layout-cards .wpvw-card.is-active .wpvw-card-title{color:var(--wpvw-accent)}
.wpvw-layout-cards .wpvw-thumb{position:relative;display:block;border-radius:6px;overflow:hidden;box-shadow:0 6px 20px rgba(0,0,0,.08)}
.wpvw-layout-cards .wpvw-thumb:after{content:"▶";position:absolute;left:12px;bottom:12px;width:28px;height:28px;border-radius:8px;background:var(--wpvw-accent);display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;line-height:1;font-weight:700}
.wpvw-layout-cards .wpvw-thumb img{border-radius:0}
.wpvw-layout-cards .wpvw-meta{padding-top:10px;gap:6px}
.wpvw-layout-cards .wpvw-card-title{font-size:15px;line-height:1.35;font-weight:800}
.wpvw-layout-cards .wpvw-date{font-size:13px;color:#6b7280}

.wpvw-layout-premium .wpvw-player,
.wpvw-layout-minimal .wpvw-player,
.wpvw-layout-premium .wpvw-card,
.wpvw-layout-minimal .wpvw-card{border-radius:var(--wpvw-radius)}
.wpvw-layout-premium .wpvw-thumb img,
.wpvw-layout-minimal .wpvw-thumb img{border-radius:calc(var(--wpvw-radius) - 6px)}

@media (max-width:900px){
  .wpvw-layout-cards{padding:24px 16px}
  .wpvw-layout-cards .wpvw-player-bar{flex-direction:column;align-items:flex-start}
}


/* v3.5 radius fix */
.wpvw-player,
.wpvw-player-frame,
.wpvw-card,
.wpvw-thumb,
.wpvw-thumb img,
.wpvw-dialog,
.wpvw-modal-frame,
.wpvw-open-modal{
  border-radius: var(--wpvw-radius) !important;
}
.wpvw-layout-cards .wpvw-player-frame,
.wpvw-layout-cards .wpvw-thumb,
.wpvw-layout-cards .wpvw-thumb img,
.wpvw-layout-cards .wpvw-card{
  border-radius: var(--wpvw-radius) !important;
}
.wpvw-layout-cards .wpvw-thumb:after{
  border-radius: max(8px, calc(var(--wpvw-radius) * 0.4)) !important;
}


/* v3.6 polish */
.wpvw{color:var(--wpvw-text)}
.wpvw[style*="--wpvw-surface:#0f172a"] .wpvw-date,
.wpvw[style*="--wpvw-surface: #0f172a"] .wpvw-date,
.wpvw[style*="--wpvw-text:#f8fafc"] .wpvw-date{color:rgba(248,250,252,.8)}
.wpvw[style*="--wpvw-text:#f8fafc"] .wpvw-card-title,
.wpvw[style*="--wpvw-text: #f8fafc"] .wpvw-card-title{color:#f8fafc}
.wpvw[style*="--wpvw-text:#f8fafc"] .wpvw-card,
.wpvw[style*="--wpvw-text: #f8fafc"] .wpvw-card{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1)}

.wpvw-duration{position:absolute;right:10px;bottom:10px;background:rgba(0,0,0,.72);color:#fff;font-size:12px;line-height:1;padding:5px 7px;border-radius:6px}


/* v4.5 load more */
.wpvw-card.is-hidden{display:none !important}
.wpvw-more-wrap{display:flex;justify-content:center;margin-top:22px}
.wpvw-load-more{border:1px solid rgba(15,23,42,.12);background:#fff;color:#0f172a;border-radius:999px;padding:12px 18px;font-weight:700;cursor:pointer;box-shadow:0 8px 18px rgba(15,23,42,.06);transition:.2s}
.wpvw-load-more:hover{transform:translateY(-1px);box-shadow:0 12px 22px rgba(15,23,42,.1)}
.wpvw-layout-cards .wpvw-load-more{background:var(--wpvw-accent);color:#fff;border-color:transparent}
