:root {
  --bg: #f4f1ea;
  --bg-deep: #111318;
  --surface: #ffffff;
  --surface-2: #f8f6f1;
  --surface-3: #191d24;
  --text: #17191d;
  --text-soft: #636a76;
  --text-inverse: #f8fafc;
  --line: rgba(17, 25, 40, 0.1);
  --line-dark: rgba(255, 255, 255, 0.1);
  --accent: #ff5a1f;
  --accent-2: #0f9bd7;
  --accent-3: #d9ff66;
  --danger: #ff5c6c;
  --shadow-soft: 0 18px 50px rgba(17, 25, 40, 0.08);
  --shadow-strong: 0 30px 80px rgba(17, 25, 40, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 90, 31, 0.12), transparent 28%),
    radial-gradient(circle at 15% 0%, rgba(15, 155, 215, 0.12), transparent 22%),
    linear-gradient(180deg, #f5f1e8 0%, #f8f6f2 38%, #eef1f5 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { color: var(--accent); }
ul { margin: 0; padding: 0; }
.seo-image {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
}

.brand-lockup strong,
h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
}

.site-chrome,
.story-frame,
.admin-page,
.admin-login-card {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.masthead {
  padding: 24px 0 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(17, 19, 24, 0.96), rgba(26, 31, 38, 0.92));
  color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
}

.topbar-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 90, 31, 0.18);
}

.topbar-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup strong {
  display: block;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.brand-lockup small {
  display: block;
  color: var(--text-soft);
  margin-top: 3px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ff934f);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(255, 90, 31, 0.28);
}

.masthead-nav,
.hero-topic-row,
.story-tags,
.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.masthead-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(17, 25, 40, 0.06);
  transition: 180ms ease;
  font-size: 0.92rem;
  font-weight: 700;
}

.category-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}

.category-strip-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.category-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  background: var(--accent);
}

.masthead-nav a:hover,
.story-back-link:hover,
.topbar-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.pulse-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
}

.pulse-label,
.section-index,
.story-side-label,
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.pulse-label {
  color: var(--accent);
}

.pulse-track {
  display: flex;
  gap: 14px;
  overflow: auto;
  scrollbar-width: none;
}

.pulse-track::-webkit-scrollbar {
  display: none;
}

.pulse-track a {
  white-space: nowrap;
  color: var(--text-soft);
}

.pulse-track a::after {
  content: "/";
  margin-left: 14px;
  color: rgba(99, 106, 118, 0.45);
}

.hero-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: stretch;
}

.hero-news-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-news-card {
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  min-height: 138px;
}

.hero-news-category {
  display: inline-flex;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.hero-news-card strong {
  display: block;
  margin-top: 12px;
  line-height: 1.35;
  font-size: 1rem;
}

.hero-news-card small {
  display: block;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.hero-copy-panel,
.lead-story,
.headline-card,
.watchlist-card,
.mag-card,
.channel-card,
.story-article,
.story-side-card,
.admin-card,
.admin-login-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.hero-copy-panel,
.lead-story,
.story-article,
.admin-card,
.admin-login-card {
  border-radius: var(--radius-xl);
}

.headline-card,
.watchlist-card,
.mag-card,
.channel-card,
.story-side-card,
button,
input,
textarea,
select,
.secondary-button {
  border-radius: var(--radius-lg);
}

.hero-copy-panel {
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(217, 255, 102, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 233, 0.96));
}

.hero-kicker {
  color: var(--accent);
  margin: 0 0 14px;
}

.hero-copy-panel h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.92;
  max-width: 9ch;
}

.hero-summary {
  max-width: 58ch;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 18px 0 0;
}

.hero-topic-row {
  margin-top: 22px;
}

.hero-topic-row span,
.story-tags span,
.channel-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.hero-metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-metrics div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(17, 25, 40, 0.05);
}

.hero-metrics strong {
  display: block;
  font-size: 1.2rem;
  font-family: "Space Grotesk", sans-serif;
}

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.lead-story {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100%;
}

