:root {
  --bg: #060b12;
  --bg-2: #0b111a;
  --panel: #0d1520;
  --panel-2: #121c2a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #edf4ff;
  --text-soft: #9db0c7;
  --text-dim: #6f8299;
  --accent: #75acff;
  --accent-2: #7af0d7;
  --gold: #f0cf6a;
  --green: #9af0bf;
  --amber: #f3d384;
  --danger: #ff8a9a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --tap: 44px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background:
    radial-gradient(circle at top, rgba(76, 127, 214, 0.14), transparent 32%),
    linear-gradient(180deg, #060b12 0%, #08101a 42%, #060b12 100%);
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
select,
option {
  color: var(--text);
  background-color: #101927;
}
button { cursor: pointer; }
img { max-width: 100%; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container { width: min(100% - 18px, 1480px); margin: 0 auto; }
.panel {
  min-width: 0;
  background: linear-gradient(180deg, rgba(14, 21, 32, 0.98), rgba(10, 16, 25, 0.99));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(8, 12, 18, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #07111b;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px rgba(117, 172, 255, 0.22);
}
.brand-copy { min-width: 0; display: grid; gap: 2px; }
.brand-copy strong,
.brand-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy strong { font-size: 1rem; }
.brand-copy small { display: none; color: var(--text-soft); font-size: 12px; }
.nav { display: none; }
.top-actions { display: inline-flex; align-items: center; gap: 10px; }
.top-cta,
.search-row button,
.filter-actions button,
.drawer-filter-form button,
.primary-link,
.action-detail,
.page-btn,
.mobile-actionbar a,
.mobile-actionbar button {
  min-height: var(--tap);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #06111b;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(117, 172, 255, 0.22);
}
.top-cta { display: none; }
.ghost-link,
.download-btn,
.filter-btn {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.ghost-link:hover,
.nav a:hover { color: var(--text); }
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.icon-btn span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.hero-tools { padding: 18px 0 10px; }
.hero-grid {
  padding: 0;
}
.hero-main h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
}
.hero-subtitle {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.publish-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(117, 172, 255, 0.16);
  background: linear-gradient(180deg, rgba(117, 172, 255, 0.10), rgba(255, 255, 255, 0.03));
}
.card-badge,
.inline-badge {
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #06111b;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #f2c96b, #ffe7af);
}
.publish-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.35rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.publish-card p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.publish-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.search-row {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.search-row input {
  min-height: 54px;
  width: 100%;
  padding: 0 16px;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.search-row input:focus {
  outline: none;
  border-color: rgba(117, 172, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(117, 172, 255, 0.08);
}
.filter-wrap {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.hero-main > .filter-wrap { display: none; }
.filter-summary {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}
.filter-summary span {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
}
.filter-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 0.96rem;
}
.filter-box {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}
.toolbar-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 12px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn.active {
  color: #07111b;
  font-weight: 800;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.listing-filter-strip {
  padding: 12px;
}
.listing-filter-form {
  display: grid;
  gap: 10px;
}
.filter-search,
.filter-select {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.filter-search span,
.filter-select span {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
}
.filter-search input,
.filter-select select,
.drawer-filter-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}
.filter-select select {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 12px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.filter-search input:focus,
.filter-select select:focus,
.drawer-filter-form input:focus {
  outline: none;
  border-color: rgba(117, 172, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(117, 172, 255, 0.08);
}
.filter-wrap-inline {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.filter-actions {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}
.filter-actions button,
.filter-actions .ghost-link {
  min-height: 48px;
  width: 100%;
}
.drawer-filter-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stat-card {
  min-height: 86px;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}
.stat-card strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
}
.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.page-layout {
  display: grid;
  gap: 18px;
  align-items: start;
  padding-bottom: 88px;
}
.content-column,
.sidebar {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.section-panel,
.media-zone,
.side-panel {
  padding: 16px;
}
.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.section-head h2,
.section-head h3 {
  margin: 0;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.section-head h2 { font-size: 1.55rem; }
.section-head h3 { font-size: 1.35rem; }
.section-note {
  color: var(--text-dim);
  font-size: 13px;
  text-align: left;
}
.list-stack { display: grid; gap: 10px; }
.server-line {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}
.server-line.is-featured {
  border-color: rgba(240, 207, 106, 0.26);
  background: linear-gradient(90deg, rgba(240, 207, 106, 0.06), rgba(255, 255, 255, 0.015));
}
.server-left {
  min-width: 0;
  display: grid;
  gap: 10px;
}
.line-top {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.name-cluster {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.name-cluster h3 {
  margin: 0;
  min-width: 0;
  font-size: 1.22rem;
  line-height: 1.14;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.primary-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-soft);
}
.open-inline { font-size: 14px; font-weight: 700; }
.version-pill {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-weight: 800;
}
.line-mid,
.line-bottom {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.line-mid {
  color: var(--text-soft);
  font-size: 15px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.line-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 14px;
}
.rate-inline,
.region-inline,
.type-inline {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.separator { color: var(--text-dim); flex: 0 0 auto; }
.server-right {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 10px;
}
.status-pill {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}
.status-upcoming { color: #07111b; background: var(--amber); }
.status-today { color: #07111b; background: var(--green); }
.status-opened { color: #06111b; background: #9ce7ff; }
.action-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 10px;
}
.download-btn {
  width: 44px;
  min-width: 44px;
  padding: 0;
  font-size: 18px;
}
.download-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.download-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.download-btn.active {
  color: #06111b;
  font-weight: 900;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.download-btn.disabled {
  opacity: 0.52;
  color: var(--text-dim);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}
.action-detail { min-width: 108px; }
.action-row .action-detail { flex: 1 1 auto; }

.media-strip-stack { display: grid; gap: 14px; }
.wide-media {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #070d14;
}
.wide-media img {
  width: 100%;
  height: auto;
  display: block;
}
.side-frame {
  display: block;
  overflow: hidden;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #08101a;
}
.side-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.side-frame-square,
.side-frame-tall { aspect-ratio: 6 / 5; }
.side-frame:hover,
.wide-media:hover {
  border-color: rgba(117, 172, 255, 0.22);
}
.tiktok-profile-card {
  position: relative;
  min-height: 265px;
  display: grid;
  place-items: stretch;
}
.tiktok-profile-card .tiktok-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: hidden;
}
.tiktok-profile-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 100%;
  padding: 18px;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(5, 10, 17, 0.08), rgba(5, 10, 17, 0.86)),
    radial-gradient(circle at 20% 15%, rgba(37, 244, 238, 0.18), transparent 32%),
    radial-gradient(circle at 88% 24%, rgba(254, 44, 85, 0.16), transparent 34%);
  pointer-events: none;
}
.media-carousel-card .tiktok-profile-fallback {
  padding-bottom: 42px;
}
.tiktok-profile-fallback span {
  width: max-content;
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #07111b;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #25f4ee, #fe2c55);
}
.tiktok-profile-fallback strong {
  font-size: 1.32rem;
  line-height: 1.12;
}
.tiktok-profile-fallback em {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}
.tiktok-profile-fallback small,
.tiktok-profile-fallback p {
  margin: 0;
  color: var(--text-soft);
}
.tiktok-profile-click {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.tiktok-profile-card:hover {
  border-color: rgba(37, 244, 238, 0.28);
}
.media-carousel {
  position: relative;
  display: block;
  overflow: hidden;
}
.media-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.media-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 320ms ease;
}
.media-carousel-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.media-carousel-card {
  width: 100%;
  min-height: 100%;
  display: block;
  border: 0;
  border-radius: inherit;
  overflow: hidden;
  background: transparent;
}
.media-carousel-card.tiktok-profile-card {
  min-height: 265px;
}
.media-carousel-dots {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.media-carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  pointer-events: auto;
}
.media-carousel-dots button.is-active {
  width: 22px;
  background: var(--accent-2);
}
.upcoming-card {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  text-align: left;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.upcoming-card + .upcoming-card { margin-top: 12px; }
.upcoming-card strong { display: block; font-size: 1.1rem; }
.upcoming-card span {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 14px;
}
.upcoming-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.empty-state {
  padding: 20px;
  border-radius: 16px;
  color: var(--text-soft);
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
}
.empty-state.small { padding: 16px; font-size: 14px; }
.empty-page {
  padding: 26px;
  min-height: 300px;
  display: grid;
  align-content: center;
  justify-items: start;
}
.empty-page h1 { margin: 0; }
.empty-page p { color: var(--text-soft); line-height: 1.7; }

.pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pagination span { color: var(--text-soft); }
.page-btn.disabled {
  pointer-events: none;
  opacity: 0.42;
}

.modal,
.drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}
.modal.show,
.drawer.show { display: block; }
.modal-backdrop,
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 12, 0.72);
  backdrop-filter: blur(8px);
}
.modal-panel {
  position: relative;
  width: min(960px, calc(100% - 20px));
  max-height: calc(100dvh - 24px);
  margin: 12px auto;
  padding: 22px;
  overflow: auto;
}
.drawer-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88dvh;
  padding: 16px;
  overflow: auto;
  border-radius: 22px 22px 0 0;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.drawer-head strong { font-size: 1.2rem; }
.modal-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--text-soft);
  font-size: 26px;
  background: rgba(255, 255, 255, 0.04);
}
.modal-panel > .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}
.detail-top {
  display: grid;
  gap: 18px;
  align-items: start;
}
.detail-header { padding-right: 44px; }
.detail-header h2 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.08;
}
.detail-tagline {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}
.detail-tags,
.detail-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.meta-pill {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.detail-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.detail-card,
.detail-section {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.detail-card span {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
}
.detail-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
}
.detail-section {
  margin-top: 22px;
}
.detail-section h3 { margin: 0 0 10px; font-size: 1.1rem; }
.detail-section p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}
.detail-image-grid {
  display: grid;
  gap: 12px;
}
.detail-image-grid a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.detail-image-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.mobile-actionbar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.86);
  backdrop-filter: blur(14px);
}
.mobile-actionbar button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 12, 18, 0.72);
}
.footer-inner {
  min-height: 74px;
  padding-bottom: 78px;
  display: grid;
  gap: 6px;
  align-content: center;
  color: var(--text-soft);
}

@media (min-width: 641px) {
  .container { width: min(100% - 28px, 1480px); }
  .brand-copy small { display: block; }
  .top-cta { display: inline-flex; }
  .search-row { grid-template-columns: minmax(0, 1fr) auto; }
  .stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filter-wrap-inline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-main > .filter-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-main > .filter-wrap .filter-summary { display: none; }
  .mobile-filter-trigger,
  .mobile-actionbar { display: none; }
  .footer-inner {
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.auth-wrap {
  min-height: calc(100vh - 142px);
  padding: 34px 12px;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 480px);
  padding: 24px;
}

.auth-card h1 {
  margin: 0;
  font-size: 2rem;
}

.auth-card p {
  color: var(--text-soft);
  line-height: 1.7;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.form-stack label span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.form-stack input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}

.auth-links {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 14px;
}

.flash {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}

.flash.success {
  color: var(--green);
  border-color: rgba(154, 240, 191, 0.26);
}

.flash.error {
  color: var(--danger);
  border-color: rgba(255, 138, 154, 0.26);
}

.detail-page-panel {
  padding: 20px;
}

.detail-page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1;
}

.detail-related-layout {
  padding-top: 0;
}

@media (min-width: 861px) {
  .nav {
    display: flex;
    gap: 18px;
    color: var(--text-soft);
    font-size: 14px;
  }
  .hero-main h1 { font-size: 2.6rem; }
  .section-head h2 { font-size: 2.05rem; }
  .listing-filter-form {
    grid-template-columns: minmax(220px, 1fr) minmax(118px, 0.55fr) minmax(132px, 0.6fr) minmax(118px, 0.55fr) auto;
    align-items: end;
  }
  .filter-wrap-inline {
    display: contents;
  }
  .filter-actions {
    flex-wrap: nowrap;
  }
  .filter-actions button,
  .filter-actions .ghost-link {
    width: auto;
    white-space: nowrap;
  }
  .section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }
  .section-note { text-align: right; }
  .server-line {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 18px;
    padding: 16px 18px;
  }
  .line-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .server-right {
    display: grid;
    justify-items: end;
    gap: 10px;
  }
  .action-row {
    width: auto;
    justify-content: flex-end;
  }
  .rate-inline,
  .type-inline {
    white-space: nowrap;
  }
  .detail-top { grid-template-columns: minmax(0, 1fr) auto; }
  .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1181px) {
  .hero-tools { padding: 22px 0 12px; }
  .hero-main h1 { font-size: 2.85rem; }
  .stats-row { grid-column: 1 / -1; }
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    padding-bottom: 28px;
  }
  .section-panel,
  .media-zone { padding: 18px; }
  .side-frame-tall { aspect-ratio: 1 / 2; }
}
