@import url("../leather-seam-asset-path.css");

/* ========== Fandom hub — leather refresh (explore + detail) ========== */

.fandom-page .fandom-main {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.fandom-explore-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Hero: page title strip */
.fandom-hero-leather {
  position: relative;
  border-radius: 20px;
  padding: 28px 26px 32px;
  overflow: hidden;
  border: 3px solid #3d2614;
  box-shadow:
    0 16px 40px rgba(24, 14, 8, 0.45),
    0 6px 14px rgba(0, 0, 0, 0.35),
    inset 0 2px 0 rgba(255, 248, 235, 0.22),
    inset 0 -14px 28px rgba(0, 0, 0, 0.22);
  background-color: #6b4a2e;
  background-image:
    linear-gradient(165deg, rgba(58, 36, 20, 0.55) 0%, rgba(120, 82, 48, 0.35) 40%, rgba(40, 24, 14, 0.65) 100%),
    var(--leather-seam-png),
    var(--leather-seam-noise);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size), var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat, repeat;
  background-blend-mode: multiply, normal, normal;
}

.fandom-hero-leather::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 20% 0%, rgba(255, 230, 190, 0.2) 0%, transparent 55%);
}

.fandom-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.fandom-hero-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'Shrikhand', cursive;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  color: #fff8e7;
  text-shadow:
    0 2px 0 #1a0f08,
    0 4px 12px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(255, 200, 120, 0.15);
  line-height: 1.1;
}

.fandom-hero-title-icon.material-icons {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  color: #fde68a;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

.fandom-hero-lead {
  margin: 14px 0 0;
  font-family: 'Baloo 2', 'Segoe UI', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff4d8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  opacity: 0.95;
}

/* Experimental callout — warm tan leather */
.fandom-page .fandom-leather-callout.experimental-feature-message {
  margin-top: 0;
  border-radius: 16px;
  border: 2px solid #5c3a1e;
  background-color: #c9a574;
  background-image:
    linear-gradient(145deg, rgba(212, 184, 140, 0.55) 0%, rgba(250, 240, 220, 0.35) 50%, rgba(180, 140, 96, 0.5) 100%),
    var(--leather-seam-png),
    var(--leather-seam-noise);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size), var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat, repeat;
  background-blend-mode: multiply, normal, normal;
  box-shadow:
    0 10px 26px rgba(42, 24, 12, 0.28),
    inset 0 2px 0 rgba(255, 248, 235, 0.35),
    inset 0 -3px 10px rgba(60, 40, 24, 0.18);
}

.fandom-page .fandom-leather-callout .experimental-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  justify-content: center;
  text-align: left;
}

.fandom-page .fandom-callout-icon {
  flex-shrink: 0;
  font-size: 2rem !important;
  color: #b45309 !important;
}

.fandom-page .fandom-leather-callout p {
  margin: 0;
  color: #2c1f12;
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
}

.fandom-page .fandom-leather-callout a {
  color: #7c2d12;
  font-weight: 800;
}

/* Discover panel — main tan leather slab */
.fandom-discover-leather {
  border-radius: 20px;
  padding: 22px 18px 26px;
  border: 3px solid #5a3a24;
  border-bottom-width: 4px;
  background-color: #d0b589;
  background-image:
    linear-gradient(155deg, rgba(255, 248, 235, 0.2) 0%, rgba(208, 181, 137, 0.55) 38%, rgba(160, 120, 80, 0.45) 100%),
    var(--leather-seam-png),
    var(--leather-seam-noise);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size), var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat, repeat;
  background-blend-mode: soft-light, normal, normal;
  box-shadow:
    0 14px 34px rgba(42, 24, 12, 0.32),
    inset 0 2px 0 rgba(255, 248, 235, 0.45),
    inset 0 -8px 20px rgba(80, 50, 30, 0.12);
}

.fandom-discover-header {
  text-align: center;
  margin-bottom: 18px;
  padding: 0 8px 14px;
  border-bottom: 2px solid rgba(62, 42, 26, 0.35);
  box-shadow: 0 1px 0 rgba(255, 248, 235, 0.25);
}

