:root {
  --color-bg: #070a10;
  --color-bg-elevated: #101622;
  --color-bg-soft: #121a2a;
  --color-primary: #1e7edb;
  --color-primary-soft: rgba(30, 126, 219, 0.16);
  --color-text: #f5f7fb;
  --color-text-muted: #9aa4c0;
  --color-border: #222b3d;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);
  --transition-fast: 0.16s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #15213c 0, #05070c 55%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(4, 8, 16, 0.96),
    rgba(4, 8, 16, 0.9)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.brand {
  flex: 0 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #1e7edb 0, #0b1530 42%);
  color: #f9fbff;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
}

.brand-link::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: conic-gradient(
    from 210deg,
    #60a5fa,
    #22d3ee,
    #a855f7,
    #60a5fa
  );
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.85);
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent !important;
  border-color: transparent !important;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 10px;
}

.hb-wrap {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hb-wrap .hamburger {
  width: 18px;
  height: 2px;
  position: relative;
  display: block;
  background: rgba(245, 247, 251, 0.95);
  border-radius: 2px;
  box-shadow: 0 5px 0 rgba(245, 247, 251, 0.95),
    0 -5px 0 rgba(245, 247, 251, 0.95);
}

.hb-wrap .hamburger::before,
.hb-wrap .hamburger::after {
  content: "";
  display: none;
}

.mobile-nav {
  display: none;
  position: absolute;
  right: 20px;
  top: calc(100% + 12px);
  width: 240px;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, #020617, #020617);
  border: 1px solid rgba(30, 64, 175, 0.8);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 60;
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 4px 0;
}

.mobile-nav-link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
}

body.mobile-menu-open .mobile-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-sponsors {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-nav-sponsors .nav-dropdown {
  position: relative;
}

.mobile-nav-sponsors .nav-dropdown-toggle {
  display: inline-flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  margin: 4px 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
}

.mobile-nav-sponsors .nav-dropdown-toggle:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-nav .mobile-nav-sponsors .nav-dropdown:not(.is-open) .nav-dropdown-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: none;
  min-height: 0;
}

.mobile-nav .mobile-nav-sponsors .nav-dropdown.is-open .nav-dropdown-menu {
  position: static;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  max-height: min(70vh, 420px);
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
  margin-top: 4px;
  padding: 6px 0;
  border-radius: 10px;
  background: radial-gradient(circle at 0 0, #020617, #020617);
  border: 1px solid rgba(30, 64, 175, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  min-width: 0;
}

.mobile-nav-sponsors .nav-dropdown-item {
  white-space: normal;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 2px 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  min-width: 150px;
  padding: 6px 0;
  border-radius: 10px;
  background: radial-gradient(circle at 0 0, #020617, #020617);
  border: 1px solid rgba(30, 64, 175, 0.8);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 30;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  color: var(--color-text);
  background: transparent;
}


.nav-link {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-link.is-active {
  color: #f9fbff;
  background: radial-gradient(circle at 0 0, #1e7edb 0, #0b1530 70%);
  border-color: rgba(30, 126, 219, 0.85);
}

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

.search-form {
  position: relative;
}

.search-input {
  width: 190px;
  padding: 7px 10px 7px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: radial-gradient(circle at 0 0, #111827, #020617);
  color: var(--color-text);
  font-size: 13px;
  outline: none;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8);
}

.search-input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.search-input:focus {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.search-form::before {
  content: "🔍";
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-55%);
  font-size: 11px;
  opacity: 0.8;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-label {
  font-size: 12px;
  color: var(--color-text-muted);
}

.filter-select {
  padding: 6px 22px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at 0 0, #0b1120, #020617);
  color: var(--color-text);
  font-size: 12px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 13px) 9px, calc(100% - 8px) 9px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.page {
  flex: 1 0 auto;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px 32px;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(
    to bottom,
    rgba(4, 8, 16, 0.7),
    rgba(4, 8, 16, 0.95)
  );
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-link {
  color: var(--color-text-muted);
  padding: 6px 8px;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
}

.footer-copy {
  text-align: right;
}

.hero {
  margin-bottom: 22px;
}

.hero-inner {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.38), transparent 60%),
    linear-gradient(135deg, #020617, #020617);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow-soft);
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 26px);
  letter-spacing: 0.02em;
}

.hero-text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  max-width: 780px;
  line-height: 1.55;
}

.gallery-article {
  margin-bottom: 18px;
}

.gallery-description {
  margin-bottom: 14px;
}

.gallery-description-body {
  position: relative;
}

.gallery-description p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.gallery-description-html {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.gallery-description-html > :last-child {
  margin-bottom: 0;
}

.gallery-description-html p {
  margin: 0 0 10px;
}

.gallery-description-body.gallery-description--collapsed {
  max-height: 3.4em;
  overflow: hidden;
}

.gallery-description-body.gallery-description--collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.2em;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.95));
}

.gallery-description-toggle {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.gallery-description-toggle button {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at 0 0, #020617, #020617);
  color: var(--color-text-muted);
  font-size: 12px;
  cursor: pointer;
}

.gallery-lead-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1.1fr);
  gap: 16px;
  align-items: flex-start;
}

.gallery-lead-text p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.gallery-lead-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-subtle);
}

