@font-face {
  font-family: "Noir et Blanc";
  src: url("/assets/fonts/noir-et-blanc.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Radium FG";
  src: url("/assets/fonts/radium-fg-bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef1f4;
  --surface-dark: #0b0d10;
  --text: #13161a;
  --text-soft: #5b626b;
  --text-faint: #8d949d;
  --line: #dce1e6;
  --line-dark: rgba(255, 255, 255, 0.16);
  --orange: #e86222;
  --orange-dark: #c94710;
  --cyan: #1789a9;
  --green: #1e9a61;
  --red: #d7352b;
  --shadow: 0 16px 36px rgba(12, 17, 23, 0.1);
  --header-height: 72px;
  --max: 1240px;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #14171b;
  --surface-soft: #1b1f24;
  --text: #f4f6f8;
  --text-soft: #a9b0b8;
  --text-faint: #737b84;
  --line: #2b3036;
  --surface-dark: #050607;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body.news-portal {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  transition: background-color 180ms ease, color 180ms ease;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
select {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
canvas {
  display: block;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(232, 98, 34, 0.38);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: #000;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.portal-container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.25);
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  height: var(--header-height);
  margin-inline: auto;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  position: relative;
  display: block;
  width: 38px;
  height: 26px;
  flex: 0 0 auto;
}

.brand-mark i {
  position: absolute;
  bottom: 0;
  display: block;
  background: var(--text);
  border-radius: 50% 50% 4px 4px;
}

.brand-mark i:nth-child(1) {
  left: 0;
  width: 20px;
  height: 16px;
}

.brand-mark i:nth-child(2) {
  left: 10px;
  width: 24px;
  height: 24px;
}

.brand-mark i:nth-child(3) {
  right: 0;
  width: 17px;
  height: 13px;
}

.brand-name {
  white-space: nowrap;
  font-family: "Radium FG", "Arial Black", sans-serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.brand-name span {
  color: var(--orange);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 22px;
}

.desktop-nav a {
  position: relative;
  padding: 25px 0 23px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.desktop-nav a:hover {
  color: var(--text);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.menu-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.icon-button {
  font-size: 22px;
  line-height: 1;
}

.icon-button:hover,
.menu-button:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}

.profile-link {
  display: inline-flex;
  min-height: 38px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--text);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

body[data-theme="dark"] .profile-link {
  color: #111;
  background: #f7f7f7;
}

.menu-button {
  display: none;
  align-content: center;
  gap: 4px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.utility-bar {
  color: #d5dae0;
  background: var(--surface-dark);
}

.utility-inner {
  display: flex;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: 34px;
  margin-inline: auto;
  gap: 14px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.utility-inner time {
  color: #fff;
}

.utility-divider {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.28);
}

.utility-spacer {
  flex: 1 1 auto;
}

.live-status {
  display: inline-flex;
  align-items: center;
  color: #fff;
  gap: 6px;
}

.live-status i {
  width: 7px;
  height: 7px;
  background: #ff4d45;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 77, 69, 0.13);
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  50% { opacity: 0.45; }
}

.search-panel {
  position: absolute;
  inset: calc(100% + 1px) 0 auto;
  padding: 18px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-panel[hidden],
.mobile-menu[hidden] {
  display: none;
}

.search-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
  gap: 14px;
}

.search-inner label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-inner input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.search-inner button {
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu {
  position: absolute;
  inset: calc(100% + 1px) 0 auto;
  grid-template-columns: repeat(2, 1fr);
  padding: 16px 20px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mobile-menu:not([hidden]) {
  display: grid;
}

.mobile-menu a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 750;
}

.hero-band {
  position: relative;
  width: 100%;
  height: clamp(390px, 48vw, 560px);
  min-height: 390px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #121820;
}

.hero-art,
.hero-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  z-index: -3;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.92) contrast(1.03);
  transform: scale(1.01);
}

.hero-canvas {
  z-index: -2;
  pointer-events: none;
  opacity: 0.75;
}

.hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 7, 11, 0.91) 0%, rgba(4, 7, 11, 0.65) 43%, rgba(4, 7, 11, 0.08) 78%), linear-gradient(0deg, rgba(4, 7, 11, 0.74), transparent 55%);
}

.hero-content {
  display: flex;
  width: min(var(--max), calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
  padding: 58px 0 52px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.hero-meta {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.hero-meta span:first-child {
  padding: 6px 8px;
  color: #fff;
  background: var(--orange);
  border-radius: 3px;
}

.hero-content h1 {
  width: min(780px, 74%);
  margin: 0;
  overflow-wrap: break-word;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: clamp(37px, 5.4vw, 74px);
  line-height: 1.02;
  font-weight: 780;
  text-wrap: balance;
}

.hero-content p {
  width: min(650px, 70%);
  margin: 16px 0 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  color: #151515;
  background: #fff;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 850;
  transition: transform 150ms ease, background-color 150ms ease;
}

.hero-link:hover {
  background: #f1f2f4;
  transform: translateY(-2px);
}

.hero-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
}

.hero-progress span.running {
  animation: hero-progress 8s linear both;
}

@keyframes hero-progress {
  to { width: 100%; }
}

.ticker {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 42px;
  color: #f4f4f4;
  background: #0b0d10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker > strong {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 max(16px, calc((100vw - var(--max)) / 2));
  padding-right: 18px;
  color: #fff;
  background: var(--red);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.ticker-window {
  min-width: 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 42px;
  padding-left: 32px;
  animation: ticker-move 70s linear infinite;
}

.ticker-track.paused {
  animation-play-state: paused;
}

.ticker-track span {
  position: relative;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.ticker-track span::before {
  position: absolute;
  top: 50%;
  left: -22px;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--orange);
  border-radius: 50%;
  transform: translateY(-50%);
}

@keyframes ticker-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker > button {
  width: 44px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: #0b0d10;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 18px;
  gap: 18px;
}

.region-tabs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.region-tabs::-webkit-scrollbar {
  display: none;
}

.region-tabs button {
  min-height: 36px;
  padding: 0 13px;
  white-space: nowrap;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.region-tabs button:hover,
.region-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}

body[data-theme="dark"] .region-tabs button[aria-selected="true"] {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.category-select-wrap {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.category-select-wrap label {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.category-select-wrap select {
  min-height: 36px;
  padding: 0 34px 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.lead-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  align-items: start;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(190px, auto));
  gap: 14px;
}

.story,
.lead-story,
.feature-story,
.video-story {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.lead-story {
  min-height: 210px;
}

.lead-story:first-child {
  grid-row: span 2;
  min-height: 434px;
}

.story-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #dfe3e7;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.story:hover .story-media img,
.lead-story:hover .story-media img,
.feature-story:hover .story-media img,
.video-story:hover .story-media img {
  transform: scale(1.025);
}

.lead-story .story-media {
  position: absolute;
  inset: 0;
  height: 100%;
}

.lead-story::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg, rgba(4, 6, 9, 0.94) 0%, rgba(4, 6, 9, 0.52) 48%, rgba(4, 6, 9, 0.06) 78%);
}

.lead-story .story-copy {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px;
  color: #fff;
}

.lead-story:first-child .story-copy {
  padding: 28px;
}

.story-meta {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-bottom: 9px;
  gap: 8px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-story .story-meta {
  color: rgba(255, 255, 255, 0.68);
}

.country-tag {
  display: inline-flex;
  min-width: 24px;
  min-height: 20px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--orange);
  border-radius: 3px;
  font-size: 9px;
}

.country-tag.de {
  background: #256a86;
}

.story-title {
  margin: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  font-size: 18px;
  line-height: 1.22;
  font-weight: 780;
  text-wrap: pretty;
}

.lead-story:first-child .story-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1.04;
  font-weight: 780;
}

.lead-story:not(:first-child) .story-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.story-summary {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lead-story .story-summary {
  color: rgba(255, 255, 255, 0.7);
}

.lead-story:not(:first-child) .story-summary {
  display: none;
}

.save-button {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(7, 9, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.save-button.saved {
  color: #111;
  background: #fff;
}

.latest-panel {
  min-height: 434px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 20px;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 8px;
}

.section-heading > div > span,
.section-heading > span:first-child,
.community-copy > span,
.language-layout > div > span {
  display: block;
  margin-bottom: 5px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  font-weight: 790;
}

.section-heading.compact h2 {
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
}

.section-heading > button,
.section-heading > a,
.section-heading > span:last-child {
  padding: 0;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 750;
}

.section-heading > button,
.section-heading > a {
  cursor: pointer;
}

.section-heading > button:hover,
.section-heading > a:hover {
  color: var(--orange);
}

.latest-list {
  display: grid;
}

.latest-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  min-width: 0;
  padding: 12px 0;
  gap: 11px;
  border-top: 1px solid var(--line);
}

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

.latest-item img {
  width: 74px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
}

.latest-item div {
  min-width: 0;
}

.latest-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 850;
}

.latest-item strong {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: break-word;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-section {
  margin-top: 54px;
}

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

.story .story-media {
  aspect-ratio: 16 / 9;
}

.story .story-copy {
  padding: 16px;
}

.story .story-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.story-link::after,
.lead-story > a::after,
.feature-story > a::after,
.video-story > a::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
}

.local-band {
  margin-top: 64px;
  padding: 50px 0 56px;
  color: #f7f8fa;
  background: #0b0d10;
}

.section-heading.inverse > span:last-child {
  color: rgba(255, 255, 255, 0.48);
}

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

.city-desk {
  position: relative;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  background: #15191e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
}

.city-desk::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--orange);
}

.hamburg-desk::before {
  background: var(--cyan);
}

.city-desk > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 14px;
}

.city-desk header span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 800;
}

.city-desk h3 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 780;
}

.city-desk header strong {
  font-size: 26px;
  font-weight: 500;
}

.city-story-list {
  display: grid;
}

.city-story {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  gap: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.city-story img {
  width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.city-story div {
  min-width: 0;
}

.city-story span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  font-weight: 800;
}

.city-story strong {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  overflow-wrap: break-word;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(0, 0.8fr));
  gap: 18px;
}

.feature-story .story-media {
  aspect-ratio: 16 / 10;
}

.feature-story:first-child .story-media {
  aspect-ratio: 16 / 9;
}

.feature-story .story-copy {
  padding: 17px;
}

.feature-story:first-child .story-title {
  font-size: 24px;
}

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

.video-story .story-media {
  aspect-ratio: 16 / 9;
}

.video-story .story-media::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  content: "▶";
  place-items: center;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-size: 14px;
  transform: translate(-50%, -50%);
}

.video-story .story-copy {
  padding: 14px;
}

.video-story .story-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.stream-section {
  margin-bottom: 70px;
}

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

.stream-grid .story .story-copy {
  padding: 14px;
}

.stream-grid .story-title {
  font-size: 16px;
}

.stream-grid .story-summary {
  -webkit-line-clamp: 3;
}

.load-more {
  display: block;
  width: min(360px, 100%);
  min-height: 46px;
  margin: 26px auto 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.load-more:hover {
  border-color: var(--orange);
}

.empty-state {
  padding: 50px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state span {
  margin-top: 8px;
  color: var(--text-soft);
}

.community-band {
  padding: 64px 0;
  color: #f4f6f8;
  background: #111419;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 64px;
}

.community-copy h2 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  font-weight: 760;
}

.community-copy p {
  max-width: 560px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-actions a {
  display: inline-flex;
  min-height: 42px;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  color: #111;
  background: #fff;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
}

.community-actions a:last-child {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.product-links {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.product-links a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  padding: 18px 0;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.product-links a:hover strong {
  color: var(--orange);
}

.product-links span,
.product-links small {
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
}

.product-links strong {
  font-size: 18px;
  transition: color 150ms ease;
}

.language-band {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  color: #fff;
  background: #121d24;
}

.language-band::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 18, 24, 0.98), rgba(10, 18, 24, 0.66) 58%, rgba(10, 18, 24, 0.18));
}

.language-band canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.language-layout {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 330px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.language-layout h2 {
  margin: 0 0 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  font-weight: 760;
}

.language-layout p {
  margin: 0 0 7px;
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 650;
}

.language-layout small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.language-controls {
  display: grid;
  grid-template-columns: 42px auto 42px;
  align-items: center;
  gap: 12px;
}

.language-controls button {
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  cursor: pointer;
}

.language-controls span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 800;
}

.portal-footer {
  padding: 54px 0 24px;
  color: #d7dbe0;
  background: #070809;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 80px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-layout > div p {
  max-width: 440px;
  margin: 16px 0 0;
  color: #777f88;
  font-size: 13px;
  line-height: 1.6;
}

.footer-layout nav {
  display: grid;
  align-content: start;
  min-width: 130px;
  gap: 10px;
}

.footer-layout nav strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 12px;
}

.footer-layout nav a {
  color: #8e959d;
  font-size: 12px;
}

.footer-layout nav a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 18px;
  color: #626971;
  border-top: 1px solid #202328;
  font-size: 10px;
}