.fandom-discover-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Shrikhand', cursive;
  font-size: 1.65rem;
  color: #1f140c;
  text-shadow: 0 1px 0 rgba(255, 248, 235, 0.55);
}

.fandom-discover-title .material-icons {
  font-size: 1.5rem;
  color: #5c3a1e;
}

.fandom-controls-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 20px;
  justify-content: center;
}

.fandom-page .fandom-search-wrap.search-container {
  flex: 1 1 280px;
  max-width: 560px;
  margin: 0;
  position: relative;
}

.fandom-page .fandom-search-wrap input#fandoms-search {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border-radius: 999px;
  border: 2px solid #5c3a1e;
  font-family: 'Baloo 2', cursive;
  font-size: 1rem;
  font-weight: 600;
  color: #1f140c;
  background-color: #fffdf8;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 246, 230, 0.75) 45%, rgba(235, 220, 198, 0.9) 100%);
  box-shadow:
    0 4px 0 #8b6040,
    0 8px 18px rgba(42, 24, 12, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -2px 6px rgba(80, 50, 30, 0.1);
}

.fandom-page .fandom-search-wrap input#fandoms-search:focus {
  outline: none;
  border-color: #a16207;
  box-shadow:
    0 0 0 3px rgba(161, 98, 7, 0.25),
    0 4px 0 #8b6040,
    0 10px 22px rgba(42, 24, 12, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

.fandom-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem !important;
  color: #6b4a30;
  pointer-events: none;
}

.fandom-page .fandom-sort-wrap.sort-container {
  margin: 0;
  max-width: none;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fandom-page .fandom-sort-wrap label {
  color: #2c1f12;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 0.9rem;
}

.fandom-page .fandom-sort-select.sort-select,
.fandom-page #fandoms-sort.fandom-sort-select {
  min-width: 200px;
  border: 2px solid #5c3a1e !important;
  border-radius: 999px;
  background-color: #e8d4bc;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 42%),
    var(--leather-seam-png),
    var(--leather-seam-noise) !important;
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size), var(--leather-tile-size) var(--leather-tile-size) !important;
  background-repeat: no-repeat, repeat, repeat !important;
  background-blend-mode: normal, multiply, normal;
  box-shadow:
    0 4px 0 #6b4423,
    0 6px 14px rgba(0, 0, 0, 0.18),
    inset 0 2px 0 rgba(255, 248, 235, 0.45);
  color: #1f140c;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
}

.fandom-empty-state {
  border-radius: 16px;
  border: 2px dashed rgba(62, 42, 26, 0.45);
  background: rgba(255, 248, 235, 0.25);
  margin-top: 8px;
}

.fandom-empty-state .empty-icon {
  color: #6b4a30 !important;
}

.fandom-empty-state h3 {
  color: #2c1f12;
  font-family: 'Shrikhand', cursive;
}

.fandom-empty-state p {
  color: #4a3424;
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
}

/* Fandom directory cards */
.fandom-page .fandom-card {
  border-radius: 18px;
  border-width: 3px;
  box-shadow:
    0 14px 32px rgba(24, 14, 8, 0.38),
    0 5px 12px rgba(0, 0, 0, 0.22),
    inset 0 2px 0 rgba(255, 248, 235, 0.32),
    inset 0 -10px 22px rgba(60, 40, 24, 0.15);
}

.fandom-page .fandom-card-info {
  background: linear-gradient(180deg, rgba(40, 24, 14, 0.06) 0%, transparent 28%);
}

.fandom-stat-ic {
  font-size: 1.1rem !important;
  vertical-align: middle;
  margin-right: 4px;
  color: #5c3a1e;
}

/* Detail tab: Explore-style project tiles */
#fandom-detail-view .projects-grid.fandom-explore-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 0 0;
}

