:root {
  --ink: #141414;
  --muted: #5c5c5c;
  --line: #e8e8e8;
  --bg: #fafafa;
  --accent: #007cf2;
  --surface: #fff;
  --shadow: 0 18px 45px rgba(20, 20, 20, 0.08);
  --font-sans: "Open Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Open Sans", system-ui, -apple-system, sans-serif;
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --text-home-hero: clamp(2rem, 4vw, 2.75rem);
  --text-page-title: clamp(2rem, 4vw, 2.6rem);
  --text-article-title: clamp(1.85rem, 3.5vw, 2.5rem);
  --text-section-title: 1.6rem;
  --text-feature-title: 1.45rem;
  --text-card-title: 1.05rem;
  --text-side-title: 0.92rem;
  --text-related-title: 1rem;
  --text-summary: 0.95rem;
  --text-meta: 0.85rem;
  --text-ui: 0.9rem;
  --accent-soft: rgba(0, 124, 242, 0.1);
  --accent-strong: #005fb8;
  --focus-ring: 0 0 0 3px rgba(0, 124, 242, 0.24);
}

@media (max-width: 767px) {
  :root {
    --text-home-hero: 26px;
    --text-page-title: 28px;
    --text-article-title: 28px;
    --text-section-title: 22px;
    --text-feature-title: 20px;
    --text-card-title: 17px;
    --text-side-title: 17px;
    --text-related-title: 14px;
    --text-summary: 15px;
    --text-meta: 13px;
    --text-ui: 14px;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 2000; background: #fff; padding: 8px 12px; outline: 2px solid var(--accent); }

.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  --mega-panel-top: calc(1px + 64px);
  transition: transform 0.22s ease;
}

.site-header .container {
  width: min(1360px, 100% - 40px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav-desktop { display: none; }

@media (min-width: 960px) {
  .nav-desktop { display: block; flex: 1 1 auto; min-width: 0; }
  .nav-toggle { display: none; }
  .logo { font-size: 30px; }
}

.nav-desktop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 4px;
}

.nav-desktop > ul > li { position: relative; }

.nav-desktop > ul > li > a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  border-radius: 6px;
  white-space: nowrap;
}

body.desktop-header-hidden .site-header {
  transform: translateY(calc(-100% - 1px));
}

.nav-desktop > ul > li > a:hover,
.nav-desktop > ul > li > a:focus-visible { background: rgba(20, 20, 20, 0.05); outline: none; }

.nav-desktop > ul > li.active-category > a {
  color: var(--accent);
  font-weight: 600;
}

.has-mega > a[aria-expanded="true"] {
  background: rgba(20, 20, 20, 0.05);
}

.mega {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  top: var(--mega-panel-top, 65px);
  width: min(1360px, calc(100vw - 40px));
  z-index: 1001;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.has-mega.is-mega-open .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.mega-subs { border-right: 1px solid var(--line); padding-right: 16px; }

.mega-subs button,
.mega-subs .mega-sub-link {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  text-decoration: none;
  display: block;
  white-space: nowrap;
}

.mega-subs button:hover,
.mega-subs .mega-sub-link:hover,
.mega-subs button.is-active,
.mega-subs .mega-sub-link.is-active,
.mega-subs .mega-sub-link.active { background: rgba(0, 124, 242, 0.12); color: var(--ink); font-weight: 600; }

.mega-posts { display: none; animation: fadeInPanel 180ms ease-out; }
.mega-posts.is-active { display: block; }

.mega-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
}

.mini-card { font-size: 0.78rem; color: var(--muted); min-width: 0; }
.mini-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.38;
}
.mini-card img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.nav-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 1px;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
  z-index: 1100;
}

.mobile-overlay.is-open { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: var(--surface);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.12);
}

.mobile-drawer.is-open { transform: translateX(0); }

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.mobile-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-panels {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.mobile-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 12px 0 24px;
  background: var(--surface);
  transform: translateX(0);
  transition: transform 0.28s ease;
}

.mobile-panel.is-hidden-left { transform: translateX(-100%); }
.mobile-panel.is-hidden-right { transform: translateX(100%); }
.mobile-panel.is-visible { transform: translateX(0); z-index: 2; }

