/* Wallpaper Collection Design System */
:root {
  --bg-main: #07101e;
  --bg-surface: #0e1828;
  --bg-card: #101b2c;
  --bg-card-hover: #152238;
  --bg-glass: rgba(7, 16, 30, 0.92);
  --border-subtle: rgba(120, 150, 210, 0.15);
  --border-hover: rgba(120, 150, 210, 0.28);
  --border-focus: #5b8cff;
  --text-primary: #f3f6fc;
  --text-secondary: #a9b7ce;
  --text-muted: #71809a;
  --accent-blue: #5b8cff;
  --font-main:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", cursive;
  --font-mono: "JetBrains Mono", monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}
body {
  background-color: var(--bg-main) !important;
  background-image:
    radial-gradient(
      ellipse 60% 40% at 20% 0%,
      rgba(116, 107, 255, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 50% at 85% 20%,
      rgba(66, 183, 255, 0.06) 0%,
      transparent 60%
    );
  background-attachment: fixed;
  color: var(--text-primary) !important;
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(120, 150, 210, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 150, 210, 0.35);
}

/* Navigation Bar */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 82px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
}
.navbar-container {
  width: 100%;
  max-width: 1800px;
  padding: 0 55px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(75, 140, 255, 0.4);
  flex-shrink: 0;
}
.brand-info {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}
.brand-name-light {
  color: #a9d1ff;
}
.brand-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-top: 2px;
}

