:root {
  --ink: #122033;
  --muted: #5c6b7a;
  --gold: #c6a15a;
  --gold-deep: #a7843f;
  --bg: #f7f6f3;
  --card: #ffffff;
  --line: #e7e2d8;
  --navy: #0c1c33;
  --green: #178a45;
  --shadow: 0 18px 50px rgba(18, 32, 51, .08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247,246,243,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.admin-bar .site-header, .admin-bar .studio-bar { top: 32px; }
.header-inner, .themes-header .header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .14em; }
.logo span { font-size: 18px; }
.logo-mark { width: 28px; height: 28px; }
.wordmark { letter-spacing: .18em; }
.main-nav { display: flex; gap: 26px; margin: 0 auto; }
.main-nav a { text-decoration: none; color: #243246; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-gold, .btn-navy, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; border-radius: 999px;
  padding: 11px 18px; font-weight: 600;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); }
.btn-navy { background: var(--navy); color: #fff; width: 100%; border-radius: 10px; }
.btn-line { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none;
}
.menu-toggle, .mobile-nav { display: none; }
.hero { padding: 42px 0 18px; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; }
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(56px, 6vw, 84px);
  line-height: .92;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.hero-copy em { color: var(--gold); font-style: italic; font-weight: 560; }
.hero-copy p { color: var(--muted); font-size: 17px; max-width: 460px; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.text-link { font-weight: 600; text-decoration: none; }
.hero-board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.float-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
  text-decoration: none;
}
.float-card header, .mini-meta { display: flex; justify-content: space-between; gap: 8px; }
.float-card header span, .mini-meta { color: var(--muted); font-size: 12px; }
.mini-meta { list-style: none; padding: 10px 2px 0; margin: 0; }
.mini-screen {
  margin-top: 10px; height: 148px; border-radius: 12px;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 12px; color: #fff;
}
.mini-screen small, .mini-screen b { display: block; }
.light-screen { color: #1b1b1b; align-items: center; }
.studio-teaser {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
  background: #102033;
  color: #fff;
  position: relative;
}
.studio-teaser small { color: #d5dbe3; }
.teaser-still { height: 92px; border-radius: 12px; background-size: cover; background-position: center; position: relative; }
.play {
  position: absolute; inset: 0; margin: auto; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #102033; display: grid; place-items: center;
}
.teaser-time { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #d5dbe3; }
.teaser-time i { flex: 1; height: 3px; background: var(--gold); border-radius: 99px; display: block; }
.platforms { padding: 10px 0 34px; }
.eyebrow { text-align: center; letter-spacing: .16em; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.platforms ul { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 0; margin: 0; flex-wrap: wrap; }
.platforms li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.p-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-size: 12px; }
.feature-band { background: var(--navy); color: #fff; padding: 54px 0 64px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article { background: #fff; color: var(--ink); border-radius: 22px; padding: 26px 24px 22px; min-height: 250px; }
.feature-grid h2 { margin: 12px 0 4px; font-size: 28px; }
.kicker { color: var(--gold-deep); font-weight: 700; margin: 0 0 8px; }
.feature-grid p { color: var(--muted); }
.feature-grid a { font-weight: 700; text-decoration: none; }
.feat-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
.feat-ico.gold { background: #f8efdc; color: var(--gold-deep); }
.feat-ico.blue { background: #e7f0fb; color: #2d6cdf; }
.feat-ico.violet { background: #f1e9fb; color: #7a45b5; }
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 42px 0 18px; }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-footer a, .site-footer p { display: block; color: var(--muted); text-decoration: none; margin: 6px 0; }
.site-footer strong { display: block; margin-bottom: 8px; }
.legal { width: min(1180px, calc(100% - 40px)); margin: 18px auto 0; font-size: 13px; }
.themes-header .header-inner { width: min(1280px, calc(100% - 32px)); }
.theme-search { flex: 1; display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px 0 16px; max-width: 560px; }
.theme-search input { flex: 1; border: 0; background: transparent; padding: 12px 0; outline: none; }
.theme-search button { border: 0; background: transparent; cursor: pointer; }
.themes-layout { width: min(1280px, calc(100% - 32px)); display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 28px 0 60px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; height: fit-content; position: sticky; top: 96px; }
.filters h2 { font-size: 13px; letter-spacing: .08em; margin: 16px 0 8px; }
.filters label { display: flex; gap: 8px; align-items: center; margin: 7px 0; color: #314255; }
.themes-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.themes-head h1 { font-family: var(--serif); font-size: 40px; line-height: 1; margin: 0 0 8px; }
.themes-head p, .result-count { color: var(--muted); }
.sort select { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; }
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 14px; }
.tshot { position: relative; border-radius: 12px; overflow: hidden; height: 140px; background: #ddd; }
.tshot img { width: 100%; height: 100%; object-fit: cover; }
.pill { position: absolute; top: 8px; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: #fff; }
.pill.plat { left: 8px; }
.pill.free { right: 8px; background: var(--green); color: #fff; }
.tcard h3 { margin: 10px 0 0; font-size: 16px; }
.cat { margin: 0; color: var(--muted); font-size: 13px; }
.stars { margin: 6px 0 10px; color: #e0a106; font-size: 13px; }
.stars span { color: var(--muted); }
.page-hero { padding: 42px 0 10px; }
.page-hero h1, .article h1 { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 0 0 8px; }
.page-hero p { color: var(--muted); }
.tools-layout { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding-bottom: 60px; }
.tool-list { display: flex; flex-direction: column; gap: 8px; }
.tool-list button, .tool-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.tool-list button { text-align: left; padding: 12px 14px; cursor: pointer; }
.tool-list button.is-on { background: var(--navy); color: #fff; }
.tool-panel { padding: 22px; min-height: 320px; }
.tool-panel label { display: block; font-weight: 600; margin: 12px 0 6px; }
.tool-panel input, .tool-panel textarea, .tool-panel select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.tool-panel textarea { min-height: 120px; }
.swatch { height: 90px; border-radius: 12px; margin: 12px 0; }
.price-grid, .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 64px; }
.price-card, .post-card, .article { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.price-card.featured { max-width: 460px; }
.price-card h2 { font-family: var(--serif); font-size: 64px; margin: 0; }
.price-card li { margin: 8px 0; }
.article { margin: 28px auto 64px; }
.prose { font-size: 18px; }
.studio-bar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line);
}
.studio-brand { display: flex; align-items: center; gap: 8px; }
.studio-brand strong, .studio-brand small { display: block; line-height: 1.1; }
.studio-brand small { color: var(--muted); }
.studio-fetch { display: flex; align-items: center; gap: 8px; background: #f3f1ec; border-radius: 999px; padding: 6px 6px 6px 14px; }
.studio-fetch input { flex: 1; border: 0; background: transparent; outline: none; min-width: 0; }
.link-ico { color: var(--muted); display: flex; }
.studio-tools { display: flex; gap: 4px; }
.studio-page { width: min(1240px, calc(100% - 28px)); margin: 0 auto 28px; }
.quality-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.q-chip, .aspect-row button {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; text-align: left;
}
.q-chip b, .q-chip small { display: block; }
.q-chip small { color: var(--muted); font-weight: 500; }
.q-chip.is-on, .aspect-row button.is-on { background: var(--gold); color: #fff; border-color: var(--gold); }
.q-chip.is-on small { color: #fff; }
.studio-status { color: var(--muted); }
.file-fallback { color: var(--muted); font-size: 14px; }
.editor {
  margin-top: 8px; background: #17191e; color: #f4f1ea; border-radius: 18px; padding: 14px;
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 14px;
}
.player-frame { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.player-frame video { width: 100%; height: 100%; object-fit: cover; background: #111; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #ddd; padding: 20px; text-align: center; pointer-events: none; }
.player-empty[hidden] { display: none; }
.time-pill, .ratio-pill { position: absolute; top: 10px; background: rgba(0,0,0,.55); border-radius: 8px; padding: 3px 8px; font-size: 12px; }
.time-pill { left: 10px; }
.ratio-pill { right: 10px; }
.transport { display: flex; align-items: center; gap: 10px; padding: 10px 4px 0; }
.transport button, .aspect-row button { color: inherit; }
.transport button { background: transparent; border: 0; color: #fff; cursor: pointer; }
.transport input { width: 90px; }
.edit-col section { margin-bottom: 16px; }
.edit-col h2 { font-size: 16px; margin: 0 0 8px; }
.trim-row { display: grid; gap: 6px; }
.trim-row input, #volume { width: 100%; accent-color: var(--gold); }
#trimWave, #voiceWave, #filmstrip { width: 100%; background: rgba(255,255,255,.04); border-radius: 8px; }
.aspect-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.aspect-row button { text-align: center; background: #2a2e36; color: #fff; border-color: #3a404a; }
.voice-meta, .trim-readout { display: flex; justify-content: space-between; color: #c8c2b6; font-size: 13px; }
.timeline { grid-column: 1 / -1; border-top: 1px solid #2d323b; padding-top: 10px; }
.tl-head { display: flex; justify-content: space-between; align-items: center; }
.tl-track { margin-top: 8px; border-radius: 8px; padding: 6px 8px; min-height: 42px; }
.video-track { background: #3a3558; }
.voice-track { background: #1f6b45; }
body.studio-light { background: #fff; }
body.studio-light .editor { background: #111; }
@media (max-width: 1100px) {
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .feature-grid, .footer-inner, .tools-layout { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .main-nav, .header-actions .icon-btn { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; background: transparent; border: 0; font-weight: 700; }
  .mobile-nav.is-open { display: block; padding: 0 20px 16px; }
  .mobile-nav .main-nav { display: flex; flex-direction: column; }
  .hero-copy h1 { font-size: 48px; }
  .themes-layout, .editor, .quality-row, .studio-bar, .post-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .studio-fetch { border-radius: 16px; }
  .themes-header .header-actions { display: none; }
  .themes-header .theme-search { min-width: 0; max-width: none; }
  .admin-bar .site-header, .admin-bar .studio-bar { top: 46px; }
}

/* Theme detail page */
.tcard__link { display: block; color: inherit; text-decoration: none; }
.tcard__link:hover h3 { text-decoration: underline; }
.stars--new { color: var(--green); font-weight: 600; }
.stars--new a { margin-left: 6px; color: var(--navy); font-weight: 500; }
.tdetail { padding: 28px 0 80px; }
.tdetail__back { display: inline-block; margin-bottom: 22px; color: var(--muted); text-decoration: none; font-size: 14px; }
.tdetail__head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.tdetail__head h1 { font-family: var(--serif); font-size: clamp(44px, 6vw, 72px); line-height: 1; margin: 10px 0 12px; }
.tdetail__meta { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; }
.pill-inline { padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink); }
.pill-inline--free { background: var(--green); border-color: var(--green); color: #fff; }
.tdetail__tagline { font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.tdetail__summary { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 24px; }
.tdetail__download { display: inline-flex; justify-content: center; width: auto; padding: 15px 26px; font-size: 16px; font-weight: 600; text-decoration: none; }
.tdetail__req { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.tdetail__cover { width: 100%; border-radius: 18px; box-shadow: var(--shadow); display: block; }
.tdetail__block { margin-top: 64px; }
.tdetail__block h2 { font-family: var(--serif); font-size: 32px; margin: 0 0 20px; }
.tdetail__features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tdetail__features li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 42px; position: relative; font-size: 15px; line-height: 1.45; }
.tdetail__features li::before { content: "✓"; position: absolute; left: 16px; top: 13px; color: var(--green); font-weight: 700; }
.tdetail__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tdetail__gallery figure { margin: 0; }
.tdetail__gallery img { width: 100%; display: block; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.tdetail__gallery figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.tdetail__steps { padding-left: 22px; margin: 0 0 26px; display: grid; gap: 10px; font-size: 16px; line-height: 1.55; }
.tdetail__steps code { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
@media (max-width: 900px) {
  .tdetail__head { grid-template-columns: 1fr; gap: 28px; }
  .tdetail__features { grid-template-columns: 1fr; }
  .tdetail__gallery { grid-template-columns: 1fr; }
  .tdetail__download { width: 100%; }
}

/* Platform request form */
.request { margin-top: 56px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.request__text h2 { font-family: var(--serif); font-size: 28px; margin: 0 0 8px; }
.request__text p { color: var(--muted); margin: 0 0 20px; max-width: 620px; }
.request__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; align-items: end; }
.request__form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.request__form small { color: var(--muted); font-weight: 400; }
.request__form input, .request__form select, .request__form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
.request__form input:focus, .request__form select:focus, .request__form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.request__wide { grid-column: 1 / -1; }
.request__form .btn-navy { width: auto; justify-self: start; padding: 12px 26px; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.request__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request__note { padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; }
.request__note--ok { background: #e8f5ec; color: #12663a; }
.request__note--err { background: #fdf0ec; color: #8a3f2c; }
.themes-head p a { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .request { padding: 22px; }
  .request__form { grid-template-columns: 1fr; }
  .request__form .btn-navy { width: 100%; }
}