/*
  OTT 레이더 - Tech UI (Mobile-first)
  - 가독성 / 대비 / 터치 타겟 강화
  - 모바일 메뉴 드로어
  - 네온/글로우/그리드 배경(과하지 않게)
*/

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body, h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }

/* ============ Theme Tokens ============ */
:root {
  --bg-0: #040611;
  --bg-1: #070b1a;
  --panel: rgba(12, 18, 40, 0.78);
  --panel-2: rgba(10, 14, 32, 0.92);
  --text: #eef2ff;
  --muted: rgba(238, 242, 255, 0.72);
  --dimmed: rgba(238, 242, 255, 0.55);
  --border: rgba(153, 170, 255, 0.24);
  --border-2: rgba(153, 170, 255, 0.16);
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.55);
  --shadow-2: 0 14px 35px rgba(0, 0, 0, 0.55);

  /* Accent (default = template-1) */
  --accent: #60a5fa;
  --accent-2: #22c55e;
  --accent-warm: #f59e0b;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  --container: 1180px;
}

/* Template 색상은 '앱 전체 룩'은 유지하되 포인트 색만 바뀌게 */
body.template-1  { --accent: #60a5fa; --accent-2: #22c55e; }
body.template-2  { --accent: #c084fc; --accent-2: #60a5fa; }
body.template-3  { --accent: #2dd4bf; --accent-2: #22c55e; }
body.template-4  { --accent: #fb923c; --accent-2: #f97316; }
body.template-5  { --accent: #60a5fa; --accent-2: #38bdf8; }
body.template-6  { --accent: #f472b6; --accent-2: #fb7185; }
body.template-7  { --accent: #22d3ee; --accent-2: #a7f3d0; }
body.template-8  { --accent: #94a3b8; --accent-2: #e2e8f0; }
body.template-9  { --accent: #bef264; --accent-2: #22c55e; }
body.template-10 { --accent: #eab308; --accent-2: #38bdf8; }

/* ============ Base ============ */
html { scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(900px 700px at 16% 10%, rgba(96, 165, 250, 0.18), transparent 58%),
    radial-gradient(700px 600px at 78% 18%, rgba(34, 197, 94, 0.12), transparent 55%),
    radial-gradient(900px 800px at 50% 110%, rgba(99, 102, 241, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

/* Subtle tech grid + scanline (very low opacity) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 44px);
  opacity: 0.22;
  mask-image: radial-gradient(60% 55% at 50% 0%, #000 20%, transparent 72%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  opacity: 0.16;
  transform: translateY(-30%);
  animation: scan 8s linear infinite;
}
@keyframes scan {
  0% { transform: translateY(-35%); }
  100% { transform: translateY(35%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  * { transition: none !important; }
}

a { color: inherit; }

/* Focus (키보드 접근성) */
:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.85);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 999;
  background: rgba(0,0,0,0.85);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

.muted { color: var(--muted); font-size: 0.88rem; }
.dimmed { color: var(--dimmed); font-size: 0.82rem; }

/* ============ Layout ============ */
.page-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 14px 60px;
}
@media (min-width: 720px) {
  .page-main { padding: 24px 18px 70px; }
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(90deg, rgba(6, 10, 24, 0.82), rgba(6, 10, 24, 0.58));
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.65), rgba(34,197,94,0.55), transparent);
  opacity: 0.65;
}

.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
}
@media (min-width: 920px) {
  .site-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    padding: 14px 18px;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #050611;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.logo-text {
  font-weight: 750;
  font-size: 0.92rem;
  color: rgba(238, 242, 255, 0.92);
}

/* Nav Drawer Toggle */
.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 32, 0.70);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-2);
}
.nav-toggle:hover { border-color: rgba(96,165,250,0.55); }
.nav-toggle-bars {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars {
  background: transparent;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle-bars { }
.nav-toggle-bars {
  box-shadow: 0 0 0 0 transparent;
}
.nav-toggle-bars {
  /* middle bar */
}
.nav-toggle-bars::marker { content: ""; }

/* middle line via background-image trick */
.nav-toggle-bars {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  height: 2px;
  border-radius: 999px;
  top: 5px;
}

@media (min-width: 920px) {
  .nav-toggle { display: none; }
}

.nav-backdrop {
  display: none;
}

/* Main nav - desktop */
.main-nav {
  display: none;
}
@media (min-width: 920px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge legacy */
  }
  .main-nav::-webkit-scrollbar { display: none; } /* Chrome/Safari */

  .main-nav .nav-head,
  .main-nav .nav-group-title { display: none; }
  .main-nav .nav-group { display: contents; }

  .main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    text-decoration: none;
    font-size: 0.9rem;
    color: rgba(238, 242, 255, 0.78);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  }
  .main-nav a:hover {
    background: rgba(96,165,250,0.12);
    border-color: rgba(96,165,250,0.25);
    color: rgba(238, 242, 255, 0.95);
    transform: translateY(-1px);
  }
}

/* Main nav - mobile drawer */
@media (max-width: 919px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(88vw, 360px);
    transform: translateX(106%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(6, 10, 24, 0.92);
    border-left: 1px solid var(--border);
    box-shadow: 0 28px 90px rgba(0,0,0,0.7);
    z-index: 80;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 70;
  }

  body.nav-open .nav-backdrop { display: block; }
  body.nav-open .main-nav { transform: translateX(0); }

  .nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    border-radius: var(--radius-md);
    background: rgba(10, 14, 32, 0.7);
    border: 1px solid var(--border);
    margin-bottom: 6px;
  }
  .nav-title { font-weight: 800; letter-spacing: 0.02em; }
  .nav-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(10, 14, 32, 0.55);
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1;
  }

  .main-nav > a {
    padding: 12px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1px solid var(--border-2);
    background: rgba(10, 14, 32, 0.46);
    color: rgba(238, 242, 255, 0.92);
  }

  .nav-group {
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-2);
    background: rgba(10, 14, 32, 0.36);
  }
  .nav-group-title {
    font-size: 0.82rem;
    color: rgba(238, 242, 255, 0.65);
    margin-bottom: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .nav-group a {
    display: block;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(238, 242, 255, 0.9);
    border: 1px solid transparent;
  }
  .nav-group a:hover {
    background: rgba(96,165,250,0.12);
    border-color: rgba(96,165,250,0.22);
  }
}

/* Search */
.search-form { justify-self: end; width: 100%; }
@media (min-width: 920px) { .search-form { width: 320px; } }
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 32, 0.65);
  box-shadow: var(--shadow-2);
}
.search-wrap input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
  padding: 6px 6px;
}
.search-wrap input::placeholder { color: rgba(238, 242, 255, 0.55); }
.search-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,0.24);
  background: linear-gradient(135deg, rgba(96,165,250,0.25), rgba(34,197,94,0.18));
  color: rgba(238, 242, 255, 0.95);
  cursor: pointer;
}
.search-btn:hover { border-color: rgba(96,165,250,0.5); }

