
  :root {
    /* Paleta tomada del logo y del banner de Radio Víctor Jara */
    --bg: #f3e8cc;            /* pergamino claro */
    --bg-raise: #e9d9b0;      /* pergamino más oscuro (franjas) */
    --surface: #fbf6e6;       /* crema de las etiquetas del banner */
    --line: rgba(74, 52, 30, 0.2);
    --ink: #2a1c12;           /* texto principal */
    --muted: #6a5644;
    --navy: #154062;          /* azul del aro del logo */
    --navy-deep: #0e2d47;
    --red: #8b2018;           /* rojo de las estrellas y el pañuelo */
    --red-bright: #a62b20;
    --red-deep: #6d1810;
    --coral: #ee7a6b;         /* rojo claro, solo para fondos azules */
    --cream: #f7f4df;         /* crema del logo */
    --cream-muted: rgba(247, 244, 223, 0.74);
    --ok: #2e6b3a;
    --font-display: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Public Sans', system-ui, sans-serif;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  html { scroll-padding-top: 90px; height: 100%; }
  [hidden] { display: none !important; }
  *, *::before, *::after { box-sizing: border-box; }
  body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }

  ::selection { background: var(--navy); color: var(--cream); }
  /* grano de papel, muy sutil */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.25  0 0 0 0 0.12  0 0 0 0.09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }

  header.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px clamp(20px, 5vw, 56px);
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    background: rgba(21,64,98,0.97);
    color: var(--cream);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--red);
  }
  .brand { display: flex; align-items: center; gap: 12px; }
  .brand img { width: 46px; height: 46px; border-radius: 50%; }
  .brand span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  nav.main-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
  nav.main-nav a {
    text-decoration: none;
    color: var(--cream-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  nav.main-nav a:hover, nav.main-nav a:focus-visible { color: var(--cream); }
  .admin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
  }
  .admin-btn:hover, .admin-btn:focus-visible { border-color: var(--red-bright); color: var(--ink); }
  .site-header .admin-btn { border-color: rgba(247,244,223,0.38); color: var(--cream); }
  .site-header .admin-btn:hover, .site-header .admin-btn:focus-visible { border-color: var(--cream); background: rgba(247,244,223,0.1); color: var(--cream); }
  .site-header .admin-pill-tag { color: var(--coral); }
  .site-header :focus-visible, .site-footer :focus-visible, .player-bar :focus-visible, .hero-strip :focus-visible { outline-color: var(--coral); }
  .admin-pill { display: flex; align-items: center; gap: 10px; }
  .admin-pill-tag {
    display: flex; align-items: center; gap: 7px;
    color: var(--red); font-size: 0.78rem; font-weight: 700;
  }
  .admin-pill .admin-btn { padding: 8px 10px; }
  .admin-only { display: none; }
  body.is-admin .admin-only { display: inline-flex; }
  .add-post-btn, .add-show-btn {
    align-items: center; gap: 8px;
    background: transparent; border: 1px dashed var(--line);
    color: var(--red); font-family: var(--font-body); font-weight: 600;
    font-size: 0.85rem; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  }
  .add-post-btn:hover, .add-show-btn:hover { border-color: var(--red); }
  .card-admin-actions { display: none; gap: 6px; }
  body.is-admin .card-admin-actions { display: flex; }
  .icon-del {
    background: rgba(139,32,24,0.1); border: 1px solid var(--line); color: var(--muted);
    width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .icon-del:hover { color: var(--red-bright); border-color: var(--red-bright); }
  .empty-note { color: var(--muted); font-size: 0.9rem; padding: 18px 4px; }
  .navlinks-mobile-hide { display: flex; gap: 34px; }
  .menu-toggle { display: none; }
  .mobile-nav-panel { display: none; }
  @media (max-width: 860px) {
    .navlinks-mobile-hide { display: none !important; }
    .menu-toggle {
      display: flex; align-items: center; justify-content: center;
      width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
      background: transparent; border: 1px solid rgba(247,244,223,0.4); color: var(--cream); cursor: pointer;
    }
    .mobile-nav-panel {
      flex-direction: column;
      position: absolute; left: 0; right: 0; top: 100%;
      z-index: 39;
      background: rgba(21,64,98,0.98);
      backdrop-filter: blur(10px);
      border-bottom: 3px solid var(--red);
      padding: 6px clamp(20px, 5vw, 56px) 14px;
    }
    .mobile-nav-panel.open { display: flex; }
    .mobile-nav-panel a {
      text-decoration: none; color: var(--cream-muted); font-size: 1rem; font-weight: 500;
      padding: 14px 2px; border-bottom: 1px solid rgba(247,244,223,0.14);
    }
    .mobile-nav-panel a:last-child { border-bottom: none; }
    .brand span { font-size: 1rem; }
  }
  @media (max-width: 420px) {
    .brand span { display: none; }
  }
  @media (max-width: 600px) {
    .admin-pill-tag { display: none; }
  }

  /* HERO: el banner ya trae el nombre y el lema, se muestra completo */
  .hero { position: relative; background: var(--bg-raise); }
  .hero-banner { display: block; width: 100%; height: auto; }
  @media (max-width: 640px) {
    .hero-banner { height: 230px; object-fit: cover; object-position: left center; }
  }
  .hero-strip { background: var(--navy); color: var(--cream); border-top: 3px solid var(--red); }
  .hero-strip-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 22px clamp(20px, 6vw, 64px);
    display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px;
  }
  .hero-strip .tagline { flex: 1 1 340px; margin: 0; max-width: 64ch; color: var(--cream-muted); font-size: 1rem; }
  .hero-strip .hero-actions { margin-top: 0; }
  .live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: rgba(247,244,223,0.1);
    border: 1px solid rgba(247,244,223,0.3);
    font-size: 0.8rem;
    color: var(--cream);
    font-weight: 600;
  }
  .live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 0 rgba(238,122,107,0.6);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(238,122,107,0.55); }
    70% { box-shadow: 0 0 0 9px rgba(238,122,107,0); }
    100% { box-shadow: 0 0 0 0 rgba(238,122,107,0); }
  }
  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
  .btn-primary, .btn-ghost {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
    color: var(--cream);
    box-shadow: 0 10px 24px -12px rgba(109,24,16,0.7);
  }
  .btn-ghost {
    background: transparent;
    border-color: rgba(21,64,98,0.4);
    color: var(--navy);
  }
  .hero-strip .btn-primary { box-shadow: 0 0 0 1px rgba(247,244,223,0.28) inset, 0 10px 24px -12px rgba(0,0,0,0.6); }
  .hero-strip .btn-ghost { background: rgba(247,244,223,0.08); border-color: rgba(247,244,223,0.4); color: var(--cream); }

  section { position: relative; z-index: 1; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(20px, 6vw, 64px); }
  .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
  .section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  .section-head p { color: var(--muted); margin: 0; max-width: 40ch; font-size: 0.95rem; }

  /* ON AIR STRIP */
  .onair {
    border-bottom: 1px solid var(--line);
    background: var(--bg-raise);
  }
  .onair .wrap { padding-top: clamp(28px, 4vw, 40px); padding-bottom: clamp(28px, 4vw, 40px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
  @media (max-width: 800px) { .onair .wrap { grid-template-columns: 1fr; } }
  .onair-now { display: flex; gap: 18px; align-items: center; }
  .onair-now .glyph {
    width: 58px; height: 58px; border-radius: 14px;
    background: linear-gradient(150deg, var(--navy), var(--navy-deep));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .onair-now h3 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
  .onair-now .label { text-transform: none; color: var(--red); font-size: 0.78rem; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.03em; }
  .onair-now p { margin: 0; color: var(--muted); font-size: 0.9rem; }
  .up-next { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 0.92rem; }
  .up-next b { color: var(--ink); font-weight: 600; }
  .up-next .divider { width: 1px; height: 34px; background: var(--line); }

  /* POSTS */
  .posts-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
  }
  @media (max-width: 820px) { .posts-grid { grid-template-columns: 1fr; } }
  .post-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: border-color 0.2s ease;
  }
  .post-card:hover { border-color: var(--red); }
  .post-featured { display: grid; grid-template-rows: auto 1fr; }
  .post-featured .post-media {
    height: 260px;
    position: relative;
    overflow: hidden;
  }
  .post-media { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--navy), var(--navy-deep) 80%); }
  .post-media::after {
    pointer-events: none;
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(115deg, rgba(247,244,223,0.07) 0 2px, transparent 2px 26px);
  }
  .post-body { padding: 26px 28px 30px; }
  .post-tag { color: var(--red); font-size: 0.78rem; font-weight: 700; margin-bottom: 10px; display: block; }
  .post-body h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 10px; line-height: 1.25; }
  .post-body p { color: var(--muted); font-size: 0.94rem; margin: 0 0 14px; }
  .post-meta { color: var(--muted); font-size: 0.8rem; opacity: 0.8; }

  .post-media-video { position: relative; padding-top: 56.25%; height: 0 !important; background: #000; }
  .post-media-video iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  }
  .post-link-card {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    text-decoration: none; color: var(--ink);
    background: rgba(21,64,98,0.05); border: 1px solid var(--line);
    border-radius: 4px; padding: 10px 14px; font-size: 0.82rem;
    margin-bottom: 12px;
  }
  .post-link-card span { color: var(--red); font-weight: 600; white-space: nowrap; }
  .posts-side { display: flex; flex-direction: column; gap: 20px; }
  .post-small { flex-direction: row; align-items: stretch; }
  .post-small .post-media { width: 110px; height: auto; flex-shrink: 0; }
  .post-small .post-body { padding: 18px 20px; flex: 1; }
  .post-small .post-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
  .post-small .post-body p { display: none; }

  .posts-all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
  .post-all-card .post-media { height: 170px; }
  .post-all-card .post-body { padding: 20px 22px 24px; }
  .page-hero { padding: clamp(48px, 7vw, 76px) clamp(20px, 6vw, 64px) 10px; max-width: 1200px; margin: 0 auto; }
  .page-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.02em; }
  .page-hero p { color: var(--muted); max-width: 56ch; margin: 0; }
  body.is-admin .admin-edit-panel.admin-only { display: block; }
  body.is-admin .admin-section.admin-only { display: block; }
  .admin-edit-panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
    padding: 22px 24px; margin-top: 18px;
  }
  .admin-edit-panel textarea, .admin-edit-panel input {
    width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
    padding: 11px 14px; border-radius: 4px; font-family: var(--font-body); margin-bottom: 14px; resize: vertical;
  }
  .contact-list { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
  .contact-list a {
    display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 16px 20px; font-size: 0.95rem;
  }
  .contact-list a:hover { border-color: var(--red); }
  .prose-block { color: var(--ink); font-size: 0.98rem; line-height: 1.7; white-space: pre-wrap; margin-top: 8px; }

  /* Post completo */
  .post-detail-back {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--muted); font-size: 0.88rem; font-weight: 600;
    margin-bottom: 22px;
  }
  .post-detail-back:hover { color: var(--red); }
  .post-detail-header { max-width: 720px; }
  .post-detail-header .post-tag { display: block; margin-bottom: 10px; }
  .post-detail-header h1 {
    font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1.15; margin: 0 0 10px;
  }
  .post-detail-header .post-meta { font-size: 0.85rem; }
  .post-detail-video { position: relative; padding-top: 56.25%; height: 0; background: #000; border-radius: 4px; overflow: hidden; margin: 28px 0; max-width: 820px; }
  .post-detail-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .post-detail-gallery { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; max-width: 820px; }
  .post-detail-gallery img { width: 100%; border-radius: 4px; border: 1px solid var(--line); display: block; user-select: none; -webkit-user-drag: none; cursor: default; }
  .post-detail-body { max-width: 720px; color: var(--ink); font-size: 1.02rem; line-height: 1.8; }
  .post-detail-body p { margin: 0 0 20px; }
  .post-detail-body p:last-child { margin-bottom: 0; }
  .post-detail-body .post-link-card { max-width: 480px; margin-top: 10px; }
  .post-detail-admin-actions { display: none; gap: 10px; margin-bottom: 22px; }
  body.is-admin .post-detail-admin-actions { display: flex; }

  /* PROGRAMACION */
  .programming { background: var(--bg-raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .tz-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 26px; }
  .tz-chip { font-size: 0.78rem; color: var(--muted); }
  .tz-chip b { color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; display: block; }
  .day-tabs { display: flex; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
  .day-tab {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    padding: 9px 18px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.86rem;
    cursor: pointer;
  }
  .day-tab:hover { border-color: var(--navy); color: var(--navy); }
  .day-tab.active { background: var(--navy); border-color: var(--navy); color: var(--cream); }
  .show-list { display: flex; flex-direction: column; }
  .show-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
  }
  .show-row:first-child { border-top: 1px solid var(--line); }
  .show-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
  .show-main { flex: 1; min-width: 0; }
  .show-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .show-name { font-weight: 600; font-size: 1rem; }
  .show-type-badge {
    font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
    background: rgba(21,64,98,0.1); color: var(--navy); white-space: nowrap;
  }
  .show-meta-line { color: var(--muted); font-size: 0.8rem; margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .show-meta-line .live-tag { color: var(--red); font-weight: 600; }
  .show-desc { color: var(--muted); font-size: 0.86rem; margin-top: 6px; }
  .icon-edit {
    background: rgba(21,64,98,0.07); border: 1px solid var(--line); color: var(--muted);
    width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .icon-edit:hover { color: var(--ink); border-color: var(--red); }

  /* FOOTER */
  footer.site-footer {
    background: var(--navy-deep);
    color: var(--cream);
    border-top: 3px solid var(--red);
    padding: clamp(44px, 6vw, 64px) clamp(20px, 6vw, 64px) calc(120px + env(safe-area-inset-bottom, 0px));
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
  }
  @media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }
  footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  footer .f-brand img { width: 54px; height: 54px; border-radius: 50%; }
  footer .f-brand span { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
  footer p.desc { color: var(--cream-muted); font-size: 0.9rem; max-width: 40ch; margin: 0; }
  footer h4 { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-muted); font-weight: 500; margin: 0 0 14px; }
  footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  footer a { text-decoration: none; color: var(--cream); font-size: 0.92rem; }
  footer a:hover { color: var(--coral); }
  .foot-bottom {
    max-width: 1200px; margin: 40px auto 0; padding-top: 18px;
    border-top: 1px solid rgba(247,244,223,0.16);
    color: var(--cream-muted); font-size: 0.78rem;
  }

  /* MINI PLAYER */
  .player-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: rgba(14,45,71,0.97);
    color: var(--cream);
    backdrop-filter: blur(14px);
    border-top: 3px solid var(--red);
    padding: 12px clamp(16px, 4vw, 40px);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .player-play {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
    border: none;
    color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }
  .player-info { flex: 1; min-width: 0; }
  .player-info .track { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .player-info .station { color: var(--cream-muted); font-size: 0.76rem; }
  .player-wave { display: flex; align-items: flex-end; gap: 3px; height: 22px; flex-shrink: 0; }
  .player-wave span {
    width: 3px; background: var(--coral); border-radius: 2px;
    animation: wave 1.1s ease-in-out infinite;
  }
  .player-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
  .player-wave span:nth-child(2) { height: 100%; animation-delay: 0.15s; }
  .player-wave span:nth-child(3) { height: 60%; animation-delay: 0.3s; }
  .player-wave span:nth-child(4) { height: 85%; animation-delay: 0.45s; }
  .player-wave span:nth-child(5) { height: 50%; animation-delay: 0.6s; }
  @keyframes wave { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
  .player-vol { display: flex; align-items: center; gap: 8px; color: var(--cream-muted); flex-shrink: 0; }
  .player-vol input[type="range"] { width: 80px; accent-color: var(--coral); }
  @media (max-width: 560px) { .player-vol, .player-wave { display: none; } }

  /* ADMIN MODAL */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(14,30,48,0.62);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    width: 100%;
    max-width: 380px;
    padding: 32px;
  }
  .modal h3 { font-family: var(--font-display); margin: 0 0 6px; font-size: 1.25rem; }
  .modal p.sub { color: var(--muted); font-size: 0.85rem; margin: 0 0 24px; }
  .modal label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
  .modal input {
    width: 100%; background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 11px 14px;
    border-radius: 4px;
    font-family: var(--font-body);
    margin-bottom: 18px;
  }
  .modal input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
  .modal .btn-primary { width: 100%; justify-content: center; border: none; }
  .modal-close { background: none; border: none; color: var(--muted); float: right; cursor: pointer; font-size: 1.1rem; }
  .modal-wide { max-width: 440px; max-height: 88vh; overflow-y: auto; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 0; }
  .field-row > div { margin-bottom: 18px; }
  .field-row input[type="time"] {
    width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
    padding: 11px 14px; border-radius: 4px; font-family: var(--font-body);
  }
  .color-row { grid-template-columns: 44px 1fr; align-items: center; margin-bottom: 18px; }
  .color-row input[type="color"] { width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 4px; background: none; padding: 2px; cursor: pointer; }
  .color-row input[type="text"] { margin-bottom: 0; }
  .days-checks { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 20px; }
  .days-checks label { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--ink); cursor: pointer; }
  .days-checks input[type="checkbox"] { accent-color: var(--red-bright); width: 15px; height: 15px; }
  .modal-note { margin-top: 16px; color: var(--muted); font-size: 0.78rem; text-align: center; }

  @media (prefers-reduced-motion: reduce) {
    .live-dot, .player-wave span { animation: none; }
  }


  .auth-area { display: flex; align-items: center; }
  .login-status-msg { color: var(--red-bright); font-size: 0.8rem; margin: -8px 0 14px; min-height: 1em; }
  .now-playing-live-tag { color: var(--red); font-size: 0.72rem; font-weight: 700; margin-left: 8px; }