#fandom-detail-view .fandom-explore-projects .project-thumb {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(60, 42, 28, 0.35), rgba(40, 28, 18, 0.45));
  border: 2px solid #5a3a24;
  border-bottom: 3px solid #6b4a30;
}

#fandom-detail-view .fandom-explore-projects .project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#fandom-detail-view .fandom-explore-projects > a.project-card {
  background-color: #d0b589;
  background-image:
    linear-gradient(145deg, rgba(208, 181, 137, 0.58) 0%, rgba(242, 232, 212, 0.48) 45%, rgba(208, 181, 137, 0.55) 100%),
    var(--leather-seam-png),
    var(--leather-seam-noise);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size), var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat, repeat;
  background-blend-mode: multiply, normal, normal;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(42, 24, 12, 0.3),
    inset 0 2px 0 rgba(255, 248, 235, 0.38);
}

/* Fandom Page Styles - Both Explore and Detail Views (legacy + filters below) */

/* Filter Styles (reused from explore page) */
.filter-container {
  margin-bottom: 20px;
}

.filter-toggle-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.fandom-content .filter-toggle-btn,
#toggle-content-filters {
  padding: 10px 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.1) 25%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%) !important;
  border: 2px solid #4d7c0f !important;
  border-radius: 999px !important;
  font-family: 'Baloo 2', cursive;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: #0f2d00 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4) !important;
  box-shadow:
    0 5px 0 0 #166534,
    0 6px 14px rgba(0,0,0,0.3),
    inset 0 2px 0 rgba(255,255,255,0.25),
    inset 0 -2px 4px rgba(0,0,0,0.2) !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: flex !important;
  align-items: center;
  gap: 8px;
  max-width: none !important;
  min-width: auto !important;
  width: auto !important;
}

.fandom-content .filter-toggle-btn:hover,
#toggle-content-filters:hover {
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 0 #166534,
    0 9px 18px rgba(0,0,0,0.35),
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.2) !important;
}

.fandom-content .filter-toggle-btn.active,
#toggle-content-filters.active {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.1) 25%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%) !important;
  color: #0f2d00 !important;
  border-color: #4d7c0f !important;
  box-shadow:
    0 2px 0 0 #166534,
    0 3px 8px rgba(0,0,0,0.3),
    inset 0 3px 6px rgba(0,0,0,0.2) !important;
  transform: translateY(1px);
}

.fandom-content .filter-toggle-btn.active .toggle-arrow,
#toggle-content-filters.active .toggle-arrow {
  transform: rotate(180deg);
}

.toggle-arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

.filters-panel {
  background-color: #d0b589; background-image: linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%), var(--leather-seamless); background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size); background-repeat: no-repeat, repeat; background-blend-mode: multiply, normal;
  border: 2px solid #958062;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  margin-top: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.25), inset 0 -2px 0 rgba(0,0,0,0.12), inset 1px 0 0 rgba(255,255,255,0.2), inset -1px 0 0 rgba(0,0,0,0.08);
}

.search-container {
  position: relative;
  margin-bottom: 20px;
}