.gallery-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(200px, 1.1fr);
  gap: 16px;
  margin-top: 16px;
}

.gallery-body-text p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}

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

.gallery-body-thumbs img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 64, 175, 0.5);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 3.3fr) minmax(220px, 0.9fr);
  gap: 24px;
  align-items: flex-start;
}

.layout.layout--picture-full {
  grid-template-columns: minmax(0, 1fr);
}

.content {
  background: rgba(3, 7, 18, 0.9);
  border-radius: var(--radius-lg);
  padding: 14px 16px 18px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(15, 23, 42, 0.9);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

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

.gallery-grid--thumbs {
  margin-top: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-results-grid.gallery-grid--thumbs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gallery-grid--thumbs .gallery-actions {
  display: none;
}

.index-page .gallery-grid--thumbs .gallery-actions {
  display: flex;
}

.gallery-card {
  background: radial-gradient(circle at 0 0, #020617, #020617);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.gallery-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 10px;
  margin-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.btn-vote {
  flex: 0 0 26px;
  padding: 2px 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.6);
  color: var(--color-text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast);
}

.btn-vote:hover {
  transform: translateY(-1px);
}

.btn-like:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
}

.btn-dislike:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.7);
  color: #fecaca;
}

.index-page .gallery-actions {
  margin-top: 6px;
  padding: 4px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  border: none;
  border-radius: 0;
  background: transparent;
}

.index-page .gallery-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.index-page .gallery-card:hover {
  border-color: rgba(148, 163, 184, 0.42);
}

.index-page .btn-vote {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0;
  border: none;
  background: transparent;
  position: relative;
  border-radius: 0;
}

.index-page .btn-vote:hover {
  transform: translateY(-1px);
}

.index-page .btn-vote.btn-like:hover,
.index-page .btn-vote.btn-dislike:hover {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.35);
}

.index-page .btn-vote.btn-like::before,
.index-page .btn-vote.btn-dislike::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.95;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.index-page .btn-vote .vote-count {
  font-size: 12px;
  line-height: 1;
  color: var(--color-text-muted);
}

.index-page .btn-vote.is-active .vote-count {
  color: #f9fafb;
}

.index-page .btn-vote:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.index-page .btn-vote.btn-like::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5e7eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 9V5a3 3 0 0 0-3-3l-1 7'/%3E%3Cpath d='M5 10h11a2 2 0 0 1 2 2l-1 7a2 2 0 0 1-2 2H5z'/%3E%3Cpath d='M5 10v11'/%3E%3C/svg%3E");
}

.index-page .btn-vote.btn-dislike::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5e7eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 15v4a3 3 0 0 0 3 3l1-7'/%3E%3Cpath d='M19 14H8a2 2 0 0 1-2-2l1-7a2 2 0 0 1 2-2h10z'/%3E%3Cpath d='M19 14V3'/%3E%3C/svg%3E");
}

.gallery-vote-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.btn-vote-thumb {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(15, 23, 42, 0.35);
  color: rgba(203, 213, 225, 0.95);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast);
}

