:root {
  --void: #040404;
  --ink: #090909;
  --violet: #101010;
  --mast-indigo-deep: rgba(22, 18, 36, .88);
  --mast-indigo-mid: rgba(48, 40, 78, .42);
  --mast-indigo-soft: rgba(72, 64, 110, .22);
  /* Full-bleed bg; keep modest resolution so pixels stay slightly chunky when upscaled */
  --bg-cover-size: cover;
  --ash: #c9c4bb;
  --accent: #837d74;
  --focus: #8f8a82;
  --accent-ch: 115, 110, 102;
  --silver-ch: 207, 201, 190;
  --focus-ch: 132, 128, 120;
  --edge-ch: 54, 53, 50;
  --ink-2: #0c0c0c;
  --ink-3: #111110;
  --tray: #080808;
  --maxw: 1040px;
  --sidew: 310px;
  --shadow: 0 8px 18px rgba(0,0,0,.62);
  --banner-url: url("assets/hp_header.PNG");
}

* { box-sizing: border-box; }

kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border: 1px solid rgba(var(--edge-ch),.55);
  border-radius: 3px;
  background: rgba(0,0,0,.28);
}

html {
  min-height: 100%;
  background-color: var(--void);
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: var(--void);
  background-image: url("assets/bg.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: var(--bg-cover-size);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 140% 90% at 50% -5%, rgba(230,226,218,.038), transparent 58%),
    radial-gradient(circle at 50% 85%, rgba(88,74,118,.065), transparent 52%),
    linear-gradient(to bottom, rgba(2, 2, 4, 0.72) 0%, rgba(5, 6, 12, 0.52) 45%, rgba(3, 4, 7, 0.78) 100%),
    radial-gradient(ellipse 120% 90% at 50% 20%, rgba(44, 36, 72, 0.28), transparent 58%),
    radial-gradient(ellipse 90% 70% at 80% 90%, rgba(12, 10, 24, 0.4), transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.42) 0%, rgba(4, 6, 14, 0.32) 42%, rgba(0, 0, 0, 0.68) 100%);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: auto, auto, auto, cover, cover, cover;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Trebuchet MS", Verdana, Tahoma, Arial, sans-serif;
  color: var(--ash);
  background: transparent;
  padding: 22px 10px 32px;
  position: relative;
  z-index: 0;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.22) 1px, transparent 2px),
    radial-gradient(circle at 74% 28%, rgba(255,255,255,.18) 1px, transparent 2px),
    radial-gradient(circle at 42% 82%, rgba(255,255,255,.20) 1px, transparent 2px),
    radial-gradient(circle at 62% 50%, rgba(var(--silver-ch),.09) 1px, transparent 3px),
    radial-gradient(circle at 55% 40%, rgba(255,255,255,.14) 1px, transparent 2px),
    radial-gradient(circle at 30% 35%, rgba(255,255,255,.12) 1px, transparent 2px),
    radial-gradient(circle at 66% 78%, rgba(255,255,255,.12) 1px, transparent 2px);
  background-size: 220px 220px, 320px 320px, 420px 420px, 520px 520px, 640px 640px, 280px 280px, 360px 360px, 480px 480px;
  opacity: .62;
  mix-blend-mode: screen;
  animation: starDrift 120s linear infinite, starTwinkle 4.5s ease-in-out infinite;
}

body.no-stars::before { display: none; }

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
    opacity: .42;
  }
}

html[lang="ja"] body {
  font-family: "Trebuchet MS", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
}

html[lang="ru"] body {
  font-family: "Trebuchet MS", "Noto Sans", "Segoe UI", "DejaVu Sans", sans-serif;
}

@keyframes starDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 600px 300px, -400px 500px, 300px -600px, 0 0; }
}

@keyframes starTwinkle {
  0%, 100% { opacity: .38; }
  50% { opacity: .58; }
}