.search-container input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid #9aa8bc;
  background-color: #f3f6fb;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 28%, transparent 48%),
    linear-gradient(180deg, #fbfdff 0%, #e8eef8 52%, #dce6f2 100%);
  background-blend-mode: normal, normal;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75),
    0 3px 12px rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 2px 6px rgba(255, 255, 255, 0.95),
    inset 0 -3px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  color: #1a1a1a;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-container input:focus {
  outline: none;
  border-color: #4a90d9;
  background-color: #fafdff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.45) 30%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 48%, #dfeaf8 100%);
  box-shadow:
    0 0 0 3px rgba(74, 144, 217, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 4px 14px rgba(0, 0, 0, 0.12),
    inset 0 2px 7px rgba(255, 255, 255, 1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.clear-filters-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.primary-filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.filter-select {
  padding: 10px 18px;
  font-family: 'Baloo 2', cursive;
  font-size: 0.9rem;
  border: 2px solid #5c3a1e;
  border-radius: 999px;
  background-color: #dfc5aa;
  background-image:
    linear-gradient(135deg, rgba(226, 206, 178, 0.5) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(226, 206, 178, 0.5) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  box-shadow:
    0 4px 0 #8b6040,
    0 5px 10px rgba(0,0,0,0.22),
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -2px 0 rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1e293b;
  font-weight: 600;
}

.filter-select:hover {
  border-color: #78634f;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.35), 0 4px 8px rgba(0,0,0,0.2);
}

.filter-select:focus {
  outline: none;
  border-color: #78634f;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.35), 0 0 0 3px rgba(139,115,85,0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Explore View Styles */
.search-container {
  flex: 1;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

#fandoms-search {
  width: 100%;
  max-width: 520px;
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: 999px;
  border: 1px solid #9aa8bc;
  background-color: #f3f6fb;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 28%, transparent 48%),
    linear-gradient(180deg, #fbfdff 0%, #e8eef8 52%, #dce6f2 100%);
  background-blend-mode: normal, normal;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75),
    0 3px 12px rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 2px 6px rgba(255, 255, 255, 0.95),
    inset 0 -3px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  display: block;
  margin: 0 auto;
  color: #1a1a1a;
}

#fandoms-search:focus {
  outline: none;
  border-color: #4a90d9;
  background-color: #fafdff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.45) 30%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 48%, #dfeaf8 100%);
  box-shadow:
    0 0 0 3px rgba(74, 144, 217, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 4px 14px rgba(0, 0, 0, 0.12),
    inset 0 2px 7px rgba(255, 255, 255, 1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  justify-content: flex-end;
}

.sort-container label {
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
}

.sort-select {
  padding: 10px 20px;
  padding-right: 2.25rem;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid #9aa8bc;
  -webkit-appearance: none;
  appearance: none;
  background-color: #f3f6fb;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%235a6a82' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 28%, transparent 48%),
    linear-gradient(180deg, #fbfdff 0%, #e8eef8 52%, #dce6f2 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 14px 14px, 100% 100%, 100% 100%;
  background-position: calc(100% - 12px) 50%, 0 0, 0 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75),
    0 3px 12px rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 2px 6px rgba(255, 255, 255, 0.95),
    inset 0 -3px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  color: #1a1a1a;
  font-weight: 600;
  min-width: 180px;
}

.sort-select:focus {
  outline: none;
  border-color: #4a90d9;
  background-color: #fafdff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%234a90d9' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.45) 30%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 48%, #dfeaf8 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 14px 14px, 100% 100%, 100% 100%;
  background-position: calc(100% - 12px) 50%, 0 0, 0 0;
  box-shadow:
    0 0 0 3px rgba(74, 144, 217, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 4px 14px rgba(0, 0, 0, 0.12),
    inset 0 2px 7px rgba(255, 255, 255, 1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.sort-select:hover {
  border-color: #7a8faf;
}

.experimental-feature-message {
  background-color: #dfc5aa;
  background-image: linear-gradient(135deg, rgba(226, 206, 178, 0.5) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(226, 206, 178, 0.5) 100%), var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #958062;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.25), inset 0 -2px 0 rgba(0,0,0,0.12);
}

.experimental-feature-message p {
  margin: 0;
  color: #856404;
  font-size: 1.1rem;
}

.experimental-feature-message a {
  color: #007bff;
  text-decoration: underline;
  font-weight: bold;
}

.fandoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  width: 100%;
}

.fandom-card {
  background-color: #c49362;
  background-image:
    linear-gradient(145deg, rgba(174, 128, 82, 0.58) 0%, rgba(222, 184, 132, 0.48) 50%, rgba(174, 128, 82, 0.58) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 3px solid #5c3a1e;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.32),
    0 4px 10px rgba(0,0,0,0.18),
    inset 0 2px 0 rgba(255,255,255,0.28),
    inset 0 -2px 0 rgba(0,0,0,0.18),
    inset 1px 0 0 rgba(255,255,255,0.2),
    inset -1px 0 0 rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.fandom-card::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.4), rgba(255,255,255,0.2), rgba(255,255,255,0.4));
  border-radius: 17px 17px 0 0;
  z-index: 1;
}

.fandom-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3), 0 6px 15px rgba(0,0,0,0.2), inset 0 2px 0 rgba(255,255,255,0.35), inset 0 -2px 0 rgba(0,0,0,0.18), inset 1px 0 0 rgba(255,255,255,0.25), inset -1px 0 0 rgba(0,0,0,0.12);
  border-color: #78634f;
}

.fandom-card-banner {
  width: 100%;
  aspect-ratio: 21 / 9;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.fandom-card:hover .fandom-card-banner {
  transform: scale(1.05);
}

.fandom-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #958062;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
  overflow: hidden;
  background: linear-gradient(135deg, #dfc5aa 0%, #eee3ca 50%, #dfc5aa 100%);
}

.fandom-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fandom-card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #dfc5aa;
  background-image: linear-gradient(135deg, rgba(226, 206, 178, 0.5) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(226, 206, 178, 0.5) 100%), var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border-top: 2px solid #958062;
}

.fandom-card-name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

.fandom-card-description {
  margin: 0;
  font-size: 0.95rem;
  color: #1f2937;
  text-align: center;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fandom-card-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 5px;
}

.fandom-stat {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: #2d3748;
  font-weight: 600;
  font-family: 'Baloo 2', cursive;
}

.fandom-card-creator {
  margin-top: 5px;
  text-align: center;
  font-size: 0.8rem;
  color: #868e96;
  font-style: italic;
}

/* Skeuomorphic Fandom Card Skeleton Loaders */
.fandom-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  width: 100%;
}

.fandom-skeleton-card {
  background-color: #d0b589; background-image: linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%), var(--leather-seamless); background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size); background-repeat: no-repeat, repeat; background-blend-mode: multiply, normal;
  border: 3px solid #958062;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.25), inset 0 -2px 0 rgba(0,0,0,0.12), inset 1px 0 0 rgba(255,255,255,0.2), inset -1px 0 0 rgba(0,0,0,0.08);
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.fandom-skeleton-card::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.4), rgba(255,255,255,0.2), rgba(255,255,255,0.4));
  border-radius: 17px 17px 0 0;
  z-index: 1;
}

.fandom-skeleton-banner {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, #c5a378 0%, #d0b589 50%, #c5a378 100%);
  position: relative;
  overflow: hidden;
}

.fandom-skeleton-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: skeletonShimmer 1.5s infinite;
}