.nav-center-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #a9b7ce;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}
.nav-link:hover {
  color: #fff;
}
.nav-link.active {
  color: #fff;
  font-weight: 600;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #3b82f6;
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-nav-search {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-nav-search:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-primary-random {
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: #3b82f6;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(75, 140, 255, 0.4);
  transition: all var(--transition-fast);
}
.btn-primary-random:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}
.kbd-badge {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}

.btn-nav-ghost {
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(14, 24, 40, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-nav-ghost:hover {
  background: rgba(20, 31, 50, 0.8);
  border-color: var(--border-hover);
  color: #fff;
}

/* Hero */
.hero-wrapper {
  position: relative;
  min-height: 520px;
  background-color: var(--bg-main);
  background-image:
    linear-gradient(
      90deg,
      #07101e 0%,
      rgba(7, 16, 30, 0.96) 28%,
      rgba(7, 16, 30, 0.65) 52%,
      rgba(7, 16, 30, 0.2) 100%
    ),
    url("/api/random");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-container {
  width: 100%;
  max-width: 1800px;
  padding: 40px 55px 50px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.hero-content-left {
  max-width: 1050px;
  width: 100%;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(14, 24, 40, 0.85);
  border: 1px solid rgba(91, 140, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: #c5d0e0;
  margin-bottom: 24px;
}
.glow-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.hero-title-main {
  font-size: clamp(38px, 4.2vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-title-white {
  color: #ffffff;
  display: block;
}
.hero-title-gradient {
  background: linear-gradient(90deg, #afa7ff 0%, #67bfff 50%, #4ed1ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}
.hero-description-text {
  font-size: 20px;
  line-height: 1.5;
  color: #aab8cd;
  margin-bottom: 30px;
  max-width: 680px;
  font-weight: 400;
}

.hero-features-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.feature-item-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: #aab8cd;
  white-space: nowrap;
  flex-shrink: 0;
}
.feature-icon-wrapper {
  color: #5b8cff;
  display: flex;
  align-items: center;
}

.hero-art-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-right: 20px;
  user-select: none;
}
.hero-script-phrase {
  font-family: var(--font-script);
  font-size: 58px;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.72);
  transform: rotate(-6deg);
  margin-bottom: 45px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.hero-subscript-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero-subscript-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}
.hero-art-line {
  width: 90px;
  height: 2px;
  background: rgba(91, 140, 255, 0.6);
  margin-top: 10px;
}

.hero-search-wrapper {
  width: 100%;
  max-width: 1000px;
  position: relative;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.hero-search-box {
  width: 100%;
  height: 64px;
  background: rgba(14, 24, 40, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(130, 160, 220, 0.28);
  border-radius: var(--radius-lg);
  padding: 0 130px 0 62px;
  font-size: 17px;
  font-family: var(--font-main);
  color: #fff;
  outline: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-fast);
}
.hero-search-box:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.25);
}
.hero-search-box::placeholder {
  color: #71809a;
}
.search-magnifier-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #7e97b8;
  pointer-events: none;
  z-index: 3;
  display: block;
  transition: color var(--transition-fast);
}
.hero-search-wrapper:focus-within .search-magnifier-icon {
  color: #5b8cff;
}
.search-shortcut-badge {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14, 24, 40, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: #71809a;
  pointer-events: none;
  z-index: 3;
}

/* Category Filters Carousel */
.categories-nav-section {
  max-width: 1800px;
  padding: 24px 55px 20px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}
.categories-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  position: relative;
}
.categories-bar-scrollable {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 4px 0;
  flex: 1 1 auto;
}
.categories-bar-scrollable::-webkit-scrollbar {
  display: none;
}
.category-pill-btn {
  height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  background: #0b1524;
  border: 1px solid rgba(100, 140, 200, 0.18);
  color: #c5d0e0;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  user-select: none;
  flex-shrink: 0;
}
.category-pill-btn:hover {
  background: #101b2c;
  border-color: var(--border-hover);
  color: #fff;
}
.category-pill-btn.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(91, 140, 255, 0.45);
  color: #93bbff;
  box-shadow: 0 2px 12px rgba(75, 140, 255, 0.15);
}
.pill-count-badge {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
}
.category-pill-btn.active .pill-count-badge {
  background: rgba(91, 140, 255, 0.2);
  color: #93bbff;
}

.category-nav-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0b1524;
  border: 1px solid rgba(100, 140, 200, 0.18);
  color: #a9b7ce;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  user-select: none;
}
.category-nav-arrow:hover:not(:disabled) {
  color: #fff;
  background: #101b2c;
  border-color: var(--border-hover);
}
.category-nav-arrow:disabled,
.category-nav-arrow.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.section-divider-line {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 55px;
}
.section-divider-line hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Results Header */
.gallery-section-main {
  max-width: 1800px;
  padding: 24px 55px 60px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}
.results-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.results-count-title {
  font-size: 16px;
  font-weight: 500;
  color: #b8c4d6;
}
.results-count-bold {
  font-weight: 700;
  color: #fff;
}

.view-switcher-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.view-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  background: #0b1524;
  border: 1px solid rgba(100, 140, 200, 0.18);
  color: #a9b7ce;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}
.view-btn:hover {
  color: #fff;
  background: #101b2c;
  border-color: var(--border-hover);
}
.view-btn.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(91, 140, 255, 0.45);
  color: #93bbff;
  box-shadow: 0 2px 12px rgba(75, 140, 255, 0.15);
}

/* ==========================================================================
   VIEW MODES: COMFORT GRID / MASONRY / LIST
   ========================================================================== */

/* VIEW 1: COMFORT GRID (.view-grid or default) */
.wallpaper-grid-container,
.wallpaper-grid-container.view-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 14px !important;
  min-height: 200px;
  width: 100%;
}
@media (max-width: 1600px) {
  .wallpaper-grid-container,
  .wallpaper-grid-container.view-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}
@media (max-width: 1300px) {
  .wallpaper-grid-container,
  .wallpaper-grid-container.view-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (max-width: 992px) {
  .wallpaper-grid-container,
  .wallpaper-grid-container.view-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 680px) {
  .wallpaper-grid-container,
  .wallpaper-grid-container.view-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

.wallpaper-card-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform var(--transition-smooth),
    border-color var(--transition-fast),
    box-shadow var(--transition-smooth);
  cursor: pointer;
  aspect-ratio: 16 / 10;
}
.wallpaper-card-item:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.4);
  box-shadow:
    0 14px 28px -8px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(91, 140, 255, 0.2);
}
.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: #0b1220;
  display: block;
}
.wallpaper-card-item:hover .card-thumb-img {
  transform: scale(1.06);
}

.card-hover-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 16, 30, 0.2) 0%,
    rgba(7, 16, 30, 0.88) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}
