:root {
  --bg: #0a0a0a;
  --bg-deep: #060606;
  --panel: #0d0d0d;
  --panel-soft: #11100f;
  --ink: #f0ebe0;
  --text: #d8d0c0;
  --muted: #706860;
  --muted-strong: #a09880;
  --line: rgba(180, 140, 80, 0.14);
  --line-strong: rgba(200, 168, 74, 0.38);
  --gold: #c8a84a;
  --gold-soft: #b78632;
  --oxblood: #8b1a1a;
  --forest: #12382e;
  --forest-dark: #0c241f;
  --danger: #b94343;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 18px 40px;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(100%, 260px);
  flex: 0 0 auto;
  object-fit: contain;
}

.site-header .brand-logo {
  height: 84px;
  max-width: min(100%, 480px);
}

.admin-brand .brand-logo {
  height: 42px;
  max-width: min(100%, 220px);
}

.site-nav,
.meta-row,
.row-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav a,
.link-button {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-nav a:hover,
.link-button:hover,
.site-footer a:hover {
  color: var(--gold);
}

.link-button,
.danger-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.danger-link {
  color: var(--danger);
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 32px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 1px;
}

.section-header .section-title {
  margin-bottom: 0;
}

.team-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(520px, 72vh, 740px);
  overflow: hidden;
  isolation: isolate;
  padding: 0 40px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.team-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 0.7)),
    url("/public/assets/images/banner.jpg") center center / cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
  transform: scale(1.03);
}

.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
  background:
    linear-gradient(90deg, transparent 49.9%, var(--gold) 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 49.9%, var(--gold) 50%, transparent 50.1%),
    radial-gradient(circle at center, transparent 0 22%, rgba(200, 168, 74, 0.7) 22.1% 22.25%, transparent 22.35%),
    radial-gradient(circle at center, transparent 0 34%, rgba(200, 168, 74, 0.6) 34.1% 34.25%, transparent 34.35%);
  background-size: 420px 420px, 420px 420px, 760px 760px, 760px 760px;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  text-align: center;
}

.hero-eyebrow {
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-title {
  color: var(--ink);
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 500;
  letter-spacing: 6px;
  line-height: 1.02;
  text-transform: uppercase;
}

.hero-subtitle {
  margin-top: 12px;
  color: var(--oxblood);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 12px;
  text-transform: uppercase;
}

.hero-tagline {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px 0;
}

.hero-divider span {
  width: 60px;
  height: 1px;
  background: rgba(200, 168, 74, 0.4);
}

.hero-symbol {
  color: var(--gold);
  font-size: 1.2rem;
}

.hero-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--gold);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

.hero-cta {
  margin-top: 24px;
  padding: 11px 32px;
}

.button:hover,
.hero-cta:hover {
  background: rgba(200, 168, 74, 0.08);
}

.button-secondary,
.button-ghost {
  color: var(--gold);
  background: transparent;
}

.button-danger {
  border-color: var(--danger);
  color: white;
  background: var(--danger);
}

.full-width {
  width: 100%;
}

.featured,
.categories,
.latest,
.video-section {
  padding: 60px 40px;
}

.featured,
.video-section {
  background: var(--panel);
}

.featured-inner {
  width: min(960px, 100%);
  margin: 0 auto;
}

.categories-inner,
.latest-inner,
.video-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.featured .section-title {
  margin-bottom: 34px;
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 500;
  letter-spacing: 1px;
}

.content-band {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: clamp(50px, 7vw, 86px) 0;
}

.muted-band {
  border-top: 1px solid var(--line);
}

.section-header,
.admin-topbar,
.panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-header h1,
.section-header h2,
.admin-topbar h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 1px;
  background: rgba(180, 140, 80, 0.1);
}

.featured-grid-single {
  grid-template-columns: 1fr;
}

.featured-main,
.side-card,
.video-card {
  background: var(--panel);
}

.video-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
}