.lead-visual,
.mag-card-visual,
.channel-visual {
  background-size: cover;
  background-position: center;
  background-color: #d7dde7;
  position: relative;
}

.lead-visual {
  min-height: 380px;
}

.lead-body {
  padding: 24px 24px 26px;
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0), rgba(17, 19, 24, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 240, 0.98));
}

.lead-body h2,
.headline-card h3,
.mag-card h3,
.channel-card h3,
.story-heading h1 {
  margin: 12px 0 0;
  line-height: 1.05;
}

.lead-body h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.lead-body p,
.headline-card p,
.mag-card p,
.channel-card p,
.watch-item,
.story-deck,
.story-related-item span {
  color: var(--text-soft);
  line-height: 1.7;
}

.story-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.frontpage-shell,
.article-page,
.story-shell,
.admin-page {
  padding-bottom: 72px;
}

.headline-board,
.latest-deck,
.channel-section {
  margin-top: 30px;
}

.headline-board-compact {
  margin-top: 18px;
}

.section-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(17, 25, 40, 0.08);
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.section-index {
  color: var(--accent);
  padding-top: 8px;
}

.headline-grid {
  display: block;
}

.headline-slider-shell {
  position: relative;
  width: 100%;
  min-height: 640px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: #0f141c;
}

.headline-slider-track {
  position: relative;
  min-height: 640px;
}

.headline-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.headline-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.headline-panel-visual {
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #cad2df;
}

.headline-slider-shell-compact {
  min-height: 420px;
}

.headline-slider-shell-compact .headline-slider-track,
.headline-slider-shell-compact .headline-panel-visual {
  min-height: 420px;
}

.headline-panel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.12), rgba(10, 14, 20, 0.74) 68%, rgba(10, 14, 20, 0.96)),
    linear-gradient(90deg, rgba(10, 14, 20, 0.52), rgba(10, 14, 20, 0.08) 48%, rgba(10, 14, 20, 0.7));
}

.headline-panel-copy {
  width: min(720px, 100%);
  color: #fff;
}

.headline-panel-copy h3 {
  margin: 16px 0 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.98;
  text-wrap: balance;
}

.headline-panel-copy-compact h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.02;
  max-width: 16ch;
}

.headline-panel-copy p {
  margin: 12px 0 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.7;
}

.headline-panel-copy-compact p {
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 70ch;
}

.headline-slider-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 20px 20px;
}

