:root {
  --bg: #050507;
  --surface: rgba(16, 16, 21, 0.58);
  --surface-hi: rgba(24, 24, 32, 0.84);
  --line: rgba(255, 255, 255, 0.1);
  --line-hi: rgba(255, 255, 255, 0.28);
  --tx: #f7f7fa;
  --mut: #8e8e9c;
  --platinum: #e6e6f0;
  --gold: #e3c485;
  --gold-dim: rgba(227, 196, 133, 0.34);
  --gold-glow: rgba(227, 196, 133, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--tx);
  font-family: "Plus Jakarta Sans", "Noto Sans Thai", -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === Background Layers === */
.bg-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 20%;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s ease;
  pointer-events: none;
}

.bg-home {
  background-image: url("assets/bg-landing.jpg");
  opacity: 0.36;
  filter: grayscale(18%) contrast(1.08);
  animation: slowDrift 28s ease-in-out infinite alternate;
}

.bg-roster {
  background-image: url("assets/bg-members.jpg");
  opacity: 0;
  filter: grayscale(34%) contrast(1.08);
}

body.view-roster .bg-home { opacity: 0; }
body.view-roster .bg-roster { opacity: 0.22; }

@keyframes slowDrift {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.bg-aurora {
  position: fixed;
  inset: -18%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 32% at 22% 16%, rgba(227, 196, 133, 0.1), transparent 70%),
    radial-gradient(ellipse 42% 34% at 80% 22%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(ellipse 52% 30% at 50% 92%, rgba(227, 196, 133, 0.075), transparent 70%);
  filter: blur(32px);
  animation: auroraFloat 18s ease-in-out infinite alternate;
}

@keyframes auroraFloat {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 54% at 50% 42%, rgba(227, 196, 133, 0.04) 0%, rgba(5, 5, 7, 0.72) 66%, #040406 100%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.56) 0%, rgba(5, 5, 7, 0.34) 48%, rgba(4, 4, 6, 0.94) 100%);
}

#fx {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* === Cinematic Entry Curtain (Unlocks Instant Music) === */
#entryGate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 55% 42% at 50% 48%, rgba(227, 196, 133, 0.12), rgba(5, 5, 7, 0.94) 68%),
    #050507;
  backdrop-filter: blur(24px);
  cursor: pointer;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.75s;
}

#entryGate.hidden {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

.gate-logo {
  width: min(210px, 52vw);
  height: auto;
  filter: drop-shadow(0 0 34px rgba(227, 196, 133, 0.35));
  margin-bottom: 22px;
  animation: floatGentle 3.8s ease-in-out infinite;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.gate-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.7rem, 5.2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  background: linear-gradient(95deg, #8e8e9c, #ffffff 48%, #e3c485 80%, #8e8e9c);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 6s linear infinite;
  margin-bottom: 14px;
}

.gate-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 28px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: rgba(227, 196, 133, 0.08);
  font-family: "Cinzel", "Noto Sans Thai", serif;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(227, 196, 133, 0.16);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(227, 196, 133, 0.14); border-color: rgba(227, 196, 133, 0.34); }
  50% { box-shadow: 0 0 34px rgba(227, 196, 133, 0.38); border-color: rgba(227, 196, 133, 0.72); }
}

/* === Floating Flagship Top Glass Dock === */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(12, 12, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-width: calc(100vw - 24px);
}

.fnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 2px;
}

.fnav-brand img {
  height: 19px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}

.fnav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mut);
  text-decoration: none;
  font-family: "Orbitron", "Noto Sans Thai", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.24s ease;
}

.fnav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.fnav-item.active {
  color: #0b0906;
  background: linear-gradient(135deg, #f5e2b8, #c79f54);
  box-shadow: 0 4px 18px rgba(227, 196, 133, 0.35);
}

.fnav-item.discord-item {
  color: #cfd5ff;
}

.fnav-item.discord-item:hover {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(123, 136, 255, 0.45);
  color: #fff;
}

.fnav-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* === Views Container === */
.view {
  position: relative;
  z-index: 10;
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.view.active {
  display: block;
}

.view.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === HOME VIEW === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 110px;
}

.hero-emblem-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.22s ease-out;
}

.hero-emblem-ring {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(227, 196, 133, 0.14);
  background: radial-gradient(circle, rgba(227, 196, 133, 0.08), transparent 68%);
  pointer-events: none;
  animation: ringPulse 5s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}

.hero-crest {
  position: relative;
  width: min(225px, 52vw);
  height: auto;
  filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.32));
  animation: floatGentle 4.2s ease-in-out infinite;
}