.wallpaper-card-item:hover .card-hover-mask {
  opacity: 1;
}
.card-mask-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge-card-cat {
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e2e8f0;
}
.card-action-btns {
  display: flex;
  gap: 6px;
}
.btn-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-card-icon:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  transform: scale(1.1);
}
.card-mask-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-art-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.card-art-res {
  font-size: 11px;
  color: #a9b7ce;
}

/* VIEW 2: DYNAMIC STAGGERED MASONRY VIEW (.view-masonry) */
.wallpaper-grid-container.view-masonry {
  display: block !important;
  column-count: 4 !important;
  column-gap: 18px !important;
  width: 100% !important;
}
@media (min-width: 1700px) {
  .wallpaper-grid-container.view-masonry {
    column-count: 5 !important;
    column-gap: 20px !important;
  }
}
@media (max-width: 1200px) {
  .wallpaper-grid-container.view-masonry {
    column-count: 3 !important;
    column-gap: 14px !important;
  }
}
@media (max-width: 768px) {
  .wallpaper-grid-container.view-masonry {
    column-count: 2 !important;
    column-gap: 10px !important;
  }
}

.wallpaper-grid-container.view-masonry .wallpaper-card-item {
  display: inline-block !important;
  width: 100% !important;
  margin-bottom: 18px !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
  vertical-align: top;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-subtle) !important;
  position: relative !important;
  transition:
    transform var(--transition-smooth),
    border-color var(--transition-fast),
    box-shadow var(--transition-smooth) !important;
}

.wallpaper-grid-container.view-masonry .wallpaper-card-item:hover {
  transform: translateY(-6px) scale(1.01) !important;
  border-color: rgba(91, 140, 255, 0.45) !important;
  box-shadow:
    0 16px 32px -8px rgba(0, 0, 0, 0.75),
    0 0 24px rgba(91, 140, 255, 0.25) !important;
}

/* Staggered Visual Rhythm with Organic Heights */
.wallpaper-grid-container.view-masonry .wallpaper-card-item:nth-child(8n + 1) {
  aspect-ratio: 16 / 10 !important;
}
.wallpaper-grid-container.view-masonry .wallpaper-card-item:nth-child(8n + 2) {
  aspect-ratio: 4 / 3 !important;
}
.wallpaper-grid-container.view-masonry .wallpaper-card-item:nth-child(8n + 3) {
  aspect-ratio: 1 / 1 !important;
}
.wallpaper-grid-container.view-masonry .wallpaper-card-item:nth-child(8n + 4) {
  aspect-ratio: 3 / 2 !important;
}
.wallpaper-grid-container.view-masonry .wallpaper-card-item:nth-child(8n + 5) {
  aspect-ratio: 4 / 5 !important;
}
.wallpaper-grid-container.view-masonry .wallpaper-card-item:nth-child(8n + 6) {
  aspect-ratio: 16 / 9 !important;
}
.wallpaper-grid-container.view-masonry .wallpaper-card-item:nth-child(8n + 7) {
  aspect-ratio: 5 / 4 !important;
}
.wallpaper-grid-container.view-masonry .wallpaper-card-item:nth-child(8n + 8) {
  aspect-ratio: 3 / 4 !important;
}

.wallpaper-grid-container.view-masonry .card-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.wallpaper-grid-container.view-masonry
  .wallpaper-card-item:hover
  .card-thumb-img {
  transform: scale(1.05) !important;
}

/* VIEW 3: LIST VIEW (.view-list) - Clean Horizontal Row Layout */
.wallpaper-grid-container.view-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.wallpaper-grid-container.view-list .wallpaper-card-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 88px !important;
  padding: 10px 24px 10px 12px !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  gap: 20px !important;
  overflow: hidden !important;
  transition: all var(--transition-fast) !important;
}