.story-skeleton,
.line-skeleton {
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.story-skeleton {
  min-height: 210px;
}

.story-skeleton.wide {
  grid-row: span 2;
  min-height: 434px;
}

.line-skeleton {
  height: 72px;
  margin-top: 10px;
}

.story-skeleton::after,
.line-skeleton::after {
  display: block;
  width: 45%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: skeleton 1.2s ease-in-out infinite;
}

body[data-theme="dark"] .story-skeleton::after,
body[data-theme="dark"] .line-skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

@keyframes skeleton {
  from { transform: translateX(-110%); }
  to { transform: translateX(250%); }
}

.install-prompt {
  position: fixed;
  z-index: 300;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto auto;
  width: min(430px, calc(100% - 28px));
  min-height: 68px;
  padding: 12px;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: rgba(11, 13, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.install-prompt[hidden] {
  display: none;
}

.install-prompt strong,
.install-prompt span {
  display: block;
}

.install-prompt strong {
  font-size: 13px;
}

.install-prompt span {
  margin-top: 3px;
  color: #9ca3ab;
  font-size: 11px;
}

.install-prompt button {
  min-height: 38px;
  padding: 0 13px;
  color: #111;
  background: #fff;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.install-prompt #install-dismiss {
  width: 34px;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: 20px;
}

.toast {
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: 26px;
  min-width: 200px;
  max-width: calc(100% - 32px);
  padding: 11px 15px;
  color: #fff;
  background: #111419;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  transform: translateX(-50%);
}

.toast[hidden] {
  display: none;
}

/* Article reader */
body.article-reader-page {
  background: var(--bg);
}

.article-topbar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.article-topbar-inner {
  display: flex;
  width: min(980px, calc(100% - 40px));
  min-height: 66px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.back-link {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 750;
}

.article-main {
  width: min(980px, calc(100% - 40px));
  margin: 40px auto 80px;
}

.article-header {
  width: min(780px, 100%);
  margin-inline: auto;
}

.article-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-header h1 {
  margin: 14px 0 18px;
  overflow-wrap: break-word;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 780;
  text-wrap: balance;
}

.article-deck {
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
}

.article-byline {
  display: flex;
  margin-top: 22px;
  padding-top: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 12px;
}

.article-hero {
  margin: 34px 0;
  overflow: hidden;
  background: var(--surface-soft);
  border-radius: 7px;
}

.article-hero img {
  width: 100%;
  max-height: 610px;
  object-fit: cover;
}

.article-body-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) 230px;
  justify-content: center;
  gap: 44px;
}

.article-body {
  min-width: 0;
}

.reader-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  gap: 14px;
  border-bottom: 2px solid var(--text);
}

.reader-label strong {
  font-size: 13px;
}

.reader-label span {
  color: var(--text-faint);
  font-size: 10px;
}

.brief-language {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brief-language button {
  min-height: 30px;
  padding: 0 9px;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.brief-language button[aria-pressed="true"] {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}

.article-brief {
  min-height: 180px;
}

.article-brief p {
  margin: 0 0 20px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.75;
}

.brief-loading {
  display: grid;
  gap: 12px;
}

.brief-loading span {
  display: block;
  height: 14px;
  background: var(--surface-soft);
  border-radius: 3px;
}

.brief-loading span:nth-child(2) { width: 92%; }
.brief-loading span:nth-child(3) { width: 78%; }

.source-note {
  margin-top: 28px;
  padding: 18px;
  background: var(--surface-soft);
  border-left: 3px solid var(--orange);
}

.source-note strong,
.source-note span {
  display: block;
}

.source-note span {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.source-note a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 24px;
}

.article-aside h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.related-list {
  display: grid;
}

.related-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.related-item span {
  color: var(--orange);
  font-size: 9px;
  font-weight: 850;
}

.related-item strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: break-word;
  font-size: 13px;
  line-height: 1.35;
}

.article-not-found {
  width: min(680px, calc(100% - 40px));
  margin: 80px auto;
  text-align: center;
}

@media (max-width: 1080px) {
  .desktop-nav { gap: 14px; }
  .desktop-nav a { font-size: 12px; }
  .lead-news { grid-template-columns: minmax(0, 1fr) 260px; }
  .stream-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-height: 62px; }
  .portal-container,
  .header-main,
  .utility-inner { width: min(100% - 28px, var(--max)); }
  .desktop-nav { display: none; }
  .header-main { grid-template-columns: 1fr auto; gap: 12px; }
  .menu-button { display: grid; }
  .profile-link { display: none; }
  .utility-inner { gap: 10px; }
  #source-count { display: none; }
  .hero-content { width: min(100% - 28px, var(--max)); }
  .hero-content h1 { width: min(720px, 92%); }
  .hero-content p { width: min(620px, 84%); }
  .lead-news { grid-template-columns: 1fr; }
  .latest-panel { min-height: auto; }
  .latest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-story:first-child { grid-column: span 2; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stream-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-layout { grid-template-columns: 1fr; gap: 38px; }
  .article-body-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

@media (max-width: 620px) {
  .news-portal main { overflow-x: hidden; }
  .brand-mark { width: 31px; height: 22px; }
  .brand-mark i:nth-child(1) { width: 17px; height: 13px; }
  .brand-mark i:nth-child(2) { left: 8px; width: 20px; height: 20px; }
  .brand-mark i:nth-child(3) { width: 14px; height: 11px; }
  .brand-name { font-size: 19px; }
  .icon-button { width: 34px; height: 34px; }
  .utility-inner { min-height: 31px; font-size: 10px; }
  .utility-divider,
  #visitor-count { display: none; }
  .hero-band { height: 410px; min-height: 410px; }
  .hero-art { object-position: 60% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(4, 7, 11, 0.96) 0%, rgba(4, 7, 11, 0.58) 62%, rgba(4, 7, 11, 0.14)); }
  .hero-content { padding: 32px 0 34px; }
  .hero-content h1 { width: 100%; font-size: clamp(35px, 11vw, 50px); }
  .hero-content p { display: -webkit-box; width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .ticker { grid-template-columns: auto 1fr 40px; }
  .ticker > strong { padding-left: 14px; padding-right: 12px; }
  .filter-bar { align-items: stretch; flex-direction: column; margin-top: 18px; gap: 10px; }
  .category-select-wrap { justify-content: space-between; }
  .category-select-wrap select { flex: 1; }
  .lead-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 330px 190px 190px; }
  .lead-story:first-child { grid-column: span 2; grid-row: auto; min-height: 330px; }
  .lead-story:not(:first-child) { min-height: 190px; }
  .lead-story .story-copy { padding: 14px; }
  .lead-story:first-child .story-copy { padding: 20px; }
  .lead-story:not(:first-child) .story-meta { margin-bottom: 6px; }
  .lead-story:not(:first-child) .story-title { font-size: 14px; line-height: 1.25; -webkit-line-clamp: 4; }
  .latest-list { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .story { display: grid; grid-template-columns: 42% 1fr; min-height: 136px; }
  .story .story-media { aspect-ratio: auto; height: 100%; min-height: 136px; }
  .story .story-copy { padding: 12px; }
  .story .story-title { font-size: 15px; -webkit-line-clamp: 4; }
  .story .story-summary { display: none; }
  .save-button { top: 7px; right: 7px; width: 31px; height: 31px; }
  .news-section { margin-top: 42px; }
  .section-heading { align-items: end; }
  .section-heading h2 { font-size: 28px; }
  .local-band { margin-top: 48px; padding: 40px 0; }
  .local-grid { grid-template-columns: 1fr; }
  .city-desk { padding: 18px; }
  .city-story { grid-template-columns: 80px 1fr; }
  .city-story img { width: 80px; height: 58px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-story:first-child { grid-column: auto; }
  .feature-story .story-media { aspect-ratio: 16 / 9; }
  .video-grid { display: flex; width: 100%; margin-right: 0; padding-right: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .video-story { min-width: 78vw; scroll-snap-align: start; }
  .stream-grid { grid-template-columns: 1fr; }
  .stream-grid .story { grid-template-columns: 42% 1fr; }
  .community-band { padding: 48px 0; }
  .community-copy h2 { font-size: 44px; }
  .product-links a { grid-template-columns: 32px 1fr; }
  .product-links small { grid-column: 2; }
  .language-layout { min-height: 360px; align-items: flex-start; padding-top: 58px; flex-direction: column; justify-content: flex-start; }
  .language-layout h2 { font-size: 52px; }
  .language-controls { margin-top: 12px; }
  .footer-layout { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .footer-layout > div { grid-column: span 2; }
  .footer-bottom { gap: 16px; }
  .search-inner { grid-template-columns: 1fr auto; }
  .search-inner label { grid-column: span 2; }
  .article-topbar-inner,
  .article-main { width: min(100% - 28px, 980px); }
  .article-main { margin-top: 26px; }
  .article-header h1 { font-size: 42px; }
  .article-deck { font-size: 18px; }
  .article-byline { align-items: flex-start; flex-direction: column; }
  .article-hero { margin: 26px -14px; border-radius: 0; }
  .article-brief p { font-size: 18px; }
}

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