:root {
  --bg: #09111f;
  --bg-soft: #101b2d;
  --surface: #f7f3ec;
  --surface-strong: #ffffff;
  --text: #17202f;
  --text-soft: #5f6b7a;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(9, 17, 31, 0.1);
  --accent: #8f2332;
  --accent-soft: #d8b98a;
  --shadow: 0 20px 60px rgba(4, 10, 20, 0.18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f4efe7 0%, #f8f6f2 100%);
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.hero {
  position: relative;
  overflow: visible;
  padding: 80px 24px 72px;
  background:
    radial-gradient(circle at top, rgba(216, 185, 138, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(9, 17, 31, 0.98), rgba(10, 18, 32, 0.94));
  color: #f8f4ee;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 185, 138, 0.18), transparent 70%);
  pointer-events: none;
}

.topbar,
.hero-content,
.section,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.topbar-official {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 40px rgba(4, 10, 20, 0.16);
}

.topbar-sticky {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 32px), var(--container));
  background: rgba(9, 17, 31, 0.95);
  backdrop-filter: blur(12px);
  color: #f8f4ee;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 1;
}

.brand-official {
  gap: 16px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-title,
.brand-subtitle,
.section-kicker,
.eyebrow,
.detail-kicker {
  margin: 0;
}

.brand-title {
  font-weight: 700;
}

.brand-subtitle {
  color: rgba(248, 244, 238, 0.72);
  font-size: 0.92rem;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.topbar-links a {
  color: rgba(248, 244, 238, 0.86);
  font-size: 0.9rem;
  white-space: nowrap;
}

.topbar-links-official a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.hero-content {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-content-centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.hero-content-split {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.eyebrow,
.section-kicker,
.detail-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-soft);
}

.hero h1,
.section-heading h2,
.martyr-card h3,
.modal-content h3,
.memory-banner h2,
.empty-state h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.1;
}

.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(3rem, 6vw, 5.2rem);
  max-width: 12ch;
}

.hero-text {
  max-width: 62ch;
  color: rgba(248, 244, 238, 0.82);
  font-size: 1.05rem;
}

.hero-copy-centered {
  display: grid;
  justify-items: center;
}

.hero-copy-split {
  justify-items: start;
  text-align: left;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-visual {
  width: min(100%, 420px);
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  justify-self: end;
}

.hero-visual-soft {
  border-radius: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  opacity: 0.95;
  animation: holoShift 5s ease-in-out infinite;
}

@keyframes holoShift {
  0%, 100% {
    filter: brightness(1.1) drop-shadow(0 0 18px rgba(184, 115, 51, 0.5)) drop-shadow(0 0 40px rgba(184, 115, 51, 0.2));
    transform: scale(1);
  }
  33% {
    filter: brightness(1.25) drop-shadow(0 0 28px rgba(218, 138, 103, 0.6)) drop-shadow(0 0 56px rgba(184, 115, 51, 0.3));
    transform: scale(1.03);
  }
  66% {
    filter: brightness(1.15) drop-shadow(0 0 22px rgba(139, 69, 19, 0.55)) drop-shadow(0 0 48px rgba(218, 138, 103, 0.25));
    transform: scale(1.01);
  }
}

.hero-bottom {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.hero-quote {
  margin: 0;
  max-width: 24ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: #f8f4ee;
}

.hero-actions-centered {
  justify-content: center;
}

.music-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  display: grid;
  gap: 0;
  width: 64px;
  padding: 10px;
  border: 1px solid rgba(216, 185, 138, 0.2);
  border-radius: 18px;
  background: rgba(9, 17, 31, 0.94);
  color: #f8f4ee;
  box-shadow: 0 18px 40px rgba(4, 10, 20, 0.28);
  transition: width 0.2s ease, padding 0.2s ease, gap 0.2s ease;
}

.music-widget:hover,
.music-widget:focus-within {
  width: 220px;
  padding: 12px;
  gap: 8px;
}

.music-widget-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 44px;
  border: 1px solid rgba(216, 185, 138, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #f8f4ee;
  font: inherit;
  cursor: pointer;
}

.music-widget-panel {
  display: grid;
  gap: 8px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

.music-widget:hover .music-widget-panel,
.music-widget:focus-within .music-widget-panel {
  opacity: 1;
  max-height: 80px;
}

.music-widget-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(216, 185, 138, 0.14);
  color: var(--accent-soft);
  font-size: 0.95rem;
}

.music-widget-status {
  margin: 0;
  color: rgba(248, 244, 238, 0.78);
  font-size: 0.8rem;
  white-space: nowrap;
}

.music-widget-volume {
  width: 100%;
  accent-color: #d8b98a;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-audio {
  border: 1px solid rgba(216, 185, 138, 0.28);
  color: #fff;
  background: rgba(216, 185, 138, 0.12);
}

.section {
  padding: 88px 24px;
}

.section-narrow {
  padding-top: 32px;
  padding-bottom: 32px;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 18ch;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.section-description {
  max-width: 52ch;
  color: var(--text-soft);
}

.intro-text-block {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(9, 17, 31, 0.08);
  box-shadow: var(--shadow);
}

.intro-text-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.intro-text-block p {
  margin: 0;
  font-size: 1.02rem;
  color: #243247;
}

.quote-band {
  text-align: center;
}

.quote-band-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 12px;
}

.quote-band p {
  margin: 0;
  padding: 28px 32px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #243247;
}

.quote-attribution {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-right: 32px;
}

.quote-author {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #243247;
  font-style: italic;
}

.quote-signature {
  width: 140px;
  height: auto;
  opacity: 0.85;
}

.martyrs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.search-field {
  display: grid;
  gap: 10px;
  width: min(100%, 520px);
  font-weight: 600;
}

.search-field label {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.search-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 46px;
  border: 1px solid rgba(9, 17, 31, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  color: var(--text);
}

.result-count {
  margin: 0;
  color: var(--text-soft);
  font-weight: 600;
}

.martyrs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.martyr-card,
.empty-state {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(9, 17, 31, 0.08);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.martyr-card {
  display: grid;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.martyr-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 35, 50, 0.28);
  box-shadow: 0 24px 60px rgba(4, 10, 20, 0.22), 0 0 0 1px rgba(143, 35, 50, 0.08);
}


.martyr-image-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #dfe5ef;
}

.martyr-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.martyr-card-body {
  padding: 24px;
}

.martyr-rank {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(143, 35, 50, 0.08);
  border: 1px solid rgba(143, 35, 50, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.martyr-card h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.martyr-meta {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.martyr-card-body > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(143, 35, 50, 0.2);
  border-radius: 999px;
  background: rgba(143, 35, 50, 0.06);
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.card-button:hover {
  transform: translateY(-2px);
  background: rgba(143, 35, 50, 0.12);
  border-color: rgba(143, 35, 50, 0.35);
}

.card-button:focus-visible,
.search-field input:focus-visible,
.modal-close:focus-visible,
.button:focus-visible {
  outline: 2px solid rgba(143, 35, 50, 0.45);
  outline-offset: 3px;
}

.memory-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(9, 17, 31, 0.97), rgba(16, 27, 45, 0.92));
  color: #f8f4ee;
  box-shadow: var(--shadow);
  border: 1px solid rgba(216, 185, 138, 0.12);
}

.memory-badge {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.memory-text {
  display: grid;
  gap: 12px;
}

.memory-banner h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
}

.memory-banner p {
  margin: 0;
  color: rgba(248, 244, 238, 0.78);
}

.memory-desc {
  font-size: 1rem;
  line-height: 1.6;
  border-top: 1px solid rgba(216, 185, 138, 0.15);
  padding-top: 12px;
  margin-top: 4px;
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.25s ease;
  overflow-y: auto;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 17, 31, 0.72);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  margin: auto 0;
  border-radius: 28px;
  border-top: 4px solid var(--accent);
  background: #f8f6f2;
  box-shadow: 0 30px 80px rgba(4, 10, 20, 0.35);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(9, 17, 31, 0.1);
  border-radius: 50%;
  background: rgba(9, 17, 31, 0.06);
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: rgba(9, 17, 31, 0.12);
}

.modal-content {
  padding: 38px;
}

.modal-header-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(9, 17, 31, 0.08);
}

.modal-badge {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.modal-content h3 {
  margin: 8px 0 10px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--accent);
}

.detail-lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
}