a { color: var(--ash); text-decoration: underline; text-decoration-color: rgba(var(--silver-ch),.38); }
a:hover { color: #ebe7df; text-decoration-color: rgba(var(--accent-ch),.82); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--ink);
  border: 1px solid rgba(var(--edge-ch),.58);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.mast-lang,
.footer-lang,
.site-lang {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.mast-lang {
  align-self: flex-start;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.mast-lang-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(var(--silver-ch), 0.72);
  margin-right: 2px;
}

.lang-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 8px;
  cursor: pointer;
  color: rgba(var(--silver-ch),.94);
  background: rgba(8,10,22,.72);
  border: 1px solid rgba(var(--accent-ch),.45);
  border-top-color: rgba(255,255,255,.12);
}

.lang-btn:hover {
  background: rgba(22,20,42,.92);
}

.lang-btn.active {
  color: #f3f2ef;
  background: rgba(56,46,94,.92);
  border-color: rgba(130,110,172,.72);
}

.footer-lang,
.site-lang.lang-switcher--compact {
  gap: 4px;
}

.footer-lang .lang-btn,
.site-lang.lang-switcher--compact .lang-btn {
  font-size: 10px;
  padding: 3px 8px;
}

.mast {
  position: relative;
  min-height: 170px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(155deg, var(--mast-indigo-soft), transparent 55%),
    linear-gradient(325deg, var(--mast-indigo-mid), transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,.74), rgba(0,0,0,.26)),
    linear-gradient(118deg, var(--mast-indigo-deep), rgba(10,11,14,.93)),
    var(--banner-url);
  background-size: cover;
  background-position: center 35%;
  border-bottom: 1px solid rgba(0,0,0,.85);
}

@media (max-width: 740px) {
  .mast {
    min-height: 140px;
    background-position: center 28%;
    flex-wrap: wrap;
    align-items: flex-end;
  }
}

.mast::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 200px at 18% -10%, rgba(110, 96, 150, .34), transparent 68%),
    radial-gradient(360px 180px at 108% 60%, rgba(56,48,94,.52), transparent 58%),
    radial-gradient(260px 140px at 82% 55%, rgba(var(--silver-ch),.09), transparent 72%),
    radial-gradient(320px 200px at 22% 20%, rgba(0,0,0,.42), transparent 70%);
  opacity: .95;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.brand { position: relative; z-index: 1; }

.brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 46px;
  letter-spacing: .5px;
  color: #ffffff;
  text-shadow: 0 2px 0 rgba(0,0,0,.75);
}

.brand .tag {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(var(--silver-ch),.92);
  letter-spacing: .18em;
  text-transform: lowercase;
  text-shadow: 0 1px 0 rgba(0,0,0,.65);
}

.nav {
  background: var(--ink-2);
  border-top: 1px solid rgba(255,255,255,.055);
  border-bottom: 1px solid rgba(var(--edge-ch),.52);
  padding: 8px 10px;
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nav-lang {
  margin-left: auto;
  flex-shrink: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--ash);
  background: var(--ink-3);
  border: 1px solid rgba(var(--edge-ch),.48);
  border-top-color: rgba(255,255,255,.10);
  border-left-color: rgba(255,255,255,.07);
  border-right-color: rgba(0,0,0,.88);
  border-bottom-color: rgba(0,0,0,.96);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.tab .dot {
  width: 8px;
  height: 8px;
  background: rgba(var(--silver-ch),.38);
  border: 1px solid rgba(0,0,0,.85);
}

.tab[aria-current="page"],
.tab.active {
  background: var(--ink);
  border-color: rgba(var(--accent-ch),.52);
}

.tab[aria-current="page"] .dot,
.tab.active .dot { background: var(--accent); }

.frame {
  background: var(--tray);
  padding: 12px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr var(--sidew);
  gap: 12px;
  align-items: start;
}

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

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

.panel {
  background: var(--ink-3);
  border: 1px solid rgba(var(--edge-ch),.40);
  border-top-color: rgba(255,255,255,.08);
  border-left-color: rgba(255,255,255,.05);
  border-right-color: rgba(0,0,0,.88);
  border-bottom-color: rgba(0,0,0,.96);
}

.panel .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(var(--silver-ch),.10), rgba(0,0,0,.52));
  border-bottom: 1px solid rgba(var(--edge-ch),.48);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.panel .hd .badge {
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  background: #10100f;
  border: 1px solid rgba(var(--edge-ch),.42);
  color: rgba(var(--silver-ch),.92);
}

.panel .bd {
  padding: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(var(--silver-ch),.95);
  background: var(--ink-3);
}

.post + .post { margin-top: 12px; }

.post h2 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: .2px;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(var(--silver-ch),.70);
  margin: 0 0 10px;
}

.chip {
  padding: 2px 6px;
  border: 1px solid rgba(var(--edge-ch),.42);
  background: #10100f;
  color: rgba(var(--silver-ch),.92);
  cursor: pointer;
}

