:root {
  --bg-page: #f4f4f5;
  --bg-surface: #ffffff;
  --bg-tertiary: #ebebed;
  --bg-pill: #efeff1;
  --bg-pill-active: #d9d9dd;
  --border: #e5e6e8;
  --border-light: #d6d8db;
  --text-primary: #1a1c1f;
  --text-secondary: #6b7280;
  --text-muted: #9aa0a8;
  --accent: #2f80ed;
  --accent-hover: #2468c7;
  --accent-red: #e5484d;
  --premium: #f6c945;
  --premium-text: #4a3a00;
  --upload: #f1616a;
  --heart: #ff4d6d;
  --radius: 10px;
  --header-h: 64px;
  --sidebar-w: 220px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: #cfcfd3; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #b8b8bd; }

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 20px;
  padding: 0 22px;
}
.header .menu-btn {
  display: none; background: none; border: none; color: var(--text-secondary);
  font-size: 22px; cursor: pointer;
}
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo .logo-mark {
  display: grid; grid-template-columns: 12px 12px; grid-auto-rows: 12px; gap: 3px;
}
.logo .logo-mark span { border-radius: 4px; }
.logo .logo-mark .m1 { background: #2f80ed; }
.logo .logo-mark .m2 { background: #16b8a6; }
.logo .logo-mark .m3 { background: #8b5cf6; }
.logo .logo-mark .m4 { background: #f1616a; }
.logo .logo-text { font-size: 20px; font-weight: 800; letter-spacing: .5px; color: var(--text-primary); }

.search {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 400px; max-width: 400px;
  display: flex; align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  border-radius: 22px; padding: 0 16px; height: 42px;
  transition: background .15s, border-color .15s;
}
.search:focus-within { background: var(--bg-surface); border-color: var(--border-light); }
.search .ico { color: var(--text-muted); font-size: 15px; margin-right: 8px; }
.search input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 14px;
}
.search input::placeholder { color: var(--text-muted); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 22px; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; white-space: nowrap; letter-spacing: .3px;
}
.pill-premium { background: var(--premium); color: var(--premium-text); }
.pill-premium:hover { filter: brightness(1.04); }
.pill-upload { background: var(--upload); color: #fff; }
.pill-upload:hover { filter: brightness(1.04); }
.user-chip { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-weight: 700; overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip .uname { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.link-btn { font-size: 14px; font-weight: 600; color: var(--text-secondary); padding: 9px 6px; white-space: nowrap; flex-shrink: 0; }
.link-btn:hover { color: var(--text-primary); }

.sidebar {
  position: fixed; top: var(--header-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  overflow-y: auto; padding: 14px 12px 40px; z-index: 90;
}
.sidebar a.nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; color: var(--text-secondary); border-radius: 8px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .3px;
  text-transform: uppercase; transition: background .12s, color .12s;
}
.sidebar a.nav-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.sidebar a.nav-item.active { background: var(--bg-tertiary); color: var(--text-primary); }
.sidebar a.nav-item .ico { font-size: 16px; width: 20px; text-align: center; }
.sidebar a.nav-premium { background: var(--premium); color: var(--premium-text); }
.sidebar a.nav-premium:hover { background: var(--premium); filter: brightness(1.04); color: var(--premium-text); }

.sidebar-resizer { position:fixed;top:var(--header-h);bottom:0;left:var(--sidebar-w);width:5px;cursor:col-resize;z-index:95;background:var(--border);transition:background .15s; }
.sidebar-resizer:hover,.sidebar-resizer:active { background:var(--accent); }
.sidebar hr { border: none; border-top: 1px solid var(--border); margin: 12px 8px; }

.filter-box {
  background: var(--bg-page); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; margin: 8px 2px;
}
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 2px; font-size: 13px; color: var(--text-secondary);
}
.toggle-row label { cursor: pointer; flex: 1; }
.toggle-row .switch { flex: 0 0 36px; cursor: default; }
.switch { position: relative; display: inline-block; width: 36px; height: 20px; flex: 0 0 36px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; background: #cfcfd3; border-radius: 20px;
  transition: background .15s; cursor: pointer;
}
.switch .slider::before {
  content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%; transition: transform .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(16px); }

.cat-list { padding: 4px 6px; }
.cat-list a {
  display: block; padding: 7px 6px; font-size: 13.5px; color: var(--text-secondary);
}
.cat-list a:hover { color: var(--text-primary); }
.cat-list a.active { color: var(--text-primary); font-weight: 700; }
.cat-list .view-more { color: var(--accent); font-weight: 700; }

.main {
  margin-left: var(--sidebar-w); margin-top: var(--header-h);
  padding: 26px 28px 60px; min-height: calc(100vh - var(--header-h));
}
.page-title { font-size: 22px; font-weight: 800; margin-bottom: 18px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pills a, .pills .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 700;
  background: var(--bg-pill); color: var(--text-secondary); letter-spacing: .3px;
  border: none; cursor: pointer;
}
.pills a:hover { background: var(--bg-pill-active); color: var(--text-primary); }
.pills a.active { background: var(--bg-pill-active); color: var(--text-primary); }

.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 18px;
}
.video-card { cursor: pointer; }
.video-thumb {
  position: relative; aspect-ratio: 352/204;
  background: #d9dadd; border-radius: var(--radius); overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #b6b8bd;
}
.video-thumb::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent); pointer-events: none;
}
.ov { position: absolute; z-index: 2; color: #fff; font-size: 12px; font-weight: 700; }
.ov-bl { left: 10px; bottom: 8px; display: flex; align-items: center; gap: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ov-bl span { display: inline-flex; align-items: center; gap: 4px; }
.ov-br { right: 10px; bottom: 8px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ov-tl { left: 10px; top: 10px; background: rgba(20,22,26,.78); padding: 3px 8px; border-radius: 5px; }
.ov-tr { right: 10px; top: 10px; }
.crown { color: var(--premium); font-size: 16px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.price-tag { background: var(--premium); color: var(--premium-text); padding: 3px 8px; border-radius: 5px; }

.video-meta { padding: 11px 2px 0; display: flex; gap: 11px; }
.video-meta .ch-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-tertiary) center/cover no-repeat; border: 1px solid var(--border);
}
.video-info { min-width: 0; flex: 1; }
.video-title {
  font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 5px;
}
.video-sub { font-size: 12.5px; color: var(--text-muted); }
.video-sub.ch { color: var(--text-secondary); font-weight: 600; margin-bottom: 1px; }
.dots { color: var(--text-muted); font-size: 18px; line-height: 1; padding: 2px; align-self: flex-start; }

.hero-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }

.feat-slider {
  position: relative; width: 100%; aspect-ratio: 720/308;
  border-radius: var(--radius); overflow: hidden; background: #000;
  grid-column: span 2;
}
.feat-slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s;
}
.feat-slide.active { opacity: 1; z-index: 1; pointer-events: auto; }
.feat-slide-thumb { width: 100%; height: 100%; }
.feat-slide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feat-slide-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, transparent 35%, transparent 50%, rgba(0,0,0,.7) 100%);
}
.feat-slide-top { position: relative; padding: 16px; display: flex; justify-content: space-between; align-items: flex-start; }
.feat-top-right { position: absolute; right: 16px; top: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.feat-slide-bottom { padding: 20px; padding-bottom: 56px; }
.feat-badge {
  display: inline-block; background: linear-gradient(135deg, #8b5cf6, #f1616a);
  color: #fff; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 12px;
  letter-spacing: .5px; margin-bottom: 8px;
}
.feat-title { font-size: 24px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); margin-bottom: 6px; }
.feat-slide-meta { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 12px; display: flex; align-items: center; gap: 4px; }
.feat-watch {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 9px 22px; border-radius: 20px; font-size: 13px; font-weight: 800; letter-spacing: .5px;
  position: relative; z-index: 4;
}
.feat-watch:hover { background: var(--accent-hover); }
.feat-nav {
  position: absolute; bottom: 14px; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; padding: 0 16px;
}
.feat-dots {
  display: flex; gap: 6px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.feat-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4);
  cursor: pointer; transition: background .2s;
}
.feat-dot.active { background: #fff; }
.feat-dot:hover { background: rgba(255,255,255,.8); }
.feat-arrows { display: flex; gap: 6px; margin-left: auto; }
.feat-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  backdrop-filter: blur(4px);
}
.feat-arrow:hover { background: rgba(255,255,255,.3); }