.modal-photo-panel,
.modal-info-panel {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(9, 17, 31, 0.06);
  box-shadow: 0 4px 16px rgba(4, 10, 20, 0.06);
}

.modal-photo {
  width: 100%;
  max-height: 420px;
  border-radius: 14px;
  object-fit: cover;
  object-position: top;
}

.modal-info-list {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 2;
}

.modal-info-list li {
  margin-bottom: 4px;
}

.modal-info-list strong {
  color: var(--text);
}

.detail-note-box {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(9, 17, 31, 0.03), rgba(143, 35, 50, 0.03));
  border: 1px solid rgba(9, 17, 31, 0.06);
  border-left: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(4, 10, 20, 0.04);
}

.detail-note-box + .detail-note-box {
  margin-top: 14px;
}

.detail-note-box p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.detail-note-title {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.empty-state {
  padding: 28px;
}

.empty-state h3 {
  margin: 8px 0 10px;
  font-size: 2rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 28px 24px 40px;
  color: var(--text-soft);
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .martyrs-toolbar,
  .section-heading-row,
  .memory-banner,
  .hero-content-split {
    grid-template-columns: 1fr;
    display: grid;
  }

  .modal-grid {
    grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.2fr);
    gap: 20px;
  }

  .hero-content-split {
    gap: 32px;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 280px);
  }

  .martyrs-toolbar {
    align-items: stretch;
  }

  .martyrs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading h2 {
    max-width: none;
  }

  .memory-badge {
    justify-self: center;
    width: 80px;
  }

  .memory-banner {
    text-align: center;
  }

  .topbar-sticky {
    width: min(calc(100% - 24px), var(--container));
  }

  .topbar {
    flex-wrap: wrap;
  }

  .topbar-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .hero {
    padding-inline: 18px;
    padding-bottom: 56px;
    padding-top: 72px;
  }

  .section,
  .site-footer,
  .modal {
    padding-inline: 18px;
  }

  .topbar-sticky {
    top: 8px;
    padding: 10px 14px;
    border-radius: 16px;
    width: min(calc(100% - 16px), var(--container));
  }

  .topbar,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .topbar-links {
    gap: 10px;
  }

  .topbar-links-official a {
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 0.9rem;
  }

  .brand-subtitle {
    font-size: 0.8rem;
  }

  .hero-copy-split {
    justify-items: center;
    text-align: center;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 200px);
  }

  .hero-content-split {
    gap: 24px;
    margin-top: 32px;
  }

  .martyrs-grid {
    grid-template-columns: 1fr;
  }

  .hero-quote,
  .quote-band p {
    font-size: 1.5rem;
    padding: 20px 16px;
  }

  .quote-attribution {
    padding-right: 16px;
  }

  .quote-signature {
    width: 100px;
  }

  .quote-band-img {
    border-radius: 8px;
  }

  .intro-text-block,
  .memory-banner,
  .modal-content,
  .modal-photo-panel,
  .modal-info-panel {
    padding: 18px;
  }

  .music-widget {
    right: 14px;
    bottom: 14px;
    width: 58px;
    padding: 8px;
  }

  .music-widget:hover,
  .music-widget:focus-within {
    width: min(180px, calc(100vw - 28px));
  }

  .modal {
    padding: 12px;
  }

  .modal-dialog {
    border-radius: 18px;
  }

  .modal-content {
    padding: 20px;
  }

  .modal-header-block {
    gap: 16px;
  }

  .modal-badge {
    width: 72px;
  }

  .modal-content h3 {
    font-size: 1.8rem;
  }

  .modal-photo {
    max-height: 320px;
  }

  .detail-note-box {
    padding: 14px 16px;
  }

  .martyr-card-body {
    padding: 18px;
  }

  .martyr-card h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 500px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-header-block {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
    justify-items: center;
  }

  .modal-badge {
    width: 56px;
  }

  .modal-photo {
    max-height: 250px;
  }

  .modal-content {
    padding: 16px;
  }
}

