:root {
  --bg: #0b1220;
  --panel: #111c2b;
  --line: #2a3a4a;
  --ink: #e6edf3;
  --dim: #8b9bb0;
  --acc: #58a6ff;
  --warm: #e0b06a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  background: radial-gradient(1100px 700px at 50% 0%, #16283a 0%, #0b1220 58%, #070d16 100%);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.site-head {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.site-brand b { color: #fff; font-weight: 750; font-size: 14px; }
.site-brand .brand-sub { color: var(--acc); font-size: 12px; }
.site-head-actions { display: flex; align-items: center; gap: 14px; }
.traffic-link { color: var(--dim); font-size: 12px; }
.traffic-link:hover { color: var(--ink); text-decoration: none; }
.lang-btn {
  background: #172334;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.lang-btn:hover { background: #203149; border-color: #3c5670; }
.lang-btn[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #04121f; font-weight: 650; }

main { max-width: 1120px; margin: 0 auto; padding: 30px 24px 80px; }
.eyebrow { color: var(--warm); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.project-title { margin-top: 10px; font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -.025em; }
.project-sub { margin-top: 12px; color: var(--dim); font-size: clamp(14px, 1.7vw, 18px); }
.video-wrap {
  position: relative;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-card a { display: block; position: relative; width: 100%; height: 100%; }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video-card video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.shorts-review { margin-top: 38px; }
.shorts-review h2 { color: var(--dim); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.portrait-wrap { width: min(100%, 430px); margin: 14px auto 0; aspect-ratio: 9 / 16; }
.video-card a:hover img { transform: scale(1.015); }
.video-cta {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--acc);
  color: #04121f;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.project-summary { margin-top: 24px; max-width: 780px; color: #c6d3df; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--ink);
  background: #172334;
  font-size: 14px;
}
.button:hover { text-decoration: none; background: #203149; border-color: #3c5670; }
.button.primary { background: var(--acc); border-color: var(--acc); color: #04121f; font-weight: 650; }
.project-credits { margin-top: 30px; color: var(--dim); font-size: 13px; }
.sources { margin-top: 26px; }
.sources h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.sources ul { margin: 10px 0 0 18px; color: #c6d3df; }
.sources li { margin: 4px 0; }
.error { margin-top: 20px; border: 1px solid #6b2f2f; background: #2a1717; color: #f0b6ae; border-radius: 8px; padding: 10px 14px; font-size: 13px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.card-media { display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card-media:hover img { transform: scale(1.02); }
.card-body { padding: 16px 18px 18px; }
.card-title { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.card-summary { margin-top: 8px; color: var(--dim); font-size: 14px; }
.card-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
}
.card-meta .tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: rgba(224, 176, 106, 0.12);
  border: 1px solid rgba(224, 176, 106, 0.28);
  border-radius: 4px;
  color: #e0b06a;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: .03em;
  white-space: nowrap;
}
.card-meta .tag.origin {
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(88, 166, 255, 0.25);
  color: #79c0ff;
}
.card-meta .tag.bom {
  background: rgba(63, 185, 80, 0.08);
  border-color: rgba(63, 185, 80, 0.22);
  color: #7ee787;
}
.card-actions { display: flex; gap: 14px; margin-top: 16px; font-size: 13px; }
.empty { margin-top: 50px; padding: 26px; border: 1px dashed var(--line); border-radius: 12px; color: var(--dim); text-align: center; }

.analytics-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.analytics-teaser h2 { margin-top: 7px; font-size: 20px; line-height: 1.35; font-weight: 550; color: #c6d3df; }
.analytics-teaser-metrics { display: flex; gap: 28px; }
.analytics-teaser-metrics div { min-width: 92px; }
.analytics-teaser-metrics dt, .analytics-totals dt {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.analytics-teaser-metrics dd { margin-top: 3px; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }

.analytics-message {
  margin-top: 28px;
  padding: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--dim);
}
.analytics-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.analytics-totals div { padding: 22px 20px 24px 0; }
.analytics-totals div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.analytics-totals dd { margin-top: 5px; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.analytics-section { margin-top: 42px; }
.analytics-section h2 { font-size: 15px; letter-spacing: .09em; text-transform: uppercase; }
.analytics-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.analytics-section-head p { color: var(--dim); font-size: 12px; }
.analytics-trend {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 170px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.analytics-trend i {
  flex: 1;
  min-width: 3px;
  max-width: 28px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--acc), #285d91);
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease, background .15s ease;
}
.analytics-trend i:hover {
  background: linear-gradient(180deg, #79b8ff, var(--acc));
  transform: scaleY(1.05);
  transform-origin: bottom;
}
.analytics-trend-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--dim);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 42px;
}
.analytics-rank-list { margin-top: 16px; list-style: none; }
.analytics-rank {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(80px, 1.2fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(42,58,74,.55);
  font-size: 13px;
}
.analytics-rank-label { overflow: hidden; color: #c6d3df; text-overflow: ellipsis; white-space: nowrap; }
.analytics-rank-link {
  overflow: hidden;
  color: #c6d3df;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .15s ease;
}
.analytics-rank-link:hover {
  color: var(--acc);
  text-decoration: underline;
}
.analytics-rank-track { height: 5px; background: rgba(88,166,255,.1); }
.analytics-rank-track i { display: block; height: 100%; background: var(--acc); }
.analytics-rank b { min-width: 42px; color: var(--warm); font-variant-numeric: tabular-nums; text-align: right; }
.analytics-note { margin-top: 44px; color: var(--dim); font-size: 12px; }

@media (max-width: 760px) {
  .site-head { padding: 16px 16px 0; }
  main { padding: 22px 16px 60px; }
  .cards { grid-template-columns: 1fr; }
  .project-summary { font-size: 16px; }
  .video-wrap { aspect-ratio: 16 / 9; }
  .analytics-teaser { grid-template-columns: 1fr; gap: 18px; }
  .analytics-teaser-metrics { gap: 36px; }
  .analytics-totals { grid-template-columns: 1fr; }
  .analytics-totals div, .analytics-totals div + div { padding: 18px 0; border-left: 0; }
  .analytics-totals div + div { border-top: 1px solid var(--line); }
  .analytics-grid { grid-template-columns: 1fr; column-gap: 0; }
  .analytics-section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .analytics-trend { height: 130px; }
}

.button.download-btn {
  background: linear-gradient(180deg, #1f364d, #142435);
  border-color: #388bfd;
  color: #e6edf3;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  cursor: pointer;
}
.button.download-btn:hover {
  background: linear-gradient(180deg, #274563, #1a2f45);
  border-color: #58a6ff;
  color: #fff;
}

.project-bom {
  margin-top: 36px;
  padding: 22px 24px;
  background: rgba(17, 28, 43, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.project-bom h2 {
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.project-bom .bom-sub {
  margin-top: 4px;
  font-size: 13px;
  color: #8b9bb0;
}
.bom-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  list-style: none;
}
.bom-item {
  padding: 12px 14px;
  background: rgba(11, 18, 32, 0.6);
  border: 1px solid rgba(42, 58, 74, 0.7);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s, background .15s;
}
.bom-item:hover {
  border-color: var(--acc);
  background: rgba(22, 40, 58, 0.7);
}
.bom-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #e6edf3;
}
.bom-item-desc {
  font-size: 12px;
  color: #9fb3c8;
  line-height: 1.4;
}

.site-footer {
  max-width: 1120px;
  margin: 50px auto 0;
  padding: 30px 24px 40px;
  border-top: 1px solid var(--line);
}
.footer-inquiry {
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(22, 40, 58, 0.6) 0%, rgba(13, 22, 35, 0.9) 100%);
  border: 1px solid rgba(88, 166, 255, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.inquiry-info h3 {
  font-size: 16px;
  color: #fff;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}
.inquiry-info p {
  margin-top: 6px;
  font-size: 13px;
  color: #9fb3c8;
}
.inquiry-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.inquiry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--acc);
  color: #04121f;
  font-weight: 650;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .15s, background .15s;
}
.inquiry-btn:hover {
  text-decoration: none;
  background: #79c0ff;
  transform: translateY(-1px);
}
.footer-copy {
  margin-top: 24px;
  font-size: 12px;
  color: var(--dim);
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.asset-modal {
  background: #0f1826;
  border: 1px solid #3c5670;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  color: #e6edf3;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--dim);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
}
.modal-close:hover { color: #fff; }
.asset-modal h2 { font-size: 20px; color: #fff; }
.asset-modal p.modal-sub { margin-top: 8px; font-size: 13px; color: #9fb3c8; line-height: 1.5; }
.modal-features { margin: 18px 0; padding: 14px 16px; background: rgba(22, 37, 54, 0.6); border-radius: 8px; border: 1px solid rgba(42, 58, 74, 0.7); }
.modal-features li { margin: 6px 0; font-size: 13px; color: #d0dce8; list-style: none; display: flex; align-items: center; gap: 8px; }
.modal-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.modal-feedback { margin-top: 12px; font-size: 12px; color: #3fb950; min-height: 18px; }


/* YouTube Head Button & Footer Links */
.yt-head-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ff6b6b;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1;
}
.yt-head-btn:hover {
  background: rgba(220, 38, 38, 0.35);
  border-color: #ef4444;
  color: #ffffff;
}
.yt-icon {
  fill: currentColor;
}
.footer-links {
  margin-bottom: 12px;
  font-size: 13px;
  color: #8899a6;
}
.footer-links a {
  color: #8899a6;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: #68d4f4;
  text-decoration: underline;
}

.footer-inquiry { display: none !important; }