.chip.active {
  background: rgba(var(--accent-ch),.12);
  border-color: rgba(var(--accent-ch),.55);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 740px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

.thumb {
  height: 86px;
  border: 1px solid rgba(var(--edge-ch),.36);
  background: linear-gradient(180deg, #10100f, #141413);
  color: rgba(var(--silver-ch),.92);
  font-size: 11px;
  text-align: center;
  padding: 8px;
  display: grid;
  place-items: center;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(var(--edge-ch),.40);
  background: #141312;
  color: rgba(var(--silver-ch),.95);
}

.list a:hover {
  text-decoration: none;
  outline: 1px dashed rgba(var(--accent-ch),.55);
  outline-offset: 2px;
}

.list small { color: rgba(var(--silver-ch),.70); }

.divider {
  height: 1px;
  background: #000;
  opacity: .35;
  margin: 10px 0;
}

.aside-note {
  border: 1px solid rgba(var(--edge-ch),.38);
  padding: 8px 10px;
  background: #100f0e;
  color: rgba(var(--silver-ch),.95);
  margin-top: 10px;
  font-size: 12px;
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 1px 5px;
  border: 1px solid rgba(var(--edge-ch),.45);
  background: var(--ink);
  color: rgba(var(--silver-ch),.95);
}

footer {
  padding: 12px 14px;
  background: var(--ink);
  border-top: 1px solid rgba(var(--edge-ch),.50);
  color: rgba(var(--silver-ch),.92);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.scrollbox {
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}

/* Home posts scroll — height synced to sidebar via JS (see syncPostsScrollHeight) */
.scrollbox.posts-scroll {
  width: 100%;
  max-height: none;
  overflow: auto;
}

.panel--posts .bd {
  padding-bottom: 12px;
}

.mini-post-teaser {
  margin: 8px 0 0;
  line-height: 1.55;
  color: rgba(var(--silver-ch),.92);
}

.mini-post + .mini-post {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--edge-ch),.28);
}

.mini-post h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.mini-post-preview-row {
  display: grid;
  grid-template-columns: repeat(3, 164px);
  gap: 8px;
  margin: 10px 0;
  width: fit-content;
  max-width: 100%;
}

.mini-post-preview-row--single {
  grid-template-columns: 164px;
}

.mini-post-preview {
  width: 164px;
  height: 110px;
  padding: 0;
  border: 1px solid rgba(var(--edge-ch),.36);
  background: #10100f;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}

button.mini-post-preview {
  display: block;
}

.mini-post-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-post-preview--video .mini-post-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.62);
  border: 2px solid rgba(255,255,255,.85);
}

.mini-post-preview--video .mini-post-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
}

.mini-post-gallery-wrap {
  margin: 10px 0;
}

.mini-post-gallery {
  display: grid;
  grid-template-columns: repeat(3, 164px);
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}

.mini-post-figure {
  margin: 0;
  width: 164px;
}

.mini-post-image-btn {
  display: block;
  width: 164px;
  height: 110px;
  padding: 0;
  border: 1px solid rgba(var(--edge-ch),.36);
  background: #10100f;
  cursor: zoom-in;
  overflow: hidden;
}

.mini-post-image-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-post-figure figcaption {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(var(--silver-ch),.78);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-gallery-pager {
  margin-top: 8px;
}

.mini-gallery-pager .tab:disabled {
  opacity: 0.45;
  cursor: default;
}

.mini-post {
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}

.embed-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 10px 0;
  border: 1px solid rgba(var(--edge-ch),.42);
  background: #000;
}

.embed-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mini-post-video {
  display: block;
  width: 100%;
  max-height: 360px;
  margin: 10px 0;
  border: 1px solid rgba(var(--edge-ch),.42);
  background: #000;
}

.spotlight-shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(var(--edge-ch),.42);
  background: #10100f;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.spotlight-shot-btn img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
}

.spotlight-shot-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  text-align: left;
  color: #fff;
}

.spotlight-shot-overlay strong {
  display: block;
  font-size: 12px;
}

.spotlight-shot-overlay span {
  display: block;
  font-size: 10px;
  opacity: .85;
}

.spotlight-shot-placeholder {
  position: relative;
}

.spotlight-shot-placeholder .game-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  font-size: 10px;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(var(--edge-ch),.45);
  color: rgba(var(--silver-ch),.95);
}

.spotlight-shot-caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(var(--silver-ch),.88);
}