.mobile-back {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 12px 20px;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.mobile-link {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: var(--weight-semibold);
}

.mobile-link.has-children::after {
  content: "›";
  float: right;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: flex-end;
  padding: 48px 0 56px;
  color: #fff;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg) var(--hero-bg-position, center)/cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.68) 0%, rgba(10, 10, 12, 0.32) 58%, rgba(10, 10, 12, 0.12) 100%);
  z-index: -1;
}

.hero-box { max-width: 520px; }

.hero-box h1 {
  font-family: var(--font-display);
  font-size: var(--text-home-hero);
  font-weight: var(--weight-extrabold);
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
}

.hero-box h1 a { color: #fff; }
.hero-box h1 a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.hero-box p { margin: 0 0 16px; opacity: 0.92; font-size: 1.05rem; }
.hero-meta { font-size: var(--text-meta); opacity: 0.8; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero.has-module-cover::before,
.cat-hero.has-module-cover::before {
  background-image: var(--module-cover-url);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-section-title);
  font-weight: var(--weight-extrabold);
  margin: 0;
}

.link-all { font-size: var(--text-ui); font-weight: var(--weight-bold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

.video-strip { padding: 56px 0; background: var(--surface); border-block: 1px solid var(--line); }
.video-strip .section-head { margin-bottom: 18px; }
.video-heading-copy {
  min-width: 0;
}
.video-strip p.lead { margin: 0 0 20px; color: var(--muted); max-width: 640px; }

.video-row-wrap { position: relative; }

.video-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.video-row::-webkit-scrollbar { height: 6px; }
.video-row::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.video-card {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: #fff;
}

.video-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.video-card .cap { padding: 12px 14px 14px; font-size: 0.9rem; font-weight: 600; }

.video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.video-nav button {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 1.1rem;
  line-height: 1;
}

.video-nav button:hover { border-color: var(--accent); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.modal-dialog {
  position: relative;
  width: min(960px, 100%);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-dialog video { width: 100%; display: block; max-height: min(70vh, 540px); background: #000; }
.modal-title { padding: 10px 16px 14px; color: #eee; font-size: 0.95rem; }

.category-block { padding: 56px 0; }
.category-block:nth-child(even) { background: var(--surface); border-block: 1px solid var(--line); }

.cat-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .cat-grid { grid-template-columns: 1.15fr 1fr; align-items: start; }
}

.feat-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feat-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.feat-body { padding: 20px 22px 22px; }
.feat-body h3 { font-family: var(--font-display); font-size: var(--text-feature-title); font-weight: var(--weight-bold); margin: 0 0 10px; line-height: 1.2; }
.feat-body p { margin: 0 0 12px; color: var(--muted); font-size: var(--text-summary); }
.feat-meta { font-size: var(--text-meta); color: var(--muted); }

.side-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 599px) {
  .side-grid { grid-template-columns: 1fr; }
}

.side-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.side-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.side-body { padding: 12px 14px 14px; font-size: var(--text-ui); }
.side-body strong { display: block; margin-bottom: 6px; font-size: var(--text-side-title); font-weight: var(--weight-semibold); line-height: 1.25; }

.ad-banner { margin: 0; padding: 0; line-height: 0; }
.ad-banner a { display: block; }
.ad-banner img { width: 100%; max-height: 200px; object-fit: cover; }

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
}

.breadcrumbs { font-size: 0.88rem; color: var(--muted); padding: 20px 0 0; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs strong { color: var(--ink); font-weight: 600; text-decoration: none; }

.category-intro { text-align: center; padding: 8px 0 8px; max-width: 760px; margin: 0 auto; }
.category-intro h1 { font-family: var(--font-display); font-size: var(--text-page-title); font-weight: var(--weight-extrabold); margin: 0 0 14px; }
.category-intro p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.cat-hero {
  position: relative;
  min-height: min(48vh, 420px);
  display: flex;
  align-items: flex-end;
  padding: 40px 0 44px;
  color: #fff;
  isolation: isolate;
  margin-top: 8px;
}

.cat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg) var(--hero-bg-position, center)/cover no-repeat;
  z-index: -2;
}

.cat-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.68) 0%, rgba(10, 10, 12, 0.34) 60%, rgba(10, 10, 12, 0.14) 100%);
  z-index: -1;
}

.cat-hero .hero-box { max-width: 560px; }
.cat-hero .hero-box h2 { font-family: var(--font-display); font-size: var(--text-section-title); font-weight: var(--weight-extrabold); margin: 0 0 10px; line-height: 1.2; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36); }
.cat-hero .hero-box h2 a { color: #fff; }
.cat-hero .hero-box h2 a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.cat-hero .hero-box p { margin: 0 0 16px; opacity: 0.92; font-size: 1.05rem; }
.cat-hero .hero-meta { font-size: 0.85rem; opacity: 0.8; }

.category-recommendations { padding-bottom: 24px; }

.archive-section { padding-bottom: 8px; }

.archive-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding: 36px 0 20px;
}

