:root {
  color-scheme: light;
  --bg: #fffaf5;
  --bg-accent: radial-gradient(circle at top left, rgba(255, 189, 153, 0.35), transparent 38%),
    radial-gradient(circle at 85% 8%, rgba(176, 226, 220, 0.45), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(255, 231, 204, 0.75), transparent 36%),
    linear-gradient(180deg, #fffdf9 0%, #fff7ef 100%);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(119, 106, 92, 0.14);
  --text: #1d2430;
  --muted: #6f7483;
  --accent: #ff8e61;
  --accent-strong: #d7653a;
  --pill: rgba(255, 142, 97, 0.12);
  --shadow: 0 18px 40px rgba(201, 158, 134, 0.18);
  --shadow-strong: 0 18px 48px rgba(130, 106, 92, 0.14);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101923;
  --bg-accent: radial-gradient(circle at top left, rgba(255, 141, 99, 0.16), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(117, 184, 176, 0.18), transparent 26%),
    linear-gradient(180deg, #0d141d 0%, #101923 100%);
  --surface: rgba(15, 24, 35, 0.82);
  --surface-strong: rgba(11, 18, 28, 0.94);
  --border: rgba(212, 220, 230, 0.1);
  --text: #edf3fb;
  --muted: #9eabc0;
  --accent: #ff9c70;
  --accent-strong: #ffc6a5;
  --pill: rgba(255, 156, 112, 0.12);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: var(--bg-accent);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.22;
}

.app-shell {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  overflow-x: clip;
}

.donation-banner {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 245, 236, 0.96), rgba(255, 233, 214, 0.88)),
    var(--surface-strong);
  box-shadow: 0 18px 34px rgba(201, 158, 134, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease, margin 220ms ease, padding 220ms ease;
}

.donation-banner.is-hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  max-height: 0;
  overflow: hidden;
}

[data-theme="dark"] .donation-banner {
  background:
    linear-gradient(135deg, rgba(30, 40, 56, 0.96), rgba(19, 29, 42, 0.9)),
    var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.donation-copy {
  margin: 0;
  max-width: 72ch;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.5;
}

.donation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a9b6f, #36be8d);
  color: #f7fffb;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(39, 154, 109, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.about-panel-donate {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.about-donation-button {
  flex: 0 0 auto;
}

.site-header,
.tabs,
.news-card,
.modal-shell {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0 6px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--border);
}

.site-header-copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}

.site-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.eyebrow,
.original-label,
.modal-source {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(119, 106, 92, 0.12);
  background: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}

[data-theme="dark"] .eyebrow {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

h1,
.modal-title,
.card-title {
  font-family: 'Space Grotesk', sans-serif;
}

h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.45rem, 2.45vw, 2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.icon-button,
.refresh-button,
.tab-button {
  border: 0;
  font: inherit;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(164, 142, 132, 0.14);
}

[data-theme="dark"] .icon-button {
  background: rgba(18, 27, 40, 0.86);
  box-shadow: none;
}

.theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-light {
  display: none;
}

[data-theme="dark"] .theme-icon-dark {
  display: inline;
}

.status-value {
  margin: 0;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--text);
}

.content-shell {
  position: relative;
}

.about-text,
.footer-copy,
.footer-link {
  font-size: 0.94rem;
}

.about-text {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.7;
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ffb28d);
  color: #fffdfb;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 12px 24px rgba(255, 142, 97, 0.28);
}

.refresh-button-compact {
  min-height: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(255, 142, 97, 0.2);
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1;
}

.footer-link {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.about-modal-shell {
  max-width: 620px;
  padding: 0;
  background:
    linear-gradient(155deg, rgba(255, 251, 246, 0.96) 0%, rgba(255, 244, 234, 0.92) 42%, rgba(246, 252, 249, 0.92) 100%);
}

[data-theme="dark"] .about-modal-shell {
  background:
    linear-gradient(155deg, rgba(20, 31, 45, 0.98) 0%, rgba(15, 24, 37, 0.96) 50%, rgba(18, 35, 39, 0.92) 100%);
}

.footer-link:hover {
  color: var(--accent-strong);
}

.refresh-button:hover,
.donation-button:hover,
.icon-button:hover,
.news-card:hover,
.tab-button:hover {
  transform: translateY(-1px);
}

.tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px 6px;
  margin: 26px 0 0;
}

.tabs::-webkit-scrollbar {
  height: 8px;
}

