/* ==========================================================================
   OS.watch design system — tokens + index (Observatory) components
   Recreated from the design handoff. Scoped under .owx so it doesn't affect
   pages still using the legacy base template.
   ========================================================================== */

:root {
  --ow-orange: #f77e21;
  --ow-orange-deep: #e86f14;
  --ow-amber: #fac213;
  --ow-yellow: #fef9a7;
  /* Softened accent used for large fills / buttons */
  --ow-accent: #e67e42;
  --ow-accent-hover: #cf6a2c;

  --ow-navy: #112532;
  --ow-sky-pale: #dff6ff;
  --ow-sky: #47b5ff;
  --ow-sky-deep: #0a3a6e;
  --ow-white: #ffffff;
  --ow-white-80: rgba(255, 255, 255, 0.8);

  --ow-rank-1: #1060ae;
  --ow-rank-2: #157ee3;
  --ow-rank-3: #6baef0;

  --ow-green: #1f8a4d;
  --ow-star: #064465;

  --ow-radius-lg: 0.5em;
  --ow-radius-sm: 0.25em;
  --ow-radius-float: 1.2em;

  --ow-transition: all 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);

  --ow-shadow-card: 0 1px 2px rgba(16, 36, 50, 0.05), 0 6px 20px rgba(16, 36, 50, 0.07);
  --ow-shadow-card-hover: 0 8px 18px rgba(16, 36, 50, 0.1), 0 18px 44px rgba(16, 36, 50, 0.14);
  --ow-shadow-float: 0 12px 44px rgba(16, 36, 50, 0.16);
  --ow-shadow-media: 0 18px 50px rgba(6, 40, 61, 0.34);
  --ow-shadow-button: 0 6px 16px rgba(230, 126, 66, 0.35);
}