.headline-slider-pager {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.headline-pager-btn {
  width: 100%;
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(8, 12, 18, 0.62);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.headline-pager-btn.is-active,
.headline-pager-btn:hover,
.headline-pager-btn:focus-visible {
  background: rgba(255, 90, 31, 0.92);
  border-color: rgba(255, 90, 31, 0.92);
  color: #fff;
  transform: none;
}

.headline-pager-no {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.headline-pager-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  font-size: 0.92rem;
}

.headline-side-row {
  margin-top: 18px;
}

.headline-side-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.watchlist-card {
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(15, 155, 215, 0.18), transparent 30%),
    linear-gradient(180deg, #171b22, #0f1318);
  color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-strong);
}

.headline-sidecard {
  align-self: stretch;
}

.watchlist-head h3 {
  margin: 8px 0 0;
  font-size: 1.22rem;
}

.watchlist-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.watch-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.watch-thumb {
  display: block;
  width: 82px;
  height: 82px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.watch-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.watch-category {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.watch-item strong {
  color: #fff;
  line-height: 1.45;
}

.watch-item small {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.news-rail-card {
  padding: 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 90, 31, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 242, 235, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.news-rail-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.news-rail-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(17, 25, 40, 0.08);
}

.news-rail-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.news-rail-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 16px;
  background: rgba(17, 25, 40, 0.06);
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.news-rail-copy {
  display: grid;
  gap: 6px;
}

.news-rail-copy small {
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.news-rail-copy strong {
  line-height: 1.45;
  font-size: 1rem;
}

.editorial-zone {
  margin-top: 30px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 20px;
}

.editorial-lead,
.editorial-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.editorial-lead {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.editorial-lead-visual,
.editorial-item-thumb {
  background-size: cover;
  background-position: center;
  background-color: #cad2df;
  position: relative;
  display: block;
}

.editorial-lead-visual {
  min-height: 300px;
}

.editorial-lead-body {
  padding: 20px;
}

.editorial-lead-body h3,
.editorial-item-body h3 {
  margin: 12px 0 0;
  line-height: 1.12;
}

.editorial-lead-body h3 {
  font-size: 1.72rem;
}

.editorial-lead-body p,
.editorial-item-body p {
  color: var(--text-soft);
  line-height: 1.65;
}

.editorial-list {
  display: grid;
  gap: 14px;
}

.editorial-item {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
}

.editorial-item-thumb {
  min-height: 112px;
  border-radius: 16px;
  overflow: hidden;
}

.editorial-item-body {
  min-width: 0;
}

.editorial-item-body h3 {
  font-size: 1rem;
}

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

.rotating-grid-shell {
  position: relative;
}

.rotating-grid-page {
  display: none;
}

.rotating-grid-page.is-active {
  display: block;
}

.rotating-grid-page-grid {
  display: grid;
  gap: 16px;
}

.rotating-grid-page-grid.magazine-grid,
.rotating-grid-page-grid.channel-grid {
  grid-template-columns: repeat(var(--grid-cols, 4), minmax(0, 1fr));
}

.rotating-grid-page-grid.magazine-grid .mag-card,
.rotating-grid-page-grid.channel-grid .channel-card {
  grid-column: span 1;
}

.rotating-grid-page-grid.magazine-grid .mag-card-primary,
.rotating-grid-page-grid.channel-grid .channel-card-featured {
  grid-column: span 1;
}

.mag-card {
  grid-column: span 4;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(17, 25, 40, 0.08);
}

.mag-card-primary {
  grid-column: span 8;
}

.mag-card-visual {
  min-height: 176px;
}

.mag-card-primary .mag-card-visual {
  min-height: 260px;
}

.mag-card-body,
.channel-body,
.card-body,
.article,
.admin-card,
.admin-login-card {
  padding: 18px;
}

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

.channel-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(17, 25, 40, 0.08);
}

.channel-card-featured {
  grid-column: span 2;
}

.channel-visual {
  min-height: 160px;
}

.channel-card-featured .channel-visual {
  min-height: 210px;
}

.mag-card h3,
.channel-card h3 {
  font-size: 1.08rem;
  line-height: 1.22;
}

.mag-card p,
.channel-card p {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.story-shell {
  padding-top: 26px;
}

.story-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.story-article {
  padding: 24px;
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: center;
}

.story-heading h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.story-deck {
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.story-visual-wrap {
  position: relative;
}

.story-visual {
  min-height: 420px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  background-color: #d7dde7;
}

.article-seo-image {
  position: static;
  width: 100%;
  height: auto;
  opacity: 0;
  max-height: 0;
}

.story-content-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.story-content {
  padding: 28px;
  border-radius: 24px;
  background: rgba(248, 246, 241, 0.9);
  border: 1px solid rgba(17, 25, 40, 0.08);
}

.story-content p,
.article-content p {
  margin: 0 0 1.2em;
  font-size: 1.05rem;
  line-height: 1.9;
}

.story-sidebar {
  display: grid;
  gap: 16px;
}

.story-side-card {
  padding: 20px;
}

.story-side-label {
  color: var(--accent);
}

.story-facts {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.story-facts li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-soft);
}

.story-facts strong {
  color: var(--text);
}

.story-related-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.story-related-item {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.story-related-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.gradient-orange { background: linear-gradient(120deg, rgba(255, 90, 31, 0.18), rgba(255, 164, 78, 0.12)); }
.gradient-blue { background: linear-gradient(120deg, rgba(15, 155, 215, 0.18), rgba(93, 130, 255, 0.12)); }
.gradient-lime { background: linear-gradient(120deg, rgba(217, 255, 102, 0.24), rgba(124, 228, 116, 0.12)); }
.gradient-red { background: linear-gradient(120deg, rgba(255, 92, 108, 0.18), rgba(255, 162, 128, 0.12)); }
.gradient-cyan { background: linear-gradient(120deg, rgba(80, 224, 207, 0.18), rgba(15, 155, 215, 0.12)); }
.gradient-sunset { background: linear-gradient(120deg, rgba(255, 90, 31, 0.2), rgba(255, 92, 108, 0.12)); }

.admin-page {
  padding-top: 32px;
}

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

.admin-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(17, 19, 24, 0.98), rgba(27, 31, 38, 0.94));
  box-shadow: var(--shadow-strong);
}

.admin-side-link {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 180ms ease;
}

.admin-side-link.is-active,
.admin-side-link:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), #ff934f);
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-main-stack {
  display: grid;
  gap: 24px;
}

.admin-stat-grid,
.admin-shortcut-grid {
  display: grid;
  gap: 16px;
}

.admin-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stat-card,
.admin-shortcut-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.admin-stat-card span,
.admin-shortcut-card span {
  display: block;
  color: var(--text-soft);
}

.admin-stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  font-family: "Space Grotesk", sans-serif;
}

.admin-shortcut-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-shortcut-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.admin-header,
.table-wrap,
.inline-check {
  display: flex;
}

.admin-header {
  justify-content: space-between;
  align-items: center;
}

.admin-card,
.admin-login-card {
  background: rgba(255, 255, 255, 0.88);
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: min(460px, 100%);
}

.stack {
  display: grid;
  gap: 12px;
}

.compact-top {
  margin-top: 16px;
}

input,
textarea,
select,
button,
.secondary-button {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
}

button,
.secondary-button {
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent), #ff934f);
  color: #fff;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 14px 30px rgba(255, 90, 31, 0.22);
}

.secondary-button {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
}

.secondary-button-muted {
  background: #eceff4;
  color: var(--text);
  box-shadow: none;
}

.inline-check {
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
}

.inline-check input {
  width: auto;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

tbody,
input,
textarea,
select {
  color: var(--text-soft);
}

.admin-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 92, 108, 0.12);
  border: 1px solid rgba(255, 92, 108, 0.3);
}

.admin-alert-success {
  background: rgba(124, 228, 116, 0.12);
  border-color: rgba(124, 228, 116, 0.32);
}

.admin-list-stack {
  display: grid;
  gap: 12px;
}

.admin-inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.admin-inline-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.instagram-zone {
  margin-top: 30px;
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 90, 31, 0.18), transparent 30%),
    radial-gradient(circle at left bottom, rgba(15, 155, 215, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(16, 20, 28, 0.98), rgba(22, 27, 35, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
}

.instagram-zone .section-title {
  margin-bottom: 18px;
}

.instagram-zone .section-title h2,
.instagram-zone .section-index,
.instagram-zone .instagram-card-body strong,
.instagram-zone .instagram-account-chip strong {
  color: #fff;
}

.instagram-zone-note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  max-width: 720px;
}

.instagram-account-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.instagram-account-row::-webkit-scrollbar {
  display: none;
}

.instagram-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.instagram-account-chip img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.14);
}