.scrollbox::-webkit-scrollbar { width: 12px; }
.scrollbox::-webkit-scrollbar-track { background: #0b0d11; border-left: 1px solid rgba(var(--edge-ch),.30); }
.scrollbox::-webkit-scrollbar-thumb { background: rgba(var(--edge-ch),.45); border: 1px solid rgba(0,0,0,.8); }

.searchbox {
  width: 100%;
  padding: 6px;
  background: var(--ink);
  color: var(--ash);
  border: 1px solid rgba(var(--edge-ch),.48);
  font-family: inherit;
}

.pager {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.pager .tab {
  padding: 4px 9px;
  font-size: 12px;
}

.pager .spacer {
  opacity: .7;
  padding: 0 4px;
}

[data-page] { display: none; }

[data-page].active { display: block; }

/* RSS Button */
.rss-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f26522;
  color: #fff !important;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
}

.rss-btn:hover { background: #e05a1c; }

.rss-btn .rss-icon {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 2px;
  position: relative;
}

.rss-btn .rss-icon::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 2px;
  width: 3px;
  height: 3px;
  background: #f26522;
  border-radius: 50%;
}

.rss-btn .rss-icon::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 1px;
  width: 8px;
  height: 8px;
  border: 2px solid #f26522;
  border-radius: 0 0 0 8px;
  border-top: none;
  border-right: none;
}

/* Photo/Screenshot Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

/* Journal: glasses gallery + specs (edit copy in HTML) */
.glasses-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.glasses-gallery-grid .photo-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.glasses-spec-body p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
}

.glasses-spec-body p:last-child {
  margin-bottom: 0;
}

.photo-item {
  position: relative;
  background: linear-gradient(135deg, #10100f, #151514);
  border: 1px solid rgba(var(--edge-ch),.38);
  content-visibility: auto;
  contain-intrinsic-size: 160px 160px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.photo-item:hover {
  transform: scale(1.02);
  border-color: rgba(var(--accent-ch),.55);
}

.photo-item img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}

/* Grid / card image loading */
.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #10100f, #151514);
}

.photo-frame__loader {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #10100f 0%, #1c1b19 42%, #10100f 84%);
  background-size: 220% 100%;
  animation: photoShimmer 1.35s ease-in-out infinite;
  transition: opacity 0.25s ease;
}

.photo-frame.is-loaded .photo-frame__loader {
  opacity: 0;
  pointer-events: none;
}

.photo-frame.is-error .photo-frame__loader {
  animation: none;
  background: #141413;
}

.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-frame.is-loaded img {
  opacity: 1;
}

.album-card-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #10100f, #151514);
}

.album-card-cover-wrap .photo-frame__loader {
  animation: photoShimmer 1.35s ease-in-out infinite;
}

.album-card-cover-wrap.is-loaded .photo-frame__loader {
  opacity: 0;
}

.album-card-cover-wrap img.album-card-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.album-card-cover-wrap.is-loaded img.album-card-cover {
  opacity: 1;
}

@keyframes photoShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-frame__loader,
  .album-card-cover-wrap .photo-frame__loader {
    animation: none;
  }
}

.mini-post-preview .photo-frame,
.mini-post-image-btn .photo-frame,
.spotlight-shot-btn .photo-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.mini-post-preview .photo-frame img,
.mini-post-image-btn .photo-frame img,
.spotlight-shot-btn .photo-frame img {
  width: 100%;
  height: 100%;
}

.photo-item .photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(var(--silver-ch),.5);
  text-align: center;
  padding: 10px;
}

.photo-item .photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-size: 11px;
  color: var(--ash);
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.photo-item:hover .photo-overlay { opacity: 1; }

.photo-item .photo-meta {
  padding: 8px;
  display: grid;
  gap: 6px;
  font-size: 11px;
  background: rgba(0,0,0,.35);
}

.photo-item .photo-title {
  margin: 0;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
}

.photo-item .photo-desc {
  margin: 0;
  color: rgba(var(--silver-ch),.9);
}

.photo-item .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.photo-grid--screenshots .photo-item img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
}

.photo-item--spotlight {
  cursor: default;
}

.photo-item--spotlight:hover {
  transform: none;
  border-color: rgba(var(--edge-ch),.38);
}

.photo-item--spotlight .spotlight-shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.photo-item--spotlight .spotlight-shot-btn img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
}

.photo-item--spotlight .photo-overlay {
  display: none;
}