.btn-vote-thumb__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-vote-thumb__count {
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.btn-vote-thumb:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-vote-thumb--like:hover:not(:disabled) {
  border-color: rgba(34, 197, 94, 0.55);
  color: #bbf7d0;
}

.btn-vote-thumb--dislike:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.btn-vote-thumb--like.is-active {
  border-color: rgba(34, 197, 94, 0.85);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.btn-vote-thumb--dislike.is-active {
  border-color: rgba(248, 113, 113, 0.85);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.btn-vote-thumb:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.gallery-vote-status {
  margin: 8px 0 0;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(148, 163, 184, 0.95);
  text-align: center;
}

.gallery-vote-status[hidden] {
  display: none !important;
}

.gallery-vote-status--global {
  text-align: left;
}

.gallery-meta-section {
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 12px 12px 14px;
  border-radius: var(--radius-lg);
  background: rgba(3, 7, 18, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.9);
}

.gallery-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
}

.gallery-actions-global {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: 10px;
  width: 100%;
  max-width: 360px;
}

.btn-vote-global {
  min-width: 80px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at 0 0, #020617, #020617);
  color: var(--color-text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast);
}

.btn-vote-global:hover {
  transform: translateY(-1px);
}

.btn-vote-global.btn-like {
  border-color: rgba(34, 197, 94, 0.8);
}

.btn-vote-global.btn-dislike {
  border-color: rgba(248, 113, 113, 0.8);
}

.pics-content {
  padding-bottom: 14px;
}

.pics-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 12px;
}

.pics-controls--bottom {
  margin-top: 12px;
}

.pics-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.85);
  color: var(--color-text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: transform var(--transition-fast),
    border-color var(--transition-fast), color var(--transition-fast);
}

.pics-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.9);
  color: var(--color-text);
}

.pics-viewer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0 0;
}

/* Picture page: same inner width as gallery .hero-inner (hero-title column) */
.layout--picture-full .pics-viewer {
  margin-left: -16px;
  margin-right: -16px;
  width: calc(100% + 32px);
  max-width: none;
  box-sizing: border-box;
  padding: 10px 20px 0;
}

.layout--picture-full .pics-viewer > a {
  display: block;
  width: 100%;
}

.pics-image {
  width: 100%;
  max-width: 760px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-subtle);
}

.layout--picture-full .pics-image {
  max-width: 100%;
  width: 100%;
  height: auto;
}

