:root {
  --bg: #04121f;
  --bg-2: #071e33;
  --panel: rgba(9, 32, 54, 0.85);
  --line: rgba(124, 224, 255, 0.16);
  --ink: #eaf7ff;
  --ink-2: #a9c9de;
  --ink-3: #6e92ac;
  --cyan: #5ee7ff;
  --mint: #4dffc3;
  --krill: #ff8a5c;
  --radius: 18px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  background: radial-gradient(circle at 20% 0%, #0b3356 0%, var(--bg) 55%, #020912 100%);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

.shell { max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(4, 18, 31, 0.82);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none !important;
}
.brand-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: radial-gradient(circle at 35% 30%, #ffd3b8, var(--krill) 60%, #c4451f);
  box-shadow: 0 0 14px rgba(255, 138, 92, 0.55);
}
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* Main */
.main-content { padding: 22px 18px 48px; }

.hero-stage { margin-bottom: 28px; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 6px;
}
h1 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.hero-sub { color: var(--ink-2); font-size: 16px; max-width: 720px; margin-bottom: 18px; }

/* Player */
.player-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 460px;
  background: #020c16;
}
.stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #03111f;
}
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.cover-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
}
.cover-badge {
  background: rgba(4, 18, 31, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-2);
  backdrop-filter: blur(8px);
}
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7cf0ff, #4dffc3);
  color: #03202b;
  font-weight: 850;
  font-size: 16px;
  box-shadow: 0 12px 32px rgba(77, 255, 195, 0.3);
  transition: transform 0.12s, filter 0.15s;
}
.play-btn:hover { filter: brightness(1.06); text-decoration: none; transform: translateY(-1px); }

.loader {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #03111f;
  color: var(--ink-2);
  font-size: 14px;
}
[data-gf-state="loading"] [data-gf-loading] { display: flex; }
[data-gf-state="loading"] [data-gf-cover],
[data-gf-state="playing"] [data-gf-cover] { display: none; }
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(94, 231, 255, 0.2);
  border-top-color: var(--mint);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(4, 16, 28, 0.88);
}
.player-bar-left, .player-bar-right { display: flex; align-items: center; gap: 10px; }
.bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 650;
}
.bar-btn:hover { border-color: var(--cyan); background: rgba(94, 231, 255, 0.12); }
.bar-btn[data-gf-liked] { border-color: var(--krill); color: var(--krill); background: rgba(255, 138, 92, 0.12); }
.share-msg { font-size: 12px; color: var(--mint); }

/* Content & Sidebar */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}
.prose-card, .side-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.prose-card h2 { font-size: 22px; margin: 24px 0 10px; color: var(--ink); }
.prose-card h2:first-child { margin-top: 0; }
.prose-card h3 { font-size: 17px; margin: 18px 0 8px; color: var(--cyan); }
.prose-card p { color: var(--ink-2); margin-bottom: 12px; }
.prose-card ul, .prose-card ol { margin: 0 0 14px 20px; color: var(--ink-2); }
.prose-card li { margin-bottom: 6px; }
.prose-card table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.prose-card th, .prose-card td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.prose-card th { color: var(--ink); font-weight: 750; }
.prose-card td { color: var(--ink-2); }

.faq-block { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.faq-item summary { font-weight: 750; cursor: pointer; color: var(--ink); }
.faq-item p { margin: 8px 0 0; font-size: 14px; }

.side-col { display: flex; flex-direction: column; gap: 18px; }
.side-card h3 { font-size: 16px; margin-bottom: 12px; }
.zone-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.zone-list li {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.zone-list span { color: var(--ink-2); }

/* Comments */
.comments-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.comments-list[data-gf-empty]::before {
  content: "No diver logs yet. Leave the first comment below!";
  font-size: 13px;
  color: var(--ink-3);
}
.comment-item, .reply-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
}
.comment-item[data-gf-owner], .reply-item[data-gf-owner] {
  border-color: rgba(77, 255, 195, 0.45);
  background: rgba(77, 255, 195, 0.07);
}
.comment-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12px; }
.comment-head time { margin-left: auto; color: var(--ink-3); }
.owner-badge {
  display: none;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--mint);
  color: #03202b;
}
[data-gf-owner] .owner-badge { display: inline-block; }
.comment-body { color: var(--ink-2); margin-bottom: 6px; }
.reply-btn { font-size: 12px; color: var(--cyan); }
.replies-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--line); }

.comment-form { display: flex; flex-direction: column; gap: 8px; }
.replying-bar { display: none; justify-content: space-between; font-size: 12px; color: var(--mint); }
[data-gf-replying] .replying-bar { display: flex; }
.comment-form input, .comment-form textarea {
  width: 100%;
  background: rgba(2, 12, 24, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
}
.submit-btn {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(94, 231, 255, 0.16);
  border: 1px solid rgba(94, 231, 255, 0.45);
  font-weight: 700;
  font-size: 13.5px;
}
.comment-msg { font-size: 12px; color: var(--mint); }

/* Blog & Single */
.single-page { max-width: 820px; margin: 0 auto; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.post-card {
  display: block;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.post-card:hover { border-color: var(--cyan); text-decoration: none; }
.post-card time { font-size: 12px; color: var(--ink-3); }
.post-card h2 { font-size: 18px; margin: 6px 0; color: var(--ink); }
.post-card p { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.cta-box {
  margin-top: 26px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(77, 255, 195, 0.08);
  border: 1px solid rgba(77, 255, 195, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 32px; color: var(--ink-3); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.footer-brand strong { color: var(--ink); font-size: 15px; display: block; margin-bottom: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-copy { font-size: 12px; }

@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
  .stage { min-height: 360px; }
}
@media (max-width: 600px) {
  .nav { gap: 12px; font-size: 13px; }
  .stage { aspect-ratio: 3 / 4; min-height: 440px; }
}