.wallpaper-grid-container.view-list .wallpaper-card-item:hover {
  background: var(--bg-card-hover) !important;
  border-color: rgba(91, 140, 255, 0.45) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.wallpaper-grid-container.view-list .card-thumb-img {
  width: 128px !important;
  height: 74px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.wallpaper-grid-container.view-list .card-hover-mask {
  position: static !important;
  inset: auto !important;
  opacity: 1 !important;
  background: transparent !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: auto !important;
  flex: 1 1 auto !important;
}

/* 1. Title & Meta Block (Left-Aligned next to thumbnail) */
.wallpaper-grid-container.view-list .card-mask-bottom {
  order: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  overflow: hidden !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.wallpaper-grid-container.view-list .card-art-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: -0.01em !important;
}

.wallpaper-grid-container.view-list .card-art-res {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #8e9fb8 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* 2. Badge & Action Buttons Block (Far-Right Aligned) */
.wallpaper-grid-container.view-list .card-mask-top {
  order: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

.wallpaper-grid-container.view-list .badge-card-cat {
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  background: rgba(59, 130, 246, 0.12) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(91, 140, 255, 0.28) !important;
  border-radius: var(--radius-full) !important;
}

.wallpaper-grid-container.view-list .card-action-btns {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.wallpaper-grid-container.view-list .btn-card-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: #0b1524 !important;
  border: 1px solid rgba(100, 140, 200, 0.22) !important;
  color: #a9b7ce !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all var(--transition-fast) !important;
}

.wallpaper-grid-container.view-list .btn-card-icon:hover {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 768px) {
  .wallpaper-grid-container.view-list .wallpaper-card-item {
    padding: 8px 14px 8px 8px !important;
    gap: 12px !important;
  }
  .wallpaper-grid-container.view-list .card-thumb-img {
    width: 96px !important;
    height: 58px !important;
  }
  .wallpaper-grid-container.view-list .card-art-title {
    font-size: 14px !important;
  }
  .wallpaper-grid-container.view-list .badge-card-cat {
    display: none !important;
  }
  .wallpaper-grid-container.view-list .card-mask-top {
    gap: 8px !important;
  }
  .wallpaper-grid-container.view-list .btn-card-icon {
    width: 36px !important;
    height: 36px !important;
  }
}

/* Pagination */
.pagination-wrap-main {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pagination-pages-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.page-nav-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: #0b1524;
  border: 1px solid rgba(100, 140, 200, 0.18);
  color: #a9b7ce;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.page-nav-btn:hover:not(:disabled) {
  background: #101b2c;
  border-color: var(--border-hover);
  color: #fff;
}
.page-nav-btn.active {
  background: #3b82f6;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 12px rgba(75, 140, 255, 0.35);
}
.page-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-ellipsis-dots {
  color: #71809a;
  padding: 0 4px;
  font-size: 14px;
}
.pagination-footer-text {
  font-size: 13px;
  color: #71809a;
}

/* Footer */
.site-footer-main {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a1322;
  padding: 50px 55px 30px;
  margin-top: auto;
}
.footer-inner-box {
  max-width: 1800px;
  margin: 0 auto;
}
.footer-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 35px;
}
.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}
.footer-brand-desc {
  font-size: 14px;
  color: #a9b7ce;
  max-width: 440px;
  line-height: 1.6;
}
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #93bbff;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 3px solid rgba(91, 140, 255, 0.5);
}
.footer-links-col {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-link-a {
  font-size: 14px;
  color: #a9b7ce;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all var(--transition-fast);
}
.footer-link-a svg {
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity var(--transition-fast);
}
.footer-link-a:hover {
  color: #fff;
  background: rgba(91, 140, 255, 0.08);
}
.footer-link-a:hover svg {
  opacity: 1;
  color: #5b8cff;
}
.footer-bottom-row {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #71809a;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-card {
  background: #0e1828;
  border: 1px solid rgba(120, 150, 210, 0.3);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  padding: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-head h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.modal-close-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #a9b7ce;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.api-route-block {
  background: #07101e;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.api-method-get {
  color: #42b7ff;
  font-weight: 700;
  margin-right: 8px;
}

.toast-message {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #101b2c;
  color: #fff;
  border: 1px solid rgba(91, 140, 255, 0.4);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(91, 140, 255, 0.2);
  z-index: 3000;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .hero-art-right {
    display: none;
  }
}
@media (max-width: 900px) {
  .navbar-container {
    padding: 0 20px;
  }
  .nav-center-menu {
    display: none;
  }
  .hero-container {
    padding: 30px 20px 40px;
  }
  .hero-title-main {
    font-size: 38px;
  }
  .hero-description-text {
    font-size: 16px;
  }
  .hero-features-bar {
    gap: 20px;
  }
  .categories-nav-section,
  .section-divider-line,
  .gallery-section-main,
  .site-footer-main {
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer-grid-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   GLIGHTBOX FULL-SCREEN CLEAN IMAGE VIEWER (NO WHITE CAPTIONS)
   ========================================================================== */
.goverlay {
  background: rgba(4, 9, 18, 0.94) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.gslide-description,
.gdesc-inner,
.gslide-title,
.gslide-desc,
.description-bottom,
.description-top,
.description-left,
.description-right {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

.gslide-media {
  box-shadow: none !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.gslide-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  background: transparent !important;
}

.gslide-image img {
  max-height: 94vh !important;
  max-width: 95vw !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(0, 0, 0, 0.6) !important;
}

/* Watermark Overlay on Lightbox Images - Bottom Right Only */
.gslide-media {
  position: relative !important;
}

.gslide-image {
  position: relative !important;
}

.gslide-image::after {
  content: "Wallpapers.SumanOnline.Com" !important;
  position: absolute !important;
  bottom: 24px !important;
  right: 28px !important;
  z-index: 9999 !important;
  pointer-events: none !important;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  color: rgba(255, 255, 255, 0.4) !important;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.6) !important;
  background: none !important;
  user-select: none !important;
}

.gprev,
.gnext,
.gclose {
  background: rgba(14, 24, 40, 0.75) !important;
  border: 1px solid rgba(100, 140, 200, 0.25) !important;
  border-radius: 50% !important;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.gprev:hover,
.gnext:hover,
.gclose:hover {
  background: #152238 !important;
  border-color: #5b8cff !important;
  transform: scale(1.05);
}

.gprev svg path,
.gnext svg path,
.gclose svg path {
  fill: #ffffff !important;
}

/* Floating Back to Top Button */
.floating-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0e1828;
  border: 1px solid rgba(100, 140, 200, 0.28);
  color: #f3f6fc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(59, 130, 246, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.floating-back-to-top:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES (≤ 768px)
   Only additive media queries — no changes to existing desktop styles.
   ========================================================================== */

@media (max-width: 768px) {
  /* ── Navbar ── */
  .site-navbar {
    height: 62px;
  }
  .navbar-container {
    padding: 0 14px;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .brand-logo svg {
    width: 20px;
    height: 20px;
  }
  .nav-brand {
    gap: 10px;
  }
  .brand-name {
    font-size: 17px;
  }
  .brand-tagline {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .nav-actions {
    gap: 8px;
  }
  /* Hide API Docs and GitHub buttons on mobile */
  .nav-actions .btn-nav-ghost {
    display: none;
  }
  .btn-nav-search {
    width: 38px;
    height: 38px;
  }
  .btn-primary-random {
    height: 38px;
    padding: 0 12px;
    border-radius: 50%;
    font-size: 13px;
    width: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    box-shadow: none;
  }
  .btn-primary-random:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: none;
    box-shadow: none;
  }
  .btn-primary-random .kbd-badge {
    display: none;
  }
  .btn-primary-random span:not(.kbd-badge) {
    display: none;
  }
  .btn-primary-random svg {
    margin: 0;
  }

  /* ── Hero Section ── */
  .hero-wrapper {
    min-height: 380px;
    background-image:
      linear-gradient(
        180deg,
        #07101e 0%,
        rgba(7, 16, 30, 0.92) 35%,
        rgba(7, 16, 30, 0.55) 100%
      ),
      url("/api/random");
    background-position: center center;
  }
  .hero-container {
    padding: 28px 16px 32px;
    flex-direction: column;
  }
  .hero-content-left {
    max-width: 100%;
  }
  .hero-badge-pill {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 16px;
  }
  .hero-title-main {
    font-size: 28px;
    margin-bottom: 14px;
  }
  .hero-description-text {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.55;
  }
  .hero-features-bar {
    display: none;
  }
  .hero-search-wrapper {
    max-width: 100%;
  }
  .hero-search-box {
    height: 50px;
    font-size: 14px;
    padding: 0 60px 0 46px;
    border-radius: 14px;
  }
  .search-magnifier-icon {
    left: 16px;
  }
  .search-magnifier-icon svg,
  .search-magnifier-icon {
    width: 18px;
    height: 18px;
  }
  .search-shortcut-badge {
    display: none;
  }

  /* ── Category Pills Carousel ── */
  .categories-nav-section {
    padding: 14px 14px 12px;
  }
  .categories-carousel-wrapper {
    gap: 8px;
  }
  .category-pill-btn {
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
    gap: 6px;
  }
  .category-pill-btn svg {
    width: 13px;
    height: 13px;
  }
  .pill-count-badge {
    font-size: 10px;
    padding: 1px 6px;
  }
  .category-nav-arrow {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
  .category-nav-arrow svg {
    width: 16px;
    height: 16px;
  }

  /* ── Section Divider ── */
  .section-divider-line {
    padding: 0 14px;
  }

  /* ── Gallery Section ── */
  .gallery-section-main {
    padding: 16px 14px 40px;
  }
  .results-meta-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
  }
  .results-count-title {
    font-size: 13px;
  }
  .view-switcher-group {
    gap: 6px;
    width: 100%;
  }
  .view-btn {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
    gap: 5px;
    flex: 1;
    justify-content: center;
  }
  .view-btn svg {
    width: 13px;
    height: 13px;
  }

  /* ── Card Hover Mask on Mobile (always partly visible) ── */
  .wallpaper-card-item .card-hover-mask {
    opacity: 1;
    background: linear-gradient(
      180deg,
      transparent 40%,
      rgba(7, 16, 30, 0.85) 100%
    );
  }
  .wallpaper-card-item .card-mask-top {
    opacity: 0;
    transition: opacity var(--transition-fast);
  }
  .wallpaper-card-item:active .card-mask-top {
    opacity: 1;
  }
  .card-art-title {
    font-size: 11px;
  }
  .card-art-res {
    font-size: 9px;
  }

  /* ── Grid: 2-col on mobile ── */
  .wallpaper-grid-container,
  .wallpaper-grid-container.view-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* ── Masonry: 2-col on mobile ── */
  .wallpaper-grid-container.view-masonry {
    column-count: 2 !important;
    column-gap: 8px !important;
  }
  .wallpaper-grid-container.view-masonry .wallpaper-card-item {
    margin-bottom: 8px !important;
  }

  /* ── List View mobile ── */
  .wallpaper-grid-container.view-list .wallpaper-card-item {
    padding: 8px 10px 8px 8px !important;
    gap: 10px !important;
    min-height: 68px !important;
  }
  .wallpaper-grid-container.view-list .card-thumb-img {
    width: 80px !important;
    height: 50px !important;
    border-radius: 8px !important;
  }
  .wallpaper-grid-container.view-list .card-art-title {
    font-size: 13px !important;
  }
  .wallpaper-grid-container.view-list .card-art-res {
    font-size: 11px !important;
  }
  .wallpaper-grid-container.view-list .badge-card-cat {
    display: none !important;
  }
  .wallpaper-grid-container.view-list .card-mask-top {
    gap: 6px !important;
  }
  .wallpaper-grid-container.view-list .btn-card-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }

  /* ── Pagination ── */
  .pagination-wrap-main {
    margin-top: 28px;
    gap: 10px;
  }
  .page-nav-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 8px;
  }
  .pagination-footer-text {
    font-size: 11px;
    text-align: center;
  }

  /* ── Footer ── */
  .site-footer-main {
    padding: 32px 14px 20px;
  }
  .footer-grid-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }
  .footer-brand-column .footer-brand-brand .brand-logo {
    width: 40px;
    height: 40px;
  }
  .footer-brand-column .footer-brand-brand .brand-name {
    font-size: 18px;
  }
  .footer-brand-desc {
    font-size: 13px;
  }
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 11px;
    padding-top: 16px;
  }

  /* ── Modal ── */
  .modal-card {
    padding: 20px;
    margin: 12px;
    max-width: 100%;
  }
  .modal-head h3 {
    font-size: 17px;
  }

  /* ── Toast ── */
  .toast-message {
    bottom: 16px;
    right: 16px;
    left: 16px;
    text-align: center;
    font-size: 13px;
    padding: 8px 16px;
  }

  /* ── Floating Back to Top ── */
  .floating-back-to-top {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 20px;
  }

  /* ── GLightbox on mobile ── */
  .gprev,
  .gnext,
  .gclose {
    width: 38px !important;
    height: 38px !important;
  }
  .gslide-image img {
    max-height: 90vh !important;
    max-width: 98vw !important;
    border-radius: 8px !important;
  }
  .gslide-image::after {
    bottom: 12px !important;
    right: 14px !important;
    font-size: 11px !important;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES (≤ 480px) — Extra Small Screens
   ========================================================================== */

@media (max-width: 480px) {
  /* ── Navbar ── */
  .site-navbar {
    height: 56px;
  }
  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .brand-logo svg {
    width: 18px;
    height: 18px;
  }
  .brand-name {
    font-size: 15px;
  }
  .brand-tagline {
    font-size: 7px;
  }
  .btn-nav-search {
    width: 34px;
    height: 34px;
  }
  .btn-primary-random {
    height: 34px;
    padding: 0 10px;
    border-radius: 10px;
  }

  /* ── Hero ── */
  .hero-wrapper {
    min-height: 320px;
  }
  .hero-container {
    padding: 22px 14px 26px;
  }
  .hero-badge-pill {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 12px;
  }
  .hero-title-main {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .hero-description-text {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .hero-search-box {
    height: 44px;
    font-size: 13px;
    padding: 0 16px 0 40px;
    border-radius: 12px;
  }
  .search-magnifier-icon {
    left: 14px;
  }

  /* ── Category Pills ── */
  .categories-nav-section {
    padding: 10px 10px 8px;
  }
  .category-pill-btn {
    height: 34px;
    padding: 0 10px;
    font-size: 11px;
    gap: 5px;
  }
  .category-nav-arrow {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  /* ── Gallery ── */
  .gallery-section-main {
    padding: 12px 10px 30px;
  }
  .results-count-title {
    font-size: 12px;
  }
  .view-btn {
    height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }
  .view-btn span {
    display: none;
  }

  /* ── Grid: 2 col tight ── */
  .wallpaper-grid-container,
  .wallpaper-grid-container.view-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .wallpaper-card-item {
    border-radius: 10px;
  }

  /* ── Masonry ── */
  .wallpaper-grid-container.view-masonry {
    column-gap: 6px !important;
  }
  .wallpaper-grid-container.view-masonry .wallpaper-card-item {
    margin-bottom: 6px !important;
    border-radius: 10px !important;
  }

  /* ── List ── */
  .wallpaper-grid-container.view-list .wallpaper-card-item {
    padding: 6px 8px 6px 6px !important;
    gap: 8px !important;
    min-height: 60px !important;
    border-radius: 10px !important;
  }
  .wallpaper-grid-container.view-list .card-thumb-img {
    width: 64px !important;
    height: 42px !important;
    border-radius: 6px !important;
  }
  .wallpaper-grid-container.view-list .card-art-title {
    font-size: 12px !important;
  }
  .wallpaper-grid-container.view-list .card-art-res {
    font-size: 10px !important;
  }
  .wallpaper-grid-container.view-list .btn-card-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
  }

  /* ── Pagination ── */
  .page-nav-btn {
    min-width: 30px;
    height: 30px;
    font-size: 11px;
    border-radius: 7px;
  }

  /* ── Footer ── */
  .site-footer-main {
    padding: 24px 10px 16px;
  }
  .footer-heading {
    font-size: 11px;
  }
  .footer-link-a {
    font-size: 13px;
  }
  .footer-brand-desc {
    font-size: 12px;
  }
  .footer-bottom-row {
    font-size: 10px;
  }

  /* ── Card title/resolution ── */
  .card-art-title {
    font-size: 10px;
  }
  .card-art-res {
    font-size: 8px;
  }
  .card-hover-mask {
    padding: 8px;
  }
  .badge-card-cat {
    font-size: 8px;
    padding: 2px 6px;
  }
  .btn-card-icon {
    width: 26px;
    height: 26px;
  }
  .btn-card-icon svg {
    width: 11px;
    height: 11px;
  }

  /* ── Floating BtT ── */
  .floating-back-to-top {
    width: 38px;
    height: 38px;
    bottom: 16px;
    right: 16px;
  }
  .floating-back-to-top svg {
    width: 16px;
    height: 16px;
  }
}
