:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #191b20;
  --panel-strong: #22252c;
  --text: #333333;
  --muted: #4a4a4a;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #f05d5e;
  --accent-2: #42d6a4;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(240, 93, 94, 0.12), transparent 280px),
    radial-gradient(circle at top right, rgba(66, 214, 164, 0.12), transparent 320px),
    var(--bg);
}

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

.app-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 16px 14px 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin: 0 0 8px;
  padding: 0 8px;
  border: 1px solid rgba(240, 93, 94, 0.45);
  border-radius: 999px;
  color: #ffb9ba;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 8vw, 48px);
  line-height: 0.95;
  letter-spacing: 0;
}

.support-link,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.support-link {
  min-width: 58px;
  padding: 0 14px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 8px 0 14px;
  background: linear-gradient(180deg, var(--bg), rgba(16, 17, 20, 0.84));
  backdrop-filter: blur(14px);
}

.tab {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #333333;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  border-color: rgba(240, 93, 94, 0.7);
  background: linear-gradient(135deg, rgba(240, 93, 94, 0.95), rgba(255, 149, 87, 0.92));
  color: #333333;
  box-shadow: 0 10px 28px rgba(240, 93, 94, 0.22);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0 14px;
}

.section-head h2 {
  color: #333333;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-head span {
  color: #4a4a4a;
  font-size: 13px;
  font-weight: 700;
}

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

.photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
}

.photo-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #262931;
  cursor: pointer;
}

.photo-button img,
.photo-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.photo-button img {
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.photo-button.has-image img {
  opacity: 1;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(240, 93, 94, 0.24), transparent 55%),
    linear-gradient(315deg, rgba(66, 214, 164, 0.2), transparent 56%),
    #252832;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.photo-button.has-image .photo-placeholder {
  display: none;
}

.photo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

.photo-meta h3 {
  color: #333333;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
}

.photo-meta p {
  margin-top: 4px;
  color: #4a4a4a;
  font-size: 12px;
  line-height: 1.35;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-button {
  color: #333333;
  width: 42px;
  height: 36px;
  font-size: 12px;
}

.video-button {
  border-color: rgba(66, 214, 164, 0.45);
  background: rgba(66, 214, 164, 0.12);
}

@media (min-width: 700px) {
  .app-shell {
    padding: 24px 20px 40px;
  }

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

  .photo-meta {
    padding: 12px;
  }
}

@media (max-width: 430px) {
  .tabs {
    gap: 6px;
  }

  .tab {
    height: 38px;
    font-size: 13px;
  }

  .photo-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-actions {
    width: 100%;
  }

  .icon-button {
    flex: 1 1 0;
  }
}