@media (min-width: 992px) {
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
}

.article-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.04);
}

.article-card > a { display: block; }

.article-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.article-card .card-body { padding: 16px 18px 20px; }
.article-card h3 { margin: 0 0 4px; font-size: var(--text-card-title); font-weight: var(--weight-bold); line-height: 1.3; font-family: var(--font-display); }
.article-card h3 a { text-decoration: none; border-bottom: 1px solid transparent; }
.article-card h3 a:hover { border-bottom-color: currentColor; }
.article-card .meta { font-size: 0.82rem; color: var(--muted); margin: 0 0 10px; }
.article-card .excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 28px 0 64px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: var(--weight-semibold);
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.pagination a:hover,
.pagination .is-current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}

.top-ad-banner { margin: 0; border-bottom: 1px solid var(--line); line-height: 0; background: var(--surface); }
.top-ad-banner a { display: block; max-width: none; }
.top-ad-banner img { width: 100%; max-height: 120px; object-fit: cover; }

.breadcrumbs-article { font-size: 0.88rem; color: var(--muted); padding: 18px 0 20px; }
.breadcrumbs-article a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs-article strong { color: var(--ink); font-weight: 600; }

@media (min-width: 992px) {
  .breadcrumbs-article { padding-bottom: 24px; }
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 72px;
}

@media (min-width: 992px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
    align-items: start;
  }
}

.main-content-column { min-width: 0; }

.article-header-block { padding-bottom: 8px; }

.article-header-block h1 {
  font-family: var(--font-display);
  font-size: var(--text-article-title);
  font-weight: var(--weight-extrabold);
  line-height: 1.2;
  margin: 0 0 12px;
}

.article-header-block .article-meta { font-size: 0.95rem; color: var(--muted); }
.article-header-block .article-meta strong { color: var(--ink); font-weight: 600; }

.toc-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px 20px;
  background: var(--surface);
  margin: 20px 0 28px;
}

.toc-box h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 12px; color: var(--muted); font-family: var(--font-sans); font-weight: 700; }
.toc-box ul { margin: 0; padding-left: 1.1rem; }
.toc-box li { margin: 8px 0; }
.toc-box a { color: var(--accent); font-weight: var(--weight-semibold); }

