/* ===== SANYO MOBILE THEME v9.0 ===== */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080a0f;
  --surface: #0e1118;
  --card: #13171f;
  --card-hover: #191e29;
  --border: #1c2130;
  --border-light: #242d40;
  --accent: #00d4ff;
  --accent-dim: rgba(0,212,255,0.10);
  --accent-border: rgba(0,212,255,0.22);
  --accent2: #ff4060;
  --accent2-dim: rgba(255,64,96,0.12);
  --text: #e8eaf2;
  --text-soft: #c2c8d8;
  --muted: #7a8499;
  --tag-bg: #161c2e;
  --r: 12px;
  --r-sm: 8px;
  --r-xs: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.55);
  --fh: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --max: 1200px;
  --pad: clamp(14px, 4vw, 40px);
  --touch-min: 44px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--fb);
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--fb); cursor: pointer; border: none; background: none; }
input, textarea { font-family: var(--fb); }
a, button { -webkit-tap-highlight-color: rgba(0,212,255,0.1); }

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

::-webkit-scrollbar { width: 5px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── UTILS ── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── NOTICE BAR ── */
.notice-bar {
  background: linear-gradient(90deg, #c01e3c, #ff4a4a);
  color: #fff; text-align: center;
  padding: 9px var(--pad); font-size: 13px; font-weight: 600;
  line-height: 1.4; position: relative;
}
.notice-bar a { color: #fff; text-decoration: underline; }
.notice-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2); color: #fff;
  font-size: 14px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s; border: none;
}
.notice-close:hover { background: rgba(255,255,255,0.35); }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,10,15,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); transition: box-shadow 0.3s;
}
.header-inner {
  display: flex; align-items: center; gap: 8px;
  padding: 0 var(--pad); height: 58px;
  max-width: var(--max); margin: 0 auto;
}
.site-logo {
  font-family: var(--fh); font-size: clamp(16px, 3vw, 20px); font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; margin-right: auto; letter-spacing: -0.3px;
}
.logo-icon {
  width: 30px; height: 30px; min-width: 30px; background: var(--accent);
  border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.site-logo .accent { color: var(--accent); }

/* Desktop Nav */
.desktop-nav { display: none; gap: 2px; align-items: center; }
@media (min-width: 900px) { .desktop-nav { display: flex; } }
.desktop-nav a {
  padding: 7px 11px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
  color: var(--muted); transition: all 0.2s; white-space: nowrap;
  min-height: var(--touch-min); display: flex; align-items: center;
}
.desktop-nav a:hover, .desktop-nav a.current { background: var(--tag-bg); color: var(--text); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 6px; }

/* Search toggle (mobile) */
.search-toggle {
  width: 38px; height: 38px; min-width: 38px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--muted); display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.search-toggle svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; width: 17px; height: 17px; }
.search-toggle:hover, .search-toggle.active { border-color: var(--accent); color: var(--accent); }
@media (min-width: 900px) { .search-toggle { display: none; } }