.hero-kicker {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.46em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.2rem, 7vw, 5.4rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.08;
  background: linear-gradient(100deg, #7e7e88 0%, #f7f7fa 36%, #ffffff 50%, #e3c485 72%, #8c8c98 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.72));
  animation: shimmerText 7s linear infinite;
}

@keyframes shimmerText {
  from { background-position: 0% center; }
  to { background-position: 220% center; }
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px auto 16px;
}

.hero-divider i {
  width: min(120px, 22vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 196, 133, 0.65), transparent);
}

.hero-divider span {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.36em;
  color: rgba(255, 255, 255, 0.78);
}

.hero-slogan {
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--mut);
  text-transform: uppercase;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.cta-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 40px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #f5e2b8, #c49c52);
  color: #0b0906;
  font-family: "Orbitron", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(227, 196, 133, 0.28);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 90%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-24deg);
  transition: left 0.65s ease;
}

.cta-btn:hover::before { left: 135%; }
.cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 46px rgba(227, 196, 133, 0.44);
}

.discord-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 16, 22, 0.64);
  backdrop-filter: blur(18px);
  color: var(--platinum);
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.discord-cta svg { width: 17px; height: 17px; fill: currentColor; }
.discord-cta:hover {
  border-color: rgba(123, 136, 255, 0.7);
  background: rgba(88, 101, 242, 0.22);
  color: #fff;
  box-shadow: 0 12px 34px rgba(88, 101, 242, 0.3);
  transform: translateY(-3px);
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 16, 0.54);
  backdrop-filter: blur(16px);
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.62);
}

.hero-stats strong {
  color: var(--gold);
  font-family: "Orbitron", sans-serif;
  margin-right: 4px;
}

/* === ROSTER VIEW === */
.roster-shell {
  max-width: 1090px;
  margin: 0 auto;
  padding: 96px 24px 124px;
}

.m-head {
  text-align: center;
  margin-bottom: 24px;
}

.hl {
  width: 112px;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.28));
  margin-bottom: 12px;
  animation: floatGentle 4.6s ease-in-out infinite;
}

.m-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.85rem, 4.6vw, 3.1rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(95deg, #9898a6, #ffffff 48%, #e3c485 82%, #9898a6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 7s linear infinite;
}

.m-sub {
  margin-top: 8px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.36em;
  color: var(--mut);
  text-transform: uppercase;
}

/* Search + Tabs */
.controls {
  max-width: 680px;
  margin: 20px auto 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.search-wrap {
  position: relative;
  width: min(460px, 100%);
  display: flex;
  align-items: center;
}

.search-ico {
  position: absolute;
  left: 16px;
  color: var(--mut);
  display: inline-flex;
  pointer-events: none;
}

#q {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 15, 20, 0.72);
  backdrop-filter: blur(18px);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

#q::placeholder { color: #6c6c78; }
#q:focus {
  border-color: var(--gold-dim);
  background: rgba(20, 20, 27, 0.92);
  box-shadow: 0 0 28px rgba(227, 196, 133, 0.16);
}

.clear-q {
  position: absolute;
  right: 11px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.clear-q.show { display: inline-flex; }

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 19, 0.72);
  backdrop-filter: blur(18px);
}

.tab-btn {
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mut);
  font-family: "Orbitron", "Noto Sans Thai", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.24s ease;
}

.tab-btn:hover { color: #fff; }
.tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(227, 196, 133, 0.22));
  border-color: var(--gold-dim);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* Role Sections */
.role-sec {
  margin-top: 38px;
}

.role-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.role-head i {
  flex: 1;
  max-width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22));
}

.role-head i.r {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent);
}

.role-head h2 {
  font-family: "Cinzel", serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--platinum);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.role-head .cnt {
  font-family: "Orbitron", sans-serif;
  font-size: 10.5px;
  color: var(--gold);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: rgba(227, 196, 133, 0.08);
}

/* Founder Animated Gold Border Beam Card */
.founder-stage {
  display: flex;
  justify-content: center;
}

.founder-beam-wrap {
  position: relative;
  width: min(460px, 100%);
  padding: 1.5px;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  animation: cardFloatIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.6), 0 0 42px rgba(227, 196, 133, 0.18);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.founder-beam-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.7), 0 0 56px rgba(227, 196, 133, 0.32);
}

.founder-beam-wrap::before {
  content: "";
  position: absolute;
  inset: -120%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 250deg,
    rgba(227, 196, 133, 0.2) 285deg,
    #f7e4bc 325deg,
    rgba(227, 196, 133, 0.25) 355deg,
    transparent 360deg
  );
  animation: spinBeam 5s linear infinite;
}

@keyframes spinBeam {
  to { transform: rotate(360deg); }
}