.album-card-cover:not(.album-card-cover--empty) {
  object-position: center center;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

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

@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

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

.video-card {
  background: #10100f;
  border: 1px solid rgba(var(--edge-ch),.38);
  overflow: hidden;
  text-decoration: none;
}

.video-card:hover { border-color: rgba(var(--accent-ch),.45); }

.video-card .video-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #181817, #10100f);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-card .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card .play-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(var(--silver-ch),.16);
  border: 1px solid rgba(var(--silver-ch),.32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card:hover .play-icon {
  transform: scale(1.1);
  background: rgba(var(--accent-ch),.28);
  border-color: rgba(var(--accent-ch),.45);
}

.video-card .play-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 18px solid var(--ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

.video-card .video-info { padding: 10px; }

.video-card .video-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.video-card .video-meta {
  font-size: 11px;
  color: rgba(var(--silver-ch),.7);
}

/* YouTube Banner */
.yt-banner {
  background: linear-gradient(135deg, var(--violet) 0%, var(--ink) 55%, rgba(var(--silver-ch),.05) 100%);
  border: 1px solid rgba(var(--edge-ch),.42);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.yt-banner .yt-icon {
  width: 64px;
  height: 64px;
  background: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yt-banner .yt-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 22px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 5px;
}

.yt-banner .yt-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #fff;
}

.yt-banner .yt-info p {
  margin: 0;
  font-size: 12px;
  color: rgba(var(--silver-ch),.8);
}

.yt-banner .yt-btn {
  margin-left: auto;
  padding: 10px 20px;
  background: #ff0000;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.yt-banner .yt-btn:hover { background: #cc0000; color: #fff; }

@media (max-width: 600px) {
  .yt-banner { flex-direction: column; text-align: center; }
  .yt-banner .yt-btn { margin-left: 0; }
}

/* Music Item */
.music-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #10100f;
  border: 1px solid rgba(var(--edge-ch),.38);
  margin-bottom: 10px;
}

.music-item:hover { border-color: rgba(var(--accent-ch),.42); }

.music-item .music-art {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--violet), var(--void));
  border: 1px solid rgba(var(--edge-ch),.34);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.music-item .music-art .note-icon {
  font-size: 24px;
  color: rgba(var(--silver-ch),.55);
}

.music-item:hover .music-art .note-icon {
  color: rgba(var(--accent-ch),.72);
}

.music-item .music-info { flex: 1; min-width: 0; }

.music-item .music-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.music-item .music-meta {
  font-size: 11px;
  color: rgba(var(--silver-ch),.7);
}

.music-item audio {
  width: 100%;
  height: 32px;
  margin-top: 8px;
}

/* Concept Cards */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.concept-card {
  background: #10100f;
  border: 1px solid rgba(var(--edge-ch),.38);
  overflow: hidden;
}

.concept-card .concept-preview {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #181817, #10100f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(var(--silver-ch),.5);
  border-bottom: 1px solid rgba(var(--edge-ch),.35);
}

.concept-card .concept-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concept-card .concept-info { padding: 10px; }

.concept-card .concept-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.concept-card .concept-desc {
  font-size: 11px;
  color: rgba(var(--silver-ch),.8);
  margin: 0;
}

.concept-card .concept-status {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 6px;
  font-size: 10px;
  background: rgba(var(--silver-ch),.08);
  border: 1px solid rgba(var(--accent-ch),.32);
  color: rgba(var(--silver-ch),.88);
}

/* Tutorial Cards */
.tutorial-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: #10100f;
  border: 1px solid rgba(var(--edge-ch),.38);
  margin-bottom: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

button.tutorial-card,
a.tutorial-card {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

button.tutorial-card:focus-visible,
a.tutorial-card:focus-visible {
  outline: 2px solid rgba(130, 110, 172, 0.55);
  outline-offset: 2px;
}

.tutorial-card:hover { border-color: rgba(var(--accent-ch),.45); }

.tutorial-card .tutorial-thumb {
  width: 120px;
  height: 90px;
  background: linear-gradient(135deg, #151514, #10100f);
  border: 1px solid rgba(var(--edge-ch),.32);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: rgba(var(--silver-ch),.5);
}

.tutorial-card .tutorial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutorial-card .tutorial-info { flex: 1; }

.tutorial-card .tutorial-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.tutorial-card .tutorial-desc {
  font-size: 12px;
  color: rgba(var(--silver-ch),.85);
  margin: 0 0 8px;
}

@media (max-width: 500px) {
  .tutorial-card { flex-direction: column; }
  .tutorial-card .tutorial-thumb { width: 100%; height: 140px; }
}

/* Goblin Atelier tutorial articles */
.atelier-tutorial {
  max-width: 640px;
}

.atelier-page .atelier-tutorial {
  max-width: none;
}

.atelier-page-grid .panel .bd {
  padding-bottom: 18px;
}

.atelier-page .atelier-lead {
  font-size: 15px;
  line-height: 1.6;
}

.atelier-page .atelier-step-fig {
  max-width: min(760px, 100%);
}

.atelier-page .atelier-step-fig--hero {
  max-width: min(800px, 100%);
}

.atelier-page .atelier-step-photos {
  max-width: min(800px, 100%);
  gap: 16px;
}

.atelier-page .atelier-step {
  margin: 28px 0;
  padding-top: 18px;
}

.atelier-page .atelier-step-list {
  font-size: 14px;
  line-height: 1.6;
}

.atelier-lead {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
  opacity: 0.94;
}

.atelier-step {
  margin: 22px 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(var(--edge-ch), 0.32);
}

.atelier-step-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.atelier-step-num {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(var(--silver-ch), 0.92);
  background: rgba(var(--accent-ch), 0.18);
  border: 1px solid rgba(var(--accent-ch), 0.35);
}

.atelier-step-list {
  margin: 10px 0 14px;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.55;
}

.atelier-step-list li {
  margin-bottom: 10px;
}

.atelier-step-list li:last-child {
  margin-bottom: 0;
}

.atelier-caution {
  margin: 12px 0;
}

.atelier-step-fig {
  margin: 14px auto 16px;
  max-width: 520px;
  text-align: center;
}

.atelier-step-fig--hero {
  max-width: 560px;
  margin-top: 0;
}

.atelier-step-fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(var(--edge-ch), 0.42);
  background: #10100f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.atelier-step-fig figcaption {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(var(--silver-ch), 0.72);
  font-style: italic;
}

.atelier-step-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
  max-width: 560px;
}

.atelier-step-photos .atelier-step-fig {
  margin: 0;
  max-width: none;
}

.atelier-notes .atelier-step-title {
  font-size: 14px;
}

@media (max-width: 560px) {
  .atelier-step-photos {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* Screenshot specific */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.screenshot-item {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #10100f, #151514);
  border: 1px solid rgba(var(--edge-ch),.38);
  overflow: hidden;
  cursor: pointer;
}

.screenshot-item img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
}

.screenshot-item:hover {
  transform: scale(1.02);
  border-color: rgba(var(--accent-ch),.52);
}

.screenshot-item .game-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  background: rgba(var(--silver-ch),.82);
  font-size: 10px;
  color: var(--void);
  font-weight: 700;
}

.screenshot-item .date-tag,
.spotlight-shot-btn .date-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(var(--edge-ch),.45);
  font-size: 10px;
  color: rgba(var(--silver-ch),.95);
  font-weight: 600;
  z-index: 1;
}

.screenshot-item .photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-size: 11px;
  color: var(--ash);
}