.instagram-account-chip strong,
.instagram-card-body strong {
  display: block;
}

.instagram-account-chip small,
.instagram-card-body span {
  color: rgba(255, 255, 255, 0.68);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.instagram-grid-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  grid-template-columns: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.instagram-card {
  overflow: hidden;
  position: relative;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
  scroll-snap-align: start;
}

.instagram-card-visual {
  display: block;
  width: 100%;
  border: 0;
  min-height: 430px;
  background-size: cover;
  background-position: center;
  background-color: #202733;
  position: relative;
  cursor: zoom-in;
  appearance: none;
  padding: 0;
}

.instagram-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.02) 0%, rgba(10, 13, 18, 0.14) 52%, rgba(10, 13, 18, 0.72) 100%);
}

.instagram-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0) 0%, rgba(10, 13, 18, 0.82) 100%);
}

.instagram-card-body strong {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.instagram-lightbox-open {
  overflow: hidden;
}

.instagram-lightbox[hidden] {
  display: none;
}

.instagram-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.instagram-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 18, 0.78);
}

.instagram-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  margin: 36px auto;
  background:
    radial-gradient(circle at top right, rgba(255, 90, 31, 0.14), transparent 26%),
    linear-gradient(145deg, rgba(14, 18, 24, 0.98), rgba(20, 24, 31, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.instagram-lightbox-dialog img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #0e1116;
}

.instagram-lightbox-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 24px;
  color: #fff;
}