.fandom-skeleton-avatar {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dfc5aa 0%, #eee3ca 50%, #dfc5aa 100%);
  border: 4px solid #958062;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 2;
  overflow: hidden;
}

.fandom-skeleton-avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: skeletonShimmer 1.5s infinite;
}

.fandom-skeleton-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.fandom-skeleton-name {
  height: 24px;
  width: 60%;
  background: linear-gradient(90deg, #ddd 25%, #e8eaed 50%, #ddd 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: skeletonShimmer 1.5s infinite;
  margin: 0 auto;
}

.fandom-skeleton-description {
  height: 16px;
  width: 90%;
  background: linear-gradient(90deg, #ddd 25%, #e8eaed 50%, #ddd 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skeletonShimmer 1.5s infinite;
  margin: 0 auto;
}

.fandom-skeleton-description:nth-child(3) {
  width: 70%;
}

.fandom-skeleton-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 8px;
}

.fandom-skeleton-stat {
  height: 18px;
  width: 80px;
  background: linear-gradient(90deg, #ddd 25%, #e8eaed 50%, #ddd 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skeletonShimmer 1.5s infinite;
}

.fandom-skeleton-creator {
  height: 14px;
  width: 50%;
  background: linear-gradient(90deg, #ddd 25%, #e8eaed 50%, #ddd 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skeletonShimmer 1.5s infinite;
  margin: 8px auto 0;
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes skeletonPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.95;
  }
}

/* Fandom Detail Loading States */
.fandom-detail-skeleton {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.fandom-detail-skeleton-header {
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 140px;
  background: linear-gradient(135deg, #c5a378 0%, #d0b589 50%, #c5a378 100%);
  border: 2px solid #958062;
  border-radius: 20px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.fandom-detail-skeleton-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: skeletonShimmer 1.5s infinite;
}

.fandom-detail-skeleton-avatar {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dfc5aa 0%, #eee3ca 50%, #dfc5aa 100%);
  border: 5px solid #958062;
  z-index: 2;
  overflow: hidden;
}

.fandom-detail-skeleton-avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: skeletonShimmer 1.5s infinite;
}

.fandom-detail-skeleton-name {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 32px;
  background: linear-gradient(90deg, rgba(255,255,255,0.3) 25%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.3) 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: skeletonShimmer 1.5s infinite;
}

.fandom-detail-skeleton-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.fandom-detail-skeleton-tab {
  height: 44px;
  width: 120px;
  background: linear-gradient(90deg, #ddd 25%, #e8eaed 50%, #ddd 75%);
  background-size: 200% 100%;
  border-radius: 10px;
  animation: skeletonShimmer 1.5s infinite;
}

.fandom-detail-skeleton-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.fandom-detail-skeleton-project {
  background-color: #d0b589; background-image: linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%), var(--leather-seamless); background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size); background-repeat: no-repeat, repeat; background-blend-mode: multiply, normal;
  border: 3px solid #958062;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.fandom-detail-skeleton-project::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.4), rgba(255,255,255,0.2), rgba(255,255,255,0.4));
  border-radius: 13px 13px 0 0;
  z-index: 1;
}

.fandom-detail-skeleton-project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #c5a378 0%, #d0b589 50%, #c5a378 100%);
  position: relative;
  overflow: hidden;
}

.fandom-detail-skeleton-project-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: skeletonShimmer 1.5s infinite;
}

.fandom-detail-skeleton-project-info {
  padding: 12px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fandom-detail-skeleton-project-title {
  height: 18px;
  width: 80%;
  background: linear-gradient(90deg, #ddd 25%, #e8eaed 50%, #ddd 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skeletonShimmer 1.5s infinite;
}

.fandom-detail-skeleton-project-meta {
  height: 14px;
  width: 60%;
  background: linear-gradient(90deg, #ddd 25%, #e8eaed 50%, #ddd 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skeletonShimmer 1.5s infinite;
}

/* Detail View Styles */
.fandom-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.fandom-header {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  position: relative;
  border: 4px solid #5c3a1e;
  border-bottom: none;
  box-shadow:
    0 8px 18px rgba(0,0,0,0.22),
    inset 0 2px 0 rgba(255,255,255,0.15),
    0 0 0 1px rgba(255,255,255,0.06);
}

.fandom-avatar-container {
  display: flex;
  justify-content: center;
  margin-top: -44px;
  margin-bottom: 12px;
}

.fandom-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #5c3a1e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  object-fit: cover;
  background: linear-gradient(135deg, #dfc5aa 0%, #eee3ca 100%);
}

.fandom-info-card {
  background-color: #c49362;
  background-image:
    linear-gradient(145deg, rgba(174, 128, 82, 0.58) 0%, rgba(222, 184, 132, 0.48) 50%, rgba(174, 128, 82, 0.58) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 4px solid #5c3a1e;
  border-top: none;
  border-radius: 0 0 24px 24px;
  padding: 8px 24px 20px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow:
    0 12px 30px rgba(0,0,0,0.3),
    0 4px 10px rgba(0,0,0,0.18),
    inset 0 -2px 0 rgba(0,0,0,0.18),
    inset 1px 0 0 rgba(255,255,255,0.15),
    inset -1px 0 0 rgba(0,0,0,0.1);
}

.fandom-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a0e08;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.25),
    0 2px 4px rgba(0,0,0,0.3);
}

.fandom-description {
  font-size: 1rem;
  margin: 0 0 16px;
  max-width: 600px;
  line-height: 1.5;
  color: #1e293b;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

.fandom-actions {
  display: flex;
  gap: 14px;
  margin: 12px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.fandom-stats {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #1e293b;
  justify-content: center;
  flex-wrap: wrap;
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

.fandom-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  background-color: #976a42;
  background-image:
    linear-gradient(135deg, rgba(154, 108, 64, 0.62) 0%, rgba(198, 146, 104, 0.52) 50%, rgba(154, 108, 64, 0.62) 100%),
    var(--leather-seamless);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  padding: 12px 16px;
  border-radius: 22px;
  border: 3px solid #5c3a1e;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.35),
    0 4px 8px rgba(0,0,0,0.2),
    inset 0 3px 0 rgba(255,255,255,0.18),
    inset 0 -3px 0 rgba(0,0,0,0.2),
    inset 2px 0 4px rgba(255,255,255,0.1),
    inset -2px 0 4px rgba(0,0,0,0.12);
  position: relative;
}

.fandom-tab-btn {
  padding: 10px 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 40%),
    linear-gradient(145deg, #ffffff 0%, #f5f5f5 35%, #e8e8e8 65%, #d4d4d4 100%) !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: 'Baloo 2', cursive;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d2520 !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  min-height: 40px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8) !important;
  box-shadow:
    0 7px 0 0 #9ca3af,
    0 9px 20px rgba(0,0,0,0.35),
    0 3px 6px rgba(0,0,0,0.2),
    inset 0 -2px 4px rgba(0,0,0,0.12) !important;
}

.fandom-tab-btn:hover:not(.active) {
  transform: translateY(-2px);
  box-shadow:
    0 9px 0 0 #9ca3af,
    0 11px 24px rgba(0,0,0,0.35),
    inset 0 -2px 4px rgba(0,0,0,0.1);
}

.fandom-tab-btn.active {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 25%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%);
  color: #0f2d00;
  border: none;
  text-shadow: 0 1px 0 rgba(0,0,0,0.2);
  box-shadow:
    0 7px 0 0 #166534,
    0 9px 20px rgba(0,0,0,0.4),
    0 3px 6px rgba(0,0,0,0.25),
    inset 0 -2px 4px rgba(0,0,0,0.25);
  transform: translateY(1px);
}

.fandom-tab-content {
  display: none;
}

.fandom-tab-content.active {
  display: block;
}

.announcement-card {
  background-color: #d0b589; background-image: linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%), var(--leather-seamless); background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size); background-repeat: no-repeat, repeat; background-blend-mode: multiply, normal;
  border: 2px solid #958062;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.25), inset 0 -2px 0 rgba(0,0,0,0.12), inset 1px 0 0 rgba(255,255,255,0.2), inset -1px 0 0 rgba(0,0,0,0.08);
}

.announcement-card.pinned {
  border-color: #b45309;
  background-color: #eee3ca; background-image: linear-gradient(135deg, rgba(242, 232, 212, 0.55) 0%, rgba(240, 224, 200, 0.5) 50%, rgba(242, 232, 212, 0.55) 100%), var(--leather-seamless); background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size); background-repeat: no-repeat, repeat; background-blend-mode: multiply, normal;
}

.announcement-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  color: #1e293b;
}

.announcement-card p {
  margin: 10px 0;
  color: #2d3748;
  line-height: 1.6;
}

.announcement-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 0.85rem;
  color: #868e96;
}

.empty-state {
  text-align: center;
  padding: 40px;
  background-color: #d0b589; background-image: linear-gradient(135deg, rgba(212, 190, 156, 0.52) 0%, rgba(242, 232, 212, 0.45) 50%, rgba(212, 190, 156, 0.52) 100%), var(--leather-seamless); background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size); background-repeat: no-repeat, repeat; background-blend-mode: multiply, normal;
  border-radius: 15px;
  border: 2px solid #958062;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.25), inset 0 -2px 0 rgba(0,0,0,0.12);
}

/* .error-state: global glossy error panel + Error.png — root style.css */

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  color: #2d3748;
  font-size: 1.5rem;
}

.empty-state p {
  margin: 0;
  color: #1f2937;
  font-size: 1rem;
}

.skeuomorphic-btn {
  padding: 13px 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.1) 25%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%);
  border: 2px solid #4d7c0f;
  border-radius: 999px;
  font-family: 'Baloo 2', cursive;
  font-size: 1rem;
  font-weight: 700;
  color: #0f2d00;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow:
    0 5px 0 0 #166534,
    0 6px 14px rgba(0,0,0,0.32),
    inset 0 2px 0 rgba(255,255,255,0.28),
    inset 0 -2px 4px rgba(0,0,0,0.2);
}