.featured-img,
.article-thumb,
.video-thumb {
  display: grid;
  place-items: center;
  color: rgba(240, 235, 224, 0.7);
  background:
    radial-gradient(circle at 25% 18%, rgba(200, 168, 74, 0.11), transparent 32%),
    linear-gradient(145deg, var(--forest-dark) 0%, #25221c 42%, var(--oxblood) 100%);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
}

.featured-img {
  height: clamp(260px, 45vw, 420px);
}

.featured-img img,
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-tag,
.article-tag,
.category-link,
.side-card-tag,
.video-tag {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.featured-tag {
  display: inline-block;
  margin: 20px 20px 10px;
  padding: 4px 10px;
  border: 1px solid rgba(200, 168, 74, 0.28);
}

.featured-h {
  padding: 0 20px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
}

.featured-p {
  margin: 12px 0 0;
  padding: 0 20px;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.featured-meta,
.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
}

.featured-meta {
  padding: 18px 20px 22px;
}

.side-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.side-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-height: 138px;
  padding: 26px 28px;
  border-bottom: 1px solid rgba(180, 140, 80, 0.1);
}

.side-card:hover,
.cat-item:hover,
.article-row:hover,
.video-card:hover {
  background: #111;
}

.side-card-h {
  margin-top: 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.side-card-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.72rem;
}

.categories {
  background: #080808;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(180, 140, 80, 0.08);
}

.cat-item {
  min-height: 130px;
  padding: 28px 24px;
  background: #080808;
  text-align: center;
}

.cat-icon {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 1.65rem;
}

.cat-name {
  margin-bottom: 6px;
  color: var(--muted-strong);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cat-count {
  color: var(--muted);
  font-size: 0.68rem;
}

.articles-list {
  display: grid;
}

.article-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 120px;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(180, 140, 80, 0.08);
}

.category-page {
  min-height: calc(100vh - 220px);
}

.category-page .section-header h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.category-articles {
  border-top: 1px solid rgba(180, 140, 80, 0.12);
}

.article-thumb {
  width: 100%;
  height: 100px;
}

.article-title {
  margin: 6px 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.article-excerpt,
.article-card p,
.section-header p,
.article-hero p,
.muted {
  color: var(--muted-strong);
}

.article-date {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: right;
}

.article-bubbles,
.article-signature {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-bubbles {
  justify-content: flex-end;
  margin-top: 8px;
}

.meta-bubble {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(180, 140, 80, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
}

.article-type {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 8px;
  color: var(--muted-strong);
  border: 1px solid rgba(180, 140, 80, 0.22);
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: rgba(180, 140, 80, 0.1);
}

.article-card {
  overflow: hidden;
  background: var(--panel);
}

.article-card .article-thumb {
  height: 210px;
}

.article-card-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.article-card h3 {
  font-size: 1.28rem;
}

.empty-state,
.notice-panel,
.auth-panel,
.admin-panel,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
}

.empty-state,
.notice-panel,
.auth-panel {
  padding: 28px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(180, 140, 80, 0.08);
}

.video-thumb {
  position: relative;
  height: 160px;
}

.video-thumb.has-video-cover {
  background-position: center;
  background-size: cover;
}

.video-play {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--gold);
  border: 1px solid rgba(200, 168, 74, 0.55);
  border-radius: 50%;
}

.video-duration {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 6px;
  color: var(--muted-strong);
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.68rem;
}

.video-info {
  padding: 14px 16px;
}

.video-title {
  margin-top: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-page {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 76px) 0;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.video-hero {
  align-items: start;
}

.video-player-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.video-player-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-body {
  width: min(760px, 100%);
  margin: 44px auto 0;
  color: var(--text);
  font-size: 1.08rem;
}

.article-body h2,
.article-body h3 {
  margin-top: 34px;
}

.article-body img {
  width: 100%;
  height: auto;
  margin: 28px 0;
}

.video-detail-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.article-body blockquote {
  margin: 30px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: rgba(183, 134, 50, 0.1);
}

.article-access-panel {
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  margin: 44px auto 0;
  padding: clamp(24px, 4vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.article-access-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.article-access-panel p {
  margin: 0;
  color: var(--muted-strong);
}

.article-signature {
  width: min(760px, 100%);
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.centered-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 150px);
  padding: 32px 18px;
}

.auth-panel {
  width: min(440px, 100%);
  box-shadow: var(--shadow);
}

.account-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(38px, 6vw, 72px) 0;
}

.account-hero {
  margin-bottom: 24px;
}

.account-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.account-message {
  margin: 0 0 18px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.account-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.account-panel h2 {
  font-size: 1.45rem;
}

.account-panel-wide {
  grid-column: 1 / -1;
}

.account-danger-panel {
  border-color: rgba(185, 67, 67, 0.45);
}

.static-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 138px);
  padding: clamp(52px, 8vw, 92px) 18px;
}

.static-content {
  display: grid;
  gap: 18px;
  width: min(900px, 100%);
  padding: clamp(28px, 5vw, 46px);
  background: var(--panel);
  border: 1px solid var(--line);
}

.static-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.static-content p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
}

.about-page {
  background: var(--bg);
}

.about-hero {
  display: grid;
  place-items: center start;
  min-height: 360px;
  padding: 70px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.about-hero > div {
  width: min(760px, 100%);
}

.about-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.about-hero p:last-child {
  margin: 20px 0 0;
  color: var(--muted-strong);
  font-size: 1.1rem;
}

.about-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 80px));
  margin: 70px auto;
  background: rgba(180, 140, 80, 0.12);
}

.person-card {
  background: var(--panel);
}

.person-photo {
  min-height: 360px;
  background-image: url("/public/assets/images/banner.jpg");
  background-repeat: no-repeat;
  background-size: 1180px auto;
  filter: saturate(0.92) contrast(1.08);
}

.person-photo-left {
  background-position: 12% 10%;
}

.person-photo-center {
  background-position: 50% 10%;
}

.person-photo-right {
  background-position: 86% 10%;
}

.person-body {
  padding: 24px;
}