.screenshot-item .photo-overlay strong {
  display: block;
  color: #fff;
  font-size: 12px;
}

.screenshot-item .photo-overlay time {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  opacity: .85;
}

.spotlight-shot-overlay time {
  display: block;
  font-size: 10px;
  opacity: .75;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(90,88,82,.055), transparent 40%),
    rgba(6,6,6,.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  padding: 28px 72px 36px;
}

.lightbox.active { display: flex; }

.lightbox.is-loading img {
  opacity: 0.12;
}

.lightbox-loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 2px solid rgba(var(--silver-ch),.22);
  border-top-color: rgba(var(--silver-ch),.88);
  border-radius: 50%;
  animation: lightboxSpin 0.7s linear infinite;
  z-index: 3;
  pointer-events: none;
}

.lightbox.is-loading .lightbox-loader {
  display: block;
}

@keyframes lightboxSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-loader {
    animation: none;
    opacity: 0.7;
  }
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: min(72vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  display: block;
  background: #050505;
  padding: 8px;
  border-top: 2px solid rgba(255,255,255,.24);
  border-left: 2px solid rgba(255,255,255,.16);
  border-right: 2px solid rgba(34,33,32,.93);
  border-bottom: 2px solid rgba(20,19,18,.96);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.95),
    0 0 0 3px rgba(56,60,72,.38),
    0 16px 30px rgba(0,0,0,.7);
}