@media (max-width: 900px) {
  .hero-row { grid-template-columns: repeat(2, 1fr); }
  .feat-slider { grid-column: span 2; min-height: 200px; }
  .feat-title { font-size: 18px; }
}
@media (max-width: 480px) {
  .hero-row { grid-template-columns: 1fr; }
  .feat-slider { grid-column: span 1; }
}

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 28px 0 10px; flex-wrap: wrap;
}
.pg-btn {
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: var(--bg-pill); color: var(--text-secondary);
}
.pg-btn:hover { background: var(--bg-pill-active); color: var(--text-primary); }
.pg-num {
  width: 36px; height: 36px; border-radius: 8px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text-secondary);
}
.pg-num:hover { background: var(--bg-pill); }
.pg-num.active { background: var(--accent); color: #fff; }
.pg-dots { color: var(--text-muted); font-size: 14px; padding: 0 2px; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--text-muted); }
.empty-state .ico { font-size: 46px; margin-bottom: 12px; }
.empty-state p { color: var(--text-secondary); }

.notice-bar {
  background: #fff7e6; border: 1px solid #f3d99b; color: #8a6d1b;
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 13px;
}
.notice-bar code { background: #f3e6c4; padding: 1px 6px; border-radius: 4px; }

.auth-wrap { display: flex; justify-content: center; padding: 30px 0; }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px 28px;
}
.auth-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; text-align: center; }
.auth-card .sub { font-size: 13px; color: var(--text-secondary); text-align: center; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.field input {
  width: 100%; height: 44px; padding: 0 14px;
  background: var(--bg-page); border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; color: var(--text-primary); outline: none; transition: border-color .15s;
}
.field input:focus { border-color: var(--accent); background: var(--bg-surface); }
.field .hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: 8px; display: flex; align-items: center;
}
.pw-toggle:hover { color: var(--text-secondary); }
.pw-toggle .i-off { display: none; }
.pw-toggle.on .i-eye { display: none; }
.pw-toggle.on .i-off { display: flex; }
.btn-block {
  width: 100%; height: 46px; border: none; border-radius: 23px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.btn-block:hover { background: var(--accent-hover); }
.auth-alt { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 18px; }
.auth-alt a { color: var(--accent); font-weight: 700; }

.mypage-wrap { display:flex;gap:24px;padding:30px 24px;max-width:1100px;margin:0 auto; }
.mypage-profile { flex:0 0 360px; }
.mypage-history { flex:1;min-width:0; }
.mypage-history .auth-card { max-width:none; }

.pt-summary { display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px; }
.pt-summary-item { background:var(--bg-page);border-radius:10px;padding:16px;text-align:center; }
.pt-summary-val { font-size:20px;font-weight:800; }
.pt-summary-label { font-size:12px;color:var(--text-muted);margin-top:4px; }

@media(max-width:820px){
  .mypage-wrap{flex-direction:column;padding:20px 16px;}
  .mypage-profile{flex:none;}
  .pt-summary{grid-template-columns:repeat(2,1fr);}
}

.pt-table { width:100%;font-size:13px;border-collapse:collapse; }
.pt-table th { padding:8px 6px;text-align:left;color:var(--text-muted);border-bottom:2px solid var(--border);font-weight:700;white-space:nowrap; }
.pt-table td { padding:8px 6px;border-bottom:1px solid var(--border);white-space:nowrap; }
.pt-table td:nth-child(3) { white-space:normal;word-break:break-all; }
.pt-type { font-size:11px;font-weight:700;padding:2px 8px;border-radius:10px; }
.pt-type-signup { background:rgba(47,128,237,.1);color:var(--accent); }
.pt-type-charge { background:rgba(22,163,74,.1);color:#16a34a; }
.pt-type-use { background:rgba(229,72,77,.1);color:var(--accent-red); }
.pt-type-refund { background:rgba(246,201,69,.15);color:#a07800; }
.pt-type-donate { background:rgba(168,85,247,.1);color:#8b5cf6; }
.pt-type-settle { background:rgba(107,114,128,.1);color:var(--text-secondary); }
.pt-pager { display:flex;gap:4px;justify-content:center;margin-top:16px; }
.pt-page { display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;font-size:13px;font-weight:700;color:var(--text-secondary);text-decoration:none;border:1px solid var(--border); }
.pt-page.active { background:var(--accent);color:#fff;border-color:var(--accent); }
.pt-page:hover:not(.active) { background:var(--bg-pill); }
@media(max-width:600px){ .pt-table th:nth-child(5),.pt-table td:nth-child(5){display:none;} }

.form-error {
  background: #fdeceb; border: 1px solid #f5c2c0; color: #b42318;
  padding: 11px 14px; border-radius: 9px; font-size: 13px; margin-bottom: 18px;
}
.signup-bonus {
  background: #fff7e6; border: 1px solid #f3d99b; color: #8a6d1b;
  padding: 11px 14px; border-radius: 9px; font-size: 13px; margin-bottom: 18px; text-align: center;
}
.info-card {
  max-width: 480px; margin: 40px auto; text-align: center;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 40px 28px;
}
.info-card .ico { color: var(--text-muted); margin-bottom: 14px; }
.info-card h1 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.info-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }

.field select {
  width: 100%; height: 44px; padding: 0 12px;
  background: var(--bg-page); border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; color: var(--text-primary); outline: none; cursor: pointer;
}
.field select:focus { border-color: var(--accent); }
.field input[type=file] { font-size: 13px; color: var(--text-secondary); }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }

.icon-drop { width:120px;height:120px;border-radius:50%;border:2px dashed var(--border);overflow:hidden;cursor:pointer;position:relative;background:var(--bg-page);display:flex;align-items:center;justify-content:center;margin:0 auto; }
.icon-drop:hover,.icon-drop.drag { border-color:var(--accent); }
.icon-drop canvas { width:100%;height:100%;display:none; }
.icon-drop.has-image canvas { display:block; }
.icon-drop.has-image .icon-drop-hint { display:none; }
.icon-drop-hint { font-size:12px;color:var(--text-muted);text-align:center;pointer-events:none;line-height:1.5; }
.icon-scale-wrap { display:flex;align-items:center;gap:6px;margin-top:8px;width:120px;margin-left:auto;margin-right:auto; }
.icon-scale-wrap input[type="range"] { flex:1;accent-color:var(--accent);height:4px; }

.banner-drop { width:100%;min-height:80px;border:2px dashed var(--border);border-radius:10px;overflow:hidden;cursor:pointer;background:var(--bg-page);display:flex;align-items:center;justify-content:center; }
.banner-drop:hover,.banner-drop.drag { border-color:var(--accent); }
.banner-drop img { width:100%;border-radius:8px;object-fit:cover; }
.banner-drop-hint { font-size:13px;color:var(--text-muted);padding:30px;pointer-events:none; }

.st-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: calc(100vh - var(--header-h) - 40px); }
.st-sidebar {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 0; position: sticky; top: calc(var(--header-h) + 16px); align-self: start;
}
.st-sidebar-head { padding: 0 18px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.st-channel-name { font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.st-channel-sub { font-size: 12px; color: var(--text-muted); }
.st-nav { list-style: none; padding: 0; }
.st-nav li a {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; transition: background .12s, color .12s;
}
.st-nav li a:hover { background: var(--bg-page); color: var(--text-primary); }
.st-nav li a.active { color: var(--text-primary); background: var(--bg-page); border-right: 3px solid var(--accent); }
.st-nav li a .nav-count {
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--text-muted);
  background: var(--bg-pill); padding: 2px 8px; border-radius: 10px;
}
.st-stats {
  margin: 12px 18px 0; padding-top: 12px; border-top: 1px solid var(--border);
}
.st-stat-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.st-stat-label { color: var(--text-muted); }
.st-stat-val { font-weight: 700; color: var(--text-primary); }
.st-content { padding-left: 22px; }

.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.studio-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.studio-h { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.myvid-list { display: flex; flex-direction: column; gap: 10px; }
.myvid { display: flex; gap: 12px; padding: 8px; border-radius: 10px; transition: background .12s; }
.myvid:hover { background: var(--bg-page); }
.myvid-thumb {
  width: 96px; height: 56px; border-radius: 7px; background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  overflow: hidden; flex-shrink: 0;
}
.myvid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.myvid-info { min-width: 0; }
.myvid-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.myvid-sub { font-size: 12px; color: var(--text-muted); }
.myvid-item { border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 10px; }
.myvid-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.myvid-edit { padding: 14px 0 4px 108px; }

.wiz-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--bg-page); overflow-y: auto;
}
.wiz-overlay.open { display: block; }
.wiz-inner { max-width: 960px; margin: 0 auto; padding: 24px 28px 60px; }
.wiz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.wiz-back {
  background: none; border: none; cursor: pointer; font-size: 15px; font-weight: 700;
  color: var(--text-primary); display: flex; align-items: center; gap: 6px; padding: 8px 4px;
}
.wiz-back:hover { color: var(--accent); }
.wiz-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 22px; padding: 8px;
}
.wiz-close:hover { color: var(--text-primary); }

.wiz-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 36px; }
.wiz-step {
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); white-space: nowrap;
}
.wiz-step.active { color: var(--text-primary); }
.wiz-step.done { color: var(--accent); }
.wiz-num {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; border: 2px solid var(--border); color: var(--text-muted); flex-shrink: 0;
}
.wiz-step.active .wiz-num { border-color: var(--accent); background: var(--accent); color: #fff; }
.wiz-step.done .wiz-num { border-color: var(--accent); background: var(--accent); color: #fff; }
.wiz-line { width: 80px; height: 2px; background: var(--border); margin: 0 12px; flex-shrink: 0; }
.wiz-line.done { background: var(--accent); }

.wiz-body { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.wiz-form h2 { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.wiz-panel { position: sticky; top: 24px; }
.wiz-preview {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; text-align: center;
}
.wiz-preview-thumb {
  width: 100%; aspect-ratio: 16/9; background: var(--bg-tertiary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  margin-bottom: 14px; overflow: hidden;
}
.wiz-preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wiz-preview-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; word-break: break-word; }

.wiz-progress { margin-top: 12px; }
.wiz-progress-bar {
  width: 100%; height: 6px; background: var(--bg-tertiary); border-radius: 3px; overflow: hidden;
}
.wiz-progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; width: 0; }
.wiz-progress-text { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.wiz-progress-text .pct { color: var(--accent); font-weight: 700; }
.wiz-upload-done { color: #16a34a; font-weight: 700; font-size: 14px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }

.wiz-drop {
  border: 2px dashed var(--border); border-radius: 14px; padding: 40px 24px;
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
  margin-bottom: 20px;
}
.wiz-drop:hover, .wiz-drop.drag { border-color: var(--accent); background: rgba(47,128,237,.04); }
.wiz-drop-icon { color: var(--text-muted); margin-bottom: 10px; }
.wiz-drop-text { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.wiz-drop-hint { font-size: 13px; color: var(--text-muted); }
.wiz-drop-hint2 { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.wiz-drop input[type=file] { display: none; }

.wiz-file-selected {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--bg-page); border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 20px; font-size: 14px;
}
.wiz-file-selected .fname { font-weight: 600; flex: 1; word-break: break-all; }
.wiz-file-selected .fsize { color: var(--text-muted); white-space: nowrap; }
.wiz-file-change {
  background: none; border: none; color: var(--accent); font-weight: 700;
  font-size: 13px; cursor: pointer; white-space: nowrap;
}

.wiz-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.wiz-btn {
  padding: 12px 32px; border-radius: 24px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: 1px solid var(--border); transition: all .15s;
}
.wiz-btn-back { background: var(--bg-surface); color: var(--text-primary); }
.wiz-btn-back:hover { background: var(--bg-page); }
.wiz-btn-next { background: var(--accent); color: #fff; border-color: var(--accent); }
.wiz-btn-next:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.wiz-btn-next:disabled { opacity: .4; cursor: not-allowed; }
.wiz-btn-done { background: #16a34a; color: #fff; border-color: #16a34a; }
.wiz-btn-done:hover { background: #15803d; border-color: #15803d; }

.wiz-radio-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.wiz-radio {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px;
  background: var(--bg-surface); border: 2px solid var(--border); border-radius: 12px;
  cursor: pointer; transition: border-color .15s;
}
.wiz-radio:hover { border-color: var(--accent); }
.wiz-radio.selected { border-color: var(--accent); background: rgba(47,128,237,.04); }
.wiz-radio input { display: none; }
.wiz-radio-dot {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border);
  flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center;
}
.wiz-radio.selected .wiz-radio-dot { border-color: var(--accent); }
.wiz-radio.selected .wiz-radio-dot::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.wiz-radio-label { font-size: 14px; font-weight: 600; }
.wiz-radio-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.wiz-field textarea {
  width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 9px; font-size: 14px; background: var(--bg-page); resize: vertical;
  font-family: inherit; outline: none;
}
.wiz-field textarea:focus { border-color: var(--accent); background: var(--bg-surface); }

.wiz-thumb-area {
  border: 2px dashed var(--border); border-radius: 10px; padding: 24px;
  text-align: center; cursor: pointer; transition: border-color .15s;
}
.wiz-thumb-area:hover { border-color: var(--accent); }
.wiz-thumb-area input[type=file] { display: none; }
.wiz-thumb-preview { width: 100%; aspect-ratio: 16/9; border-radius: 8px; object-fit: cover; margin-bottom: 8px; }

.wiz-frame-picker { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #000; }
.wiz-frame-video { width: 100%; aspect-ratio: 16/9; display: block; object-fit: contain; background: #000; }
.wiz-frame-controls { padding: 10px 14px; background: var(--bg-surface); }
.wiz-frame-seek {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: var(--bg-tertiary); border-radius: 3px; outline: none; cursor: pointer;
}
.wiz-frame-seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); cursor: grab; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.wiz-frame-seek::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); cursor: grab; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.wiz-frame-time { font-size: 12px; color: var(--text-muted); margin-top: 6px; display: flex; justify-content: space-between; }
.wiz-frame-hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; text-align: center; }
.wiz-frame-or { font-size: 13px; color: var(--text-muted); margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.wiz-frame-or::before, .wiz-frame-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

@media (max-width: 820px) {
  .wiz-body { grid-template-columns: 1fr; }
  .wiz-panel { position: static; }
  .wiz-steps { flex-wrap: wrap; gap: 6px; }
  .wiz-line { width: 30px; margin: 0 4px; }
  .wiz-step span { display: none; }
}

.watch-wrap { display: grid; grid-template-columns: 1fr 370px; gap: 24px; }
.watch-aside { min-width: 0; }

.watch-section-title { font-size: 16px; font-weight: 800; margin-bottom: 14px; }

.comment-form { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.comment-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
  color: var(--text-secondary); flex-shrink: 0;
}
.comment-input {
  flex: 1; border: none; border-bottom: 1px solid var(--border); padding: 8px 0;
  font-size: 14px; outline: none; background: transparent;
}
.comment-input:focus { border-color: var(--accent); }
.comment-send {
  background: var(--accent); color: #fff; border: none; border-radius: 18px;
  padding: 7px 18px; font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.comment-send:hover { background: var(--accent-hover); }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item { display: flex; gap: 10px; }
.comment-body { min-width: 0; }
.comment-meta { font-size: 13px; margin-bottom: 3px; }
.comment-meta strong { font-weight: 700; }
.comment-meta span { color: var(--text-muted); margin-left: 6px; font-size: 12px; }
.comment-text { font-size: 14px; line-height: 1.5; color: var(--text-primary); word-break: break-word; }

.rec-item { display: flex; gap: 10px; padding: 6px 0; text-decoration: none; color: inherit; }
.rec-item:hover .rec-title { color: var(--accent); }
.rec-thumb {
  width: 200px; height: 116px; border-radius: 8px; background: var(--bg-tertiary);
  overflow: hidden; flex-shrink: 0; position: relative;
}
.rec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rec-dur {
  position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.75); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 5px; border-radius: 4px;
}
.rec-vr {
  position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,.75); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
}
.rec-price {
  position: absolute; right: 4px; top: 4px; background: var(--premium); color: var(--premium-text);
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
}
.rec-info { min-width: 0; flex: 1; }
.rec-title {
  font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s;
}
.rec-sub { font-size: 12px; color: var(--text-muted); }
.player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.player .pnlm-controls-container { left: auto !important; right: 12px !important; top: 12px !important; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.p360 { width: 100%; height: 100%; cursor: grab; }
.p360:active { cursor: grabbing; }
.p360 canvas { display: block; }
.player-bar { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 5; }
.player-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 7px;
  padding: 7px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.player-btn:hover { background: rgba(0,0,0,.8); }

.p360-ctrl {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,.9));
  border-radius: 0 0 12px 12px; color: #fff; font-size: 13px;
}
.p360-btn {
  background: none; border: none; color: #fff; cursor: pointer;
  padding: 4px; display: flex; align-items: center; flex-shrink: 0; opacity: .9;
}
.p360-btn:hover { opacity: 1; }
.p360-time { font-size: 12px; white-space: nowrap; color: #ccc; flex-shrink: 0; }
.p360-bar {
  flex: 1; height: 4px; background: rgba(255,255,255,.2); border-radius: 2px;
  position: relative; cursor: pointer;
}
.p360-bar:hover { height: 6px; }
.p360-buffered {
  position: absolute; left: 0; top: 0; height: 100%; background: rgba(255,255,255,.25);
  border-radius: 2px; pointer-events: none;
}
.p360-progress {
  position: absolute; left: 0; top: 0; height: 100%; background: var(--accent);
  border-radius: 2px; pointer-events: none; width: 0;
}
.p360-handle {
  position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%, -50%);
  pointer-events: none; opacity: 0; transition: opacity .15s;
}
.p360-bar:hover .p360-handle { opacity: 1; }
.p360-thumb {
  position: absolute; bottom: 20px; display: none;
  background: #000; border: 2px solid #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.6);
}
.p360-thumb canvas { display: block; width: 160px; height: 90px; }
.p360-thumb-time {
  text-align: center; font-size: 11px; font-weight: 700; color: #fff;
  padding: 3px 0; background: rgba(0,0,0,.8);
}
.p360-vol { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.p360-vol-slider {
  -webkit-appearance: none; appearance: none; width: 60px; height: 4px;
  background: rgba(255,255,255,.3); border-radius: 2px; outline: none; cursor: pointer;
}
.p360-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; cursor: pointer;
}
.p360-vol-slider::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; cursor: pointer; border: none;
}
.p360-quality-wrap { position: relative; flex-shrink: 0; }
.p360-qmenu {
  display: none; position: absolute; bottom: 36px; right: 0;
  background: rgba(20,22,26,.95); border-radius: 8px; padding: 6px;
  min-width: 90px; box-shadow: 0 4px 12px rgba(0,0,0,.5);
}
.p360-qmenu.open { display: block; }
.p360-qi {
  padding: 7px 12px; font-size: 13px; color: #cfd3da; border-radius: 5px;
  cursor: pointer; white-space: nowrap;
}
.p360-qi:hover { background: rgba(255,255,255,.1); color: #fff; }
.p360-qi.active { color: var(--accent); font-weight: 700; }
.quality { position: relative; }
.q-menu {
  position: absolute; right: 0; bottom: 40px; display: none;
  background: rgba(20,22,26,.95); border-radius: 8px; padding: 6px; min-width: 90px;
}
.q-menu.open { display: block; }
.q-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: #cfd3da; font-size: 13px; padding: 7px 10px; border-radius: 5px; cursor: pointer;
}
.q-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.q-item.active { color: var(--accent); font-weight: 700; }
.preview-badge { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 6px; }
.watch-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.watch-tag {
  display: inline-block; padding: 6px 14px; border-radius: 18px; font-size: 13px; font-weight: 600;
  background: var(--bg-pill); color: var(--text-secondary); transition: background .15s, color .15s;
}
.watch-tag:hover { background: var(--bg-pill-active); color: var(--text-primary); }

.watch-info-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px;
}
.watch-actions { display: flex; align-items: center; gap: 6px; }
.watch-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 700;
  background: var(--bg-pill); color: var(--text-secondary); border: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.watch-action-btn:hover { background: var(--bg-pill-active); color: var(--text-primary); }
.watch-action-btn.active { background: rgba(255,77,109,.12); color: var(--heart); }
.watch-action-btn.active:hover { background: rgba(255,77,109,.2); }

.watch-desc-wrap { margin-top: 20px; }
.watch-desc {
  font-size: 14px; color: var(--text-secondary); white-space: pre-line; line-height: 1.7;
  max-height: 4.2em; overflow: hidden; transition: max-height .3s;
}
.watch-desc.expanded { max-height: none; }
.watch-desc-toggle {
  background: none; border: none; color: var(--text-primary); font-size: 13px; font-weight: 700;
  cursor: pointer; padding: 8px 0; margin-top: 4px; display: block; margin: 4px auto 0; text-align: center; width: 100%;
}
.watch-desc-toggle:hover { color: var(--accent); }

.watch-title { font-size: 20px; font-weight: 800; margin: 18px 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge-pill { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 11px; background: var(--bg-pill-active); color: var(--text-secondary); }
.badge-pill.badge-red { background: rgba(229,72,77,.15); color: var(--accent-red); }
.watch-stats { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.watch-channel { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.watch-channel .ch-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-tertiary) center/cover no-repeat; border: 1px solid var(--border); flex-shrink: 0; }
.ch-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.ch-subs { font-size: 12px; color: var(--text-muted); }
.buy-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin-top: 20px; flex-wrap: wrap; }
.buy-price { font-size: 24px; font-weight: 800; color: var(--accent-orange); }
.buy-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.watch-desc { margin-top: 20px; font-size: 14px; color: var(--text-secondary); white-space: pre-line; line-height: 1.7; }

.channel-head { margin-bottom: 18px; }
.channel-banner { width: 100%; aspect-ratio: 6/1; min-height: 120px; background: var(--bg-tertiary) center/cover no-repeat; border-radius: 14px; }
.channel-bar { display: flex; align-items: center; gap: 16px; padding: 16px 4px 0; }
.channel-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-tertiary) center/cover no-repeat; border: 2px solid var(--bg-surface); box-shadow: 0 0 0 1px var(--border); flex-shrink: 0; }
.channel-name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.channel-meta { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.btn-sub { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }
.btn-sub:hover { filter: brightness(1.05); border-color: var(--accent-red); }

@media (max-width: 820px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-sidebar { position: static; margin-bottom: 16px; }
  .st-content { padding-left: 0; }
  .studio-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
}

.explore-wrap { position: relative; height: calc(100vh - var(--header-h) - 32px); min-height: 500px; background: #0a0a14; border-radius: 14px; overflow: hidden; }
.globe-container { width: 100%; height: 100%; cursor: grab; }
.globe-container:active { cursor: grabbing; }
.globe-reset {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--text-primary); font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: background .15s;
}
.globe-reset:hover { background: var(--bg-page); }
.globe-crosshair {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: rgba(255,255,255,.4); font-size: 28px; font-weight: 200; pointer-events: none;
  text-shadow: 0 0 8px rgba(68,170,255,.3);
}
.globe-card {
  position: absolute; top: 50%; right: 24px; transform: translateY(-50%);
  background: rgba(15,17,24,.92); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; overflow: hidden; width: 240px;
  backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.globe-card a { text-decoration: none; color: #fff; display: block; }
.globe-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.gc-info { padding: 12px 14px; }
.gc-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-sub { font-size: 12px; color: #8899aa; }
.globe-list {
  position: absolute; left: 16px; bottom: 50px; z-index: 5;
  width: 280px; max-height: 50%; background: rgba(15,17,24,.92);
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px; overflow: hidden;
  backdrop-filter: blur(12px); box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.gl-header {
  padding: 10px 14px; font-size: 13px; font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.7);
}
.gl-items { overflow-y: auto; max-height: calc(50vh - 100px); }
.gl-item {
  display: flex; gap: 10px; padding: 8px 14px; text-decoration: none; color: #fff;
  transition: background .12s;
}
.gl-item:hover { background: rgba(255,255,255,.06); }
.gl-item-thumb {
  width: 80px; height: 45px; border-radius: 6px; background: rgba(255,255,255,.1);
  overflow: hidden; flex-shrink: 0;
}
.gl-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gl-item-info { min-width: 0; }
.gl-item-title {
  font-size: 12px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gl-item-sub { font-size: 11px; color: #8899aa; margin-top: 2px; }
.globe-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: 12px; font-weight: 600; pointer-events: none;
  background: rgba(255,255,255,.08); padding: 6px 14px; border-radius: 8px;
  left: auto; right: 16px; bottom: 16px; transform: none;
}

/* Live */
.lv-hero{position:relative;border-radius:14px;overflow:hidden;aspect-ratio:21/9;background:#000;margin-bottom:24px;}
.lv-hero a{display:block;width:100%;height:100%;}
.lv-hero img{width:100%;height:100%;object-fit:cover;}
.lv-hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.7),transparent 60%);display:flex;flex-direction:column;justify-content:flex-end;padding:24px;}
.lv-hero-badge{display:inline-flex;align-items:center;gap:6px;background:var(--accent-red);color:#fff;font-size:12px;font-weight:800;padding:4px 12px;border-radius:12px;width:fit-content;margin-bottom:8px;}
.lv-hero-badge::before{content:'';width:8px;height:8px;border-radius:50%;background:#fff;animation:blink 1.2s infinite;}
@keyframes blink{0%,100%{opacity:1;}50%{opacity:.3;}}
.lv-hero-title{font-size:22px;font-weight:800;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.5);}
.lv-hero-meta{font-size:13px;color:rgba(255,255,255,.7);margin-top:4px;}
.lv-sidebar-list{display:flex;flex-direction:column;gap:8px;margin-bottom:24px;}
.lv-side-card{display:flex;gap:10px;padding:8px;border-radius:10px;transition:background .12s;}
.lv-side-card:hover{background:var(--bg-tertiary);}
.lv-side-thumb{width:120px;height:68px;border-radius:8px;overflow:hidden;flex-shrink:0;position:relative;background:var(--bg-tertiary);}
.lv-side-thumb img{width:100%;height:100%;object-fit:cover;}
.lv-side-badge{position:absolute;left:4px;top:4px;background:var(--accent-red);color:#fff;font-size:10px;font-weight:800;padding:2px 7px;border-radius:8px;display:flex;align-items:center;gap:4px;}
.lv-side-badge::before{content:'';width:6px;height:6px;border-radius:50%;background:#fff;animation:blink 1.2s infinite;}
.lv-side-info{min-width:0;}
.lv-side-title{font-size:13px;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.lv-side-meta{font-size:12px;color:var(--text-muted);margin-top:2px;}
.lv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px;}
.lv-empty{text-align:center;padding:60px 20px;color:var(--text-muted);}
.lv-empty-icon{font-size:48px;margin-bottom:12px;}
.lv-empty-btn{display:inline-block;margin-top:16px;padding:10px 24px;border-radius:22px;background:var(--accent);color:#fff;font-weight:700;font-size:14px;}
.lv-empty-btn:hover{background:var(--accent-hover);}

@media (max-width: 1200px) { .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .video-card.featured { grid-column: span 2; grid-row: span 1; }
  .video-card.featured .video-thumb { min-height: 0; max-height: none; aspect-ratio: 16/9; }
  .video-card.featured .feat-title { font-size: 20px; }
}
@media (max-width: 960px) {
  .watch-wrap { grid-template-columns: 1fr; }
  .watch-aside { margin-top: 16px; }
  .rec-thumb { width: 160px; height: 93px; }
}
@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: 0 0 30px rgba(0,0,0,.12); }
  .sidebar-resizer { display:none; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 16px; }
  .header .menu-btn { display: block; }
  .header-actions .hide-mobile { display: none; }
  .hide-mobile { display: none; }
  .search { position: static; transform: none; flex: 1; width: auto; max-width: none; height: 38px; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px 12px; }
  .video-card.featured { grid-column: span 2; }
  .header { gap: 8px; padding: 0 10px; }
  .header-actions { gap: 6px; }
  .header-actions .link-btn { font-size: 12px; padding: 8px 4px; }
  .header-actions .pill-btn { font-size: 11px; padding: 8px 12px; }
}

.site-footer {
  margin-left: var(--sidebar-w); border-top: 1px solid var(--border);
  background: var(--bg-surface); padding: 32px 28px 24px;
  font-size: 12px; color: var(--text-muted); line-height: 1.8;
}
.footer-links {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.footer-links a { font-weight: 700; color: var(--text-secondary); }
.footer-sep { color: var(--border); font-size: 11px; }
.footer-info { margin-bottom: 8px; line-height: 2; }
.footer-copy { color: var(--text-muted); margin-top: 8px; }
@media (max-width: 820px) {
  .site-footer { margin-left: 0; padding: 24px 16px 20px; }
}
@media (max-width: 480px) {
  .footer-info div { white-space: normal; font-size: 11px; line-height: 1.8; }
  .footer-links { gap: 12px; }
}

.skeleton-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 18px;
}
.skeleton-thumb {
  aspect-ratio: 352/204; background: var(--bg-tertiary); border-radius: var(--radius);
}
.skeleton-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg-tertiary); flex-shrink: 0;
}
.skeleton-line {
  height: 12px; background: var(--bg-tertiary); border-radius: 6px; margin-bottom: 8px;
}
.skeleton-line.short { width: 60%; }
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.skeleton-thumb, .skeleton-avatar, .skeleton-line {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