.skeuomorphic-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 0 #166534,
    0 9px 20px rgba(0,0,0,0.36),
    inset 0 2px 0 rgba(255,255,255,0.32),
    inset 0 -2px 4px rgba(0,0,0,0.2);
}

.skeuomorphic-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 0 #166534,
    0 3px 8px rgba(0,0,0,0.3),
    inset 0 3px 8px rgba(0,0,0,0.28);
}

/* Smooth transitions for all fandom elements */
.fandom-card,
.fandom-skeleton-card,
.fandom-detail-skeleton-project {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fandoms-grid,
.fandom-skeleton-grid {
  transition: opacity 0.3s ease;
}

/* Fade in animation for loaded content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fandom-card {
  animation: fadeIn 0.4s ease-out;
}

.fandom-card:nth-child(1) { animation-delay: 0.05s; }
.fandom-card:nth-child(2) { animation-delay: 0.1s; }
.fandom-card:nth-child(3) { animation-delay: 0.15s; }
.fandom-card:nth-child(4) { animation-delay: 0.2s; }
.fandom-card:nth-child(5) { animation-delay: 0.25s; }
.fandom-card:nth-child(6) { animation-delay: 0.3s; }
.fandom-card:nth-child(n+7) { animation-delay: 0.35s; }

/* Smooth tab transitions */
.fandom-tab-content {
  animation: fadeIn 0.3s ease-out;
}

/* Enhanced search container */
.search-container {
  position: relative;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.search-container:focus-within {
  transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
  .fandoms-grid,
  .fandom-skeleton-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
  
  .search-container {
    max-width: 100%;
    padding: 0 10px;
  }
  
  .fandom-detail-skeleton-content {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
}

/* Leave fandom - red pill */
#leave-fandom-btn {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 25%, transparent 50%),
    linear-gradient(145deg, #fca5a5 0%, #f87171 25%, #ef4444 50%, #dc2626 75%, #b91c1c 100%);
  color: #fff;
  border-color: #991b1b;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow:
    0 5px 0 0 #7f1d1d,
    0 6px 14px rgba(0,0,0,0.3),
    inset 0 2px 0 rgba(255,255,255,0.2),
    inset 0 -2px 4px rgba(0,0,0,0.25);
}
#leave-fandom-btn:hover {
  box-shadow:
    0 7px 0 0 #7f1d1d,
    0 9px 20px rgba(0,0,0,0.35),
    inset 0 2px 0 rgba(255,255,255,0.25),
    inset 0 -2px 4px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}
#leave-fandom-btn:active {
  box-shadow:
    0 2px 0 0 #7f1d1d,
    0 3px 8px rgba(0,0,0,0.3),
    inset 0 3px 8px rgba(0,0,0,0.3);
  transform: translateY(3px);
}

/* Tab panel gloss strip and stitch */
.fandom-tabs::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2), rgba(255,255,255,0.55));
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}
.fandom-tabs::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 16px;
  right: 16px;
  height: 0;
  border-bottom: 2px dashed rgba(120,70,20,0.35);
  pointer-events: none;
}