.pics-recommend {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.pics-recommend .pics-recommend-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .pics-recommend .pics-recommend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pics-info {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pics-info-text {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

.pics-info-link {
  display: flex;
  width: fit-content;
  margin: 0 auto;
  text-align: center;
}


.meta-line {
  margin-bottom: 4px;
  font-size: 13px;
}

.meta-label {
  font-weight: 600;
  color: var(--color-text);
  margin-right: 4px;
}

.meta-pill {
  display: inline-block;
  padding: 3px 8px;
  margin-right: 4px;
  margin-bottom: 2px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  font-size: 11px;
  color: var(--color-text-muted);
}

.affiliate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #1e40af, #020617 70%);
  border: 1px solid rgba(59, 130, 246, 0.9);
  color: #f9fafb;
  font-size: 12px;
  white-space: nowrap;
}

.affiliate-button:hover {
  background: radial-gradient(circle at 0 0, #2563eb, #020617 70%);
}

.sponsor-affiliate {
  margin-top: 10px;
}

.recommend-strip {
  margin-top: 18px;
}

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

.recommend-grid .gallery-card {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  max-width: 230px;
  margin: 0 auto;
}

.recommend-grid .gallery-thumb {
  max-width: 230px;
  max-height: 384px;
  margin: 0 auto;
  overflow: hidden;
}

.recommend-grid .gallery-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery-title {
  margin: 10px 10px 4px;
  font-size: 13px;
}

.vote-bar {
  height: 4px;
  margin: 8px 10px 0;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.vote-bar-like {
  height: 100%;
  width: 0%;
  background: rgba(34, 197, 94, 0.75);
  transition: width var(--transition-fast);
}

.vote-bar-dislike {
  height: 100%;
  width: 0%;
  background: rgba(248, 113, 113, 0.75);
  transition: width var(--transition-fast);
}

.vote-bar + .gallery-title {
  margin: 6px 10px 4px;
}

.gallery-meta {
  margin: 0 10px 10px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.gallery-sidebar-thumbs-grid .gallery-meta {
  display: none;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  border-color: rgba(59, 130, 246, 0.65);
  background: radial-gradient(circle at 0 0, #020617, #020617);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.page-btn {
  min-width: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: radial-gradient(circle at 0 0, #020617, #020617);
  color: var(--color-text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast);
}

.page-btn:hover {
  border-color: rgba(59, 130, 246, 0.9);
  color: var(--color-text);
  transform: translateY(-1px);
}

.page-btn.is-current {
  border-color: rgba(59, 130, 246, 1);
  background: radial-gradient(circle at 0 0, #1d4ed8, #020617 70%);
  color: #f9fbff;
}

.page-btn--ghost {
  background: transparent;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-section {
  background: rgba(3, 7, 18, 0.95);
  border-radius: var(--radius-lg);
  padding: 12px 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-subtle);
}

.ad-wrapper {
  margin: 12px 0;
}

.ad-slot {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: radial-gradient(circle at 0 0, rgba(30, 126, 219, 0.22), rgba(2, 6, 23, 0.6));
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-weight: 700;
  padding: 10px;
  text-align: center;
}

.ad-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  min-height: 110px;
}

.ad-sidebar-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ad-sidebar-slot {
  position: relative;
  min-height: 250px;
}

.ad-sidebar-slot--blocked .ad-iframe {
  display: none !important;
}

.adblock-fallback {
  display: none;
  box-sizing: border-box;
  min-height: 250px;
  width: 100%;
  padding: 18px 14px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: radial-gradient(
    circle at 50% 0%,
    rgba(30, 41, 59, 0.55),
    rgba(15, 23, 42, 0.92)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
}

.ad-sidebar-slot--blocked .adblock-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.adblock-fallback[hidden] {
  display: none !important;
}

.adblock-fallback-title {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.adblock-fallback-text,
.adblock-fallback-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.88);
  max-width: 220px;
}

.adblock-fallback-hint {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.75);
}

.ad-slot--wide .ad-placeholder {
  min-height: 110px;
}

.ad-slot--wide-mid .ad-placeholder {
  min-height: 96px;
}

.ad-slot--sidebar .ad-placeholder {
  min-height: 250px;
}

.sidebar-section--thumbs {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 230px;
  margin: 0 auto;
}

.sidebar-title {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  text-align: center;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.pics-sidebar-thumbs .sidebar-card--extra {
  display: none;
}

.sidebar-card {
  background: radial-gradient(circle at 0 0, #020617, #020617);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
  max-width: 230px;
  margin: 0 auto;
}

.sidebar-card-thumb {
  position: relative;
  width: 100%;
  max-width: 230px;
  max-height: 384px;
  margin: 0 auto;
  overflow: hidden;
}

.sidebar-card-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.sidebar-card-title {
  margin: 8px 8px 10px;
  font-size: 12px;
  color: var(--color-text);
  text-align: center;
}

.sponsor-banner-link {
  display: block;
}

.sponsor-banner-link img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-subtle);
}

.sidebar-list--cards .sidebar-link {
  display: block;
  padding: 8px 9px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 0 0, rgba(30, 64, 175, 0.45), #020617);
  border: 1px solid rgba(59, 130, 246, 0.75);
  font-size: 13px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
}

.sidebar-list--compact .sidebar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 2px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.sidebar-link {
  color: var(--color-text-muted);
  font-size: 13px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.sidebar-link:hover {
  color: var(--color-text);
  transform: translateX(2px);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  flex-shrink: 0;
}

@media (max-width: 1040px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .main-nav {
    display: none;
  }

  .hb-wrap {
    display: inline-flex;
    margin-left: auto;
    order: 2;
  }

  .mobile-nav {
    display: block;
  }

  .header-tools {
    margin-left: 0;
    order: 4;
    flex: 0 0 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hb-wrap {
    display: inline-flex;
    margin-left: auto;
    order: 2;
  }

  .mobile-nav {
    display: block;
  }

  .header-tools {
    margin-left: 0;
    order: 4;
    flex: 0 0 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

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

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

  .pics-sidebar-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
  }

  .pics-sidebar-thumbs .sidebar-card--extra {
    display: block;
  }

  .pics-sidebar-thumbs .sidebar-card {
    max-width: none;
    margin: 0;
  }

  .pics-sidebar-thumbs .sidebar-card-thumb {
    max-width: none;
    max-height: 384px;
    overflow: hidden;
  }

  .pics-sidebar-thumbs .sidebar-card-thumb img {
    height: auto;
    object-fit: cover;
  }

  .pics-sidebar-section {
    max-width: 100%;
    margin: 0;
  }

  .hero-inner {
    padding: 16px 14px;
  }

  .layout--picture-full .pics-viewer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .gallery-sidebar-thumbs {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .gallery-page-sidebar {
    display: none;
  }

  .gallery-sidebar-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
  }

  .gallery-sidebar-thumbs-grid .sidebar-card {
    max-width: none;
    margin: 0;
    transform: translateZ(0);
  }

  .gallery-sidebar-thumbs-grid .sidebar-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .gallery-sidebar-thumbs-grid .sidebar-card-thumb {
    max-width: none;
    max-height: 384px;
    overflow: hidden;
  }

  .gallery-sidebar-thumbs-grid .sidebar-card-title {
    margin: 10px 10px 4px;
    font-size: 13px;
  }

  .gallery-sidebar-thumbs-grid .gallery-meta {
    display: block;
  }

  .gallery-page-sidebar-thumbs {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .gallery-page-sidebar-grid {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-inline: 14px;
  }

  .hb-wrap {
    margin-left: auto;
    order: 2;
  }

  .header-tools {
    width: 100%;
    flex: 0 0 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-left: 0;
  }

  .search-form {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .main-nav {
    gap: 6px;
  }

  .nav-link {
    padding-inline: 8px;
  }

  .page {
    padding-inline: 14px;
  }

  .footer-inner {
    padding-inline: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
  }

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

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

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

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

  .pics-sidebar-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pics-sidebar-thumbs .sidebar-card {
    max-width: none;
    margin: 0;
  }

  .pics-sidebar-thumbs .sidebar-card-thumb {
    max-width: none;
  }

  .pics-sidebar-section {
    max-width: 100%;
    margin: 0;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-text {
    font-size: 13px;
  }

  .gallery-lead-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-body-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pagination {
    gap: 4px;
  }

  .page-btn--ghost:nth-of-type(1),
  .page-btn--ghost:nth-of-type(2),
  .page-btn:nth-of-type(3),
  .page-btn:nth-of-type(4),
  .page-btn:nth-of-type(5),
  .page-btn:nth-of-type(6),
  .page-btn--ghost:nth-of-type(7),
  .page-btn--ghost:nth-of-type(8) {
    display: none;
  }

  .page-btn.is-current {
    display: inline-flex;
  }

  .gallery-sidebar-thumbs {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .gallery-page-sidebar {
    display: none;
  }

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

  .gallery-sidebar-thumbs-grid .sidebar-card {
    max-width: none;
    margin: 0;
  }

  .gallery-sidebar-thumbs-grid .sidebar-card-thumb {
    max-width: none;
    max-height: 384px;
    overflow: hidden;
  }

  .gallery-sidebar-thumbs-grid .sidebar-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .gallery-sidebar-thumbs-grid .sidebar-card-title {
    margin: 10px 10px 4px;
    font-size: 13px;
  }

  .gallery-sidebar-thumbs-grid .gallery-meta {
    display: block;
  }

  .gallery-page-sidebar-thumbs {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .gallery-page-sidebar-grid {
    width: 100%;
  }

  .ad-wrapper {
    margin: 10px 0;
  }

  .ad-placeholder {
    min-height: 90px;
  }

  .ad-slot--sidebar .ad-placeholder {
    min-height: 210px;
  }
}

