/* ===================== Hengyuxin design system (vjshi-style) ===================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #16181d;
  --text-2: #4b5260;
  --text-3: #8a909c;
  --line: #eceef2;
  --black: #111214;
  --brand-1: #ff3d6e;
  --brand-2: #7b5cff;
  --brand-3: #22c3ff;
  --brand-grad: linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  --blue: #3a6df0;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(17, 18, 20, .06);
  --shadow-lg: 0 18px 50px rgba(17, 18, 20, .14);
  --header-h: 64px;
  --font: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.container { width: min(1360px, 100% - 48px); margin: 0 auto; }
.hidden { display: none !important; }

/* ===================== Header ===================== */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .bar { height: 100%; display: flex; align-items: center; gap: 28px; width: min(1600px, 100% - 48px); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-title { font-weight: 900; font-size: 17px; letter-spacing: 0.3px; color: var(--text); }
.logo-sub { font-size: 10.5px; font-weight: 600; color: var(--text-3); letter-spacing: 0.2px; }
.sync-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 2px 9px; border-radius: 6px; background: #eef2ff; color: var(--blue); font-weight: 600; cursor: pointer; transition: all .2s; border: 1px solid #dbeafe; }
.sync-btn:hover { background: #dbeafe; color: #1d4ed8; }
.field-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cert-auto-box { background: #f8fafc; border: 1.5px dashed #cbd5e1; border-radius: 10px; padding: 14px; margin-top: 10px; }
.cert-auto-box.ready { background: #f0fdf4; border-color: #86efac; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--text); transition: background .2s, color .2s; position: relative; }
.nav a:hover { background: #f1f2f5; }
.nav a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--brand-grad); }
.header-search { margin-left: auto; position: relative; width: 300px; }
.header-search input { width: 100%; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: #f5f6f8; padding: 0 42px 0 18px; outline: none; transition: border .2s, background .2s, box-shadow .2s; }
.header-search input:focus { background: #fff; border-color: #c9ccd4; box-shadow: 0 0 0 4px rgba(123,92,255,.08); }
.header-search button { position: absolute; right: 6px; top: 4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.h-link { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; font-weight: 500; color: var(--text-2); transition: background .2s; }
.h-link:hover { background: #f1f2f5; color: var(--text); }
.lang-switch { display: flex; background: #f1f2f5; border-radius: 999px; padding: 3px; }
.lang-switch button { padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text-3); transition: all .2s; }
.lang-switch button.on { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 600; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.btn-outline { border: 1.5px solid var(--black); color: var(--black); background: #fff; }
.btn-outline:hover { background: #f7f7f8; }
.btn-ghost { background: #f1f2f5; color: var(--text); }
.btn-ghost:hover { background: #e7e9ee; }
.btn-grad { background: var(--brand-grad); color: #fff; }
.btn-grad:hover { box-shadow: 0 10px 28px rgba(123,92,255,.35); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; font-size: 16px; width: 100%; }
.btn-danger { background: #fff0f2; color: #e5294f; }
.btn-danger:hover { background: #ffe1e7; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ===================== Hero ===================== */
.hero { position: relative; height: 520px; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); animation: heroZoom 22s ease-in-out infinite alternate; transition: opacity 1.2s ease; }
.hero-bg.fade { opacity: 0; }
@keyframes heroZoom { to { transform: scale(1.16) translate(-1%, -1%); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,20,.35) 0%, rgba(10,10,20,.45) 60%, rgba(10,10,20,.75) 100%); }
.hero-inner { position: relative; z-index: 2; width: min(860px, 100% - 40px); }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -1px; line-height: 1.12; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero h1 .grad { background: linear-gradient(90deg, #ffd1dc, #c6b8ff, #a8e9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 14px; font-size: 17px; opacity: .9; }
.hero-search { margin: 30px auto 0; display: flex; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow-lg); max-width: 720px; }
.hero-search select { border: 0; background: transparent; color: var(--text); font-weight: 600; padding: 0 14px 0 18px; outline: none; border-right: 1px solid var(--line); }
.hero-search input { flex: 1; border: 0; outline: none; padding: 0 18px; font-size: 16px; color: var(--text); min-width: 0; }
.hero-search .btn { height: 48px; padding: 0 30px; }
.hot-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 13px; }
.hot-tags span { opacity: .75; }
.hot-tags a { padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); transition: background .2s; }
.hot-tags a:hover { background: rgba(255,255,255,.28); }
.hero-credit { position: absolute; right: 16px; bottom: 10px; z-index: 2; font-size: 11px; opacity: .6; }

/* ===================== Sections ===================== */
.section { padding: 46px 0 10px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.section-head p { color: var(--text-3); margin-top: 4px; }
.more-link { color: var(--text-2); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.more-link:hover { color: var(--text); }

.cat-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat-card { position: relative; height: 110px; border-radius: var(--radius); overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: 12px 14px; font-weight: 700; font-size: 15px; cursor: pointer; background-size: cover; background-position: center; transition: transform .25s, box-shadow .25s; }
.cat-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7)); transition: background .25s; }
.cat-card span { position: relative; }
.cat-card small { display: block; font-weight: 500; font-size: 11px; opacity: .8; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.tabs { display: flex; gap: 6px; background: #eceef2; padding: 4px; border-radius: 999px; }
.tabs button { padding: 7px 18px; border-radius: 999px; font-weight: 600; color: var(--text-2); transition: all .2s; }
.tabs button.on { background: #fff; color: var(--text); box-shadow: 0 1px 6px rgba(0,0,0,.08); }

/* ===================== Work cards ===================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px 18px; }
.card { display: block; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #dfe2e8; }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.thumb video { opacity: 0; }
.card:hover .thumb img { transform: scale(1.05); }
.card.playing .thumb video { opacity: 1; }
.badge { position: absolute; z-index: 2; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px); }
.badge.tl { top: 8px; left: 8px; }
.badge.tr { top: 8px; right: 8px; background: rgba(255,255,255,.92); color: var(--text); }
.badge.br { bottom: 8px; right: 8px; }
.badge.bl { bottom: 8px; left: 8px; }
.badge.grad { background: var(--brand-grad); }
.card-hover { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-end; gap: 6px; padding: 8px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.card:hover .card-hover { opacity: 1; }
.card-meta { padding: 10px 2px 0; }
.card-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; color: var(--text-3); font-size: 12px; }
.card-sub .price { color: var(--text); font-weight: 700; font-size: 13px; }
.author-mini { display: flex; align-items: center; gap: 6px; }
.avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.empty { padding: 60px 20px; text-align: center; color: var(--text-3); background: #fff; border-radius: var(--radius); }
.load-more { display: flex; justify-content: center; margin-top: 30px; }

/* ===================== Services / About ===================== */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.service::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service:hover::before { transform: scaleX(1); }
.service .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #f3f0ff; color: var(--brand-2); margin-bottom: 16px; }
.service h3 { font-size: 17px; margin-bottom: 6px; }
.service p { color: var(--text-2); font-size: 13.5px; }

.about { margin-top: 56px; background: #0f1016; color: #fff; border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; }
.about-text { padding: 54px 50px; }
.about-text h2 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.about-text p { color: #b7bccb; margin-top: 14px; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.stats b { display: block; font-size: 30px; font-weight: 800; background: linear-gradient(90deg, #ffb3c6, #b9a8ff, #9fe4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: #8f95a6; font-size: 13px; }
.about-img { background-size: cover; background-position: center; min-height: 360px; }

/* ===================== Footer ===================== */
.site-footer { margin-top: 70px; background: #fff; border-top: 1px solid var(--line); padding: 46px 0 26px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 30px; }
.site-footer h4 { color: var(--text); font-size: 14px; margin-bottom: 12px; }
.site-footer li { list-style: none; margin: 7px 0; font-size: 13px; }
.site-footer li a:hover { color: var(--text); }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===================== Watch page ===================== */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding-top: 22px; width: min(1400px, 100% - 48px); margin: 0 auto; align-items: start; }
.crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.watch-title { font-size: 22px; font-weight: 700; margin-bottom: 14px; letter-spacing: -.2px; }
/* Full-size player: no rounded corners, no cropping */
.player { background: #000; width: 100%; border-radius: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.player video, .player img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 0; background: #000; }
.disclaimer { font-size: 12px; color: var(--text-3); margin: 10px 0 14px; }
.action-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.pill-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; transition: all .2s; }
.pill:hover { border-color: #cfd3db; box-shadow: var(--shadow); }
.pill.on { color: var(--brand-1); border-color: #ffc2d1; background: #fff5f8; }
.pill.on svg { fill: currentColor; }
.text-links { display: flex; gap: 18px; color: var(--text-2); font-size: 13px; }
.text-links a { display: inline-flex; align-items: center; gap: 5px; }
.text-links a:hover { color: var(--text); }
.stat-card { margin-top: 22px; background: #fff; border-radius: var(--radius); padding: 30px 28px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.stat-card b { display: block; font-size: 19px; font-weight: 600; white-space: nowrap; }
.stat-card span { font-size: 12px; color: var(--text-3); }
.detail { margin-top: 38px; }
.detail h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { padding: 4px 12px; border-radius: 6px; background: #eceef2; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.kv div { display: flex; gap: 18px; font-size: 13px; }
.kv dt { color: var(--text-3); width: 96px; flex-shrink: 0; }
.kv dd { color: var(--text); word-break: break-word; display: flex; align-items: center; gap: 6px; }
.copy-btn { color: var(--text-3); display: inline-flex; }
.copy-btn:hover { color: var(--text); }
.desc { margin-top: 22px; color: var(--text-2); font-size: 14px; white-space: pre-line; }

.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.side-card { background: #fff; border-radius: var(--radius); padding: 22px 20px; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.price-big { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.price-big small { font-size: 16px; font-weight: 700; margin-right: 2px; }
.price-tip { font-size: 12px; color: var(--text-3); }
.side-card .btn + .btn { margin-top: 12px; }
.lic-head { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 12px; font-weight: 600; }
.lic-head a { color: var(--blue); font-size: 12px; font-weight: 500; margin-left: 10px; }
.lic-list { background: #f6f7f9; border-radius: 8px; padding: 6px 12px; }
.lic-list li { list-style: none; display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: 13px; }
.lic-list li .ck { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.lic-list li.off { color: #b0b5bf; }
.lic-list li.off .ck { background: #d6d9df; }
.docs-title { font-weight: 600; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.doc { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.doc img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.doc-card-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 8px; gap: 7px; box-sizing: border-box; user-select: none; }
.doc-card-inner b { font-size: 10.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding: 0 2px; font-weight: 700; word-break: break-all; }
.doc-pdf { width: 100%; height: 100%; background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #edf2ff 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 8px; gap: 7px; box-sizing: border-box; }
.doc-pdf .pdf-ico { font-size: 9px; font-weight: 800; color: #fff; background: #e5294f; padding: 2px 6px; border-radius: 3px; letter-spacing: .5px; box-shadow: 0 2px 4px rgba(229, 41, 79, .25); }
.doc-pdf b { font-size: 10.5px; color: #2846b8; line-height: 1.3; }
.doc-docx { width: 100%; height: 100%; background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #e8f0fe 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 8px; gap: 7px; box-sizing: border-box; }
.doc-docx .docx-ico { font-size: 9px; font-weight: 800; color: #fff; background: #185abd; padding: 2px 6px; border-radius: 3px; letter-spacing: .5px; box-shadow: 0 2px 4px rgba(24, 90, 189, .25); }
.doc-docx b { font-size: 10.5px; color: #185abd; line-height: 1.3; }
.doc-badge-row { display: flex; align-items: center; justify-content: center; gap: 5px; }
.doc-badge-row .docx-svg { flex-shrink: 0; }
.doc-action-tip { font-size: 9.5px; color: #6b7280; margin-top: 2px; font-weight: 500; }
.doc-dl { position: absolute; bottom: 5px; right: 5px; z-index: 4; width: 22px; height: 22px; border-radius: 4px; background: rgba(17, 24, 39, 0.72); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(2px); transition: all .2s ease; text-decoration: none; }
.doc:hover .doc-dl { opacity: 1; transform: translateY(0); }
.doc-dl:hover { background: #185abd; color: #fff; transform: scale(1.1); }
.doc-name { font-size: 11px; color: var(--text-3); margin-top: 6px; line-height: 1.35; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.doc-del { position: absolute; top: 4px; right: 4px; z-index: 5; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; font-size: 13px; line-height: 1; border: 0; cursor: pointer; }
.doc-del:hover { background: #e5294f; }
.doc-add { aspect-ratio: 3 / 4; border: 1.5px dashed #c9cdd6; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-3); font-size: 11px; cursor: pointer; transition: all .2s; text-align: center; padding: 4px; }
.doc-add:hover { border-color: var(--brand-2); color: var(--brand-2); background: #faf8ff; }
.doc-add.drag { border-color: var(--brand-2); background: #f3f0ff; }
.docs-empty { font-size: 12.5px; color: var(--text-3); padding: 6px 0; }
.author-card { display: flex; align-items: center; gap: 12px; }
.author-card .avatar { width: 48px; height: 48px; font-size: 18px; }
.author-card b { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.verified { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #eef2ff; color: var(--blue); font-weight: 600; }
.author-card span { font-size: 12px; color: var(--text-3); }

/* ===================== Lightbox / toast ===================== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,12,.88); display: flex; align-items: center; justify-content: center; padding: 40px; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; border-radius: 6px; }
.lightbox iframe { width: min(900px, 92vw); height: 88vh; border: 0; background: #fff; border-radius: 6px; }
.lb-docx-card { background: #fff; border-radius: 18px; padding: 38px 30px; max-width: 440px; width: 90vw; text-align: center; box-shadow: 0 25px 70px rgba(0,0,0,.5); animation: lbPop .22s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; align-items: center; }
@keyframes lbPop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb-docx-icon { width: 72px; height: 72px; border-radius: 16px; background: linear-gradient(135deg, #eaf1fb 0%, #d8e6fd 100%); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(24, 90, 189, 0.15); }
.lb-docx-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #185abd; background: #eaf1fb; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; letter-spacing: .5px; }
.lb-docx-title { font-size: 17px; font-weight: 700; color: #111827; margin: 0 0 8px; line-height: 1.4; word-break: break-word; }
.lb-docx-desc { font-size: 13px; color: #64748b; margin: 0 0 22px; line-height: 1.5; max-width: 360px; }
.lb-docx-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.lb-docx-actions .btn { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600; padding: 11px 18px; border-radius: 8px; font-size: 14px; }
.btn-blue { background: #185abd; color: #fff !important; border: 1px solid #185abd; transition: all .2s; }
.btn-blue:hover { background: #103f91; border-color: #103f91; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(24, 90, 189, .3); }
.lb-close, .lb-nav { position: absolute; color: #fff; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 22px; transition: background .2s; cursor: pointer; border: 0; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }
.lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ccd; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(20px); background: #111214; color: #fff; padding: 11px 22px; border-radius: 999px; font-size: 13.5px; z-index: 200; opacity: 0; transition: all .3s; pointer-events: none; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================== Admin ===================== */
.login-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(1000px 500px at 20% 0%, #efe9ff, transparent), radial-gradient(800px 500px at 100% 100%, #ffe6ee, transparent); }
.login-box { width: min(400px, 100%); background: #fff; border-radius: 18px; padding: 38px 34px; box-shadow: var(--shadow-lg); text-align: center; }
.login-box h1 { font-size: 22px; margin: 14px 0 4px; }
.login-box p { color: var(--text-3); margin-bottom: 22px; }
.input, .select, .textarea { width: 100%; border: 1px solid #e1e4ea; border-radius: 10px; padding: 10px 13px; background: #fff; outline: none; transition: border .2s, box-shadow .2s; font-size: 14px; }
.input:focus, .select:focus, .textarea:focus { border-color: #b8aaff; box-shadow: 0 0 0 4px rgba(123,92,255,.1); }
.textarea { min-height: 90px; resize: vertical; }
.err { color: #e5294f; font-size: 13px; margin-top: 10px; min-height: 18px; }

.admin { width: min(1400px, 100% - 48px); margin: 0 auto; padding: 24px 0 60px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-top h1 { font-size: 24px; font-weight: 800; }
.admin-tabs { display: flex; gap: 8px; }
.table-wrap { background: #fff; border-radius: var(--radius); overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
th { color: var(--text-3); font-weight: 600; background: #fafbfc; white-space: nowrap; }
td .mini-thumb { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: #e5e7eb; }
td .t-title { font-weight: 600; max-width: 320px; }
td .t-sub { color: var(--text-3); font-size: 12px; }
.row-actions { display: flex; gap: 6px; }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.dropzone { background: #0d0e12; color: #fff; border: 2px dashed #3a3d48; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: border .2s, background .2s; text-align: center; padding: 20px; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand-2); background: #14121f; }
.dropzone .big-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-grad); display: grid; place-items: center; }
.dropzone small { color: #8f95a6; }
.media-preview { background: #000; display: flex; justify-content: center; }
.media-preview video, .media-preview img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 0; }
.media-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.progress { height: 6px; border-radius: 6px; background: #eceef2; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand-grad); transition: width .2s; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-bottom: 6px; }
.check-list label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 13px; cursor: pointer; }
.check-list input { margin-top: 3px; accent-color: var(--blue); width: 15px; height: 15px; }
.cover-box { display: flex; gap: 12px; align-items: center; }
.cover-box img { width: 140px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: #eceef2; }
.save-bar { position: sticky; bottom: 0; margin-top: 18px; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-radius: var(--radius); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: 0 -6px 24px rgba(0,0,0,.05); }

/* ===================== Responsive ===================== */
@media (max-width: 1200px) {
  .cat-strip { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .stat-card { grid-template-columns: repeat(4, 1fr); row-gap: 22px; }
  .header-search { width: 220px; }
}
@media (max-width: 960px) {
  .nav, .header-search { display: none; }
  .header-actions { margin-left: auto; }
  .watch, .editor { grid-template-columns: 1fr; }
  .side { position: static; }
  .about { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; }
  .stat-card { grid-template-columns: repeat(2, 1fr); }
  .hero { height: 460px; }
  .hero-search select { display: none; }
  .about-text { padding: 36px 26px; }
  .h-link span { display: none; }
}