.toc-box a.is-active {
  color: var(--ink);
  font-weight: var(--weight-extrabold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lead-img {
  overflow: hidden;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.lead-img .inline-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-content {
  line-height: 1.8;
  color: var(--ink);
}

.article-content > p { margin: 0 0 1.25em; }

.article-content .lead-img {
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 1.5em;
  border: 1px solid var(--line);
}

.article-content h2 {
  font-family: var(--font-display);
  margin: 2em 0 0.6em;
  scroll-margin-top: 6rem;
}

.article-content h2:first-of-type { margin-top: 0.5em; }

.article-content img.inline-figure {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 1.5em 0;
  border: 1px solid var(--line);
}

.article-disclaimer {
  margin: 32px 0 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-style: italic;
  line-height: 1.7;
}

.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 40px 0 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.author-box .avatar {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--line);
}

.author-box h3 { margin: 0 0 8px; font-size: 1.1rem; font-family: var(--font-display); }
.author-box p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.55; }

.article-footer {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.share-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

.share-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.share-row a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.share-row svg { width: 20px; height: 20px; fill: currentColor; }

.article-pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-weight: 600; font-size: 0.92rem; }
.article-pager a { color: var(--accent); }
.article-pager a:hover { text-decoration: underline; }

.carousel-section { margin-top: 40px; }
.carousel-section h2 { font-family: var(--font-display); font-size: var(--text-section-title); font-weight: var(--weight-bold); margin: 0 0 16px; }

.carousel-wrap { position: relative; }

.carousel-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0 12px;
  scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar { display: none; }

.product-card {
  flex: 0 0 min(200px, 72vw);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card .pc-body { padding: 12px 14px 14px; }

.product-card .pc-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 8px;
  min-height: 2.5em;
}

.product-card .pc-price { font-weight: 700; font-size: 1rem; margin: 0 0 4px; }
.product-card .pc-moq { font-size: 0.78rem; color: var(--muted); margin: 0; }

.more-article-card {
  flex: 0 0 min(260px, 85vw);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.more-article-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.more-article-card .mac-body { padding: 12px 14px 14px; }
.more-article-card h3 { margin: 0 0 6px; font-size: var(--text-card-title); font-weight: var(--weight-bold); font-family: var(--font-display); line-height: 1.25; }
.more-article-card h3 a { text-decoration: none; border-bottom: 1px solid transparent; }
.more-article-card h3 a:hover { border-bottom-color: currentColor; }
.more-article-card .meta { font-size: 0.8rem; color: var(--muted); margin: 0 0 8px; }
.more-article-card .excerpt { font-size: 0.85rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover { border-color: var(--accent); }
.carousel-btn.prev { left: -6px; }
.carousel-btn.next { right: -6px; }

@media (max-width: 640px) {
  .carousel-btn.prev { left: 0; }
  .carousel-btn.next { right: 0; }
}

.sidebar { align-self: start; }

@media (min-width: 992px) {
  .sidebar { position: sticky; top: 5.5rem; }
}

.widget { margin-bottom: 28px; }
.widget h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; color: var(--muted); font-weight: 700; }

.widget-related h4 { margin: 0; border-bottom: 1px solid var(--line); font-family: var(--font-sans); }
.widget-related h4 a { display: block; padding: 11px 0; font-size: var(--text-related-title); font-weight: var(--weight-regular); line-height: 1.45; text-decoration: none; }
.widget-related h4 a:hover { color: var(--accent); }

.shop-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.shop-item:first-of-type { padding-top: 0; }
.shop-item:last-child { border-bottom: 0; padding-bottom: 0; }

.shop-item .si-thumb {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.shop-item .si-body { min-width: 0; flex: 1; }
.shop-item .si-title { font-weight: 600; font-size: 0.88rem; margin: 0 0 6px; line-height: 1.3; }
.shop-item .si-rating { font-size: 0.78rem; color: var(--muted); margin: 0 0 8px; }
.shop-item .si-price-row { font-size: 0.88rem; margin-bottom: 10px; }
.shop-item .si-price { font-weight: 700; }
.shop-item .si-was { text-decoration: line-through; color: var(--muted); margin-left: 6px; font-weight: 400; }
.shop-item .si-disc { color: #c41e3a; font-weight: 600; margin-left: 8px; font-size: 0.82rem; }

.shop-item .si-buy {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 0;
  background: #f5c542;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}

.shop-item .si-buy:hover { filter: brightness(0.95); }

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.language-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.language-current {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.language-name {
  color: var(--muted);
  font-weight: 700;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1300;
  display: grid;
  min-width: 172px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.language-switcher.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button[aria-checked="true"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.language-menu button[aria-checked="true"]::after {
  content: "Active";
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  padding: 0;
  color: var(--muted);
  text-align: left;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(22px, 4vw, 48px);
  padding: clamp(34px, 6vw, 58px) 0 30px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-brand p {
  max-width: 360px;
  margin: 0 0 18px;
  line-height: 1.65;
}

.footer-nav h2,
.footer-social h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--accent);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: var(--weight-extrabold);
  letter-spacing: 0.04em;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.footer-language .language-menu {
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  right: auto;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.footer-bottom p {
  margin: 0;
}

.module-cover-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --module-cover-opacity: 0.08;
}

.module-cover-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--module-cover-url);
  background-size: cover;
  background-position: center;
  opacity: var(--module-cover-opacity);
  pointer-events: none;
}

.module-cover-bg > * {
  position: relative;
  z-index: 1;
}

.module-cover-img {
  object-fit: cover;
  object-position: center;
}

.sidebar .widget {
  margin-bottom: 34px;
}

.sidebar .widget h3 {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.sidebar .widget-related,
.sidebar .widget-shop {
  padding-top: 0;
}

.sidebar .widget-related h4:first-of-type,
.sidebar .widget-shop .shop-item:first-of-type {
  margin-top: 0;
}

.article-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  width: 100%;
}

.article-pager a {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.article-pager a:hover {
  border-color: var(--accent);
  background: var(--surface);
  text-decoration: none;
  transform: translateY(-1px);
}

.article-pager a.is-next {
  text-align: right;
}

.article-pager .pager-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.article-pager .is-prev .pager-label::before {
  content: "<-";
}

.article-pager .is-next .pager-label {
  justify-content: flex-end;
}

.article-pager .is-next .pager-label::after {
  content: "->";
}

.article-pager .pager-title {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (min-width: 900px) {
  .cat-grid {
    align-items: stretch;
    --feature-image-height: clamp(340px, 32vw, 390px);
    --side-image-height: clamp(132px, 14vw, 178px);
  }

  .cat-grid .feat-card,
  .cat-grid .side-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .cat-grid .feat-card > a,
  .cat-grid .side-card > a {
    display: block;
    overflow: hidden;
    flex: 0 0 auto;
  }

  .cat-grid .feat-card img {
    aspect-ratio: auto;
    height: var(--feature-image-height);
    width: 100%;
    object-fit: cover;
  }

  .cat-grid .feat-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
  }

  .cat-grid .feat-body .feat-meta,
  .cat-grid .feat-body p:last-child {
    margin-top: auto;
  }

  .cat-grid .side-grid {
    height: 100%;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .cat-grid .side-card img {
    aspect-ratio: auto;
    height: var(--side-image-height);
    width: 100%;
    object-fit: cover;
  }

  .cat-grid .side-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
  }

  .cat-grid .side-body span {
    margin-top: auto;
  }
}

.ui-btn,
.hero-cta,
.link-all,
.si-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.hero-cta,
.ui-btn.is-primary {
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
}

.hero-cta:hover,
.ui-btn.is-primary:hover,
.si-buy:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  color: #fff;
}

.ui-btn.is-secondary {
  padding: 10px 14px;
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.ui-btn.is-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.video-row-wrap {
  padding-bottom: 28px;
}

.video-strip {
  margin: 0;
  padding: clamp(34px, 5vw, 56px) 0 42px;
  background: var(--surface);
  color: var(--ink);
  border-block: 1px solid var(--line);
}

.video-strip .container {
  width: min(1180px, 100% - 40px);
}

.video-strip .section-head {
  align-items: end;
  margin-bottom: 4px;
}

.video-heading-copy {
  min-width: 0;
}

.video-strip .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 1px 1px 0 rgba(0, 124, 242, 0.18);
}

.video-strip .link-all {
  min-height: auto;
  padding: 0 0 3px;
  border-radius: 0;
  border-bottom: 2px solid currentColor;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
}

.video-strip .link-all:hover {
  color: var(--accent-strong);
}

.video-strip p.lead {
  max-width: 620px;
  margin: 0 0 18px;
  color: var(--muted);
  font-style: italic;
}

.video-strip .video-row-wrap {
  padding-bottom: 24px;
}

.video-row {
  gap: 14px;
  padding: 0 0 8px;
  scrollbar-color: rgba(20, 20, 20, 0.42) rgba(20, 20, 20, 0.08);
}

.video-row::-webkit-scrollbar {
  height: 6px;
}

.video-row::-webkit-scrollbar-track {
  background: rgba(20, 20, 20, 0.08);
  border-radius: 999px;
}

.video-row::-webkit-scrollbar-thumb {
  background: rgba(20, 20, 20, 0.42);
  border-radius: 999px;
}

.video-card {
  position: relative;
  flex: 0 0 clamp(210px, 23vw, 260px);
  aspect-ratio: 3 / 4.15;
  border: 0;
  border-radius: 8px;
  background: #111;
  box-shadow: none;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 62%, rgba(0, 0, 0, 0.95) 100%);
  pointer-events: none;
}

.video-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background 160ms ease;
}

.video-card:hover::before,
.video-card:focus-visible::before {
  background: rgba(0, 0, 0, 0.78);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-card .video-play {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translate(-38%, -50%);
  pointer-events: none;
}

.video-card .video-play::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid #fff;
  transform: translate(-50%, -50%);
}

.video-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.video-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 18px 18px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.18;
}

.video-nav {
  left: -16px;
  right: -16px;
  top: 50%;
  width: auto;
  padding: 0;
  gap: 0;
  display: flex;
  justify-content: space-between;
}

.video-nav button {
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 0;
  box-shadow: 0 14px 34px rgba(20, 20, 20, 0.18);
}

.video-nav button::before {
  content: ">";
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.video-nav #video-prev::before {
  content: "<";
}

.video-nav button:hover {
  background: var(--accent);
  color: #fff;
}

.video-nav button:disabled {
  opacity: 0.45;
}

.video-strip .video-progress {
  bottom: 0;
  background: rgba(20, 20, 20, 0.1);
}

.video-strip .video-progress span {
  background: rgba(20, 20, 20, 0.45);
}

.video-strip .video-dots {
  margin-top: 12px;
}

.video-strip .video-dots button {
  background: rgba(20, 20, 20, 0.22);
}

.video-strip .video-dots button.is-active {
  background: var(--accent);
}

.video-strip .video-nav button:disabled {
  opacity: 0.45;
}

.videos-page {
  background: var(--bg);
}

.video-hub-hero {
  padding: clamp(48px, 7vw, 86px) 0 clamp(34px, 5vw, 56px);
  background: linear-gradient(180deg, #fff 0%, #f6f7f8 100%);
  border-bottom: 1px solid var(--line);
}

.video-hub-hero .container {
  max-width: 980px;
}

.video-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-hub-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.video-hub-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.video-category-block {
  padding: clamp(42px, 5vw, 60px) 0;
}

.video-category-block:nth-child(odd) {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.video-category-block .section-head {
  margin-bottom: 8px;
}

.video-category-block .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.video-category-lead {
  max-width: 640px;
  margin: 0 0 22px;
  color: var(--muted);
}

.video-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-card-grid .video-card {
  width: 100%;
  min-width: 0;
  flex: none;
}

.video-library-toolbar {
  margin-top: 28px;
  margin-bottom: 26px;
}

.video-library-section {
  padding: 8px 0 clamp(56px, 7vw, 84px);
}

.video-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-library-grid .video-card {
  width: 100%;
  min-width: 0;
  flex: none;
}

.video-library-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.video-page-btn {
  min-width: 40px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.video-page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.video-page-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.video-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (min-width: 760px) {
  .video-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .video-library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

#video-modal {
  padding: 0;
  background: rgba(0, 0, 0, 0.84);
}

#video-modal .modal-backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
}

#video-modal .modal-dialog {
  width: min(480px, calc(100vw - 40px));
  height: min(88vh, 860px);
  border-radius: 0;
  background: #050505;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

#video-modal .modal-dialog video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

#video-modal .modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  box-shadow: none;
}

#video-modal .modal-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 72px 28px 28px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 68%, rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
}

.video-progress,
.carousel-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(20, 20, 20, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.video-progress span,
.carousel-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 160ms ease;
}

.video-dots,
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.video-dots button,
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c9c9c9;
  cursor: pointer;
}

.video-dots button.is-active,
.carousel-dots button.is-active {
  width: 22px;
  background: var(--accent);
}

.video-nav button:disabled,
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.category-toolbar,
.archive-toolbar,
.video-library-toolbar {
  position: sticky;
  top: 65px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px auto 26px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 250, 250, 0.94);
  backdrop-filter: blur(10px);
}

.filter-group {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-group::-webkit-scrollbar {
  display: none;
}

.filter-chip,
.sort-select {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

.filter-chip {
  white-space: nowrap;
  padding: 8px 12px;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.sort-select {
  padding: 8px 32px 8px 12px;
}

.archive-status {
  margin: 0 auto 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.article-card.is-hidden,
.video-card.is-hidden {
  display: none;
}

.mini-card,
.feat-card,
.side-card,
.hub-card,
.article-card,
.more-article-card,
.product-card,
.shop-item,
.video-card {
  contain: layout paint;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mini-card img,
.feat-card img,
.side-card img,
.hub-card img,
.article-card img,
.more-article-card img,
.product-card img,
.shop-item img {
  transition: transform 240ms ease, filter 240ms ease;
}

.mini-card:hover img,
.feat-card:hover img,
.side-card:hover img,
.hub-card:hover img,
.article-card:hover img,
.more-article-card:hover img,
.product-card:hover img,
.shop-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.article-card:hover,
.more-article-card:hover,
.product-card:hover,
.shop-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(20, 20, 20, 0.1);
}

.category-block,
.hub-section,
.archive-list,
.video-library-section,
.carousel-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  z-index: 2;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.read-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(0, 124, 242, 0.35);
}

.copy-link-btn {
  padding-inline: 13px;
}

.quick-view {
  margin-top: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.quick-view:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1400;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .site-header {
    background: rgba(255, 255, 255, 0.96);
  }

  .header-inner {
    min-height: 60px;
    gap: 10px;
  }

  .header-language {
    margin-left: auto;
  }

  .header-language .language-name {
    display: none;
  }

  .header-language .language-menu {
    right: -48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-nav ul {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-toggle {
    display: inline-grid;
    place-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(20, 20, 20, 0.1);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 20, 20, 0.08);
  }

  .nav-toggle span:not(.visually-hidden) {
    width: 18px;
    height: 2px;
    margin: 3px 0;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-overlay {
    background: rgba(20, 20, 20, 0.34);
    backdrop-filter: none;
  }

  .mobile-drawer {
    width: min(374px, 92vw);
    background: #fff;
    border-right: 1px solid #ddd;
    border-radius: 0 18px 0 0;
    box-shadow: 12px 0 42px rgba(20, 20, 20, 0.12);
  }

  .mobile-drawer-header {
    min-height: 74px;
    padding: 18px 20px;
    border-bottom: 1px solid #e7e7e7;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0;
  }

  .mobile-drawer-header span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-drawer-header span::after {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
  }

  .mobile-close {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 1.4rem;
    box-shadow: inset 0 0 0 1px #e6e6e6;
  }

  .mobile-panels {
    background: #fff;
  }

  .mobile-panel {
    padding: 24px 20px 28px;
    background: #fff;
  }

  .mobile-link,
  .mobile-back {
    min-height: 50px;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 13px 0;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0;
  }

  .mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-link:hover,
  .mobile-link:focus-visible,
  .mobile-back:hover,
  .mobile-back:focus-visible {
    background: transparent;
    color: var(--ink);
  }

  .mobile-panel:not(#mobile-panel-main) .mobile-link[href="category-street-style.html"],
  .mobile-panel:not(#mobile-panel-main) .mobile-link[href="sub-category-new-york.html"] {
    background: #eaf1ff;
    border-radius: 10px;
    color: var(--accent-strong);
    margin: 3px 0;
  }

  .mobile-link.has-children::after {
    content: ">";
    float: none;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px #e6e6e6;
  }

  .mobile-back {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 42px;
    margin: -2px 0 18px;
    padding: 0;
    color: var(--ink);
    font-weight: 800;
    font-size: 1.45rem;
    border-bottom: 0;
    border-radius: 0;
  }

  .mobile-back::before {
    content: "<";
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 18px;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.4rem;
    box-shadow: none;
  }

  .mobile-subtitle {
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 800;
  }

  #mobile-panel-main .mobile-link {
    min-height: 56px;
    padding-left: 0;
    padding-right: 0;
  }

  #mobile-panel-main .mobile-link.has-children {
    justify-content: flex-start;
    gap: 8px;
  }

  #mobile-panel-main .mobile-link.has-children::after {
    width: 26px;
    height: 26px;
  }

  .mobile-panel:not(#mobile-panel-main) {
    padding: 22px 20px 28px;
  }

  .mobile-panel:not(#mobile-panel-main) .mobile-link {
    min-height: 44px;
    justify-content: flex-start;
    padding: 11px 0;
    color: #242424;
    font-size: 16px;
    font-weight: var(--weight-semibold);
  }

  .mobile-panel:not(#mobile-panel-main) .mobile-link[href="category-street-style.html"],
  .mobile-panel:not(#mobile-panel-main) .mobile-link[href="sub-category-new-york.html"] {
    background: transparent;
    border-radius: 0;
    color: #242424;
    margin: 0;
  }

  .video-strip {
    padding: 32px 0 36px;
  }

  .video-strip .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .video-strip .section-head h2 {
    font-size: 2.25rem;
  }

  .video-strip .link-all {
    font-size: 14px;
  }

  .video-card {
    flex-basis: min(72vw, 240px);
  }

  .video-nav {
    left: 4px;
    right: 4px;
  }

  #video-modal .modal-dialog {
    width: min(420px, 100vw);
    height: 100vh;
  }

  .category-toolbar,
  .archive-toolbar,
  .video-library-toolbar {
    align-items: stretch;
    flex-direction: column;
    top: 64px;
    width: min(1180px, 100% - 24px);
  }

  .archive-status {
    margin: 0;
    white-space: normal;
  }

  .article-pager {
    grid-template-columns: 1fr;
  }

  .article-pager a.is-next {
    text-align: left;
  }

  .article-pager .is-next .pager-label {
    justify-content: flex-start;
  }

  .main-content-column > .sidebar,
  #main-content-column > .sidebar {
    margin-top: 34px;
  }

  .main-content-column > .sidebar .widget:first-child,
  #main-content-column > .sidebar .widget:first-child {
    padding-top: 4px;
  }

  .hero-actions .ui-btn,
  .hero-actions .hero-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.admin-header {
  background: var(--ink);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 16px;
}

.admin-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.admin-brand:hover { color: #f5e6c8; }

.admin-nav-links { display: none; }

@media (min-width: 768px) {
  .admin-nav-links { display: flex; align-items: center; gap: 4px; }
  .admin-nav-toggle { display: none !important; }
}

.admin-nav-links a {
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.admin-nav-links a:hover,
.admin-nav-links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-header-right { display: flex; align-items: center; gap: 12px; }

.admin-view-site {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-view-site:hover { color: #fff; }

.admin-logout {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-logout:hover { border-color: #fff; color: #fff; }

.admin-nav-toggle {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.admin-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  border-radius: 1px;
}

.admin-mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
}

.admin-mobile-nav.is-open { display: block; }

.admin-mobile-nav a {
  display: block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

.admin-mobile-nav a:hover { color: #fff; }

.admin-body {
  background: var(--bg);
  min-height: calc(100vh - 56px);
  padding: 32px 0 64px;
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-page-head h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.admin-btn-primary { background: var(--accent); color: #fff; }
.admin-btn-primary:hover { filter: brightness(0.9); }

.admin-btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.admin-btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.admin-btn-danger {
  background: transparent;
  border: 1px solid #e8c4c4;
  color: #c41e3a;
}

.admin-btn-danger:hover { background: #c41e3a; color: #fff; border-color: #c41e3a; }

.admin-btn-sm { padding: 6px 14px; font-size: 0.82rem; }

.admin-btn-link {
  background: transparent;
  border: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}

.admin-btn-link:hover { text-decoration: underline; }

.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: 0; }

.admin-table tr:hover td { background: rgba(0, 124, 242, 0.03); }

.admin-table .actions { text-align: right; white-space: nowrap; }

.admin-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-badge-published { background: #e6f4ea; color: #1a7f37; }
.admin-badge-draft { background: #fef3cd; color: #856404; }

.admin-form {
  max-width: 860px;
}

.admin-form-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 24px;
  margin-bottom: 20px;
}

.admin-form-section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .admin-form-row-2 { grid-template-columns: 1fr 1fr; }
  .admin-form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.admin-field { margin-bottom: 0; }

.admin-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 124, 242, 0.12);
}

.admin-field textarea { resize: vertical; min-height: 80px; }

.admin-field .field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.admin-field .field-error {
  font-size: 0.78rem;
  color: #c41e3a;
  margin-top: 4px;
}

.admin-field-mono textarea { font-family: "Cascadia Code", "Fira Code", "Consolas", monospace; font-size: 0.85rem; }

.admin-locale-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 16px;
  overflow: hidden;
}

.admin-locale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
}

.admin-locale-header:hover { background: rgba(0, 124, 242, 0.05); }

.admin-locale-body { padding: 20px; }

.admin-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.admin-alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-alert-success { background: #e6f4ea; color: #1a7f37; border: 1px solid #b7e1cd; }
.admin-alert-danger { background: #fce8e8; color: #c41e3a; border: 1px solid #f1c0c0; }

.admin-alert-close {
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 0 4px;
}

.admin-alert-close:hover { opacity: 1; }

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.admin-login-card {
  width: min(400px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-login-header {
  padding: 28px 28px 0;
  text-align: center;
}

.admin-login-header h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.admin-login-header p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.admin-login-body { padding: 24px 28px 28px; }

.admin-login-body .admin-field { margin-bottom: 16px; }

.admin-login-body .admin-btn-primary { width: 100%; justify-content: center; padding: 12px; }

.admin-login-footer {
  text-align: center;
  padding: 0 28px 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

.admin-login-footer a { color: var(--accent); }

.admin-narrow { max-width: 720px; margin: 0 auto; }