/* ---- Light theme ---- */
[data-theme="light"] {
  --ow-bg: #ffffff;
  --ow-bg-sky: radial-gradient(circle, var(--ow-sky-pale) 0%, var(--ow-sky) 100%);
  --ow-bg-ground: linear-gradient(0deg, #ffffff 0%, var(--ow-accent) 62%, var(--ow-accent) 100%);

  --ow-text-body: #24333d;
  --ow-text-muted: #5a6b76;
  --ow-card-title: #1a2c38;
  --ow-surface-card: var(--ow-white-80);
  --ow-surface-solid: #ffffff;
  --ow-border-card: 1px solid rgba(16, 36, 50, 0.08);
  --ow-border-hairline: 1px solid rgba(16, 36, 50, 0.08);

  --head-bar: #157ee3;
  --sky-ink: #0f2b3d;
  --sky-ink-90: rgba(15, 43, 61, 0.92);
  --sky-ink-85: rgba(15, 43, 61, 0.82);
  --sky-ink-82: rgba(15, 43, 61, 0.72);
  --sky-ink-22: rgba(15, 43, 61, 0.16);
  --sky-hover: rgba(15, 43, 61, 0.1);
  --sky-ph: rgba(15, 43, 61, 0.5);
  --sky-glass-border: rgba(15, 43, 61, 0.18);
  --logo-filter: none;
}

/* ---- Dark theme ---- */
[data-theme="dark"] {
  --ow-bg: #0a1c2b;
  --ow-bg-sky: radial-gradient(125% 120% at 50% 0%, #0e4a86 0%, #06283d 55%, #0a1c2b 100%);
  --ow-bg-ground: linear-gradient(0deg, #0a1c2b 0%, #0d2c44 100%);

  --ow-text-body: #c7d3db;
  --ow-text-muted: #8ea0ac;
  --ow-card-title: #e9f0f5;
  --ow-surface-card: rgba(10, 30, 48, 0.72);
  --ow-surface-solid: #0e2536;
  --ow-border-card: 1px solid rgba(255, 255, 255, 0.08);
  --ow-border-hairline: 1px solid rgba(255, 255, 255, 0.08);

  --head-bar: #157ee3;
  --sky-ink: #ffffff;
  --sky-ink-90: rgba(255, 255, 255, 0.9);
  --sky-ink-85: rgba(255, 255, 255, 0.85);
  --sky-ink-82: rgba(255, 255, 255, 0.82);
  --sky-ink-22: rgba(255, 255, 255, 0.22);
  --sky-hover: rgba(255, 255, 255, 0.16);
  --sky-ph: rgba(255, 255, 255, 0.62);
  --sky-glass-border: rgba(255, 255, 255, 0.3);
  --logo-filter: brightness(0) invert(1);
}

/* ==========================================================================
   Shell
   ========================================================================== */
.owx {
  margin: 0;
  font-family: 'Mukta', system-ui, sans-serif;
  line-height: 1.7;
  color: var(--ow-text-body);
  background: var(--ow-bg);
  /* Sticky footer: page grows to fill the viewport, footer sits at the bottom. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.owx-page { flex: 1 0 auto; }
.owx-footer { flex-shrink: 0; }
.owx *, .owx *::before, .owx *::after { box-sizing: border-box; }
.owx-container { max-width: 1090px; margin: 0 auto; padding: 0 2em; }

/* ==========================================================================
   Scene: starfield + waves
   ========================================================================== */
.ow-stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

@keyframes ow-mv1 { from { transform: translate(85px, 0); } to { transform: translate(-90px, 0); } }
@keyframes ow-mv2 { from { transform: translate(-90px, 0); } to { transform: translate(85px, 0); } }
@keyframes ow-mv3 { from { transform: translate(-90px, 0); } to { transform: translate(85px, 0); } }
/* Dark-theme waves blend into the navy background/ground. */
.ow-w1 use { fill: rgba(13, 44, 68, 0.55); animation: ow-mv1 150s linear -2s infinite; }
.ow-w2 use { fill: rgba(13, 44, 68, 0.78); animation: ow-mv2 130s linear -2s infinite; }
.ow-w3 use { fill: #0d2c44; animation: ow-mv3 90s linear -2s infinite; }
[data-theme="light"] .ow-w1 use { fill: rgba(230, 126, 66, 0.45); }
[data-theme="light"] .ow-w2 use { fill: rgba(230, 126, 66, 0.68); }
[data-theme="light"] .ow-w3 use { fill: var(--ow-accent); }

.ow-logo { filter: var(--logo-filter, none); }

/* ==========================================================================
   Nav
   ========================================================================== */
.owx-nav { display: flex; justify-content: space-between; align-items: center; padding: 1.5em 2em 0; max-width: 1090px; margin: 0 auto; }
.owx-nav img { height: 34px; display: block; }
.owx-nav-links { display: flex; align-items: center; gap: 0.6em; }
.owx-nav-links a {
  text-transform: uppercase; color: var(--sky-ink-85); font-weight: 500; text-decoration: none;
  letter-spacing: 0.05em; font-size: 0.82em; padding: 0.5em 0.9em; border-radius: 999px; transition: var(--ow-transition);
}
.owx-nav-links a:hover { background: var(--sky-hover); color: var(--sky-ink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.owx-hero { position: relative; }
.owx-hero-sky { position: absolute; inset: 0 0 auto 0; height: 430px; background: var(--ow-bg-sky); overflow: hidden; }
.owx-hero-sky svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 270px; display: block; }
/* Above .owx-ground (z-index:1) so the search dropdown isn't clipped by it. */
.owx-hero-inner { position: relative; z-index: 2; }
.owx-hero-copy { max-width: 610px; text-align: left; padding-top: 2.4em; }

.owx-h1 { margin: 0; color: var(--sky-ink); font-size: 1.95em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.14; text-shadow: 0 1px 18px rgba(6, 40, 61, 0.25); }
.owx-sub { margin: 0.5em 0 0; color: var(--sky-ink-90); font-size: 1.05em; }

.owx-search-wrap { position: relative; max-width: 540px; margin: 1.5em 0 0; }
.owx-search {
  display: flex; gap: 0.5em; align-items: center;
  background: rgba(255, 255, 255, 0.13); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--sky-glass-border); border-radius: 999px; padding: 0.72em 1.4em; box-shadow: 0 10px 34px rgba(6, 40, 61, 0.22);
}

/* Autocomplete dropdown */
.owx-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.5em); z-index: 30;
  background: var(--ow-surface-solid); border: var(--ow-border-card); border-radius: 0.8em;
  box-shadow: var(--ow-shadow-float); overflow: hidden auto; max-height: 380px;
}
.owx-search-result { display: flex; align-items: center; gap: 0.75em; padding: 0.6em 0.9em; text-decoration: none; color: var(--ow-text-body); border-bottom: var(--ow-border-hairline); }
.owx-search-result:last-child { border-bottom: 0; }
.owx-search-result:hover, .owx-search-result.is-active { background: rgba(127, 127, 127, 0.12); }
.owx-search-result img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.owx-search-result b { font-weight: 700; color: var(--ow-card-title); }
.owx-search-result .owx-search-kind { margin-left: auto; font-size: 0.72em; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ow-text-muted); }
.owx-search-empty { padding: 0.9em; text-align: center; color: var(--ow-text-muted); font-size: 0.9em; }
.owx-search svg { flex: none; stroke: var(--sky-ink-85); }
.owx-search input { flex: 1; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 1em; color: var(--sky-ink); min-width: 0; }
.owx-search input::placeholder { color: var(--sky-ph); opacity: 1; }

.owx-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 1.8em 0 0; }
.owx-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1em; padding: 0.1em 1.7em; border-left: 1px solid var(--sky-ink-22); }
.owx-stat:first-child { border-left: 0; padding-left: 0; }
.owx-stat b { font-size: 1.6em; font-weight: 800; color: var(--sky-ink); font-variant-numeric: tabular-nums; line-height: 1; }
.owx-stat span { font-size: 0.66em; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sky-ink-82); }