.founder-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  border-radius: 18.5px;
  background: linear-gradient(145deg, #1b1710, #0d0d12 72%);
  text-decoration: none;
  color: inherit;
}

.founder-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Cinzel", serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.founder-tag svg { width: 11px; height: 11px; fill: currentColor; }

/* Member 3x3 Bento Grid */
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 920px) {
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .member-grid { grid-template-columns: 1fr; }
}

.empty-msg {
  text-align: center;
  color: var(--mut);
  font-size: 13.5px;
  padding: 22px 0;
}

/* Luxury Spotlight Bento Card */
.card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(26, 26, 35, 0.68), rgba(11, 11, 15, 0.86));
  backdrop-filter: blur(18px);
  padding: 18px 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  animation: cardFloatIn 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 58ms);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(227, 196, 133, 0.16),
    rgba(255, 255, 255, 0.05) 42%,
    transparent 74%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.card:hover::before { opacity: 1; }

@keyframes cardFloatIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-dim);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.56), 0 0 28px rgba(227, 196, 133, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nm {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ic-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex-shrink: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.founder-inner .ic-wrap {
  width: 50px;
  height: 50px;
  border-color: var(--gold-dim);
  background: rgba(227, 196, 133, 0.1);
}

.card:hover .ic-wrap {
  border-color: var(--gold-dim);
  background: rgba(227, 196, 133, 0.08);
}

.ic-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.info {
  min-width: 0;
  flex: 1;
}

.idx-num {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(227, 196, 133, 0.55);
  margin-bottom: 2px;
}

.t {
  display: block;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.22s ease;
}

.founder-inner .t { font-size: 19px; }
.card:hover .t, .founder-inner:hover .t { color: var(--gold); }

.fb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.fb svg { width: 14px; height: 14px; fill: currentColor; }

.card:hover .fb,
.founder-inner:hover .fb {
  transform: scale(1.12);
  background: var(--gold);
  border-color: var(--gold);
  color: #0b0906;
  box-shadow: 0 0 18px rgba(227, 196, 133, 0.5);
}

/* Pagination */
#pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
}

#pager button {
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 15, 20, 0.74);
  backdrop-filter: blur(14px);
  color: var(--platinum);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}

#pager button:hover:not(:disabled) {
  border-color: var(--gold-dim);
  color: #fff;
  transform: translateY(-1px);
}

#pager button.active {
  background: linear-gradient(135deg, #f5e2b8, #c49c52);
  color: #0b0906;
  border-color: var(--gold);
  font-weight: 800;
  box-shadow: 0 6px 22px rgba(227, 196, 133, 0.36);
}

#pager button:disabled { opacity: 0.32; cursor: default; }

/* === Luxury Floating Music Dock === */
#player {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 12, 17, 0.84);
  border: 1px solid rgba(227, 196, 133, 0.26);
  backdrop-filter: blur(22px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.62);
}

.p-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  transition: all 0.2s ease;
}

.p-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b0906;
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.eq i {
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
  transition: height 0.2s ease;
}

#player.playing .eq i {
  animation: eqBounce 0.78s ease-in-out infinite alternate;
}

#player.playing .eq i:nth-child(2) { animation-delay: 0.18s; }
#player.playing .eq i:nth-child(3) { animation-delay: 0.36s; }
#player.playing .eq i:nth-child(4) { animation-delay: 0.12s; }

@keyframes eqBounce {
  from { height: 4px; opacity: 0.45; }
  to { height: 14px; opacity: 1; }
}

.p-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
}

.p-title {
  font-family: "Orbitron", sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--gold);
  white-space: nowrap;
}

.p-status {
  font-size: 11px;
  color: var(--platinum);
  white-space: nowrap;
}

.p-vol {
  width: 64px;
  accent-color: var(--gold);
  cursor: pointer;
}

#ytHost {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  bottom: 0;
}

/* === Admin Modal === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal {
  width: min(620px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0e0e14;
  padding: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-head h3 {
  font-family: "Orbitron", "Noto Sans Thai", sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.close-m {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.adm-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.adm-form input,
.adm-form select {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #17171f;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
}

.adm-form .full { grid-column: 1 / -1; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.btn-w {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #f5e2b8, #c49c52);
  color: #0d0b07;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.btn-g {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.adm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}

.adm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
}

.adm-row small {
  color: var(--gold);
  margin-left: 8px;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.adm-row .del-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 95, 95, 0.4);
  background: rgba(255, 95, 95, 0.1);
  color: #ff9c9c;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .fnav-brand { display: none; }
  .fnav-item { padding: 7px 11px; font-size: 10.5px; }
  .p-meta, .p-vol { display: none; }
  .adm-form { grid-template-columns: 1fr; }
}