.lightbox-trigger {
  cursor: zoom-in;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  background: linear-gradient(180deg, rgba(58,60,70,.96), rgba(30,32,40,.96));
  border-top: 2px solid rgba(255,255,255,.16);
  border-left: 2px solid rgba(255,255,255,.09);
  border-right: 2px solid rgba(24,26,38,.96);
  border-bottom: 2px solid rgba(16,17,26,.97);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.45);
}

.lightbox-close:hover {
  background: linear-gradient(180deg, rgba(78,82,98,.96), rgba(42,44,58,.96));
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  padding: 0;
  border-top: 2px solid rgba(255,255,255,.16);
  border-left: 2px solid rgba(255,255,255,.1);
  border-right: 2px solid rgba(26,28,42,.96);
  border-bottom: 2px solid rgba(16,17,26,.97);
  background: linear-gradient(180deg, rgba(52,54,66,.96), rgba(28,30,40,.96));
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  border-radius: 2px;
  box-shadow: 0 6px 14px rgba(0,0,0,.45);
}

.lightbox-nav:hover {
  background: linear-gradient(180deg, rgba(72,76,92,.96), rgba(40,42,56,.96));
}

.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

@media (max-width: 520px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.lightbox-caption {
  position: static;
  width: min(100%, 1100px);
  margin-top: 0;
  background: linear-gradient(180deg, rgba(22,21,21,.98), rgba(11,11,11,.98));
  padding: 12px 16px 14px;
  color: var(--ash);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-left: 2px solid rgba(255,255,255,.08);
  border-right: 2px solid rgba(28,27,26,.94);
  border-bottom: 2px solid rgba(14,14,13,.97);
  box-shadow:
    0 0 0 1px rgba(52,56,68,.4),
    0 12px 24px rgba(0,0,0,.5);
}

.lightbox-caption h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 15px;
  letter-spacing: .02em;
}

.lightbox-caption p {
  margin: 0 0 10px;
  color: rgba(var(--silver-ch),.9);
  line-height: 1.45;
}

.lightbox-caption .meta-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lightbox-caption .chip {
  background: linear-gradient(180deg, rgba(44,43,41,.96), rgba(24,23,22,.96));
  border-top: 1px solid rgba(255,255,255,.1);
  border-left: 1px solid rgba(255,255,255,.06);
  border-right: 1px solid rgba(22,21,20,.94);
  border-bottom: 1px solid rgba(14,13,12,.97);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

@media (max-width: 760px) {
  .lightbox {
    padding: 22px 18px 24px;
  }

  .lightbox img {
    max-height: min(60vh, 700px);
  }

  .lightbox-caption {
    width: min(100%, 1000px);
  }
}

/* Album + filter buttons */
.album-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.album-btn {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid rgba(var(--edge-ch),.42);
  background: rgba(16,18,24,.72);
  color: var(--ash);
  cursor: pointer;
  border-radius: 4px;
}

.album-btn:hover {
  border-color: rgba(var(--accent-ch),.42);
  background: rgba(var(--accent-ch),.08);
}

.album-btn.active {
  border-color: rgba(var(--accent-ch),.58);
  background: rgba(var(--accent-ch),.14);
}

.album-count {
  opacity: 0.75;
  font-size: 11px;
  margin-left: 4px;
}

/* Photography album index */
.album-index-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.album-index-rule {
  border: none;
  border-top: 1px solid rgba(var(--edge-ch),.38);
  margin: 0;
}

.album-index-grid {
  display: grid;
  gap: 14px;
}

/* Three columns on wide viewports; 2 then 1 on smaller screens */
.album-index-grid--cols3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .album-index-grid--cols3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .album-index-grid--cols3 {
    grid-template-columns: 1fr;
  }
}

.album-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(var(--edge-ch),.42);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(15,15,14,.78);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.album-card:hover {
  border-color: rgba(var(--accent-ch),.48);
  transform: translateY(-2px);
}