/* ==========================================================================
   Ground / layout
   ========================================================================== */
.owx-ground { position: relative; z-index: 1; background: var(--ow-bg-ground); padding: 2.6em 0 3.5em; }
.owx-cols { max-width: 1090px; margin: 0 auto; padding: 0 2em; display: flex; gap: 2em; align-items: flex-start; }
.owx-main { flex: 1; min-width: 0; }
.owx-aside { width: 300px; flex: none; position: relative; margin-top: -120px; }

.owx-sectionhead { display: flex; align-items: center; gap: 0.7em; margin: 0 0 1.2em; }
.owx-h2 {
  color: var(--sky-ink); text-transform: uppercase; font-size: 1.05em; font-weight: 700; margin: 0;
  letter-spacing: 0.1em; display: flex; align-items: center; gap: 0.6em;
}
.owx-h2 .owx-tick { width: 22px; height: 3px; border-radius: 2px; background: var(--head-bar, var(--ow-accent)); display: inline-block; }
.owx-count { color: var(--sky-ink-85); font-size: 0.82em; font-weight: 600; }
.owx-spacer { flex: 1; }
.owx-rss { display: inline-flex; color: var(--sky-ink-85); }

/* On the ground, section heads over the aside use body ink colors */
.owx-aside .owx-h2 { color: var(--sky-ink); }

/* ==========================================================================
   Release cards
   ========================================================================== */
