:root {
  --bg: #050d18;
  --bg2: #091728;
  --panel: #0d2035;
  --panel2: #132b45;
  --border: #264761;
  --line: #1c364d;
  --text: #eaf4fc;
  --muted: #8ea8be;
  --cyan: #70e4ff;
  --accent: #70e4ff;
  --gold: #ffcf56;
  --gold-bg: rgba(255, 207, 86, 0.12);
  --cyan-bg: rgba(112, 228, 255, 0.1);
  --purple: #c59aff;
  --safe: #7df2c6;
  --warn: #ffb877;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden], .matrix-table-wrap[hidden], #gallery[hidden] { display: none !important; }
body {
  margin: 0;
  line-height: 1.6;
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .75;
  background: 
    radial-gradient(ellipse at 15% 10%, rgba(35, 75, 115, 0.35), transparent 45%),
    radial-gradient(ellipse at 85% 65%, rgba(18, 45, 78, 0.4), transparent 40%),
    radial-gradient(rgba(140, 205, 235, 0.18) 1px, transparent 1px);
  background-size: auto, auto, 41px 47px;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.wrap {
  width: min(1360px, calc(100% - 48px));
  margin: auto;
}

.skip {
  position: absolute;
  top: -200px;
  left: 20px;
  background: #fff;
  color: #000;
  padding: 10px;
  z-index: 999;
}
.skip:focus { top: 8px; }

/* 頂端導航列 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 16, 28, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #234661;
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  border: 1px solid #4a85a8;
  border-radius: 8px;
  background: rgba(112, 228, 255, 0.08);
  font-size: 22px;
  box-shadow: 0 0 16px rgba(112, 228, 255, 0.25);
}
.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: #fff;
}
.brand small {
  display: block;
  font-size: 10px;
  color: #8bb0c7;
  letter-spacing: 0.2em;
  font-family: ui-monospace, monospace;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-link {
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 6px;
  border: 1px solid #2e4c63;
  color: #b9d2e4;
  transition: all .2s;
  background: rgba(14, 33, 52, 0.6);
}
.nav-link:hover {
  background: #173d5e;
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-1px);
}
.nav-link.highlight {
  border-color: var(--cyan);
  background: rgba(112, 228, 255, 0.12);
  color: #d8f6ff;
  font-weight: 700;
}

/* 英雄區塊 */
.hero {
  background: radial-gradient(ellipse at 70% 30%, #1c3d59 0%, #0c2033 42%, #050d18 78%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #23435b;
}
.hero-layout {
  min-height: 500px;
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  gap: 20px;
  padding: 40px 0;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.kicker {
  font: 11px ui-monospace, monospace;
  letter-spacing: 0.22em;
  color: var(--cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  display: inline-block;
  background: var(--safe);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--safe);
}
.hero h1 {
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.22;
  margin: 18px 0;
  color: #f2f8fb;
  letter-spacing: 0.02em;
  font-weight: 750;
}
.hero h1 em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 25px rgba(112, 228, 255, 0.45);
}
.hero-desc {
  color: #b7ccd9;
  font-size: 15px;
  line-height: 1.9;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.primary-link {
  background: linear-gradient(135deg, #70e4ff, #43bfe3);
  color: #031422;
  font-weight: 750;
  padding: 12px 22px;
  border-radius: 7px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(112, 228, 255, 0.35);
  transition: all .2s;
}
.primary-link:hover {
  background: #a2f0ff;
  box-shadow: 0 0 30px rgba(112, 228, 255, 0.6);
  transform: translateY(-2px);
}
.secondary-link {
  color: #bfe5f7;
  border: 1px solid #365b75;
  background: rgba(14, 34, 53, 0.7);
  padding: 11px 18px;
  border-radius: 7px;
  font-size: 13px;
  transition: all .2s;
}
.secondary-link:hover {
  background: #194366;
  border-color: var(--cyan);
  color: #fff;
}
.hero-stat-grid {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat-grid > div {
  border-left: 2px solid #325873;
  padding-left: 16px;
}
.hero-stat-grid b {
  display: block;
  font-size: 26px;
  color: #fff;
  font-family: ui-monospace, monospace;
}
.hero-stat-grid span {
  font-size: 11px;
  color: #8dafc1;
}

.hero-art {
  width: 100%;
  aspect-ratio: 1.35;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid #2f5675;
  box-shadow: 0 15px 45px rgba(0,0,0,0.6);
  background: #091a2d;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  right: 18px;
  font-weight: 750;
  letter-spacing: 0.1em;
  font-size: 18px;
  text-shadow: 0 2px 8px #000;
  background: rgba(4, 15, 27, 0.85);
  border: 1px solid #3a6280;
  padding: 6px 12px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}
.hero-overlay small {
  font-size: 9px;
  color: var(--cyan);
  display: block;
  font-family: ui-monospace, monospace;
}

/* 主要內容區 */
.content {
  padding-top: 50px;
  padding-bottom: 70px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.eyebrow {
  font: 11px ui-monospace, monospace;
  letter-spacing: 0.2em;
  color: var(--cyan);
  font-weight: 700;
}
.section-head h2 {
  font-size: 32px;
  margin: 6px 0 8px;
  color: #fff;
}
.section-head p {
  margin: 0;
  color: #9eb8ca;
  max-width: 820px;
  font-size: 13px;
  line-height: 1.8;
}

/* 快捷分類標籤列 */
.quick-chips-wrap {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.chip-label {
  font: 11px ui-monospace, monospace;
  color: #799ab1;
  letter-spacing: 1px;
  margin-right: 4px;
}
.chip-btn {
  background: #091c2f;
  border: 1px solid #23425b;
  color: #bad3e3;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}
.chip-btn:hover {
  border-color: var(--cyan);
  color: #fff;
  background: #112d47;
}
.chip-btn.active {
  background: var(--cyan-bg);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(112, 228, 255, 0.25);
}
.chip-count {
  font: 10px ui-monospace, monospace;
  opacity: .75;
}

/* 控制列與檢視切換 */
.control-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  border: 1px solid #244660;
  background: #0c1e30;
  border-radius: 12px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.search {
  flex: 2;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #061524;
  border: 1px solid #2f5068;
  border-radius: 8px;
}
.search span {
  font-size: 20px;
  color: var(--cyan);
}
.search input {
  width: 100%;
  padding: 10px 0;
  background: none;
  border: 0;
  color: #fff;
  outline: none;
  font-size: 13px;
}
.search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(112, 228, 255, 0.3);
}

.selector {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #061524;
  border: 1px solid #2f5068;
  border-radius: 8px;
  padding: 5px 10px;
  flex: 1;
  min-width: 140px;
}
.selector span {
  color: #83a5bc;
  font-size: 10px;
}
.selector select {
  background: transparent;
  color: #eaf5fb;
  border: 0;
  outline: 0;
  font-size: 12px;
  min-height: 22px;
  cursor: pointer;
}
.selector select option {
  background: #0a1b2d;
  color: #fff;
}

/* 檢視切換按鈕組 */
.view-toggle {
  display: flex;
  border: 1px solid #2f5068;
  border-radius: 8px;
  overflow: hidden;
  background: #061524;
}
.view-btn {
  background: transparent;
  border: 0;
  color: #8daec4;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}
.view-btn:hover {
  color: #fff;
  background: rgba(112, 228, 255, 0.08);
}
.view-btn.active {
  background: rgba(112, 228, 255, 0.18);
  color: var(--cyan);
  font-weight: 700;
}

.clear-button {
  background: #193348;
  color: #cfe6f5;
  border: 1px solid #365773;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12px;
  transition: all .2s;
}
.clear-button:hover {
  background: #234b6b;
  border-color: var(--cyan);
  color: #fff;
}

/* 結果提示列 */
.result-header {
  margin: 22px 0 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: #bad6e6;
  align-items: center;
  flex-wrap: wrap;
}
.result-header p { margin: 0; }
.faint { color: #7899b1; font-size: 12px; }

/* 艦艇網格卡片檢視 (Cards Mode) */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.fleet-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(155deg, #0b1f32 0%, #081726 100%);
  border: 1px solid #26475f;
  border-radius: 12px;
  min-width: 0;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  position: relative;
}
.fleet-card:hover, .fleet-card:focus-within {
  border-color: #6edbf8;
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(110, 228, 255, 0.2);
}

.card-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1.6;
  background: #061422;
  overflow: hidden;
  border-bottom: 1px solid #203c52;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.fleet-card:hover .card-img-wrap img {
  transform: scale(1.04);
}
.card-img-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.card-id-badge {
  font: 11px ui-monospace, monospace;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(5, 18, 31, 0.9);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.card-evidence-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(6, 19, 32, 0.9);
  border: 1px solid #3a5c75;
  color: #bad4e6;
}
.card-evidence-badge.illustrated {
  border-color: #e5b078;
  color: #ffdfba;
  background: rgba(48, 28, 12, 0.9);
}
.card-evidence-badge.missing {
  border-color: #ea7a65;
  color: #ffd2c9;
  background: rgba(48, 15, 12, 0.9);
}

.card-copy {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-top-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.card-category {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1px;
  font-weight: 600;
}
.card-model {
  font: 11px ui-monospace, monospace;
  color: var(--gold);
  background: rgba(255, 207, 86, 0.1);
  border: 1px solid rgba(255, 207, 86, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-copy h3 {
  font-size: 20px;
  margin: 4px 0 8px;
  line-height: 1.35;
  color: #fff;
}
.card-copy .desc {
  font-size: 13px;
  line-height: 1.75;
  color: #a4bccd;
  margin: 0 0 16px;
  min-height: 46px;
}

/* 設定集參數面板 (Spec Box inside each Card) */
.card-specs {
  border: 1px solid #23435c;
  background: rgba(7, 21, 35, 0.85);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px dashed rgba(44, 76, 102, 0.5);
  padding-bottom: 6px;
}
.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.spec-label {
  color: #7da0b7;
  font-size: 11px;
  white-space: nowrap;
}
.spec-val {
  color: #e2f2ff;
  text-align: right;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.spec-val.highlight-cyan {
  color: var(--cyan);
  font-weight: 700;
  font-family: ui-monospace, monospace;
}
.spec-val.highlight-gold {
  color: var(--gold);
  font-weight: 700;
}
.spec-val.font-mono {
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.tag-pill {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #112d46;
  border: 1px solid #2e5371;
  color: #a8d5eb;
}
.spec-note {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.spec-note .spec-val {
  text-align: left;
  font-size: 11px;
  color: #ffdfba;
  line-height: 1.5;
  background: rgba(255, 190, 118, 0.08);
  border-left: 2px solid var(--gold);
  padding: 4px 8px;
  border-radius: 0 4px 4px 0;
  width: 100%;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #213c51;
  padding-top: 14px;
  gap: 10px;
  color: #9cb5c6;
  font-size: 12px;
  margin-top: auto;
}
.foot-dim-pill {
  font: 11px ui-monospace, monospace;
  color: #8ed6ee;
}
.details-button {
  font-size: 12px;
  color: #031422;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 700;
  transition: all .2s;
  letter-spacing: 0.02em;
}
.details-button:hover {
  background: #a6efff;
  box-shadow: 0 0 15px rgba(112, 228, 255, 0.5);
  transform: translateY(-1px);
}

/* 參數矩陣列表檢視 (Matrix Table View) */
.matrix-table-wrap {
  overflow-x: auto;
  border: 1px solid #254761;
  border-radius: 12px;
  background: #081a2c;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  margin-bottom: 30px;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.matrix-table th {
  background: #0c2338;
  color: #94b9ce;
  padding: 14px 16px;
  font-weight: 700;
  border-bottom: 2px solid #285172;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.matrix-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #1a374f;
  color: #d6e8f4;
  vertical-align: middle;
}
.matrix-table tr:hover td {
  background: rgba(112, 228, 255, 0.05);
}
.table-thumb {
  width: 64px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #335977;
  display: block;
}
.table-id {
  font: 11px ui-monospace, monospace;
  font-weight: 700;
  color: var(--cyan);
}
.table-name strong {
  display: block;
  font-size: 13px;
  color: #fff;
}
.table-name small {
  font: 10px ui-monospace, monospace;
  color: var(--gold);
}
.table-dims {
  font: 11px ui-monospace, monospace;
  color: #79e5ff;
  white-space: nowrap;
}
.table-parent {
  font-size: 11px;
  color: var(--gold);
  white-space: nowrap;
}
.table-notes {
  max-width: 260px;
  font-size: 11px;
  color: #a4bccd;
  line-height: 1.5;
}

/* 詳情彈窗 (Modal Specs Upgrade) */
#detail {
  width: min(1180px, calc(100% - 32px));
  max-height: 94vh;
  padding: 0;
  border: 1px solid #3f6885;
  border-radius: 16px;
  color: var(--text);
  background: linear-gradient(180deg, #091a2d 0%, #061322 100%);
  box-shadow: 0 35px 95px rgba(0, 0, 0, 0.85), 0 0 45px rgba(112, 228, 255, 0.2);
}
#detail::backdrop {
  background: rgba(2, 8, 16, 0.88);
  backdrop-filter: blur(8px);
}
.modal-frame {
  padding: 26px;
  max-height: 93vh;
  overflow-y: auto;
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #23445e;
}
.modal-close {
  background: #142f47;
  border: 1px solid #3f6684;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: all .2s;
}
.modal-close:hover {
  background: #d93838;
  border-color: #d93838;
}
.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
  gap: 28px;
}
.modal-visual > div:first-child img {
  width: 100%;
  display: block;
  object-fit: contain;
  max-height: 65vh;
  border: 1px solid #2a4c62;
  border-radius: 10px;
  background: #05101a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.detail-crop {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #33556f;
  background: #0a1b2b;
  border-radius: 8px;
}
.detail-crop img {
  width: min(100%, 480px);
  object-fit: contain;
  border: 1px solid #436987;
  border-radius: 6px;
}
.detail-crop p {
  color: #9ab4c3;
  font-size: 11px;
  margin: 6px 0 0;
}

.modal-content h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.3;
  margin: 8px 0;
  color: #fff;
}
.modal-desc {
  font-size: 14px;
  line-height: 1.85;
  color: #b7ccd9;
  margin-bottom: 18px;
}
.modal-content dl {
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr;
  gap: 10px;
  border-top: 1px solid #284860;
  padding-top: 16px;
  font-size: 12px;
}
.modal-content dt {
  color: #79a8c0;
  font-weight: 600;
}
.modal-content dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #e4f3ff;
}
.review-note {
  margin-top: 20px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 207, 86, 0.08);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: #f7e0b5;
  line-height: 1.8;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 0;
}
.modal-actions > * {
  font-size: 12px;
  border: 1px solid #3d6887;
  border-radius: 7px;
  padding: 9px 15px;
  background: #14334c;
  color: #dbf0fc;
  transition: all .2s;
}
.modal-actions > *:hover {
  background: #204e75;
  border-color: var(--cyan);
  color: #fff;
}

/* 說明專區 */
.readme {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 55px;
}
.readme > div {
  background: #091c2e;
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 16px 22px;
}
.readme h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #fff;
}
.readme p {
  font-size: 12px;
  line-height: 1.85;
  color: #9cb5c6;
  margin: 0;
}

/* 頁尾 */
footer {
  border-top: 1px solid #1f394d;
  background: #040c17;
  padding: 28px 0;
}
.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-layout b {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #fff;
}
.footer-layout p {
  font-size: 11px;
  color: #7b99ad;
  margin: 4px 0 0;
}
.footer-links {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: #8daec2;
  flex-wrap: wrap;
}
.footer-links a:hover {
  color: var(--cyan);
}
.footer-symbol {
  font-size: 20px;
  color: var(--cyan);
  margin-right: 8px;
}

/* 25 張主要星艦原始設計圖總覽展區 (Master Blueprint Exhibition) */
.master-gallery-section {
  margin: 30px auto 40px;
}
.gallery-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
  background: linear-gradient(135deg, #07192a 0%, #040e1a 100%);
  border: 1px solid #1f4767;
  border-radius: 16px;
  padding: 30px 36px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.5), inset 0 0 40px rgba(110,228,255,0.04);
}
.gallery-copy .eyebrow {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.gallery-copy h2 {
  font-size: 26px;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.35;
}
.gallery-copy p {
  font-size: 13px;
  line-height: 1.8;
  color: #a1bfd3;
  margin: 0 0 20px;
}
.gallery-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.gallery-poster-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #28557b;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  background: #020810;
  transition: all .3s ease;
}
.gallery-poster-wrap:hover {
  border-color: var(--cyan);
  box-shadow: 0 12px 40px rgba(110,228,255,0.25);
  transform: translateY(-2px);
}
.gallery-poster-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .4s ease;
}
.gallery-poster-wrap:hover img {
  transform: scale(1.03);
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 8, 16, 0.95) 100%);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

@media (max-width: 1080px) {
  .fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-art { max-height: 380px; }
  .gallery-banner { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .gallery-poster-wrap img { height: 240px; }
}

@media (max-width: 720px) {
  .fleet-grid { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 30px); }
  .modal-grid { grid-template-columns: 1fr; }
  .readme { grid-template-columns: 1fr; }
  .control-bar { flex-direction: column; align-items: stretch; }
  .search { min-width: 100%; }
}
