@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

:root {
  --theme: #b8335a;
  --header: #0c0c0c;
  --bg: #f2f2f3;
  --surface: #ffffff;
  --ink: #161616;
  --muted: #5c5c5c;
  --line: #e3e3e6;
  --widget: #ffffff;
  --footer: #070707;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --header-h: calc(64px + env(safe-area-inset-top));
  --font: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  --radius: 16px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #101010;
  --surface: #181818;
  --ink: #f4f4f5;
  --muted: #a6a6a6;
  --line: #2c2c2c;
  --widget: #1c1c1c;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

a { color: inherit; }

button, [role="button"], a, input, textarea { font-family: inherit; }

button, [role="button"] { cursor: pointer; }

button, input, textarea { font-size: 16px; }

:focus-visible {
  outline: 2px solid var(--theme);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header — always dark */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--header);
  color: #fff;
  padding-top: env(safe-area-inset-top);
}

.header-bar {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 16px;
  gap: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  min-height: 44px;
  z-index: 1;
}

.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-img { overflow: hidden;max-width: 130px; width:100%; flex: none; }

.logo-word {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.045em;
  line-height: 1;
}

.logo-hyphen { color: var(--theme); }

.desktop-nav { display: none; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 1;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.icon-btn svg { width: 22px; height: 22px; display: block; }

.icon-btn:hover { background: rgba(255, 255, 255, 0.06); }

.icon-btn.is-active { color: var(--theme); }

.theme-switch {
  --ts: 32px;
  --ts-pad: 3px;
  display: none;
  position: relative;
  align-items: center;
  height: calc(var(--ts) + var(--ts-pad) * 2);
  padding: var(--ts-pad);
  border-radius: 999px;
  background: #2a2a2a;
}

.theme-knob {
  position: absolute;
  z-index: 0;
  top: var(--ts-pad);
  left: var(--ts-pad);
  width: var(--ts);
  height: var(--ts);
  border-radius: 50%;
  background: #4a4a4a;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"] .theme-knob { transform: translateX(var(--ts)); }

.theme-switch button {
  position: relative;
  z-index: 1;
  width: var(--ts);
  height: var(--ts);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
}

.theme-switch button svg { width: 16px; height: 16px; display: block; }

.theme-switch button:hover { background: transparent; color: #fff; }

.theme-switch button[aria-pressed="true"] { color: #fff; }

.hamburger .icon-x { display: none; }
.hamburger.is-open .icon-menu { display: none; }
.hamburger.is-open .icon-x { display: block; }

.search-drawer,
.mobile-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.search-drawer-inner,
.mobile-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.site-header.is-search .search-drawer { grid-template-rows: 1fr; }
.site-header.is-menu .mobile-panel { grid-template-rows: 1fr; }

.search-row {
  display: flex;
  gap: 8px;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0;
}

.site-header.is-search .search-row { padding: 4px 0 14px; }

.search-row input[type="search"] {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: #141414;
}

.search-row input[type="search"]::placeholder { color: #777; }

.search-row button[type="submit"],
.btn-solid {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--theme);
  color: #fff;
  font-weight: 700;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  padding: 6px 10px 8px;
}

.mobile-links a,
.mobile-links button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: none;
  text-align: left;
  font-weight: 600;
  font-size: 18px;
  border-radius: 10px;
}

.mobile-links a:hover,
.mobile-links button:hover,
.mobile-links a[aria-current="page"],
.mobile-links button[aria-pressed="true"] { color: var(--theme); }

.follow-label {
  margin: 10px 22px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.nav-sub-toggle { justify-content: space-between; }

.nav-sub-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.nav-sub.is-open .nav-sub-toggle svg { transform: rotate(90deg); }

.nav-sub-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}

.nav-sub.is-open .nav-sub-panel { grid-template-rows: 1fr; }

.nav-sub-panel-inner { overflow: hidden; min-height: 0; }

.nav-sub-panel button {
  gap: 10px;
  padding-left: 22px;
  font-size: 16px;
  font-weight: 600;
  color: #d5d5d5;
}

.nav-sub-panel button svg { width: 18px; height: 18px; }

.nav-sub-panel button[aria-pressed="true"] { color: var(--theme); }

.menu-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}

.site-header.is-menu .mobile-panel-inner {
  max-height: calc(100dvh - var(--header-h));
  overflow: auto;
}

@media (min-width: 960px) {
  .header-bar { padding: 0 22px; }
  .desktop-nav {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    gap: 26px;
    align-items: center;
  }
  .desktop-nav a {
    color: #f3f3f3;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    transition: color 0.15s ease;
  }
  .desktop-nav a:hover,
  .desktop-nav a[aria-current="page"] { color: var(--theme); }
  .theme-switch { display: inline-flex; }
  .hamburger, .mobile-panel { display: none; }
}

/* Slider */
.hero {
  position: relative;
  width: 100%;
  background: #000;
  color: #fff;
}

.hero-viewport {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  touch-action: pan-y;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-card {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc((100svh - var(--header-h)) / 2);
  transform: translate(-50%, -50%);
  width: min(540px, calc(100% - 104px));
  max-height: min(calc(100% - 32px), calc(100svh - var(--header-h) - 28px));
  overflow: auto;
  background: rgba(8, 8, 8, 0.82);
  border-radius: 18px;
  padding: 18px 18px 16px;
}

.slide-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--theme);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(15px, 2.2vw, 26px);
  line-height: 1;
}

.slide-kicker svg { width: 22px; height: 22px; flex: none; }

.slide-card h2 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.slide-card p {
  margin: 0 0 14px;
  color: #ececec;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--theme);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-pill:hover { filter: brightness(1.05); }

.hero-arrow {
  position: absolute;
  top: calc((100svh - var(--header-h)) / 2);
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow.prev { left: 10px; }
.hero-arrow.next { right: 10px; }
.hero-arrow:hover { background: var(--theme); }

@media (max-width: 767px) {
  .hero-arrow { display: none; }
}

@media (min-width: 900px) {
  .hero-viewport { aspect-ratio: 16 / 9; }
  .slide-card { padding: 26px 26px 22px; }
  .slide-card p { font-size: 15px; }
}
@media (min-width: 900px) and (orientation: landscape)  {
  .hero-viewport { aspect-ratio: 2.35 / 1; }
}
/* Layout */
.layout {
  width: min(1180px, calc(100% - 28px));
  margin: 22px auto 48px;
  display: grid;
  gap: 28px;
}

.layout-main, .sidebar, .feed, .post-card { min-width: 0; }

.layout-main {
  container-type: inline-size;
  container-name: main;
}

@media (min-width: 980px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    margin-top: 28px;
  }
  .sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
}

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

@container main (min-width: 560px) {
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container main (min-width: 840px) {
  .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.post-card {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.post-card:hover { transform: translateY(-2px); }

.post-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: #fff;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 46%);
  pointer-events: none;
}

.series-label {
  position: absolute;
  z-index: 1;
  left: 10px;
  top: 14%;
  max-width: 68%;
  margin: 0;
  font-weight: 800;
  font-size: clamp(13px, 18cqi, 30px);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.cat-pill {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #141414;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.3;
}

.cat-pill:hover { background: var(--theme); color: #fff; }

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

.post-card h3 {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 700;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card h3 a {
  color: #fff;
  text-decoration: none;
}

.post-card h3 a:hover { color: var(--theme); }

.post-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #c8c8c8;
  font-size: 13px;
  font-weight: 600;
}

.meta-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.meta-author:hover { color: #fff; }

.meta-author span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-author svg { width: 18px; height: 18px; flex: none; display: block; }

.meta-stats { display: flex; gap: 14px; }

.meta-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

.meta-stat:hover { color: #fff; }

.meta-stat svg { width: 16px; height: 16px; flex: none; display: block; }

@media (min-width: 720px) {
  .post-card h3 { font-size: 15px; }
  .post-card-body { padding: 14px 14px 16px; }
  .series-label { left: 14px; top: 16%; }
}

/* Lists */
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  background: var(--surface);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.list-row:hover { border-color: var(--theme); }

.list-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: #111;
}

.thumb {
  position: relative;
  width: 104px;
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.list-row h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.list-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-row.no-dek p { display: none; }

.mini-row { grid-template-columns: 72px minmax(0, 1fr); padding: 6px; }
.mini-row img { width: 72px; height: 56px; }
.mini-row h3 { font-size: 13.5px; }

/* Sidebar */
.widget { margin-bottom: 22px; }

.widget-title {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--widget);
  border-left: 4px solid var(--theme);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.widget-title span {
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-left: 6px;
}

.widget p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.widget .more {
  display: inline-block;
  margin-top: 8px;
  color: var(--theme);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.cat-list { list-style: none; margin: 0; padding: 0; }

.cat-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
}

.cat-list a:hover { color: var(--theme); }
.cat-list span { color: var(--muted); font-weight: 500; }

.tag-cloud, .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-cloud a, .tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.tag-cloud a:hover, .tag-list a:hover {
  border-color: var(--theme);
  color: var(--theme);
}

/* Article */
.page-head { margin: 0 0 16px; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--theme);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-head h1, .article h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.dek {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.byline {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 18px 0 14px;
}

.byline img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  flex: none;
}

.byline .name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.byline .name:hover { color: var(--theme); }

.byline time {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}

.btn-share, .btn-comments, .follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-weight: 600;
}

.btn-share svg, .btn-comments svg, .follow-btn svg { width: 18px; height: 18px; }

.btn-share:hover, .btn-comments:hover, .follow-btn:hover,
.follow-btn.is-on {
  border-color: var(--theme);
  color: var(--theme);
}

.post-hero-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  margin: 0 0 20px;
  overflow: hidden;
  background: #111;
}

.post-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.prose { font-size: 17px; line-height: 1.7; }
.prose p { margin: 0 0 1.05em; text-wrap: pretty; }
.prose h2 {
  margin: 1.5em 0 0.45em;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.pull {
  margin: 1.3em 0;
  padding: 2px 0 2px 14px;
  border-left: 4px solid var(--theme);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.tag-list { margin: 8px 0 26px; }

.section-gap { margin-top: 8px; }

#comments { scroll-margin-top: calc(var(--header-h) + 12px); }

.comment-list { list-style: none; margin: 0; padding: 0; }

.comments { margin-top: 8px; }

.comment {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #141414;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

html[data-theme="dark"] .avatar-fallback { background: #2e2e2e; }

.comment strong { display: block; font-size: 14px; }
.comment time { color: var(--muted); font-size: 12px; }
.comment p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; }

.comment-form { margin-top: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }

.field span { font-size: 13px; font-weight: 700; }

.field input, .field textarea, .search-page-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
}

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

.form-note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* Author */
.author-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.author-top img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
}

.author-top h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 52px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-weight: 800;
}

.author-role { margin: 6px 0 8px; color: var(--muted); font-size: 1.02rem; }

.author-social { display: flex; gap: 8px; margin-bottom: 10px; }

.author-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.author-social svg { width: 18px; height: 18px; }
.author-social a:hover { color: var(--theme); }

.author-bio {
  margin: 18px 0 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (min-width: 700px) {
  .author-top { grid-template-columns: 132px minmax(0, 1fr); gap: 22px; }
  .author-top img { width: 132px; height: 132px; }
}

.search-page-form {
  display: flex;
  gap: 8px;
  margin: 14px 0 18px;
}

.search-page-form input { flex: 1; }
.search-page-form button { flex: none; }

.empty {
  padding: 28px 8px;
  color: var(--muted);
}

/* Share modal */
.modal[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
}

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

.modal-card {
  position: relative;
  width: min(460px, 100%);
  background: var(--surface);
  color: var(--ink);
  border-radius: 18px 18px 0 0;
  padding: 16px 16px 22px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
}

.share-grid {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-grid a, .share-grid button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  font-weight: 600;
  text-align: left;
}

.share-grid svg { width: 20px; height: 20px; flex: none; }

.share-grid a:hover, .share-grid button:hover,
.share-grid button.is-copied {
  border-color: var(--theme);
  color: var(--theme);
}

@media (min-width: 700px) {
  .modal { place-items: center; padding: 20px; }
  .modal-card { border-radius: 18px; padding: 18px; }
}

/* Footer — always dark, 3 columns on desktop */
.site-footer {
  background: var(--footer);
  color: #f4f4f5;
  margin-top: 12px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.footer-top {
  display: grid;
  gap: 26px;
}

.footer-brand .logo-word { font-size: 28px; }

.footer-tag {
  margin: 6px 0 0;
  color: #b5b5b5;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-content: start;
}

.footer-links a {
  color: #f3f3f3;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}

.footer-links a:hover { color: var(--theme); }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2a2a2a;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { background: var(--theme); color: #fff; }

.footer-rule {
  border: 0;
  border-top: 1px solid #3a3a3a;
  margin: 26px 0 18px;
}

.footer-copy, .footer-credit {
  margin: 0;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.45;
}

.footer-credit { margin-top: 0px; }

/* Loaders — five bars, centered, like a short equalizer */
.item-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #111;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.slide > .item-loader { z-index: 1; }

[data-media].is-ready > .item-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.eq {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  gap: 6px;
}

.eq span {
  display: block;
  width: 9px;
  height: 40px;
  border-radius: 5px;
  background: var(--theme);
  transform-origin: center;
  animation: fm-eq 1s ease-in-out infinite;
}

.eq span:nth-child(2) { animation-delay: 0.12s; }
.eq span:nth-child(3) { animation-delay: 0.24s; }
.eq span:nth-child(4) { animation-delay: 0.36s; }
.eq span:nth-child(5) { animation-delay: 0.48s; }

.page-loader .eq { height: 52px; gap: 8px; }
.page-loader .eq span { width: 13px; height: 52px; border-radius: 6px; }

.thumb .eq { height: 26px; gap: 4px; }
.thumb .eq span { width: 5px; height: 26px; border-radius: 2px; }

@keyframes fm-eq {
  0%, 100% { transform: scaleY(0.36); }
  22% { transform: scaleY(1); }
  48% { transform: scaleY(0.45); }
  72% { transform: scaleY(0.84); }
}

@media (min-width: 800px) {
  .footer-top {
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 32px;
    align-items: start;
  }
  .footer-links { flex-direction: column; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
.widget a.mini-row { grid-template-columns: 104px minmax(0, 1fr); }
.widget .mini-row img {
    width: 100%;
    height: 100%;
}

#footer-bottom .dash-separator {
    color: #fff;
    user-select: none;
}

div#footer-bottom {
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
/* Default state (Stacked / Small width): Hide dash */
.dash-separator {
  display: none;
  font-size: 16px;
  color: #666;
}

/* 2. Side-by-side state: Show dash when space permits both elements (e.g., 250px * 2 + gaps) */
@container (min-width: 700px) {
  .grid-container {
    flex-wrap: nowrap;
  }

  .dash-separator {
  display: block;
  }
}

.footer-credit a {
    font-weight: bold;
    text-decoration: none;
}