.tabs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.tab-button {
  white-space: nowrap;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .tab-button {
  background: rgba(19, 29, 42, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tab-button.active {
  background: linear-gradient(135deg, var(--accent), #ffc1a1);
  color: #fffdfb;
  box-shadow: 0 12px 24px rgba(255, 142, 97, 0.22);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
  width: 100%;
  min-width: 0;
}

.loading-state {
  position: absolute;
  inset: 72px 0 0;
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 320px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 241, 0.64));
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

[data-theme="dark"] .loading-state {
  background: linear-gradient(180deg, rgba(18, 28, 41, 0.86), rgba(13, 20, 31, 0.8));
  border-color: rgba(255, 255, 255, 0.06);
}

.glass-spinner {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.24), 0 18px 40px rgba(201, 158, 134, 0.18);
}

.glass-spinner::before,
.glass-spinner::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
}

.glass-spinner::before {
  border: 4px solid rgba(255, 255, 255, 0.16);
}

.glass-spinner::after {
  border: 4px solid transparent;
  border-top-color: var(--accent);
  border-right-color: rgba(255, 178, 141, 0.9);
  animation: spin 0.9s linear infinite;
}

.loading-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 244px;
  padding: 20px 20px 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 245, 0.78)),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  animation: fade-up 420ms ease both;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

[data-theme="dark"] .news-card {
  background:
    linear-gradient(180deg, rgba(19, 28, 41, 0.92), rgba(14, 22, 34, 0.84)),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.news-card:hover,
.news-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 142, 97, 0.4);
  box-shadow: 0 24px 52px rgba(201, 158, 134, 0.24);
  outline: none;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-source,
.card-time {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(119, 106, 92, 0.08);
}

[data-theme="dark"] .card-source,
[data-theme="dark"] .card-time {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
}

.card-title {
  margin: 18px 0 10px;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.article-modal {
  width: min(860px, calc(100% - 24px));
  border: none;
  background: transparent;
  padding: 0;
}

.article-modal::backdrop {
  background: rgba(12, 18, 27, 0.55);
  backdrop-filter: blur(10px);
}

.article-modal-shell {
  position: relative;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 249, 243, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

[data-theme="dark"] .article-modal-shell {
  background: linear-gradient(180deg, rgba(18, 28, 41, 0.96), rgba(12, 20, 31, 0.9));
  border-color: rgba(255, 255, 255, 0.07);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(119, 106, 92, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(164, 142, 132, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

[data-theme="dark"] .modal-close {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.modal-close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 142, 97, 0.34);
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.modal-title {
  margin: 0 56px 18px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.article-body {
  display: grid;
  gap: 14px;
  color: var(--text);
}

.article-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.article-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

[data-theme="dark"] .modal-action-button {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.modal-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 142, 97, 0.34);
}

.article-actions .refresh-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
}

#modalCloseAction,
#aboutCloseAction {
  order: 2;
}

#modalSourceLink {
  order: 1;
}

.about-content {
  padding: 24px 26px 26px;
}

.about-intro {
  margin-bottom: 22px;
  padding: 0;
}

.about-strip {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 0 26px;
  border-bottom: 1px solid rgba(119, 106, 92, 0.12);
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, rgba(255, 155, 117, 0.24), rgba(255, 233, 214, 0.78));
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.92rem;
  font-weight: 800;
}

[data-theme="dark"] .about-strip {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(255, 156, 112, 0.18), rgba(255, 255, 255, 0.05));
  color: var(--accent-strong);
}