/* ============ Hero ============ */
.hero-section {
  margin-top: 10px;
  margin-bottom: 18px;
  padding: 18px 16px;
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    radial-gradient(900px 260px at 18% 0%, rgba(96,165,250,0.18), transparent 55%),
    radial-gradient(700px 280px at 75% 10%, rgba(34,197,94,0.12), transparent 60%),
    linear-gradient(180deg, rgba(10, 14, 32, 0.82), rgba(10, 14, 32, 0.58));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-content h1 {
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}
.hero-content p {
  margin-top: 6px;
  color: rgba(238, 242, 255, 0.78);
  font-size: 0.95rem;
}
.hero-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,0.25);
  background: rgba(96,165,250,0.12);
  color: rgba(238, 242, 255, 0.92);
}
@media (min-width: 720px) {
  .hero-section { padding: 22px 20px; }
  .hero-content h1 { font-size: 1.55rem; }
}

/* ============ Section ============ */
.section-block { margin-top: 16px; margin-bottom: 28px; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.section-header h1, .section-header h2 {
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}
.section-sub {
  margin-top: 6px;
  color: rgba(238, 242, 255, 0.7);
  font-size: 0.9rem;
}
.more-link {
  font-size: 0.88rem;
  color: rgba(238, 242, 255, 0.75);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,0.18);
  background: rgba(96,165,250,0.08);
}
.more-link:hover { border-color: rgba(96,165,250,0.42); }