.album-card--theme {
  border-color: rgba(var(--accent-ch),.52);
  background: linear-gradient(160deg, rgba(var(--accent-ch),.12) 0%, rgba(24,23,21,.82) 42%, rgba(14,14,13,.76) 100%);
  box-shadow:
    0 8px 22px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.album-card--theme:hover {
  border-color: rgba(var(--accent-ch),.68);
  box-shadow:
    0 10px 26px rgba(0,0,0,.52),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.album-card-cover {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: #121211;
}

.album-card-cover--empty {
  background: linear-gradient(145deg, rgba(var(--silver-ch),.06), rgba(var(--edge-ch),.22));
  min-height: 120px;
}

.album-card-cover--theme {
  background: linear-gradient(145deg, rgba(var(--accent-ch),.09), rgba(var(--silver-ch),.045), rgba(38,37,34,.065));
  min-height: 100px;
}

.album-card-body {
  padding: 12px 14px 14px;
}

.album-card-title {
  margin: 0 0 6px;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}

.album-card-blurb {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(var(--silver-ch),.9);
  line-height: 1.35;
}

.album-card-count {
  font-size: 11px;
  color: rgba(var(--silver-ch),.72);
}

.photo-empty {
  margin: 0;
  padding: 18px 16px;
  font-size: 13px;
  color: rgba(var(--silver-ch),.9);
  border: 1px dashed rgba(var(--edge-ch),.42);
  border-radius: 6px;
  line-height: 1.5;
}

.photo-empty code {
  font-size: 11px;
  padding: 1px 5px;
  background: rgba(0,0,0,.35);
  border-radius: 3px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.filter-btn {
  padding: 5px 10px;
  font-size: 11px;
  background: #10100f;
  border: 1px solid rgba(var(--edge-ch),.4);
  color: var(--ash);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(var(--accent-ch),.12);
  border-color: rgba(var(--accent-ch),.55);
  color: #fff;
}

/* Classic YouTube-styled dedicated pages */
.classic-yt-shell {
  border: 1px solid rgba(var(--edge-ch),.42);
  background: #141414;
}

.classic-yt-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid #000;
  background: linear-gradient(180deg, #2a2a2a, #161616);
}

.classic-yt-logo {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -.5px;
}

.classic-yt-logo span {
  display: inline-block;
  margin-left: 3px;
  padding: 3px 8px 4px;
  border-radius: 4px;
  background: #d91515;
  color: #fff;
}

.classic-yt-search {
  flex: 1;
  min-width: 120px;
  padding: 6px 8px;
  border: 1px solid #000;
  background: #f5f5f5;
  color: #222;
  font-size: 12px;
}

.classic-yt-channel {
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid #000;
  background: linear-gradient(180deg, #3d3d3d, #232323);
}

.classic-yt-channel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}

.classic-yt-title {
  margin: 0;
  font-size: 21px;
  color: #fff;
}

.classic-yt-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.classic-yt-stat {
  min-width: 96px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
  padding: 4px 7px;
}

.classic-yt-stat strong {
  display: block;
  font-size: 16px;
  color: #fff;
}

.classic-yt-stat span {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,.7);
  text-transform: lowercase;
}

.classic-yt-tabs {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.classic-yt-tab {
  padding: 7px 12px;
  border-right: 1px solid #000;
  background: #272727;
  color: rgba(255,255,255,.82);
  font-size: 12px;
}

.classic-yt-tab.active {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.classic-yt-body {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: #202020;
}

.classic-yt-player-wrap {
  border: 1px solid #000;
  background: #000;
  position: relative;
  padding-top: 56.25%;
}

.classic-yt-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.classic-yt-video-meta {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: #181818;
}

.classic-yt-video-meta h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #fff;
}

.classic-yt-video-meta p {
  margin: 0;
  font-size: 12px;
  color: rgba(var(--silver-ch),.9);
}

.classic-yt-sidecard {
  border: 1px solid rgba(255,255,255,.1);
  background: #181818;
  margin-bottom: 10px;
}

.classic-yt-sidecard h4 {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #101010;
  font-size: 12px;
  color: #fff;
}

.classic-yt-sidecard .content {
  padding: 10px;
  font-size: 12px;
  color: rgba(var(--silver-ch),.92);
}

.classic-yt-comment-box {
  width: 100%;
  min-height: 58px;
  resize: vertical;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: #101010;
  color: var(--ash);
  font-family: inherit;
  font-size: 12px;
}

.classic-yt-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.24);
  background: linear-gradient(180deg, #434343, #212121);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}

.classic-yt-links {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .classic-yt-body {
    grid-template-columns: 1fr;
  }
}


/* Site preference: no panel header badges */
.panel > .hd > .badge {
  display: none;
}