.about-lead {
  margin: 0;
  max-width: 42ch;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

.about-body {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.about-panel {
  min-width: 0;
  padding: 16px 16px 18px;
  border: 1px solid rgba(119, 106, 92, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .about-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.about-panel-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
}

@media (min-width: 721px) {
  #aboutModal.article-modal {
    width: min(980px, calc(100% - 40px));
  }

  .about-modal-shell {
    max-width: 980px;
  }

  .about-strip {
    min-height: 52px;
    padding: 0 24px;
    font-size: 0.84rem;
  }

  .about-content {
    padding: 20px 24px 22px;
  }

  .about-intro {
    margin-bottom: 16px;
  }

  .about-modal-shell .modal-title {
    margin: 0 0 12px;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.02;
  }

  .about-lead {
    max-width: 58ch;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .about-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .about-panel {
    padding: 14px 14px 15px;
  }

  .about-panel p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .about-panel-label {
    margin-bottom: 6px;
    font-size: 0.68rem;
  }

  .about-panel-donate {
    align-items: flex-start;
    gap: 12px;
  }

  .about-donation-button,
  #aboutCloseAction {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  .about-modal-shell .article-actions {
    margin-top: 16px;
    gap: 10px;
  }
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

.empty-state-centered {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 260px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: 100%;
    padding: 8px 0 68px;
  }

  .donation-banner {
    top: 8px;
    margin: 0 10px 12px;
    padding: 14px;
    border-radius: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .donation-copy {
    font-size: 0.88rem;
  }

  main {
    padding: 0 10px;
  }

  .site-header {
    position: sticky;
    top: 8px;
    z-index: 25;
    margin: 0 10px 6px;
    padding: 5px 10px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 16px;
    background: var(--surface-strong);
    box-shadow: 0 12px 28px rgba(201, 158, 134, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .site-header-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-title-row {
    gap: 8px;
  }

  .site-header-tools {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .eyebrow {
    min-height: 18px;
    padding: 0 7px;
    font-size: 0.52rem;
    letter-spacing: 0.12em;
    line-height: 1;
  }

  h1 {
    font-size: clamp(0.98rem, 4.2vw, 1.22rem);
    line-height: 1;
    margin: 0;
    letter-spacing: -0.045em;
  }

  .header-status {
    align-items: center;
    min-width: 0;
  }

  .status-row {
    justify-content: flex-end;
    gap: 5px;
  }

  .refresh-button {
    width: auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .refresh-button-compact {
    width: 22px;
    height: 22px;
    min-height: 0;
    padding: 0;
    font-size: 0.76rem;
  }

  .about-text,
  .footer-copy,
  .footer-link {
    font-size: 0.88rem;
  }

  .tabs {
    gap: 8px;
    margin-top: 14px;
    padding: 2px 0 6px;
    scroll-snap-type: x proximity;
  }

  .tab-button {
    padding: 10px 14px;
    font-size: 0.82rem;
    scroll-snap-align: start;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
    padding: 0;
    width: 100%;
  }

  .loading-state {
    inset: 54px 0 0;
    min-height: 220px;
    padding: 18px;
    border-radius: 18px;
  }

  .glass-spinner {
    width: 60px;
    height: 60px;
  }

  .news-card {
    width: 100%;
    margin: 0;
    min-height: 0;
    padding: 14px 14px 16px;
    border-radius: 18px;
  }

  .card-meta {
    gap: 6px;
    font-size: 0.72rem;
    justify-content: space-between;
  }

  .card-source,
  .card-time {
    min-height: 24px;
    padding: 0 7px;
    max-width: 100%;
  }

  .card-title {
    margin: 12px 0 8px;
    font-size: 1.02rem;
    line-height: 1.15;
  }

  .icon-button {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    flex: 0 0 auto;
  }

  .status-value {
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
  }

  .empty-state {
    padding: 22px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
  }

  .empty-state-centered {
    min-height: calc(100vh - 220px);
    padding: 0;
    font-size: clamp(1.35rem, 8vw, 2rem);
  }

  .article-modal-shell {
    padding: 18px;
    border-radius: 16px;
  }

  .about-modal-shell {
    padding: 0;
  }

  .about-content {
    padding: 18px;
  }

  .modal-title {
    font-size: 1.35rem;
    margin-right: 40px;
  }

  .about-strip {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px 16px 0 0;
    font-size: 0.84rem;
  }

  .about-panel {
    padding: 14px 14px 16px;
    border-radius: 12px;
  }

  .article-actions > * {
    flex: 1 1 auto;
  }

  .site-footer {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 25;
    margin: 0;
    padding: 7px 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 16px;
    background: var(--surface-strong);
    box-shadow: 0 14px 30px rgba(130, 106, 92, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  [data-theme="dark"] .site-header,
  [data-theme="dark"] .site-footer {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  }
}

@media (max-width: 480px) {
  .donation-banner,
  .site-header {
    margin-left: 8px;
    margin-right: 8px;
  }

  main {
    padding: 0 8px;
  }

  .site-header {
    top: 6px;
    padding: 4px 8px;
    gap: 8px;
  }

  .site-title-row {
    gap: 6px;
  }

  .site-header-tools {
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .header-status {
    min-width: 0;
    flex: 0 1 auto;
  }

  .donation-button {
    width: 100%;
  }

  .about-panel-donate {
    align-items: flex-start;
  }

  .site-footer {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 7px 10px;
  }

  .tab-button {
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .news-card {
    padding: 13px 12px 14px;
  }

  .card-title {
    font-size: 0.98rem;
  }

  .footer-copy,
  .status-value {
    font-size: 0.74rem;
  }

  .footer-copy {
    line-height: 1;
  }

  .footer-link {
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.01em;
  }
}