/* ============ Card Grid ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 520px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 840px) {
  .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.title-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: var(--radius-md);
  background: rgba(10, 14, 32, 0.52);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-2);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.title-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(96,165,250,0.35), rgba(34,197,94,0.25));
  opacity: 0;
  filter: blur(12px);
  z-index: -1;
  transition: opacity 0.12s ease;
}
.title-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,0.35);
  background: rgba(10, 14, 32, 0.62);
}
.title-card:hover::before { opacity: 0.7; }

.poster-wrap,
.title-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(153, 170, 255, 0.12);
}
.poster-wrap img,
.title-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.16s ease;
}
.title-card:hover .poster-wrap img,
.title-card:hover .title-poster-wrap img { transform: scale(1.06); }

.badge-score {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #050611;
  background: linear-gradient(135deg, rgba(250,204,21,1), rgba(249,115,22,1));
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}

.title-meta { margin-top: 10px; }
.title-meta h3 {
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  color: rgba(238, 242, 255, 0.96);
}
.title-meta span { font-size: 0.82rem; }

.title-line { display: flex; align-items: baseline; gap: 6px; }
.title-text { font-size: 0.94rem; font-weight: 750; }
.title-year { font-size: 0.8rem; color: rgba(238,242,255,0.55); }

/* ============ Detail Hero ============ */
.detail-hero {
  margin: -10px -14px 18px;
  padding: 26px 14px 16px;
  background-size: cover;
  background-position: center;
  position: relative;
}
@media (min-width: 720px) {
  .detail-hero { margin: -12px -18px 18px; padding: 34px 18px 18px; }
}
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(850px 420px at 20% 0%, rgba(96,165,250,0.25), transparent 60%),
              radial-gradient(850px 420px at 80% 0%, rgba(34,197,94,0.16), transparent 62%),
              linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.75));
}
.detail-hero-overlay {
  position: relative;
  border-radius: 0 0 calc(var(--radius-lg) + 6px) calc(var(--radius-lg) + 6px);
  background: rgba(6, 10, 24, 0.75);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.detail-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 860px) {
  .detail-hero-inner { grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 22px 18px; }
}
.detail-poster img {
  max-width: 220px;
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid rgba(153, 170, 255, 0.18);
  box-shadow: 0 26px 70px rgba(0,0,0,0.75);
}
.detail-main h1 { font-size: 1.35rem; letter-spacing: 0.01em; }
@media (min-width: 720px) { .detail-main h1 { font-size: 1.6rem; } }

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: rgba(238, 242, 255, 0.85);
  font-size: 0.88rem;
}
.detail-meta-line span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,0.18);
  background: rgba(96,165,250,0.08);
}
.pill {
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.20);
  color: rgba(238,242,255,0.92);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.detail-score {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(250,204,21,1), rgba(249,115,22,1));
  color: #050611;
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}
.score-main { font-weight: 900; font-size: 1.1rem; }
.score-sub { font-size: 0.8rem; opacity: 0.8; }

.detail-overview {
  margin-top: 12px;
  color: rgba(238, 242, 255, 0.86);
  font-size: 0.96rem;
}

/* Detail layout */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 980px) {
  .detail-layout { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 18px; }
}
.detail-primary h2 { font-size: 1.05rem; margin-bottom: 10px; }

/* Trailer */
.trailer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
.trailer-item iframe {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(153, 170, 255, 0.18);
  background: rgba(0,0,0,0.35);
}
@media (min-width: 860px) { .trailer-item iframe { height: 260px; } }

/* Image strip */
.image-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.image-thumb {
  flex: 0 0 auto;
  width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(96,165,250,0.20);
  background: rgba(0,0,0,0.25);
  scroll-snap-align: start;
}
.image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sidebar */
.detail-sidebar { display: flex; flex-direction: column; gap: 12px; }
.side-block {
  background: rgba(10, 14, 32, 0.55);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  padding: 12px 12px;
  box-shadow: var(--shadow-2);
}
.side-block h3 { font-size: 0.96rem; margin-bottom: 8px; }
.people-list { font-size: 0.92rem; color: rgba(238, 242, 255, 0.88); }
.people-list li + li { margin-top: 6px; }

.info-list { font-size: 0.88rem; color: rgba(238, 242, 255, 0.9); }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(153,170,255,0.14); }
.info-list li:last-child { border-bottom: 0; }
.info-list span:first-child { color: rgba(238, 242, 255, 0.62); }

/* VOD / Buttons */
.vod-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.vod-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 14px 35px rgba(0,0,0,0.55);
  transition: transform 0.12s ease, filter 0.12s ease;
  white-space: nowrap;
}
.vod-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.vod-btn-1 { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #050611; }
.vod-btn-2 { background: linear-gradient(135deg, rgba(236,72,153,1), rgba(249,115,22,1)); color: #050611; }
.vod-btn-coupang { background: linear-gradient(135deg, rgba(250,204,21,1), rgba(14,165,233,1)); color: #050611; }

/* Pagination */
.pagination { margin-top: 14px; display: flex; align-items: center; gap: 10px; justify-content: center; }
.page-link {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,0.22);
  background: rgba(96,165,250,0.08);
  color: rgba(238, 242, 255, 0.92);
}
.page-link:hover { border-color: rgba(96,165,250,0.45); }
.page-current { color: rgba(238, 242, 255, 0.75); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 10, 24, 0.72);
  padding: 18px 14px 26px;
}
.site-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav a {
  color: rgba(238, 242, 255, 0.78);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,0.18);
  background: rgba(96,165,250,0.06);
}
.footer-nav a:hover { border-color: rgba(96,165,250,0.42); }

/* Floating Top Button */
.fab-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(96,165,250,0.24);
  background: linear-gradient(135deg, rgba(96,165,250,0.25), rgba(34,197,94,0.18));
  color: rgba(238, 242, 255, 0.95);
  box-shadow: 0 22px 65px rgba(0,0,0,0.6);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 60;
}
.fab-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Small devices polish */
@media (max-width: 360px) {
  .logo-text { display: none; }
  .search-wrap { padding: 6px 7px; }
}