.owx-relcard {
  position: relative; display: flex; gap: 1.15em; border-radius: var(--ow-radius-lg);
  background: var(--ow-surface-card); border: var(--ow-border-card); box-shadow: var(--ow-shadow-card);
  padding: 1.25em 1.35em; margin-bottom: 1.1em; transition: var(--ow-transition); text-decoration: none;
}
.owx-relcard:hover { box-shadow: var(--ow-shadow-card-hover); transform: translateY(-2px); }
.owx-relcard-ico { width: 56px; flex: none; display: flex; align-items: flex-start; justify-content: center; }
.owx-relcard-ico img { width: 56px; height: 56px; object-fit: contain; display: block; }
.owx-relcard-main { flex: 1; min-width: 0; }
.owx-relcard-title { color: var(--ow-card-title); font-weight: 700; font-size: 1.2em; letter-spacing: -0.01em; }
.owx-relcard-title strong { font-weight: 700; }
.owx-relcard-title .owx-codename { font-weight: 400; opacity: 0.7; margin-left: 0.35em; }
.owx-relcard-date { font-size: 0.8em; font-weight: 700; color: var(--ow-text-muted); font-variant-numeric: tabular-nums; margin-top: 0.3em; }
.owx-relcard-desc { margin: 0.7em 0 0; color: var(--ow-text-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.owx-relcard-foot { display: flex; align-items: center; margin-top: 0.9em; }

.owx-empty { border-radius: var(--ow-radius-lg); background: var(--ow-surface-card); border: var(--ow-border-card); padding: 1.6em; text-align: center; color: var(--ow-text-muted); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.owx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  border-radius: var(--ow-radius-lg); border: 1px solid transparent; transition: var(--ow-transition);
  background: var(--ow-accent); color: #fff; box-shadow: var(--ow-shadow-button);
  padding: 0 1.15em; height: 42px; font-size: 0.92em;
}
.owx-btn:hover { background: var(--ow-accent-hover); transform: translateY(-1px); }
.owx-btn--sm { height: 34px; padding: 0 0.9em; font-size: 0.86em; }
.owx-btn--white { background: #fff; color: var(--ow-navy); border-color: rgba(16, 36, 50, 0.12); box-shadow: var(--ow-shadow-card); }
.owx-btn--white:hover { background: #f4f7f9; }
.owx-btn svg { flex: none; }

/* ==========================================================================
   Ads
   ========================================================================== */
.owx-ad-banner {
  margin-top: 1.6em; border-radius: var(--ow-radius-lg); border: 1.5px dashed rgba(127, 127, 127, 0.32);
  background: var(--ow-surface-card); box-shadow: var(--ow-shadow-card); padding: 1.35em 1.5em; display: flex; align-items: center; gap: 1.2em;
}
.owx-ad-icon { width: 48px; height: 48px; flex: none; border-radius: 50%; background: rgba(247, 126, 33, 0.14); display: flex; align-items: center; justify-content: center; }
.owx-ad-label { font-size: 0.6em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ow-text-muted); }
.owx-ad-title { font-weight: 800; color: var(--ow-text-body); font-size: 1.05em; margin-top: 0.15em; }
.owx-ad-blurb { font-size: 0.82em; color: var(--ow-text-muted); }
.owx-ad-banner .owx-ad-body { flex: 1; min-width: 0; }

.owx-ad-card { margin-top: 1.8em; border-radius: var(--ow-radius-lg); background: var(--ow-surface-card); border: var(--ow-border-card); box-shadow: var(--ow-shadow-card); overflow: hidden; }
.owx-ad-card-head { font-size: 0.6em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ow-text-muted); text-align: center; padding: 0.8em 0 0.6em; border-bottom: var(--ow-border-hairline); }
.owx-ad-card-body { margin: 1.1em; padding: 1.8em 1.1em; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.55em; text-align: center; border: 1.5px dashed rgba(127, 127, 127, 0.3); border-radius: 0.7em; }
.owx-ad-card-body .owx-ad-icon { width: 46px; height: 46px; }

/* ==========================================================================
   Ranking rail (podium)
   ========================================================================== */
.owx-rankwrap { position: relative; }
.owx-spyglass-layer { position: absolute; top: 0; left: 0; width: 0; height: 0; overflow: visible; pointer-events: none; }
.owx-spyglass-layer img { position: absolute; height: 140px; margin-top: -70px; margin-left: -50px; transform: rotate(24deg); transition: transform 0.3s ease; }
.owx-rankwrap .owx-spyglass-back { z-index: 1; }
.owx-rankwrap .owx-spyglass-front { z-index: 3; }

.owx-rank { position: relative; z-index: 2; border-radius: var(--ow-radius-lg); background: var(--ow-surface-card); box-shadow: var(--ow-shadow-float); overflow: hidden; }
.owx-rank ul { margin: 0; padding: 0; list-style: none; }
.owx-rank li { display: flex; align-items: center; background-repeat: no-repeat; background-position: 2em center; background-size: 3em; }
.owx-rank .owx-rank-num { flex: none; width: 50px; align-self: stretch; display: flex; align-items: center; justify-content: center; font-size: 1.5em; font-weight: 800; color: #ffffffaa; background: #707070ee; padding: 0.4em 0; }
.owx-rank a { margin: auto 0 auto 2em; flex: 1; min-width: 0; font-size: 1.2em; line-height: 0.95; text-decoration: none; color: var(--ow-text-body); }
.owx-rank a b { font-weight: 800; }
.owx-rank-views { display: block; font-size: 0.5em; font-weight: 400; opacity: 0.75; white-space: nowrap; margin-top: 0.3em; }

/* Podium: ranks 1–3 */
.owx-rank li:nth-child(1) { background-size: 5em; background-position: 2.5em center; }
.owx-rank li:nth-child(2) { background-size: 5em; background-position: 2.0em center; }
.owx-rank li:nth-child(3) { background-size: 5em; background-position: 1.5em center; }
.owx-rank li:nth-child(1) .owx-rank-num { font-size: 3em; background: #1060aeee; }
.owx-rank li:nth-child(2) .owx-rank-num { font-size: 3em; background: #157ee3ee; }
.owx-rank li:nth-child(3) .owx-rank-num { font-size: 3em; background: #6baef0ee; }
.owx-rank li:nth-child(1) a { font-size: 2em; margin-left: 2.5em; }
.owx-rank li:nth-child(2) a { font-size: 1.8em; margin-left: 2.6em; }
.owx-rank li:nth-child(3) a { font-size: 1.5em; margin-left: 2.8em; }
.owx-rank li:nth-child(4) .owx-rank-num { background: #999999ee; }
.owx-rank li:nth-child(5) .owx-rank-num { background: #959595ee; }
.owx-rank li:nth-child(6) .owx-rank-num { background: #808080ee; }
.owx-rank li:nth-child(7) .owx-rank-num { background: #858585ee; }
.owx-rank li:nth-child(8) .owx-rank-num { background: #808080ee; }
.owx-rank li:nth-child(9) .owx-rank-num { background: #757575ee; }
.owx-rank li:nth-child(10) .owx-rank-num { background: #707070ee; }

/* ==========================================================================
   Newly added
   ========================================================================== */
.owx-newly { border-radius: var(--ow-radius-lg); background: var(--ow-surface-card); border: var(--ow-border-card); box-shadow: var(--ow-shadow-card); padding: 0.4em 1.1em; }
.owx-newly-row { display: flex; align-items: center; gap: 0.75em; padding: 0.6em 0; border-bottom: var(--ow-border-hairline); text-decoration: none; }
.owx-newly-row:last-child { border-bottom: 0; }
.owx-newly-badge { width: 32px; height: 32px; flex: none; border-radius: 0.5em; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9em; color: #fff; }
.owx-newly-ico { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; }
.owx-newly-ico img { max-width: 32px; max-height: 32px; object-fit: contain; }
.owx-newly-name { flex: 1; font-weight: 600; color: var(--ow-text-body); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   Footer
   ========================================================================== */
.owx-footer { position: relative; z-index: 1; background: var(--ow-navy); padding: 1.05em 2em; display: flex; align-items: center; gap: 1em; }
.owx-footer .owx-copy { color: rgba(255, 255, 255, 0.55); font-size: 0.82em; margin-right: auto; }
.owx-footer a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.owx-footer a:hover { color: rgba(255, 255, 255, 0.9); }
.owx-theme-toggle { background: rgba(255, 255, 255, 0.08); border: 0; color: rgba(255, 255, 255, 0.6); font-family: inherit; font-size: 0.78em; font-weight: 600; letter-spacing: 0.04em; padding: 0.5em 0.9em; border-radius: 999px; cursor: pointer; transition: var(--ow-transition); }
.owx-theme-toggle:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ==========================================================================
   Listing pages (systems / releases)
   ========================================================================== */
.owx-hero--compact .owx-hero-sky { height: 300px; }
.owx-hero--compact .owx-hero-sky svg { height: 200px; }
.owx-listing-head { padding: 2.2em 0 2.4em; }
.owx-listing-head .owx-h1 { display: flex; align-items: center; gap: 0.5em; }
.owx-listing-head .owx-rss { display: inline-flex; color: var(--sky-ink-85); }

.owx-ground--listing { padding-top: 2.2em; }

/* Systems grid */
.owx-systems-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 1.1em; }
.owx-syscard {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.55em;
  padding: 1.4em 1em 1.2em; border-radius: var(--ow-radius-lg); background: var(--ow-surface-card);
  border: var(--ow-border-card); box-shadow: var(--ow-shadow-card); text-decoration: none; transition: var(--ow-transition);
}
.owx-syscard:hover { transform: translateY(-2px); box-shadow: var(--ow-shadow-card-hover); }
.owx-syscard-ico { height: 64px; display: flex; align-items: center; justify-content: center; }
.owx-syscard-ico img { max-width: 64px; max-height: 64px; object-fit: contain; }
.owx-syscard-name { font-weight: 700; color: var(--ow-card-title); font-size: 1em; line-height: 1.2; letter-spacing: -0.01em; }
.owx-syscard-views { font-size: 0.72em; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ow-text-muted); }

/* Releases list (single wide column) */
.owx-list { max-width: 760px; }
.owx-list .owx-relcard-title { color: var(--ow-card-title); }
.owx-relcard-sys { display: block; font-size: 0.8em; font-weight: 700; color: var(--ow-text-muted); margin-top: 0.5em; }
.owx-relcard-sys a { color: var(--ow-text-muted); text-decoration: none; }
.owx-relcard-sys a:hover { color: var(--ow-accent); }

/* Pagination */
.owx-pagination { display: flex; align-items: center; justify-content: center; gap: 0.9em; margin: 2.2em 0 0; }
.owx-pagination .owx-page-info { color: var(--ow-text-muted); font-size: 0.85em; font-weight: 600; }

/* ==========================================================================
   Detail pages (system profile / release)
   ========================================================================== */
.owx-detail { position: relative; }

.owx-detail-hero {
  position: relative; overflow: hidden;
  /* Settles into the wave navy (#0d2c44) so the waves blend into the background. */
  background: radial-gradient(125% 150% at 50% -10%, #0e4a86 0%, #0d2c44 60%, #0d2c44 100%);
}
.owx-detail-hero .owx-hero-sky-abs { position: absolute; top: 96px; left: 0; width: 100%; height: 230px; display: block; opacity: 0.6; }
.owx-detail-hero .ow-stars { position: absolute; inset: 0; }
.owx-detail-inner { position: relative; z-index: 2; }

.owx-breadcrumb { max-width: 1090px; margin: 0 auto; padding: 1.4em 2em 0; display: flex; align-items: center; gap: 0.5em; font-size: 0.78em; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--sky-ink-82); }
.owx-breadcrumb a { color: var(--sky-ink-82); text-decoration: none; }
.owx-breadcrumb a:hover { color: var(--sky-ink); }
.owx-breadcrumb .sep { opacity: 0.5; }
.owx-breadcrumb .current { color: var(--sky-ink); }

/* Screenshot fan */
.owx-shots { max-width: 1090px; margin: 0 auto; padding: 8px 2em 0; display: flex; justify-content: flex-start; align-items: flex-end; position: relative; z-index: 1; }
.owx-shots .owx-shot { border-radius: 8px; box-shadow: var(--ow-shadow-media); object-fit: cover; display: block; background: #0a1f30; }
.owx-shot-c { width: 460px; height: 232px; z-index: 3; transform: translateY(-16px); }
.owx-shot-l { width: 340px; height: 184px; filter: blur(1.4px); opacity: 0.82; transform: rotate(-5deg) translateX(46px) translateY(6px); z-index: 1; }
.owx-shot-r { width: 340px; height: 184px; filter: blur(1.4px); opacity: 0.82; transform: rotate(5deg) translateX(-46px) translateY(6px); z-index: 1; }

/* Title band */
.owx-titleband { position: relative; z-index: 2; background: linear-gradient(180deg, rgba(6, 24, 38, 0) 0%, #0a1f30 100%); padding: 1.3em 0 1.2em; margin-top: -104px; }
.owx-titleband.no-shots { margin-top: 0; padding-top: 2em; }
.owx-titleband .owx-container { max-width: 1090px; }
.owx-detail-h1 { margin: 0; color: #fff; font-size: 2.6em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; text-shadow: 0 3px 10px #06283d, 0 4px 28px rgba(6, 40, 61, 0.75); }
.owx-detail-h1 .owx-ver { color: var(--ow-accent); }
.owx-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7em; margin-top: 0.6em; color: rgba(255, 255, 255, 0.85); font-size: 0.9em; font-weight: 600; }
.owx-detail-meta b { color: #fff; font-variant-numeric: tabular-nums; }

/* Body */
.owx-detail-body { max-width: 1090px; margin: 0 auto; padding: 2.8em 2em 3.4em; display: flex; gap: 2.4em; align-items: flex-start; }
.owx-detail-main { flex: 1; min-width: 0; }
.owx-detail-aside { width: 320px; flex: none; }
.owx-lead { margin: 0; font-size: 1.06em; color: var(--ow-text-body); white-space: pre-line; }
.owx-cta-row { display: flex; flex-wrap: wrap; gap: 0.7em; margin: 1.5em 0 0; }

.owx-section-h { display: flex; align-items: center; gap: 0.7em; margin: 2.4em 0 1.1em; }
.owx-section-h h2 { color: var(--ow-card-title); text-transform: uppercase; font-size: 1.02em; font-weight: 700; margin: 0; letter-spacing: 0.1em; display: flex; align-items: center; gap: 0.6em; }
.owx-section-h .owx-tick { width: 22px; height: 3px; border-radius: 2px; background: var(--ow-accent); display: inline-block; }
.owx-section-note { color: var(--ow-text-muted); font-size: 0.82em; font-weight: 600; }

/* Release history table */
.owx-panel { border-radius: var(--ow-radius-lg); background: var(--ow-surface-solid); border: var(--ow-border-card); box-shadow: var(--ow-shadow-card); overflow: hidden; }
.owx-histrow { display: grid; grid-template-columns: 150px 1fr 130px; gap: 1em; align-items: center; padding: 0.9em 1.35em; text-decoration: none; border-bottom: var(--ow-border-hairline); transition: var(--ow-transition); }
.owx-histrow:last-child { border-bottom: 0; }
.owx-histhead { font-size: 0.72em; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ow-text-muted); }
a.owx-histrow:hover { background: rgba(16, 36, 50, 0.04); }
.owx-histrow .ver { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; color: var(--ow-card-title); font-variant-numeric: tabular-nums; }
.owx-histrow .note { color: var(--ow-text-muted); font-size: 0.9em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owx-histrow .date { text-align: right; color: var(--ow-text-body); font-size: 0.86em; font-weight: 600; font-variant-numeric: tabular-nums; }
.owx-latest-pill { font-size: 0.62em; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ow-green); background: rgba(31, 138, 77, 0.12); padding: 0.18em 0.5em; border-radius: 999px; }

/* Rating stars */
.owx-stars { display: inline-flex; gap: 0.05em; line-height: 1; color: #c9d3da; font-size: 1em; }
[data-theme="dark"] .owx-stars { color: #3a4c58; }
.owx-stars .on { color: var(--ow-star); }
.owx-rating-summary { display: inline-flex; align-items: center; gap: 0.4em; color: var(--ow-text-muted); font-size: 0.85em; font-weight: 700; }
.owx-rating-summary b { color: var(--ow-card-title); font-size: 1.15em; }

/* Reviews */
.owx-review-card { border-radius: var(--ow-radius-lg); background: var(--ow-surface-solid); border: var(--ow-border-card); box-shadow: var(--ow-shadow-card); padding: 1.1em 1.35em; margin-bottom: 0.9em; }
.owx-review-top { display: flex; align-items: center; gap: 0.7em; margin-bottom: 0.5em; }
.owx-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--ow-rank-1); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.owx-review-name { font-weight: 700; color: var(--ow-card-title); line-height: 1.1; }
.owx-review-when { font-size: 0.76em; color: var(--ow-text-muted); }
.owx-review-body { margin: 0; color: var(--ow-text-body); font-size: 0.96em; }

.owx-form { border-radius: var(--ow-radius-lg); background: var(--ow-surface-solid); border: var(--ow-border-card); box-shadow: var(--ow-shadow-card); padding: 1.3em 1.35em; margin-top: 0.3em; }
.owx-form-row { display: flex; gap: 0.7em; margin-bottom: 0.7em; }
.owx-input, .owx-textarea { width: 100%; box-sizing: border-box; border: var(--ow-border-card); border-radius: 0.4em; background: var(--ow-bg); padding: 0.6em 0.8em; font-family: inherit; font-size: 0.92em; color: var(--ow-text-body); outline: none; }
.owx-textarea { min-height: 74px; resize: vertical; }
.owx-form-foot { display: flex; align-items: center; gap: 1em; margin-top: 0.8em; flex-wrap: wrap; }
.owx-form-foot .label { font-size: 0.82em; font-weight: 600; color: var(--ow-text-muted); }
.owx-alert { border-radius: var(--ow-radius-lg); padding: 1em 1.2em; font-size: 0.95em; }
.owx-alert.ok { background: rgba(31, 138, 77, 0.12); color: var(--ow-green); }
.owx-invalid { color: #c1502e; font-size: 0.78em; margin: -0.3em 0 0.5em; display: none; }
.owx-invalid.show { display: block; }

/* Interactive star input */
.owx-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.owx-rate input { position: absolute; opacity: 0; pointer-events: none; }
.owx-rate label { font-size: 1.5em; line-height: 1; color: #c9d3da; cursor: pointer; padding: 0 0.03em; }
[data-theme="dark"] .owx-rate label { color: #3a4c58; }
.owx-rate label::before { content: '★'; }
.owx-rate label:hover, .owx-rate label:hover ~ label, .owx-rate input:checked ~ label { color: var(--ow-star); }

/* ISO download card */
.owx-iso { border-radius: 0.8em; overflow: hidden; border: var(--ow-border-card); box-shadow: var(--ow-shadow-card); margin-top: 2.2em; background: var(--ow-surface-solid); }
.owx-iso-head { display: flex; align-items: center; gap: 0.9em; padding: 1.05em 1.35em; background: linear-gradient(115deg, #0e3a63 0%, #0a1f30 100%); color: #fff; }
.owx-iso-head .disc { width: 42px; height: 42px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: center; }
.owx-iso-head .t { flex: 1; min-width: 0; }
.owx-iso-head .t b { display: block; font-size: 1.05em; font-weight: 800; }
.owx-iso-head .t span { display: block; font-size: 0.8em; opacity: 0.72; font-weight: 600; }
.owx-iso-row { display: flex; align-items: center; gap: 1em; padding: 0.95em 1.35em; text-decoration: none; border-top: var(--ow-border-hairline); transition: var(--ow-transition); }
.owx-iso-row:hover { background: rgba(16, 36, 50, 0.04); }
.owx-iso-row .disc { width: 40px; height: 40px; flex: none; border-radius: 0.55em; background: rgba(247, 126, 33, 0.12); display: flex; align-items: center; justify-content: center; }
.owx-iso-row .fn { flex: 1; min-width: 0; font: 0.86em/1.4 ui-monospace, Menlo, monospace; color: var(--ow-card-title); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owx-iso-row .dl { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--ow-accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--ow-shadow-button); }

/* Other releases timeline */
.owx-timeline { position: relative; border-radius: var(--ow-radius-lg); background: var(--ow-surface-solid); border: var(--ow-border-card); box-shadow: var(--ow-shadow-card); padding: 1.2em 1.5em; }
.owx-timeline .rail { position: absolute; left: calc(1.5em + 5px); top: 2em; bottom: 2em; width: 2px; background: rgba(16, 36, 50, 0.1); }
.owx-timeline-row { display: flex; align-items: center; gap: 1.1em; padding: 0.72em 0.4em; text-decoration: none; border-radius: 0.5em; transition: var(--ow-transition); position: relative; }
.owx-timeline-row:hover { background: rgba(16, 36, 50, 0.04); }
.owx-timeline-row .dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--ow-accent); box-shadow: 0 0 0 4px var(--ow-surface-solid); position: relative; z-index: 1; }
.owx-timeline-row .v { flex: 1; min-width: 0; font-weight: 800; color: var(--ow-card-title); font-size: 1.08em; font-variant-numeric: tabular-nums; }
.owx-timeline-row .d { font-size: 0.82em; color: var(--ow-text-muted); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Detail aside cards */
.owx-icon-card { box-sizing: border-box; width: 100%; margin: -118px 0 0; position: relative; z-index: 3; border-radius: 1.2em; background: var(--ow-surface-solid); box-shadow: var(--ow-shadow-float); padding: 1.6em; text-align: center; display: block; text-decoration: none; }
.owx-icon-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.owx-icon-card .views { margin-top: 0.8em; font-size: 1.7em; font-weight: 800; color: var(--ow-card-title); font-variant-numeric: tabular-nums; line-height: 1; }
.owx-icon-card .views-label { font-size: 0.7em; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ow-text-muted); }
.owx-aside-ad { margin-top: 1.4em; }

.owx-ver-badge { display: inline-flex; align-items: baseline; gap: 0.3em; font-size: 0.55em; font-weight: 800; color: var(--ow-accent); vertical-align: middle; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .owx-cols { flex-direction: column; }
  .owx-aside { width: 100%; margin-top: 1.5em; }
  .owx-hero-copy { max-width: none; }
  .owx-detail-body { flex-direction: column; }
  .owx-detail-aside { width: 100%; }
  .owx-icon-card { margin-top: 0; }
  .owx-shot-l, .owx-shot-r { display: none; }
  .owx-shot-c { width: 100%; max-width: 460px; }
}