.person-role {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.person-body h2 {
  font-size: 1.55rem;
}

.person-body p:last-child {
  margin: 14px 0 0;
  color: var(--muted-strong);
}

.stack-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.field-label {
  color: var(--ink);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #141312;
  border: 1px solid var(--line);
  border-radius: 0;
}

textarea {
  resize: vertical;
}

.form-error {
  padding: 12px 14px;
  color: #ffd6d6;
  background: rgba(139, 26, 26, 0.22);
  border: 1px solid rgba(185, 67, 67, 0.45);
}

.notice-success {
  padding: 12px 14px;
  color: #c9f3df;
  background: rgba(18, 56, 46, 0.35);
  border: 1px solid rgba(166, 223, 200, 0.35);
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  padding: 22px;
  color: var(--ink);
  background: var(--bg-deep);
  border-right: 1px solid var(--line);
}

.admin-brand,
.admin-menu a {
  color: var(--ink);
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu a {
  padding: 11px 12px;
  color: var(--muted-strong);
}

.admin-menu a:hover {
  color: var(--gold);
  background: rgba(200, 168, 74, 0.08);
}

.admin-main {
  min-width: 0;
  padding: clamp(22px, 4vw, 44px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.analytics-panel {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.analytics-grid h3 {
  margin-bottom: 12px;
}

.stat-card,
.admin-panel {
  padding: 20px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 2.3rem;
  line-height: 1;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 900;
}

.status.published,
.status.active {
  color: #a6dfc8;
  background: rgba(18, 56, 46, 0.65);
}

.status.draft,
.status.suspended {
  color: #e9c78d;
  background: rgba(183, 134, 50, 0.16);
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

.newsletter-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.editor-main-panel,
.publish-panel {
  display: grid;
  gap: 16px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.editor-toolbar button {
  min-height: 36px;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 800;
}

.rich-editor {
  min-height: 520px;
  padding: 22px;
  color: var(--ink);
  background: #141312;
  border: 1px solid var(--line);
  outline: none;
}

.rich-editor:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 134, 50, 0.14);
}

.rich-editor img {
  max-width: 100%;
  height: auto;
  margin: 18px 0;
}

.cover-upload-group {
  display: grid;
  gap: 12px;
}

.cover-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #141312;
}

.cover-preview img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.video-source-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
}

.video-source-group legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 800;
}

.duration-preview {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.duration-preview span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.duration-preview strong {
  color: var(--ink);
}

.taxonomy-section + .taxonomy-section {
  margin-top: 24px;
}

.split-panel {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.compact-form {
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.inline-edit {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) auto;
  gap: 8px;
}

.inline-edit button {
  min-height: 42px;
}

.users-panel {
  display: grid;
  gap: 22px;
}

.user-search-form {
  display: grid;
  grid-template-columns: minmax(240px, 420px) auto;
  gap: 14px;
  align-items: end;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.admin-modal-dialog {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.admin-modal-dialog h2 {
  font-size: 1.8rem;
}

.admin-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted-strong);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 900;
}

.admin-modal-close:hover {
  color: var(--gold);
}

.user-modal-actions {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.user-modal-actions form,
.user-modal-actions button {
  width: 100%;
}

.subscriber-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.subscriber-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.subscriber-row input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 4px;
}

.subscriber-row strong,
.subscriber-row small {
  display: block;
}

.subscriber-row small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.subscriber-disabled {
  opacity: 0.48;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 40px;
  color: var(--muted);
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.site-footer div,
.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(720px, calc(100% - 36px));
  padding: 18px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-actions a {
  color: var(--gold);
  font-weight: 800;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.newsletter-modal[hidden] {
  display: none;
}

.newsletter-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.newsletter-dialog h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.newsletter-dialog .stack-form {
  margin-top: 18px;
}

.newsletter-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted-strong);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 900;
}

.newsletter-close:hover {
  color: var(--gold);
}

@media (max-width: 900px) {
  .site-header,
  .section-header,
  .admin-topbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-grid,
  .article-hero,
  .admin-shell,
  .editor-layout,
  .newsletter-admin-grid,
  .split-panel,
  .video-grid,
  .about-team,
  .account-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-row {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .article-row > :last-child {
    grid-column: 2;
  }

  .article-date {
    text-align: left;
  }

  .article-bubbles {
    justify-content: flex-start;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .compact-form {
    padding-right: 0;
    padding-bottom: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .user-search-form {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .about-hero,
  .featured,
  .categories,
  .latest,
  .video-section,
  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-nav {
    width: 100%;
    gap: 14px;
  }

  .site-header .brand-logo {
    height: 64px;
    max-width: min(100%, 360px);
  }

  .team-hero {
    min-height: 480px;
    padding: 0 18px;
  }

  .content-band {
    width: calc(100% - 36px);
  }

  .about-team {
    width: calc(100% - 36px);
  }

  .person-photo {
    min-height: 300px;
    background-size: 980px auto;
  }

  .hero-title {
    letter-spacing: 3px;
  }

  .hero-subtitle,
  .hero-tagline {
    letter-spacing: 4px;
  }

  .cat-grid,
  .article-row,
  .inline-edit {
    grid-template-columns: 1fr;
  }

  .article-row > :last-child {
    grid-column: auto;
  }
}