/* ==========================================================================
   Veritabanı entegrasyonu: arama, filtre, sayfalama, yer tutucular
   ========================================================================== */

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

#hikaye,
#sehitler {
  scroll-margin-top: 110px;
}

.martyrs-toolbar {
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-field input:focus {
  border-color: rgba(143, 35, 50, 0.45);
  box-shadow: 0 0 0 4px rgba(143, 35, 50, 0.08);
  outline: none;
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(9, 17, 31, 0.06);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.search-clear:hover {
  background: rgba(9, 17, 31, 0.12);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(9, 17, 31, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  border-color: rgba(143, 35, 50, 0.35);
}

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chip:focus-visible,
.page-btn:focus-visible,
.search-clear:focus-visible {
  outline: 2px solid rgba(143, 35, 50, 0.45);
  outline-offset: 3px;
}

.result-count {
  margin: 0 0 18px;
}

.martyrs-grid > .empty-state {
  grid-column: 1 / -1;
}

.martyr-card {
  grid-template-rows: auto 1fr;
}

.martyr-card-body {
  display: flex;
  flex-direction: column;
}

.martyr-card-body .card-button {
  align-self: flex-start;
  margin-top: auto;
}

.martyr-card-body > .martyr-summary {
  margin-bottom: 16px;
}

.martyr-card-body > .martyr-meta {
  -webkit-line-clamp: 2;
}

.martyr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.martyr-tags .martyr-rank {
  margin-bottom: 0;
}

.martyr-place {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 17, 31, 0.05);
  border: 1px solid rgba(9, 17, 31, 0.08);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.martyr-image-wrap.is-placeholder,
.modal-photo.is-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(216, 185, 138, 0.14), transparent 60%),
    linear-gradient(180deg, #0f1a2c, #09111f);
}

.modal-photo.is-placeholder {
  aspect-ratio: 3 / 4;
}

.placeholder-mark {
  width: 42%;
  height: auto;
  opacity: 0.55;
}

.martyr-card.is-skeleton {
  min-height: 520px;
  border-top-color: rgba(143, 35, 50, 0.25);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.7) 30%, rgba(240, 235, 226, 0.9) 50%, rgba(255, 255, 255, 0.7) 70%);
  background-size: 300% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}

@keyframes skeleton {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
}

.page-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(9, 17, 31, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: rgba(143, 35, 50, 0.35);
}

.page-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-gap {
  padding: 0 4px;
  color: var(--text-soft);
}

.modal-rank {
  display: block;
  margin-bottom: 4px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

.modal-loading {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-soft);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.share-status {
  color: var(--text-soft);
  font-size: 0.88rem;
  word-break: break-all;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand p {
  margin: 0;
}

.footer-brand strong {
  color: var(--text);
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

@media (max-width: 820px) {
  .martyr-card.is-skeleton {
    min-height: 420px;
  }

  .pagination {
    gap: 6px;
  }

  .page-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 0 10px;
  }

  .page-nav {
    order: 2;
    flex: 1 1 40%;
  }
}

@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;
  }
}