/* Desktop inline search */
.header-search-desktop { display: none; position: relative; }
@media (min-width: 900px) { .header-search-desktop { display: flex; } }
.header-search-desktop input {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 7px 34px 7px 12px; font-size: 14px; color: var(--text);
  width: clamp(130px, 16vw, 180px); outline: none; height: 38px;
  transition: border-color 0.2s, width 0.3s;
}
.header-search-desktop input::placeholder { color: var(--muted); }
.header-search-desktop input:focus { border-color: var(--accent); width: 220px; }
.header-search-desktop .search-submit {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--muted); transition: color 0.2s;
}
.header-search-desktop .search-submit svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; width: 15px; height: 15px; }
.header-search-desktop .search-submit:hover { color: var(--accent); }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 4.5px; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 9px; flex-shrink: 0; transition: border-color 0.2s;
  width: 38px; height: 38px;
}
.hamburger:hover { border-color: var(--accent); }
@media (min-width: 900px) { .hamburger { display: none; } }
.hamburger span { width: 16px; height: 2px; background: var(--text); border-radius: 2px; display: block; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Slide-down search bar */
.search-bar { border-top: 1px solid var(--border); padding: 12px var(--pad); display: none; animation: slideDown 0.2s ease; }
.search-bar.open { display: block; }
.search-bar form { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
.search-bar input {
  flex: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 14px; font-size: 15px;
  color: var(--text); outline: none; transition: border-color 0.2s;
  min-height: var(--touch-min);
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar input:focus { border-color: var(--accent); }
.search-bar button {
  background: var(--accent); color: #000; border-radius: var(--r-sm);
  padding: 10px 18px; font-size: 14px; font-weight: 700;
  transition: all 0.2s; min-height: var(--touch-min); white-space: nowrap;
}
.search-bar button:hover { background: #00bfdd; }

/* Mobile Nav Drawer */
.mobile-nav {
  background: var(--surface); border-bottom: 1px solid var(--border);
  overflow: hidden; max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { max-height: 600px; }
.mobile-nav-inner { padding: 8px var(--pad) 14px; }
.mobile-nav a {
  padding: 11px 14px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: all 0.2s; display: flex; align-items: center; gap: 10px;
  min-height: var(--touch-min);
}
.mobile-nav a:hover, .mobile-nav a:active { background: var(--tag-bg); color: var(--text); }
.nav-divider { height: 1px; background: var(--border); margin: 6px 0; }
.mobile-nav-footer { display: flex; gap: 8px; padding: 10px 14px 4px; flex-wrap: wrap; }
.mobile-nav-footer a {
  padding: 8px 14px; background: var(--tag-bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all 0.2s; min-height: 36px; display: inline-flex; align-items: center;
}
.mobile-nav-footer a:hover { border-color: var(--accent); color: var(--accent); }

/* ── HERO ── */
.hero {
  background: linear-gradient(155deg, #080a0f 0%, #0c1320 55%, #09101a 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(44px, 9vw, 88px) var(--pad) clamp(40px, 7vw, 72px);
  text-align: center; position: relative; overflow: hidden;
}
/* Subtle dot-grid background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,212,255,0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
/* Bottom accent line */
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.35), transparent);
}
/* Top glow */
.hero-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  border-radius: 20px; padding: 6px 16px;
  font-size: 12px; font-weight: 700; color: var(--accent);
  margin-bottom: 24px; letter-spacing: 0.3px;
  animation: fadeUp 0.5s ease both;
  position: relative; z-index: 1;
}
.hero-badge-dot {
  width: 7px; height: 7px; min-width: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* Heading */
.hero h1 {
  font-family: var(--fh); font-size: clamp(28px, 6vw, 58px);
  font-weight: 800; line-height: 1.06; margin-bottom: 20px;
  letter-spacing: -0.5px;
  animation: fadeUp 0.5s 0.08s ease both;
  position: relative; z-index: 1;
}
.hero h1 .accent { color: var(--accent); }

/* Description */
.hero-desc {
  font-size: clamp(14px, 2.2vw, 17px); color: var(--text-soft);
  max-width: 520px; margin: 0 auto 32px; line-height: 1.8;
  animation: fadeUp 0.5s 0.16s ease both;
  position: relative; z-index: 1;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

/* CTA buttons */
.hero-cta-row {
  display: flex; justify-content: center; align-items: center;
  gap: 10px; flex-wrap: wrap; margin-bottom: 40px;
  animation: fadeUp 0.5s 0.22s ease both;
  position: relative; z-index: 1;
}
.hero-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #000;
  padding: 13px 26px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700;
  transition: all 0.22s; min-height: var(--touch-min); white-space: nowrap;
}
.hero-btn-primary:hover {
  background: #00c4ec; transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,212,255,0.32);
}
.hero-btn-yt {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-soft);
  border: 1px solid var(--border);
  padding: 12px 20px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  transition: all 0.22s; min-height: var(--touch-min); white-space: nowrap;
}
.hero-btn-yt:hover {
  border-color: var(--accent2); color: var(--accent2);
  background: var(--accent2-dim);
}

/* Stats pill */
.hero-stats {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: nowrap;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 12px;
  animation: fadeUp 0.5s 0.30s ease both;
  position: relative; z-index: 1;
}
.stat-item { text-align: center; padding: 0 20px; }
.stat-divider { width: 1px; height: 30px; background: var(--border); flex-shrink: 0; }
.stat-num { font-family: var(--fh); font-size: clamp(20px, 4vw, 28px); font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 10px; color: var(--muted); margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 440px) {
  .hero-stats { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .stat-item { padding: 8px 16px; }
}

/* ── BRAND TICKER ── */
.brand-ticker-wrap {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 10px 0; overflow: hidden;
}
.brand-ticker { display: flex; width: max-content; animation: ticker 26s linear infinite; }
.brand-ticker:hover { animation-play-state: paused; }
.brand-chip {
  padding: 5px 22px; font-size: 13px; font-weight: 600; color: var(--muted);
  white-space: nowrap; border-right: 1px solid var(--border);
  text-decoration: none; display: inline-block; transition: color 0.2s;
}
.brand-chip:hover { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── CATEGORY FILTER ── */
.cat-filter-wrap { padding: 18px var(--pad) 0; position: relative; }
.cat-filter-wrap::after {
  content: ''; position: absolute; right: 0; top: 18px; bottom: 0;
  width: 40px; background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
}
@media (min-width: 700px) { .cat-filter-wrap::after { display: none; } }
.cat-filter-row {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 4px;
}
.cat-filter-row::-webkit-scrollbar { display: none; }
.cat-pill {
  padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
  text-decoration: none; display: inline-flex; align-items: center; min-height: 36px;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--accent-dim); border-color: var(--accent); color: var(--accent);
}
@media (max-width: 699px) {
  .cat-filter-wrap { padding-right: 0; }
  .cat-filter-row { padding-right: 40px; }
}

/* ── PAGE LAYOUT ── */
.page-layout {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 56px;
}
@media (min-width: 960px) { .page-layout { grid-template-columns: 1fr 288px; } }

/* ── SECTION HEADER ── */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title {
  font-family: var(--fh); font-size: 18px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; width: 4px; height: 20px;
  background: var(--accent); border-radius: 2px; flex-shrink: 0;
}
.view-all {
  font-size: 13px; color: var(--accent); font-weight: 600;
  padding: 6px 13px; border: 1px solid var(--accent-border);
  border-radius: var(--r-xs); transition: all 0.2s; white-space: nowrap;
  min-height: 36px; display: inline-flex; align-items: center;
}
.view-all:hover { background: var(--accent-dim); }

/* ── FEATURED POST ── */
.featured-post {
  display: grid; grid-template-columns: 1fr;
  border-radius: var(--r); overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  will-change: transform;
}
@media (min-width: 540px) { .featured-post { grid-template-columns: 1fr 1fr; } }
.featured-post:hover { border-color: var(--accent-border); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.featured-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.featured-post:hover .featured-thumb img { transform: scale(1.04); }

/* Image badges */
.featured-top-badges {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.featured-label-badge {
  background: var(--accent); color: #000;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.7px; padding: 4px 10px; border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.featured-repair-badge {
  background: rgba(8,10,15,0.80); backdrop-filter: blur(6px);
  color: var(--text-soft);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 4px 10px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.10);
}

.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.28); opacity: 0; transition: opacity 0.25s;
}
.play-overlay svg { filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)); }
.featured-post:hover .play-overlay,
.post-card:hover .play-overlay { opacity: 1; }
@media (hover: none) { .play-overlay { opacity: 1; } }

.featured-body {
  padding: clamp(16px, 3vw, 26px);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
/* Brand tag chip */
.featured-brand-row { display: flex; gap: 6px; flex-wrap: wrap; }
.post-category-tag {
  display: inline-flex; align-items: center;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  color: var(--accent); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 9px; border-radius: 4px;
}
.featured-body h2 {
  font-family: var(--fh); font-size: clamp(15px, 2.2vw, 21px);
  font-weight: 700; line-height: 1.28; transition: color 0.2s;
}
.featured-post:hover .featured-body h2 { color: var(--accent); }

/* Date with icon */
.post-meta {
  font-size: 12px; color: var(--muted);
  display: flex; gap: 5px; flex-wrap: wrap; align-items: center;
}
.post-meta svg { flex-shrink: 0; opacity: 0.7; }

/* Excerpt on featured */
.featured-excerpt {
  font-size: 13px; color: var(--muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: -2px;
}

/* Watch button */
.featured-watch-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent2); color: #fff;
  padding: 10px 18px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700; transition: background 0.2s, transform 0.2s;
  width: fit-content; margin-top: 4px; min-height: 36px;
}
.featured-watch-btn:hover { background: #e02855; transform: translateY(-1px); }
.featured-watch-btn svg { width: 14px; height: 14px; fill: #fff; }

/* ── POST GRID ── */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 500px) { .posts-grid { gap: 12px; } }
@media (min-width: 860px) { .posts-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

.post-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.4s ease both;
  will-change: transform;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: var(--shadow-lg); }
.post-card:active { transform: scale(0.98); }

.post-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; flex-shrink: 0; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-thumb img { transform: scale(1.06); }

/* Repair-type badge on card thumbnail */
.card-repair-badge {
  position: absolute; bottom: 8px; left: 8px; z-index: 2;
  background: rgba(8,10,15,0.75); backdrop-filter: blur(4px);
  color: var(--text-soft); border: 1px solid rgba(255,255,255,0.08);
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 3px; pointer-events: none;
}

.post-body { padding: clamp(9px, 2vw, 13px); display: flex; flex-direction: column; flex: 1; }
.post-category { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--accent); margin-bottom: 5px; }
.post-body h3 {
  font-family: var(--fh); font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 700; line-height: 1.35; flex: 1; transition: color 0.2s; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card:hover .post-body h3 { color: var(--accent); }
.post-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--muted);
  padding-top: 8px; border-top: 1px solid var(--border); margin-top: auto;
}
.watch-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--accent2-dim); color: var(--accent2);
  border: 1px solid rgba(255,64,96,0.2);
  padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700;
  transition: all 0.18s;
}
.post-card:hover .watch-badge { background: var(--accent2); color: #fff; border-color: var(--accent2); }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.page-numbers {
  min-width: 40px; height: 40px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--muted); background: var(--card); transition: all 0.2s;
}
.page-numbers:hover, .page-numbers.current { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.page-numbers.dots { cursor: default; }
.pagination a, .pagination span { text-decoration: none; }
.pagination .page-numbers { display: inline-flex; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 960px) {
  .sidebar { position: sticky; top: 78px; max-height: calc(100vh - 100px); overflow-y: auto; }
  .sidebar::-webkit-scrollbar { width: 3px; }
  .sidebar::-webkit-scrollbar-thumb { background: var(--border); }
}
.widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.widget-title {
  font-family: var(--fh); font-size: 14px; font-weight: 800;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}

/* YouTube Widget */
.widget-youtube {
  background: linear-gradient(135deg, #180a0a, #1e0c0c);
  border-color: rgba(255,64,96,0.22); text-align: center; padding: 20px 16px;
}
.yt-icon { font-size: 32px; margin-bottom: 8px; }
.widget-youtube .widget-title { border: none; justify-content: center; margin-bottom: 6px; padding: 0; }
.widget-youtube p { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.btn-youtube {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px; background: var(--accent2); color: #fff;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 700;
  transition: all 0.2s; text-decoration: none; min-height: var(--touch-min);
}
.btn-youtube:hover { background: #e02855; transform: translateY(-1px); }

/* Brand Buttons */
.brand-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-btn {
  padding: 6px 12px; background: var(--tag-bg); border: 1px solid var(--border);
  border-radius: var(--r-xs); font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--muted); transition: all 0.2s; text-decoration: none;
  min-height: 34px; display: inline-flex; align-items: center;
}
.brand-btn:hover, .brand-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* Popular Posts */
.popular-post { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--border); }
.popular-post:last-child { border-bottom: none; padding-bottom: 0; }
.popular-num { font-family: var(--fh); font-size: 18px; font-weight: 800; color: var(--border-light); line-height: 1; min-width: 20px; flex-shrink: 0; }
.popular-post a { font-size: 12px; font-weight: 600; line-height: 1.4; transition: color 0.2s; display: block; }
.popular-post a:hover { color: var(--accent); }
.popular-date { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Recent Items */
.recent-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-item img { width: 60px; height: 45px; object-fit: cover; border-radius: var(--r-xs); flex-shrink: 0; }
.recent-title { font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--text); transition: color 0.2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-item:hover .recent-title { color: var(--accent); }
.recent-date { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ── SINGLE POST ── */
.single-layout { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 56px; }
@media (min-width: 960px) { .single-layout { grid-template-columns: 1fr 288px; } }

.breadcrumb {
  font-size: 13px; color: var(--muted); margin-bottom: 18px;
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border-light); }

.single-post-header { margin-bottom: 22px; }
.single-post-header .post-label { margin-bottom: 12px; }
.single-post-header h1 { font-family: var(--fh); font-size: clamp(20px, 4vw, 32px); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.single-post-header .post-meta { font-size: 13px; }

.post-label {
  display: inline-block; background: var(--accent-dim); color: var(--accent);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  padding: 4px 10px; border-radius: 4px; width: fit-content;
}

/* Embedded video */
.video-embed {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: var(--r); overflow: hidden; margin-bottom: 22px;
  border: 1px solid var(--border); background: #000;
}
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.watch-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent2); color: #fff; padding: 14px 28px;
  border-radius: var(--r); font-size: 16px; font-weight: 700;
  margin: 22px 0; transition: all 0.2s; width: 100%;
  text-decoration: none; min-height: var(--touch-min);
}
.watch-btn:hover { background: #e02855; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,64,96,0.3); }
.watch-btn svg { width: 20px; height: 20px; fill: #fff; }

.entry-content { font-size: 15px; line-height: 1.8; color: var(--text-soft); }
.entry-content h2, .entry-content h3 { font-family: var(--fh); font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.entry-content h2 { font-size: 20px; }
.entry-content h3 { font-size: 17px; }
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { margin: 12px 0 16px 24px; }
.entry-content li { margin-bottom: 6px; }
.entry-content strong { color: var(--text); font-weight: 600; }
.entry-content a { color: var(--accent); }
.entry-content a:hover { text-decoration: underline; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

.guide-intro {
  background: rgba(0,212,255,0.05); border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent); border-radius: var(--r-sm);
  padding: 16px 20px; margin: 20px 0;
}
.guide-intro p { font-size: 15px; line-height: 1.75; color: var(--text-soft); margin: 0; }
.guide-intro strong { color: var(--accent); font-weight: 700; }

.solution-box { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--r-sm); padding: 18px 20px; margin: 20px 0; }
.solution-box h4 { font-family: var(--fh); font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.6px; }
.solution-box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.solution-box li { font-size: 14px; color: var(--text-soft); display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.solution-box li::before { content: '✔'; color: var(--accent); font-size: 12px; flex-shrink: 0; margin-top: 2px; }

.tools-box { background: linear-gradient(135deg, #0f1a28, #0c1520); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 18px 20px; margin: 20px 0; }
.tools-box h4 { font-family: var(--fh); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.6px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
@media (max-width: 480px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
.tool-item { background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: var(--r-xs); padding: 8px 10px; font-size: 13px; color: var(--text-soft); display: flex; align-items: center; gap: 6px; line-height: 1.4; }
.tool-item::before { content: '🔧'; font-size: 12px; flex-shrink: 0; }

.compat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 16px 18px; margin: 20px 0; }
.compat-box h4 { font-family: var(--fh); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; color: var(--muted); }
.compat-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.compat-tag { padding: 5px 12px; background: var(--tag-bg); border: 1px solid var(--border); border-radius: var(--r-xs); font-size: 13px; color: var(--text-soft); }

.entry-content-body { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.entry-content-body p { font-size: 15px; line-height: 1.85; color: var(--text-soft); margin-bottom: 14px; }
.entry-content-body p:last-child { margin-bottom: 0; }
.entry-content-body strong { color: var(--text); }
.entry-content-body a { color: var(--accent); }
.entry-content-body a:hover { text-decoration: underline; }

.post-tags-section { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.post-tags-section h4 { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.post-tags-list { display: flex; flex-wrap: wrap; gap: 7px; }
.post-tag-link { padding: 5px 12px; background: var(--tag-bg); border: 1px solid var(--border); border-radius: var(--r-xs); font-size: 12px; color: var(--muted); transition: all 0.2s; min-height: 32px; display: inline-flex; align-items: center; }
.post-tag-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.related-posts { margin-top: 34px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
@media (max-width: 480px) { .post-navigation { grid-template-columns: 1fr; } }
.post-nav-link { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; transition: all 0.2s; display: block; min-height: var(--touch-min); }
.post-nav-link:hover { border-color: var(--accent-border); background: var(--card-hover); }
.nav-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 5px; }
.nav-title { font-family: var(--fh); font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-link.next { text-align: right; }

/* ── ARCHIVE ── */
.archive-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: clamp(26px, 5vw, 48px) var(--pad); }
.archive-header h1 { font-family: var(--fh); font-size: clamp(20px, 4vw, 34px); font-weight: 800; margin-bottom: 8px; }
.archive-header p { font-size: 14px; color: var(--muted); margin-top: 6px; max-width: 600px; }
.section-head .post-count { font-size: 13px; color: var(--muted); background: var(--tag-bg); padding: 3px 10px; border-radius: 20px; }

/* ── SEARCH PAGE ── */
.search-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: clamp(22px, 4vw, 42px) var(--pad); }
.search-header h1 { font-family: var(--fh); font-size: clamp(18px, 3.5vw, 28px); font-weight: 800; margin-bottom: 14px; }
.search-header h1 em { color: var(--accent); font-style: normal; }
.search-form { display: flex; gap: 10px; max-width: 500px; }
.search-form input { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 14px; font-size: 15px; color: var(--text); outline: none; transition: border-color 0.2s; min-height: var(--touch-min); }
.search-form input:focus { border-color: var(--accent); }
.search-form button { background: var(--accent); color: #000; border-radius: var(--r-sm); padding: 10px 18px; font-size: 14px; font-weight: 700; transition: all 0.2s; min-height: var(--touch-min); white-space: nowrap; }
.search-form button:hover { background: #00bfdd; }

/* ── 404 ── */
.page-404 { text-align: center; padding: clamp(60px, 10vw, 100px) var(--pad); max-width: 480px; margin: 0 auto; }
.page-404 .error-code { font-family: var(--fh); font-size: clamp(80px, 15vw, 140px); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.page-404 h2 { font-family: var(--fh); font-size: clamp(18px, 3vw, 24px); font-weight: 800; margin-bottom: 12px; }
.page-404 p { font-size: 15px; color: var(--muted); margin-bottom: 28px; line-height: 1.7; }
.btn-home { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #000; padding: 12px 24px; border-radius: var(--r); font-size: 15px; font-weight: 700; transition: all 0.2s; min-height: var(--touch-min); }
.btn-home:hover { background: #00bfdd; transform: translateY(-2px); }

/* ── STATIC PAGE ── */
.page-content { max-width: 760px; margin: 0 auto; padding: 36px var(--pad) 60px; }
.page-content h1 { font-family: var(--fh); font-size: clamp(22px, 4vw, 34px); font-weight: 800; margin-bottom: 22px; }
.page-content h2 { font-family: var(--fh); font-size: 20px; font-weight: 700; margin: 26px 0 10px; }
.page-content p { font-size: 15px; line-height: 1.8; color: var(--text-soft); margin-bottom: 16px; }
article.page-content { padding: 32px 0; }
article.page-content h1 { font-family: var(--fh); font-size: clamp(22px, 4vw, 34px); font-weight: 800; margin-bottom: 22px; }

/* ── FOOTER ── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 20px; }
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 24px; padding: 32px var(--pad) 24px;
  max-width: var(--max); margin: 0 auto;
}
@media (min-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }

.footer-logo { font-family: var(--fh); font-size: 18px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-logo .accent { color: var(--accent); }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a { height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 600; transition: all 0.2s; gap: 6px; min-width: 36px; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social a.yt:hover { border-color: var(--accent2); color: var(--accent2); }
.footer-col h4 { font-family: var(--fh); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.9px; margin-bottom: 12px; color: var(--text); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col li a { font-size: 13px; color: var(--muted); transition: color 0.2s; display: inline-block; line-height: 1.6; }
.footer-col li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 14px var(--pad);
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted);
}

/* ── BACK TO TOP ── */
#back-to-top { position: fixed; bottom: 20px; right: 16px; width: 44px; height: 44px; background: var(--accent); color: #000; border-radius: 10px; font-size: 16px; font-weight: 800; display: none; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(0,212,255,0.35); transition: all 0.2s; z-index: 100; }
#back-to-top:hover { transform: translateY(-3px); }
#back-to-top.show { display: flex; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ── SKELETON ── */
.skeleton { background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── PLACEHOLDER ── */
.thumb-placeholder { width: 100%; height: 100%; background: var(--card); display: flex; align-items: center; justify-content: center; min-height: 110px; border-bottom: 1px solid var(--border); }
.thumb-placeholder span { font-size: 28px; opacity: 0.25; }

/* ── TINY SCREENS ── */
@media (max-width: 360px) {
  :root { --pad: 12px; }
  .posts-grid { grid-template-columns: 1fr; }
}

/* ── PRINT ── */
@media print {
  .site-header, .mobile-nav, .notice-bar, .brand-ticker-wrap, .cat-filter-wrap, .sidebar, .site-footer, #back-to-top { display: none !important; }
  .single-layout, .page-layout { grid-template-columns: 1fr !important; }
  body { background: #fff; color: #000; }
}

/* ── SEO v9 ADDITIONS ── */
.internal-link-box {
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent); border-radius: var(--r-sm);
  padding: 14px 18px; margin: 24px 0; font-size: 14px; line-height: 1.6;
}
.internal-link-box a { color: var(--accent); font-weight: 600; }
.internal-link-box a:hover { text-decoration: underline; }
