*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --black: #0A0A0A;
    --white: #FAFAF7;
    --cream: #F5F3EE;
    --gold: #C8963E;
    --gold-light: #E8C47A;
    --red: #C1392B;
    --dark-red: #8B1A10;
    --ink: #1A1A1A;
    --muted: #6B6B6B;
    --border: #D8D4CC;
    --surface: #EFEDE8;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', sans-serif;
    --mono: 'DM Mono', monospace;
  }

  body {
    font-family: var(--sans);
    background: var(--white);
    color: var(--ink);
    min-height: 100vh;
  }

  /* PAGE ROUTING */
  .page { display: none; }
  .page.active { display: block; }

  /* ============ SHARED COMPONENTS ============ */

  /* TICKER */
  .ticker-wrap {
    background: var(--black);
    color: var(--white);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
  }
  .ticker-track {
    display: inline-block;
    animation: ticker 60s linear infinite;
  }
  .ticker-track span { margin: 0 48px; }
  .ticker-track span::before { content: "◆"; margin-right: 12px; color: var(--gold); }
  .ticker-track a.ticker-post {
    margin: 0 48px;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
  }
  .ticker-track a.ticker-post::before { content: "◆"; margin-right: 12px; color: var(--gold); }
  .ticker-track a.ticker-post:hover { color: var(--gold-light); text-decoration: underline; }
  @keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* NAV */
  .site-nav {
    border-bottom: 3px double var(--border);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    border-bottom: 1px solid var(--border);
  }
  .nav-date {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
  }
  .site-masthead {
    text-align: center;
    padding: 16px 40px 12px;
  }
  .masthead-title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--black);
    cursor: pointer;
    transition: color 0.2s;
  }
  .masthead-title:hover { color: var(--red); }
  .site-logo {
    height: clamp(60px, 10vw, 110px);
    width: auto;
    display: block;
    margin: 0 auto;
    mix-blend-mode: multiply;
    cursor: pointer;
  }
  .site-logo-login {
    height: 80px;
    width: auto;
    display: block;
    margin: 0 auto 4px;
    mix-blend-mode: multiply;
  }
  .site-logo-admin {
    height: 36px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    filter: brightness(0) invert(1);
  }
  .masthead-sub {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 4px;
  }
  .nav-cats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-top: 1px solid var(--border);
    padding: 8px 40px;
  }
  .nav-cat {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 6px 16px;
    cursor: pointer;
    border-right: 1px solid var(--border);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
  }
  .nav-cat:first-child { border-left: 1px solid var(--border); }
  .nav-cat:hover, .nav-cat.active { background: var(--black); color: var(--white); }
  .nav-cat.admin-btn { color: var(--red); font-weight: 700; }
  .nav-cat.admin-btn:hover { background: var(--red); color: var(--white); }

  /* FOOTER */
  .site-footer {
    background: var(--black);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 32px 40px;
    margin-top: 60px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .footer-brand {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 8px;
  }
  .footer-brand span { color: var(--gold); }

  /* ============ BLOG HOME ============ */
  .breaking-bar {
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0;
  }
  .breaking-label {
    background: var(--dark-red);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .breaking-text {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    border-bottom: 3px double var(--border);
    margin: 0 40px;
  }
  .hero-main {
    padding: 32px 32px 32px 0;
    border-right: 1px solid var(--border);
    cursor: pointer;
  }
  .hero-main:hover .hero-headline { color: var(--red); }
  .hero-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 500;
    margin-bottom: 10px;
  }
  .hero-headline {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 14px;
    transition: color 0.2s;
  }
  .hero-deck {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 560px;
  }
  .hero-byline {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
  }
  .hero-byline strong { color: var(--ink); }
  .hero-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    margin-bottom: 20px;
    background: var(--surface);
    display: block;
  }
  .hero-img-bg {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, var(--surface) 0%, #E8E0D4 100%);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 900;
    color: var(--border);
    letter-spacing: -0.04em;
  }

  .hero-sidebar { padding: 32px 0 32px 28px; }
  .sidebar-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 2px solid var(--black);
    padding-bottom: 6px;
    margin-bottom: 20px;
  }
  .side-story {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
  }
  .side-story:last-child { border-bottom: none; }
  .side-story:hover .side-hed { color: var(--red); }
  .side-hed {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 6px;
    transition: color 0.2s;
  }
  .side-meta {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.04em;
  }

  .section-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--black);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .section-label span { color: var(--red); }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 32px 40px;
  }
  .story-card {
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
  }
  .story-card:hover .card-hed { color: var(--red); }
  .card-img {
    width: 100%;
    height: auto;
    background: var(--surface);
    margin-bottom: 14px;
    display: block;
  }
  .card-img img { width: 100%; height: auto; display: block; }
  .card-cat {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 6px;
  }
  .card-hed {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 8px;
    transition: color 0.2s;
  }
  .card-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .card-meta {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.04em;
  }

  /* ============ BLOG POST PAGE ============ */
  .post-wrap {
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 40px 80px;
  }
  .post-cat {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    border: 1px solid var(--red);
    display: inline-block;
    padding: 3px 8px;
    margin-bottom: 16px;
  }
  .post-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 16px;
  }
  .post-deck {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  .post-meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
  }
  .post-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    flex-shrink: 0;
  }
  .post-hero-img {
    width: 100%;
    height: auto;
    background: var(--surface);
    margin-bottom: 32px;
    display: block;
  }
  .post-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink);
  }
  .post-body p { margin-bottom: 1.4em; }
  .post-body h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.8em 0 0.6em;
    color: var(--black);
  }
  .post-body h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.4em 0 0.5em;
    color: var(--black);
  }
  .post-body blockquote {
    border-left: 4px solid var(--gold);
    margin: 1.5em 0;
    padding: 12px 24px;
    background: var(--cream);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink);
  }
  .post-body ul { margin: 0.8em 0 1.2em 1.5em; }
  .post-body li { margin-bottom: 0.5em; }
  .post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }
  .tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 4px 10px;
  }
  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    margin-bottom: 24px;
    text-decoration: none;
    transition: color 0.2s;
  }
  .back-link:hover { color: var(--red); }

  /* ============ LOGIN PAGE ============ */
  .login-page {
    min-height: 100vh;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .login-bg-text {
    position: absolute;
    font-family: var(--serif);
    font-size: 28vw;
    font-weight: 900;
    color: rgba(255,255,255,0.025);
    user-select: none;
    white-space: nowrap;
    letter-spacing: -0.05em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .login-box {
    background: var(--white);
    padding: 48px 52px;
    max-width: 420px;
    width: 90%;
    position: relative;
    z-index: 1;
  }
  .login-brand {
    text-align: center;
    margin-bottom: 36px;
  }
  .login-brand-name {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
    margin-bottom: 4px;
  }
  .login-brand-name span { color: var(--red); }
  .login-brand-sub {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .login-divider {
    border: none;
    border-top: 3px double var(--border);
    margin: 24px 0;
  }
  .login-role-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 24px;
    font-weight: 500;
  }
  .badge-admin { background: var(--black); color: var(--gold); }
  .badge-editor { background: var(--red); color: var(--white); }

  .form-group { margin-bottom: 20px; }
  .form-label {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .form-input {
    width: 100%;
    border: 1px solid var(--border);
    padding: 11px 14px;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
    -webkit-appearance: none;
  }
  .form-input:focus { border-color: var(--black); }
  .form-input.error { border-color: var(--red); }
  .form-error {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--red);
    margin-top: 4px;
    letter-spacing: 0.04em;
    display: none;
  }
  .form-error.show { display: block; }
  .login-btn {
    width: 100%;
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
  }
  .login-btn:hover { background: var(--red); }
  .login-btn.editor { background: var(--red); }
  .login-btn.editor:hover { background: var(--dark-red); }
  .login-switch {
    text-align: center;
    margin-top: 20px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.06em;
  }
  .login-switch a {
    color: var(--red);
    cursor: pointer;
    text-decoration: none;
  }
  .login-switch a:hover { text-decoration: underline; }

  /* ============ ADMIN DASHBOARD ============ */
  .admin-shell {
    min-height: 100vh;
    background: #F4F2ED;
  }
  .admin-topbar {
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    position: sticky;
    top: 0;
    z-index: 200;
  }
  .admin-brand {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
  }
  .admin-brand span { color: var(--gold); }
  .admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.04em;
  }
  .admin-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 12px;
    font-weight: 700;
    background: var(--gold);
    color: var(--black);
  }
  .logout-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    padding: 5px 12px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
  }
  .logout-btn:hover { border-color: var(--red); color: var(--red); }

  .admin-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 54px);
  }
  .admin-sidebar {
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 24px 0;
  }
  .sidebar-section {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 20px;
    margin-bottom: 8px;
    margin-top: 20px;
  }
  .sidebar-section:first-child { margin-top: 0; }
  .sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    border-left: 3px solid transparent;
  }
  .sidebar-link:hover { background: var(--surface); }
  .sidebar-link.active { background: var(--surface); border-left-color: var(--red); color: var(--red); }
  .sidebar-link .icon { font-size: 14px; width: 18px; text-align: center; }
  .sidebar-badge {
    margin-left: auto;
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 99px;
    font-family: var(--mono);
  }

  .admin-content { padding: 32px; }
  .admin-page-title {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
  }
  .admin-page-sub {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 28px;
  }

  .stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
  }
  .stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 20px;
  }
  .stat-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .stat-value {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
  }
  .stat-change {
    font-family: var(--mono);
    font-size: 10px;
    color: #2D7A4F;
    margin-top: 6px;
  }

  .panel {
    background: var(--white);
    border: 1px solid var(--border);
    margin-bottom: 20px;
  }
  .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
  }
  .panel-title {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 500;
  }
  .panel-action {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: none;
  }
  .panel-action:hover { text-decoration: underline; }

  .posts-table { width: 100%; border-collapse: collapse; }
  .posts-table th {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
  }
  .posts-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    vertical-align: middle;
  }
  .posts-table tr:last-child td { border-bottom: none; }
  .posts-table tr:hover td { background: var(--surface); }
  .post-status {
    display: inline-block;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 8px;
    font-weight: 500;
  }
  .status-published { background: #E6F4EE; color: #1A6B40; }
  .status-draft { background: #F5F0E8; color: #8B6914; }
  .status-review { background: #EEF0FA; color: #3D4FBF; }
  .table-action {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--muted);
    cursor: pointer;
    background: none;
    border: none;
    margin-right: 8px;
    text-decoration: none;
    transition: color 0.2s;
  }
  .table-action:hover { color: var(--red); }
  .table-action.edit:hover { color: var(--black); }

  /* ============ EDITOR ============ */
  .editor-wrap { padding: 24px 32px; }
  .editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
  }
  .editor-title-input {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 900;
    border: none;
    border-bottom: 2px solid var(--border);
    padding: 8px 0;
    width: 100%;
    color: var(--black);
    outline: none;
    background: transparent;
    margin-bottom: 12px;
  }
  .editor-title-input::placeholder { color: var(--border); }
  .editor-title-input:focus { border-bottom-color: var(--black); }
  .editor-meta-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
  }
  .meta-input {
    border: 1px solid var(--border);
    padding: 8px 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink);
    outline: none;
    background: var(--white);
    transition: border-color 0.2s;
    flex: 1;
  }
  .meta-input:focus { border-color: var(--black); }
  .meta-select {
    border: 1px solid var(--border);
    padding: 8px 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink);
    outline: none;
    background: var(--white);
    cursor: pointer;
    flex: 1;
  }
  .fmt-bar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-bottom: none;
    background: var(--surface);
    flex-wrap: wrap;
  }
  .fmt-btn {
    padding: 4px 10px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    color: var(--ink);
    transition: all 0.15s;
    border-radius: 2px;
  }
  .fmt-btn:hover { background: var(--white); border-color: var(--border); }
  .fmt-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
  .editor-area {
    width: 100%;
    border: 1px solid var(--border);
    padding: 20px;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.8;
    color: var(--ink);
    outline: none;
    resize: vertical;
    min-height: 400px;
    background: var(--white);
  }
  .editor-area:focus { border-color: var(--black); }
  .editor-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
  }
  .btn-primary {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
  }
  .btn-primary:hover { background: var(--red); }
  .btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border);
    padding: 10px 20px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-secondary:hover { border-color: var(--black); }
  .btn-publish {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
  }
  .btn-publish:hover { background: var(--dark-red); }
  .save-indicator {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-left: auto;
  }
  .save-indicator.saved { color: #2D7A4F; }

  /* ── Image Upload Zone ── */
  .img-upload-zone {
    border: 2px dashed var(--border);
    background: var(--surface);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
  }
  .img-upload-zone:hover, .img-upload-zone.drag-over { border-color: var(--red); background: #FDF0EE; }
  .img-upload-zone input[type=file] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
  }
  .img-upload-preview {
    width: 80px; height: 60px; object-fit: cover;
    border: 1px solid var(--border); flex-shrink: 0;
    background: var(--white); display: none;
  }
  .img-upload-preview.visible { display: block; }
  .img-upload-placeholder { display: flex; flex-direction: column; gap: 4px; }
  .img-upload-label {
    font-family: var(--mono); font-size: 11px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  }
  .img-upload-hint { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
  .img-upload-remove {
    margin-left: auto; background: none; border: 1px solid var(--border);
    color: var(--red); font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px;
    cursor: pointer; flex-shrink: 0; display: none; z-index: 2; position: relative;
  }
  .img-upload-remove.visible { display: block; }
  .img-uploading {
    font-family: var(--mono); font-size: 10px; color: var(--muted);
    letter-spacing: 0.06em; margin-left: auto; display: none;
  }
  .img-uploading.visible { display: block; }

  /* ============ NEW EDITOR LAYOUT ============ */
  .ed-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 32px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .ed-header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
  .ed-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 0;
    align-items: start;
  }
  .ed-main {
    padding: 28px 32px 60px;
    min-width: 0;
    border-right: 1px solid var(--border);
  }
  .ed-sidebar {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 72px;
  }
  .ed-sidebar-card {
    border: 1px solid var(--border);
    padding: 16px;
    background: var(--white);
  }
  .ed-sidebar-title {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .ed-field-group { margin-bottom: 20px; }
  .ed-field-group:last-child { margin-bottom: 0; }
  .ed-label {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .ed-required { color: var(--red); }
  .ed-field-hint {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
  }
  .ed-body-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
  }
  .ed-mode-toggle { display: flex; gap: 4px; }
  .ed-mode-btn {
    padding: 5px 12px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.15s;
  }
  .ed-mode-btn.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
  }
  .ed-stats-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
  }
  .ed-stats-sep { color: var(--border); }

  /* Rich text toolbar */
  .rich-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-bottom: none;
    background: var(--surface);
    flex-wrap: wrap;
  }
  .rich-toolbar-group { display: flex; gap: 2px; align-items: center; }
  .rich-toolbar-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
  .rich-btn {
    padding: 4px 9px;
    font-family: var(--mono);
    font-size: 11px;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    color: var(--ink);
    border-radius: 2px;
    transition: all 0.12s;
    white-space: nowrap;
  }
  .rich-btn:hover { background: var(--white); border-color: var(--border); }

  /* Rich contenteditable editor */
  .rich-editor {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    padding: 20px;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.8;
    color: var(--ink);
    outline: none;
    min-height: 420px;
    background: var(--white);
    overflow-y: auto;
  }
  .rich-editor:focus { border-color: var(--black); }
  .rich-editor[data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: var(--border);
    pointer-events: none;
  }
  .rich-editor h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin: 1.2em 0 0.4em; }
  .rich-editor h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; margin: 1em 0 0.3em; }
  .rich-editor p  { margin-bottom: 1em; }
  .rich-editor blockquote {
    border-left: 3px solid var(--red);
    margin: 1em 0;
    padding: 8px 16px;
    color: var(--muted);
    font-style: italic;
  }
  .rich-editor ul, .rich-editor ol { margin: 0.6em 0 1em 1.4em; }
  .rich-editor li { margin-bottom: 0.3em; }
  .rich-editor img { max-width: 100%; height: auto; display: block; margin: 12px 0; }
  .rich-editor a { color: var(--red); text-decoration: underline; }
  .editor-area.code-view {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    padding: 20px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink);
    outline: none;
    resize: vertical;
    min-height: 420px;
    background: #fafafa;
  }
  .ed-preview-card img { width: 100%; display: block; border-radius: 2px; }

  /* Responsive: stack editor on smaller screens */
  @media (max-width: 900px) {
    .ed-layout { grid-template-columns: 1fr; }
    .ed-main { border-right: none; border-bottom: 1px solid var(--border); padding: 20px 16px 40px; }
    .ed-sidebar { position: static; padding: 16px; }
    .ed-header { padding: 16px; flex-wrap: wrap; }
  }

  /* Images in cards / hero / post view */
  .hero-img-real { width: 100%; height: auto; display: block; margin-bottom: 20px; }
  .card-img-real { width: 100%; height: auto; display: block; margin-bottom: 14px; }
  .post-hero-img-real { width: 100%; height: auto; display: block; margin-bottom: 32px; }

  /* Toast */
  .toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--black);
    color: var(--white);
    font-family: var(--mono);
    font-size: 12px;
    padding: 12px 20px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
    letter-spacing: 0.04em;
  }
  .toast.show { opacity: 1; transform: translateY(0); }
  .toast.success { border-left: 3px solid #2D7A4F; }
  .toast.error { border-left: 3px solid var(--red); }

  /* New Post Btn */
  .new-post-btn {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 9px 18px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
  }
  .new-post-btn:hover { background: var(--dark-red); }

  /* ============ BANNER IMAGE SLIDER ============ */
  .banner-slider-wrap {
    position: relative;
    margin: 0 40px;
    border-top: 3px double var(--border);
    padding-top: 36px;
    padding-bottom: 40px;
  }
  .banner-slider-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: var(--surface);
  }
  .banner-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  .banner-slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    cursor: pointer;
    overflow: hidden;
  }
  .banner-slide img {
    width: 100%;
    height: auto;
    display: block;
  }
  .banner-slide-placeholder {
    width: 100%;
    aspect-ratio: 16 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface) 0%, #E8E0D4 100%);
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 900;
    color: var(--border);
    letter-spacing: -0.04em;
  }
  .banner-slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }
  .banner-ind {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }
  .banner-ind.active { background: var(--black); transform: scale(1.3); }

  /* Admin banner manager */
  .banner-list { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; }
  .banner-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--border);
    padding: 12px;
    background: var(--white);
  }
  .banner-item-thumb {
    width: 90px;
    height: 56px;
    object-fit: cover;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--muted);
    font-family: var(--mono);
  }
  .banner-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .banner-item-fields { display: flex; flex-direction: column; gap: 8px; }
  .banner-item-url {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .banner-del-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--red);
    padding: 5px 10px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }
  .banner-del-btn:hover { background: var(--red); color: var(--white); border-color: var(--red); }
  .banner-add-zone {
    border: 2px dashed var(--border);
    padding: 28px;
    text-align: center;
    margin: 0 24px 24px;
    cursor: pointer;
    transition: border-color 0.2s;
  }
  .banner-add-zone:hover { border-color: var(--black); }
  .banner-add-zone input[type=file] { display: none; }
  .banner-add-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  @media (max-width: 768px) {
    .banner-slider-wrap { margin: 0 16px; }
  }


  .cat-section {
    padding: 36px 40px 0;
    border-top: 3px double var(--border);
    margin-top: 16px;
  }
  .cat-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--black);
    padding-bottom: 8px;
    margin-bottom: 24px;
  }
  .cat-section-title {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .cat-section-title strong {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--black);
    letter-spacing: -0.01em;
    display: block;
    margin-top: 2px;
  }
  .cat-section-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .view-all-btn {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    border: 1px solid var(--border);
    padding: 6px 14px;
    cursor: pointer;
    text-decoration: none;
    background: var(--white);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .view-all-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
  .carousel-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink);
    transition: background 0.2s, color 0.2s;
    user-select: none;
    flex-shrink: 0;
  }
  .carousel-arrow:hover { background: var(--black); color: var(--white); }
  .carousel-arrow:disabled, .carousel-arrow.disabled { opacity: 0.3; cursor: default; }
  .carousel-arrow:disabled:hover, .carousel-arrow.disabled:hover { background: var(--white); color: var(--ink); }

  .carousel-viewport {
    overflow: hidden;
    position: relative;
  }
  .carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  .carousel-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }
  .carousel-card:hover .carousel-card-hed { color: var(--red); }
  .carousel-card-img {
    width: 100%;
    height: auto;
    background: var(--surface);
    margin-bottom: 12px;
    display: block;
    overflow: hidden;
  }
  .carousel-card-img img { width: 100%; height: auto; display: block; }
  .carousel-card-cat {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 5px;
  }
  .carousel-card-hed {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 7px;
    transition: color 0.2s;
  }
  .carousel-card-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 8px;
  }
  .carousel-card-meta {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.04em;
  }
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding-bottom: 8px;
  }
  .carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }
  .carousel-dot.active { background: var(--black); transform: scale(1.3); }
  .carousel-empty {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.08em;
    padding: 40px 0;
    text-align: center;
  }
  /* ============ TRENDING SECTION ============ */
  .trending-section {
    padding: 36px 40px 40px;
    border-top: 3px double var(--border);
    margin-top: 16px;
    background: var(--cream);
  }
  .trending-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--black);
    padding-bottom: 8px;
    margin-bottom: 28px;
  }
  .trending-title-block {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .trending-flame { font-size: 1.3rem; line-height: 1; }
  .trending-title {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .trending-title strong {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--black);
    letter-spacing: -0.01em;
    display: block;
    margin-top: 2px;
  }
  .trending-viewport { overflow: hidden; position: relative; }
  .trending-track {
    display: flex;
    gap: 28px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  .trending-card {
    flex: 0 0 calc((100% - 56px) / 3);
    min-width: 0;
    cursor: pointer;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0 0 20px;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .trending-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
  .trending-card:hover .trending-card-hed { color: var(--red); }
  .trending-rank {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--black);
    color: var(--gold);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 3px 7px;
    z-index: 1;
  }
  .trending-card-img {
    width: 100%; height: 170px;
    background: var(--surface);
    margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 2.5rem; font-weight: 900; color: var(--border);
    overflow: hidden; position: relative;
  }
  .trending-card-img img { width: 100%; height: 100%; object-fit: cover; }
  .trending-card-body { padding: 0 18px; }
  .trending-card-cat {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--red); margin-bottom: 6px;
  }
  .trending-card-hed {
    font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
    line-height: 1.3; color: var(--black); margin-bottom: 8px; transition: color 0.2s;
  }
  .trending-card-deck {
    font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .trending-card-meta {
    font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em;
  }
  .trending-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; margin-top: 28px;
  }
  .trending-arrow {
    width: 38px; height: 38px;
    border: 1px solid var(--border); background: var(--white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; color: var(--ink);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    user-select: none; flex-shrink: 0;
  }
  .trending-arrow:hover { background: var(--black); color: var(--white); border-color: var(--black); }
  .trending-arrow.disabled { opacity: 0.3; cursor: default; pointer-events: none; }
  .trending-page-label {
    font-family: var(--mono); font-size: 11px; color: var(--muted);
    letter-spacing: 0.08em; min-width: 52px; text-align: center;
  }
  .trending-dots { display: flex; gap: 6px; align-items: center; }
  .trending-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--border); cursor: pointer; transition: background 0.2s, transform 0.2s;
  }
  .trending-dot.active { background: var(--black); transform: scale(1.4); }
  /* Admin: trending toggle */
  .trending-toggle {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    font-family: var(--mono); font-size: 10px; color: var(--muted);
    letter-spacing: 0.06em; user-select: none; white-space: nowrap;
  }
  .trending-toggle input[type=checkbox] {
    width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0;
  }
  .trending-toggle.is-trending { color: var(--gold); font-weight: 600; }
  .trending-badge {
    display: inline-block; background: var(--gold); color: var(--black);
    font-family: var(--mono); font-size: 9px; font-weight: 600;
    letter-spacing: 0.1em; padding: 2px 6px; text-transform: uppercase; vertical-align: middle;
  }

  /* ============ ENTERTAINMENT SECTION ============ */
  .ent-section {
    padding: 36px 40px 40px;
    border-top: 3px double var(--border);
    margin-top: 16px;
  }
  .ent-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--black);
    padding-bottom: 8px;
    margin-bottom: 28px;
  }
  .ent-section-title {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .ent-section-title strong {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--black);
    letter-spacing: -0.01em;
    display: block;
    margin-top: 2px;
  }
  .ent-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
  }
  .ent-featured {
    padding-right: 32px;
    border-right: 1px solid var(--border);
    cursor: pointer;
  }
  .ent-featured:hover .ent-featured-hed { color: var(--red); }
  .ent-featured-img {
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, var(--surface) 0%, #E8E0D4 100%);
    margin-bottom: 18px;
    display: block;
    overflow: hidden;
    position: relative;
  }
  .ent-featured-img img {
    width: 100%;
    height: auto;
    display: block;
  }
  .ent-featured-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 500;
    margin-bottom: 10px;
  }
  .ent-featured-hed {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--black);
    margin-bottom: 12px;
    transition: color 0.2s;
  }
  .ent-featured-deck {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 480px;
  }
  .ent-featured-byline {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
  }
  .ent-featured-byline strong { color: var(--ink); }
  .ent-sidebar { padding-left: 28px; }
  .ent-sidebar-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 2px solid var(--black);
    padding-bottom: 6px;
    margin-bottom: 4px;
  }
  .ent-side-story {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: start;
  }
  .ent-side-story:last-child { border-bottom: none; }
  .ent-side-story:hover .ent-side-hed { color: var(--red); }
  .ent-side-thumb {
    width: 72px;
    height: 56px;
    background: var(--surface);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--border);
    overflow: hidden;
  }
  .ent-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .ent-side-hed {
    font-family: var(--serif);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 5px;
    transition: color 0.2s;
  }
  .ent-side-meta {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.04em;
  }


  /* ============ CATEGORY PAGE ============ */
  .cat-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 80px;
  }
  .cat-page-hero {
    border-bottom: 3px double var(--border);
    padding: 36px 0 28px;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
  }
  .cat-page-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
  }
  .cat-page-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1;
    color: var(--black);
    letter-spacing: -0.02em;
  }
  .cat-page-count {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
    white-space: nowrap;
    padding-bottom: 6px;
  }
  .cat-page-count strong { color: var(--ink); }
  .cat-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 28px;
  }
  .cat-post-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
  }
  .cat-post-card:hover .cat-card-hed { color: var(--red); }
  .cat-card-img {
    width: 100%;
    height: auto;
    background: var(--surface);
    margin-bottom: 16px;
    display: block;
    overflow: hidden;
    flex-shrink: 0;
  }
  .cat-card-img img { width: 100%; height: auto; display: block; }
  .cat-card-number {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--border);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }
  .cat-card-hed {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 8px;
    transition: color 0.2s;
    flex-grow: 1;
  }
  .cat-card-deck {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cat-card-meta {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.04em;
  }
  .cat-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.06em;
  }
  .cat-empty-symbol {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.3;
  }
  /* Pagination */
  .cat-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 52px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
  }
  .cat-page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--white);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s;
    padding: 0 10px;
    letter-spacing: 0.06em;
  }
  .cat-page-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
  .cat-page-btn.active { background: var(--black); color: var(--white); border-color: var(--black); cursor: default; }
  .cat-page-btn.disabled { opacity: 0.35; cursor: default; pointer-events: none; }
  .cat-page-btn.arrow { font-size: 16px; }
  /* Featured first post (spans full width) */
  .cat-post-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 36px;
    cursor: pointer;
    margin-bottom: 8px;
  }
  .cat-post-featured:hover .cat-feat-hed { color: var(--red); }
  .cat-feat-img {
    width: 100%;
    height: 320px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 4rem;
    font-weight: 900;
    color: var(--border);
    overflow: hidden;
  }
  .cat-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cat-feat-body {
    padding: 8px 0 8px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .cat-feat-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
  }
  .cat-feat-hed {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--black);
    margin-bottom: 14px;
    transition: color 0.2s;
  }
  .cat-feat-deck {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .cat-feat-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
  }
  .cat-feat-meta strong { color: var(--ink); }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 900px) {
    .cat-post-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
    .cat-post-featured { grid-template-columns: 1fr; }
    .cat-feat-img { height: 240px; }
    .cat-feat-body { padding: 20px 0 0; }
    .cat-page-wrap { padding: 0 24px 60px; }
  }
  @media (max-width: 768px) {
    .cat-post-grid { grid-template-columns: 1fr; gap: 24px; }
    .cat-page-wrap { padding: 0 16px 60px; }
    .cat-page-hero { flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px 0 20px; }
    .cat-card-img { height: auto; }
    .cat-feat-img { height: 200px; }
    .cat-post-featured { grid-template-columns: 1fr; }
  }
  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; margin: 0 24px; }
    .hero-sidebar { padding: 24px 0 0; border-top: 1px solid var(--border); border-right: none; }
    .hero-main { padding: 24px 0; }
    .hero-img, .hero-img-bg { height: auto; }

    .cat-section { padding: 28px 24px 0; }
    .carousel-card { flex: 0 0 calc((100% - 24px) / 2); }

    .trending-section { padding: 28px 24px 32px; }
    .trending-card { flex: 0 0 calc((100% - 28px) / 2); }

    .ent-section { padding: 28px 24px 32px; }
    .banner-slider-wrap { margin: 0 24px; }
  }

  @media (max-width: 768px) {
    /* Nav */
    .nav-top, .site-masthead { padding-left: 16px; padding-right: 16px; }
    .nav-cats {
      padding: 0;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      justify-content: flex-start;
      border-top: 1px solid var(--border);
    }
    .nav-cats::-webkit-scrollbar { display: none; }
    .nav-cat { padding: 10px 14px; white-space: nowrap; flex-shrink: 0; border-right: none; border-left: none; border-bottom: 2px solid transparent; }
    .nav-cat:first-child { border-left: none; }
    .nav-cat.active { background: transparent; color: var(--red); border-bottom-color: var(--red); }
    .nav-cat:hover { background: var(--surface); color: var(--ink); }

    /* Hero */
    .hero-grid { grid-template-columns: 1fr; margin: 0 16px; }
    .hero-main { padding: 20px 0; border-right: none; }
    .hero-img, .hero-img-bg { height: auto; margin-bottom: 14px; }
    .hero-sidebar { padding: 20px 0 0; border-top: 1px solid var(--border); border-right: none; }

    /* Card grid */
    .card-grid { grid-template-columns: 1fr; padding: 20px 16px; }

    /* Technology carousel */
    .cat-section { padding: 24px 16px 0; }
    .carousel-card { flex: 0 0 calc(100% - 0px); }
    .carousel-track { gap: 0; }

    /* Banner */
    .banner-slider-wrap { margin: 0 16px; padding-top: 24px; padding-bottom: 28px; }

    /* Entertainment & Branding sections */
    .ent-section { padding: 24px 16px 28px; }
    .ent-grid { grid-template-columns: 1fr; }
    .ent-featured { padding-right: 0; border-right: none; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
    .ent-featured-img { height: auto; }
    .ent-sidebar { padding-left: 0; padding-top: 20px; }
    .ent-side-story { grid-template-columns: 60px 1fr; gap: 10px; }
    .ent-side-thumb { width: 60px; height: 48px; }

    /* Trending section */
    .trending-section { padding: 24px 16px 28px; }
    .trending-track { gap: 16px; }
    .trending-card { flex: 0 0 calc(100% - 0px); }
    .trending-card-img { height: 180px; }
    .trending-nav { margin-top: 20px; }
    .trending-arrow { width: 44px; height: 44px; font-size: 22px; }

    /* Admin */
    .admin-body { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .login-box { padding: 32px 24px; }
    .posts-table { font-size: 12px; }
    .posts-table th, .posts-table td { padding: 8px 10px; }

    /* Post page */
    .post-wrap { padding: 24px 16px 60px; }
    .post-hero-img { height: auto; }
  }

  @media (max-width: 480px) {
    .masthead-title { font-size: 2rem; }
    .hero-headline { font-size: 1.5rem; }
    .stat-row { grid-template-columns: 1fr 1fr; }
    .ent-featured-img { height: auto; }
    .trending-card-img { height: 150px; }
    .card-img { height: auto; }
    .carousel-card-img { height: auto; }
    .ent-section-header, .trending-header { flex-wrap: wrap; gap: 8px; }
  }
  
  /* ── No-image placeholder: show post title ── */
.no-img-title {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
  background: #f5f0eb;
  font-family: var(--serif);
  font-size: clamp(13px, 2vw, 20px);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
}