.vg-section { padding-top: 56px; }
.vg { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 20px; align-items: start; }

.vg-main { min-width: 0; }
.vg-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b1220; box-shadow: var(--shadow); }
.vg-frame iframe, #vgPlayer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vg-poster { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.vg-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s ease; }
.vg-poster:hover img { transform: scale(1.02); filter: brightness(.92); }
.vg-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 0 0 10px rgba(37, 99, 235, .25), 0 14px 30px rgba(0, 0, 0, .35); transition: transform .2s ease; }
.vg-play svg { width: 34px; height: 34px; margin-left: 4px; }
.vg-poster:hover .vg-play { transform: scale(1.06); }
.vg-badge { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(11, 18, 32, .78); color: #fff; font-size: .8rem; font-weight: 700; }
.vg.is-on .vg-poster { display: none; }

.vg-track { display: flex; gap: 3px; height: 10px; margin-top: 14px; }
.vg-seg { position: relative; min-width: 4px; height: 100%; padding: 0; border: 0; border-radius: 3px; background: #c9d5ea; cursor: pointer; overflow: hidden; transition: transform .15s ease, background .15s ease; }
.vg-seg:hover { background: #9fb8e6; transform: scaleY(1.5); }
.vg-seg span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--blue); }
.vg-seg.done span { width: 100%; background: #93b4f5; }
.vg-seg.on { background: #b7cbf2; }

.vg-now { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.vg-now-txt { flex: 1; min-width: 0; }
.vg-now-txt small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; }
.vg-now-txt b { display: block; color: var(--navy); font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-now-time { color: var(--muted); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.vg-nav { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--navy); cursor: pointer; }
.vg-nav:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.vg-nav:disabled { opacity: .4; cursor: default; }
.vg-nav svg { width: 18px; height: 18px; }

.vg-side { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.vg-tools { padding: 12px; border-bottom: 1px solid var(--line); background: var(--soft); }
.vg-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); }
.vg-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.vg-search svg { flex: none; width: 16px; height: 16px; }
.vg-search input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: none; font: inherit; font-size: .9rem; color: var(--ink); }
.vg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vg-chip { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.vg-chip:hover { color: var(--blue); border-color: #bfd0ee; }
.vg-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.vg-list { position: relative; list-style: none; margin: 0; padding: 6px; overflow-y: auto; max-height: var(--vg-h, 520px); scroll-behavior: smooth; }
.vg-list li[hidden] { display: none; }
.vg-item { position: relative; display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: start; width: 100%; padding: 10px 10px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; overflow: hidden; }
.vg-item:hover { background: var(--soft); }
.vg-time { padding: 3px 0; border-radius: 6px; background: var(--soft-2); color: var(--blue-deep); font-size: .78rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.vg-txt b { display: block; color: var(--navy); font-size: .92rem; line-height: 1.3; }
.vg-txt small { display: block; margin-top: 2px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.vg-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.vg-meta em { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--muted); }
.vg-meta i { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--blue); }
.vg-bar { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 3px; border-radius: 3px; background: transparent; }
.vg-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); }
.vg-item.on { background: #eef3ff; box-shadow: inset 3px 0 0 var(--blue); }
.vg-item.on .vg-time { background: var(--blue); color: #fff; }
.vg-item.on .vg-bar { background: #d6e2fb; }
.vg-item.done .vg-time { background: #e3ecfd; color: #6b8fd6; }
.vg-item mark { background: #fff3c4; color: inherit; border-radius: 3px; }
.vg-empty { margin: 0; padding: 18px; color: var(--muted); font-size: .88rem; text-align: center; }

@media (max-width: 960px) {
  .vg { grid-template-columns: 1fr; }
  .vg-list { max-height: 420px; }
}
@media (max-width: 560px) {
  .vg-section { padding-top: 40px; }
  .vg-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .vg-play svg { width: 26px; height: 26px; }
  .vg-item { grid-template-columns: 46px 1fr; }
  .vg-meta { display: none; }
  .vg-track { height: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .vg-poster img, .vg-play, .vg-seg { transition: none; }
  .vg-list { scroll-behavior: auto; }
}