.instagram-lightbox-meta span {
  color: rgba(255, 255, 255, 0.7);
}

.instagram-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .hero-layout,
  .hero-news-strip,
  .headline-side-grid,
  .editorial-grid,
  .story-hero,
  .story-content-grid {
    grid-template-columns: 1fr;
  }

  .headline-slider-shell,
  .headline-slider-track,
  .headline-panel-visual {
    min-height: 560px;
  }

  .headline-slider-pager {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-shell-layout,
  .admin-stat-grid,
  .instagram-grid {
    grid-template-columns: 1fr;
  }

  .admin-shortcut-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .mag-card,
  .mag-card-primary,
  .channel-card,
  .channel-card-featured {
    grid-column: span 12;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instagram-grid-scroll {
    grid-auto-columns: minmax(260px, 300px);
    grid-template-columns: none;
  }
}

@media (max-width: 760px) {
  .site-chrome,
  .story-frame,
  .admin-page,
  .admin-login-card {
    width: min(100% - 20px, 1280px);
  }

  .masthead-top,
  .admin-header,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-shell-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .pulse-bar {
    grid-template-columns: 1fr;
  }

  .hero-news-card {
    min-height: auto;
  }

  .category-strip {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .hero-copy-panel {
    padding: 24px;
  }

  .hero-copy-panel h1,
  .story-heading h1 {
    max-width: none;
    font-size: 2.7rem;
  }

  .lead-visual,
  .mag-card-primary .mag-card-visual,
  .story-visual {
    min-height: 240px;
  }

  .mag-card-visual {
    min-height: 170px;
  }

  .headline-slider-shell,
  .headline-slider-track,
  .headline-panel-visual {
    min-height: 480px;
  }

  .headline-panel-overlay {
    padding: 20px 18px 124px;
  }

  .headline-panel-copy h3 {
    font-size: 2rem;
  }

  .headline-slider-footer {
    padding: 0 14px 14px;
  }

  .headline-slider-pager {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .headline-pager-btn {
    padding: 12px;
  }

  .watch-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .watch-thumb {
    width: 76px;
    height: 76px;
  }

  .editorial-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .editorial-item-thumb {
    min-height: 92px;
  }

  .editorial-lead-visual {
    min-height: 220px;
  }

  .magazine-grid,
  .channel-grid {
    gap: 14px;
  }

  .rotating-grid-page-grid.magazine-grid,
  .rotating-grid-page-grid.channel-grid {
    grid-template-columns: 1fr;
  }

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

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

  .instagram-grid-scroll {
    grid-auto-columns: minmax(240px, 84vw);
    grid-template-columns: none;
  }

  .instagram-zone {
    padding: 22px 18px;
  }

  .instagram-card-visual {
    min-height: 360px;
  }

  .channel-visual {
    min-height: 148px;
  }

  .channel-card-featured .channel-visual,
  .mag-card-primary .mag-card-visual {
    min-height: 190px;
  }
}

.inline-image-picker {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 16px;
}

.inline-image-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.inline-image-card {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  color: #e5eefc;
}

.inline-image-card:hover {
  border-color: rgba(125, 211, 252, 0.75);
  transform: translateY(-1px);
}

.inline-image-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: rgba(255, 255, 255, 0.04);
}

.inline-image-card span {
  display: block;
  margin-top: 8px;
  font-size: 0.76rem;
  line-height: 1.3;
  color: #b6c5dd;
  word-break: break-word;
}
