


:root {
  color-scheme: light;

  --ground: #fffaf6;
  --card: #ffffff;
  --ink: #1c1633;
  --ink2: #5c5773;
  --ink3: #9a95ad;
  --line: #f0e7e1;
  --line-soft: #f7f1ec;

  --coral: #ff4d6d;
  --orange: #ff8c42;
  --sun: #ffc93c;
  --mint: #1fc8a0;
  --sky: #3fb6ff;
  --violet: #7c5cff;

  --hot: linear-gradient(100deg, var(--coral), var(--orange) 50%, var(--sun));
  --cool: linear-gradient(120deg, var(--violet), var(--sky) 55%, var(--mint));

  
  --accent: var(--coral);

  --display: "Unbounded", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 26px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(28,22,51,.04), 0 12px 40px -12px rgba(28,22,51,.14);
  --shadow-lift: 0 2px 4px rgba(28,22,51,.05), 0 24px 60px -20px rgba(28,22,51,.26);
}

* { box-sizing: border-box; }



[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .005em; margin: 0; }
h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p  { margin: 0 0 14px; color: var(--ink2); }



.aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aura i {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .42;
  animation: drift 22s ease-in-out infinite alternate;
}
.aura i:nth-child(1) { width: 44vmax; height: 44vmax; background: #ffd0d9; top: -20vmax; left: -14vmax; }
.aura i:nth-child(2) { width: 36vmax; height: 36vmax; background: #ffe3b8; top: 4vmax;  right: -16vmax; animation-duration: 26s; animation-delay: -6s; }
.aura i:nth-child(3) { width: 32vmax; height: 32vmax; background: #d6f5ec; bottom: -18vmax; left: 16vmax; animation-duration: 30s; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4vmax, 3vmax) scale(1.08); }
  100% { transform: translate(-3vmax, 5vmax) scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
  .aura i { animation: none; }
}


.app-bar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,250,246,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}




.app-bar .wrap {
  display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: nowrap;
  max-width: none;
}

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: clamp(18px, 4vw, 36px); }



.brand { display: flex; align-items: center; gap: 0; font-family: var(--display); font-weight: 800; font-size: 1.12rem; }
.brand .mark {
  margin-right: 10px;
  width: 32px; height: 32px; border-radius: 10px; background: var(--hot);
  display: grid; place-items: center; flex: none;
  box-shadow: 0 6px 18px -6px rgba(255,77,109,.6);
}
.brand .mark svg { width: 19px; height: 19px; display: block; }
.brand .dot { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }



.club-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 7px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink2); white-space: nowrap;
}
.club-chip .swatch { width: 16px; height: 16px; border-radius: 6px; background: var(--accent); flex: none; }

.club-chip.console { background: var(--ink); color: #fff; box-shadow: none; }
.club-chip.console .swatch { background: var(--cool); }



.club-switch { position: relative; flex: none; }
.club-switch > summary { cursor: pointer; list-style: none; user-select: none; }
.club-switch > summary::-webkit-details-marker { display: none; }
.club-switch > summary:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.club-switch .cs-caret { font-size: .7rem; color: var(--ink3, var(--ink2)); margin-left: 2px; }
.club-switch[open] .cs-caret { transform: rotate(180deg); }
.cs-menu {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--card); border-radius: 14px; padding: 8px;
  box-shadow: 0 1px 0 var(--line) inset, 0 12px 32px rgba(17, 24, 39, .14);
  border: 1px solid var(--line);
}
.cs-head {
  margin: 4px 8px 8px; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink2);
}
.cs-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem;
}
.cs-menu a:hover { background: var(--bg2, rgba(17, 24, 39, .05)); }
.cs-menu a.on { background: var(--bg2, rgba(17, 24, 39, .05)); }
.cs-menu .swatch { width: 14px; height: 14px; border-radius: 5px; background: var(--accent); flex: none; }
.cs-menu .cs-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-menu .cs-role { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.cs-menu .cs-aside {
  margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line);
  font-weight: 600; color: var(--ink2); font-size: .82rem; border-radius: 0 0 10px 10px;
}





.app-nav {
  display: flex; gap: 2px; align-items: center;
  flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none;
}
.app-nav::-webkit-scrollbar { display: none; }



.app-side { display: flex; align-items: center; gap: 8px; flex: none; margin-left: 4px; }
.app-side .btn { white-space: nowrap; }
.app-nav a {
  padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  color: var(--ink2); transition: background .18s, color .18s;
  white-space: nowrap; flex: none;
}
.app-nav a:hover { background: #fff; color: var(--ink); }
.app-nav a.on { background: var(--ink); color: #fff; }



.app-nav a.who { padding: 4px 8px 4px 0; border-radius: 14px; }
.app-nav a.who:hover { background: #fff; }



.app-nav a.waiting, .app-nav a.waiting:hover { padding: 4px 6px; background: transparent; }



.who { display: flex; align-items: center; gap: 9px; padding-left: 6px; max-width: 13rem; min-width: 0; }


.who .whom { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.who .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--cool); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .82rem; letter-spacing: .02em;
}
.who .name, .who .role {
  display: block; max-width: 8rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.who .name { font-size: .88rem; font-weight: 600; line-height: 1.2; }
.who .role { font-size: .72rem; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; line-height: 1.2; }


main { padding-block: clamp(26px, 5vw, 46px) 80px; }

.page-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head .lead { flex: 1 1 320px; }
.page-head p { margin: 6px 0 0; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }


.card {
  background: var(--card); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow);
}
.card.flush { padding: 0; overflow: hidden; }
.card h2 { margin-bottom: 4px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 20px clamp(20px, 3vw, 28px) 14px; }


.card-foot { padding: 14px clamp(20px, 3vw, 28px) 20px; border-top: 1px solid var(--line-soft); }
.card-foot p:last-child { margin-bottom: 0; }
.card-head h2 { flex: 1; }


.tile { background: var(--card); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow); }
.tile .k { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.tile .v { font-family: var(--display); font-size: 1.9rem; font-weight: 700; line-height: 1.15; margin-top: 4px; }
.tile .v small { font-size: .9rem; font-weight: 600; color: var(--ink3); font-family: var(--body); }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-hot { background: var(--hot); color: #fff; box-shadow: 0 10px 28px -10px rgba(255,77,109,.7); }
.btn-hot:hover { box-shadow: 0 16px 36px -12px rgba(255,77,109,.8); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); }
.btn-danger { background: var(--card); color: #d1002b; box-shadow: inset 0 0 0 1.5px #f3d7de; }
.btn-danger:hover { background: #fff1f3; }
.btn-sm { padding: 8px 16px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }


.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 7px; }
.field .hint { font-size: .82rem; color: var(--ink3); margin-top: 6px; }


input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]),
select, textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: inherit;
  background: #fffdfb; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .18s, box-shadow .18s;
}



input[type=color] {
  width: 100%; height: 48px; padding: 4px; background: #fffdfb; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 9px; }



input::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .5; transition: opacity .15s;
}
input::-webkit-calendar-picker-indicator:hover { opacity: 1; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: transparent;
  box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--accent) 55%, transparent);
}


.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
thead th {
  text-align: left; padding: 12px clamp(14px, 2vw, 20px);
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink3); background: var(--line-soft); white-space: nowrap;
}
tbody td { padding: 14px clamp(14px, 2vw, 20px); border-top: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:hover td { background: #fffdfb; }
td.right, th.right { text-align: right; white-space: nowrap; }
td .sub { display: block; font-size: .82rem; color: var(--ink3); }


.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.badge-live { background: #e8f9f0; color: #0f7a4f; }
.badge-live .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #22b260;
  animation: breathe 1.5s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .45; } 50% { opacity: 1; } }



.live-mark { display: block; height: 24px; width: auto; flex: none; }



.live-mark .breath { animation: live-breath 1.5s linear infinite; }
@keyframes live-breath {
  0%     { opacity: .450; }
  12.5%  { opacity: .462; }
  25%    { opacity: .588; }
  37.5%  { opacity: .851; }
  50%    { opacity: 1;    }
  62.5%  { opacity: .851; }
  75%    { opacity: .588; }
  87.5%  { opacity: .462; }
  100%   { opacity: .450; }
}
@media (prefers-reduced-motion: reduce) {
  .live-mark .breath { animation: none; opacity: 1; }
}



.live-mark.over-video {
  position: absolute; top: 14px; left: 14px; z-index: 3; pointer-events: none;
}
.badge-soon   { background: #eef4ff; color: #2b5bd7; }
.badge-draft  { background: #fff6e6; color: #9a6100; }
.badge-done   { background: var(--line-soft); color: var(--ink3); }
.badge-off    { background: #fff1f3; color: #b4123a; }


.empty { text-align: center; padding: clamp(34px, 7vw, 64px) 20px; }
.empty .art { width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 22px; background: var(--hot); opacity: .18; }
.empty h2 { margin-bottom: 6px; }
.empty p { max-width: 38ch; margin-inline: auto; }


.muted { color: var(--ink3); font-size: .88rem; }
.notice { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .93rem; }


.notice-error { background: #fff1f3; color: #b4123a; }
.notice-ok    { background: #e8f9f0; color: #0f7a4f; }
.notice-info  { background: #eef4ff; color: #2b5bd7; }



body.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-art {
  position: relative; overflow: hidden; background: var(--hot); color: #fff;
  padding: clamp(30px, 5vw, 60px); display: flex; flex-direction: column; justify-content: space-between;
}
.auth-art::after {
  content: ""; position: absolute; inset: auto -20% -35% -20%; height: 70%;
  background: radial-gradient(closest-side, rgba(255,255,255,.3), transparent 70%);
}
.auth-art .brand { color: #fff; font-size: 1.25rem; position: relative; z-index: 1; }
.auth-art .brand .mark { background: rgba(255,255,255,.22); box-shadow: none; }
.auth-art .brand .dot { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.auth-art .pitch { position: relative; z-index: 1; max-width: 22ch; }
.auth-art .pitch h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; color: #fff; }
.auth-art .pitch p { color: rgba(255,255,255,.92); font-size: 1.02rem; margin-top: 14px; }
.auth-art .foot { position: relative; z-index: 1; font-size: .84rem; color: rgba(255,255,255,.8); }
.auth-form { display: grid; place-items: center; padding: clamp(26px, 5vw, 56px) clamp(18px, 4vw, 40px); }
.auth-form .inner { width: 100%; max-width: 25rem; }
.auth-form h2 { font-size: 1.6rem; margin-bottom: 6px; }

@media (max-width: 860px) {
  body.auth { grid-template-columns: 1fr; }
  .auth-art { padding: 22px clamp(18px, 5vw, 30px) 26px; }
  .auth-art .pitch h1 { font-size: 1.6rem; }
  .auth-art .pitch p, .auth-art .foot { display: none; }
}


@media (max-width: 1280px) {
  .who .name, .who .role { display: none; }
  .who { max-width: none; padding-left: 2px; }
}

@media (max-width: 1280px) {
  .app-bar .club-chip { display: none; }
  

  .app-bar .club-switch > summary { display: inline-flex; font-size: 0; padding: 6px 8px; gap: 4px; }
  .app-bar .club-switch .cs-caret { font-size: .7rem; }
}


.nav-menu { display: none; position: relative; flex: none; margin-left: auto; }
.nav-menu > summary {
  list-style: none; cursor: pointer; user-select: none;
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }



.nav-menu .bars { display: block; width: 18px; height: 13px; position: relative; }
.nav-menu .bars i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .2s ease, opacity .15s ease;
}
.nav-menu .bars i:nth-child(1) { top: 0; }
.nav-menu .bars i:nth-child(2) { top: 50%; margin-top: -1px; }
.nav-menu .bars i:nth-child(3) { bottom: 0; }
.nav-menu[open] .bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-menu[open] .bars i:nth-child(2) { opacity: 0; }
.nav-menu[open] .bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-menu .bars i { transition: none; } }



.nm-panel {
  position: absolute; z-index: 60; top: calc(100% + 10px); right: 0;
  min-width: min(17rem, calc(100vw - 36px)); max-height: calc(100vh - 96px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 10px; box-shadow: var(--shadow-lift);
}
.nm-panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; color: var(--ink);
}
.nm-panel a:hover { background: var(--line-soft); }
.nm-panel a.on { background: var(--ink); color: #fff; }
.nm-head {
  margin: 12px 10px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink3);
}
.nm-head:first-child { margin-top: 4px; }


.nm-who { border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; margin-bottom: 4px; }
.nm-who .avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--cool); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem;
}
.nm-who .whom { display: flex; flex-direction: column; min-width: 0; }
.nm-who .name { font-size: .92rem; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-who .role { font-size: .7rem; color: var(--ink3); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; line-height: 1.25; }

.nm-club .swatch { width: 14px; height: 14px; border-radius: 5px; background: var(--accent); flex: none; }
.nm-club .cs-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-club .cs-role { margin-left: auto; font-size: .74rem; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.nm-panel a .badge { margin-left: auto; }


.nm-aside { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; color: var(--ink2); }
.nm-aside + .nm-aside { margin-top: 0; border-top: 0; }



@media (max-width: 960px) {
  .app-bar.foldable .app-nav,
  .app-bar.foldable .app-side,
  .app-bar.foldable .club-chip,
  .app-bar.foldable .club-switch { display: none; }
  .app-bar.foldable .nav-menu { display: block; }
  
  .app-bar .wrap { min-height: 60px; gap: 10px; }
}



@media (max-width: 560px) {
  .app-bar:not(.foldable) .app-side .btn { padding-inline: 12px; font-size: .82rem; }
}





.watch-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px; align-items: start; justify-content: center;
}
@media (max-width: 1100px) { .watch-layout { grid-template-columns: minmax(0, 1fr); } }



.theatre { display: flex; justify-content: center; }
.theatre .frame {
  position: relative; max-width: 100%;
  border-radius: var(--radius); overflow: hidden; line-height: 0;
  background: #14101f; box-shadow: var(--shadow-lift);
}


.theatre video { display: block; width: 100%; height: 100%; object-fit: contain; }

.theatre .frame:not([style*="aspect-ratio"]) { width: auto; }
.theatre .frame:not([style*="aspect-ratio"]) video {
  width: auto; height: auto; max-width: 100%; max-height: 78vh;
}



.theatre + .sound-note { margin: 10px 0 0; }

.video-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.12rem, 2.1vw, 1.45rem); line-height: 1.25;
  margin: 20px 0 12px;
}



.video-meta {
  display: flex; flex-wrap: wrap; gap: 14px 18px;
  align-items: center; justify-content: space-between;
}
.channel { display: flex; align-items: center; gap: 12px; min-width: 0; }
.channel .ch-av {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1rem;
}
.channel .ch-who { display: flex; flex-direction: column; min-width: 0; }
.channel .ch-name { font-weight: 700; font-size: .98rem; line-height: 1.3; }
.channel .ch-sub { font-size: .8rem; color: var(--ink3); line-height: 1.3; }

.video-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }



.video-about {
  margin-top: 18px; background: var(--line-soft);
  border-radius: var(--radius-sm); padding: 15px 17px;
}
.video-about .facts { font-weight: 700; font-size: .9rem; color: var(--ink); }
.video-about p { margin: 9px 0 0; }
.video-about p:last-child { margin-bottom: 0; }



.video-actions .act { display: inline-flex; align-items: center; gap: 7px; }
.video-actions .act .heart { font-size: 1rem; line-height: 1; color: var(--ink3); transition: color .18s, transform .18s; }
.video-actions #like[aria-pressed="true"] { border-color: var(--coral); color: var(--coral); }
.video-actions #like[aria-pressed="true"] .heart { color: var(--coral); transform: scale(1.14); }
@media (prefers-reduced-motion: reduce) { .video-actions .act .heart { transition: none; } }

.save-menu { position: relative; }
.save-menu > summary { list-style: none; cursor: pointer; }
.save-menu > summary::-webkit-details-marker { display: none; }


.save-panel {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0;
  min-width: min(17rem, calc(100vw - 40px)); max-height: 60vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; box-shadow: var(--shadow-lift);
}
.save-head {
  margin: 2px 2px 8px; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink3);
}
.save-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 6px;
  border-radius: 10px; font-weight: 600; font-size: .92rem; cursor: pointer;
}
.save-row:hover { background: var(--line-soft); }
.save-row input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.save-new { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.save-new input { flex: 1 1 auto; min-width: 0; }
.save-foot { font-size: .74rem; margin: 9px 2px 0; }


.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; align-items: center; }
.tag-chip.add { cursor: pointer; border-style: dashed; color: var(--ink3); }
.tag-edit { display: inline-block; }
.tag-edit > summary { list-style: none; }
.tag-edit > summary::-webkit-details-marker { display: none; }
.tag-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; width: 100%; }
.tag-form input[type=text] { flex: 1 1 16rem; min-width: 0; }
.tag-form .muted { font-size: .76rem; flex-basis: 100%; }


.shelf-list { display: flex; flex-direction: column; }
.shelf-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 10px; border-radius: 12px; border-bottom: 1px solid var(--line-soft);
}
.shelf-row:last-child { border-bottom: 0; }
.shelf-row:hover { background: var(--line-soft); }
.shelf-name { font-weight: 700; }

.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; }


.rail-item.shut { opacity: .55; cursor: default; }
.rail-item.shut:hover { background: none; }
.rail-note { display: block; font-size: .74rem; font-weight: 700; color: var(--accent); margin-top: 4px; }
.rail-item.shut .rail-note { color: var(--ink3); }

.tag-grid .rail-item { display: grid; }



.more-below { margin-top: 26px; }
.more-below .watch-rail { display: block; }
.more-below .watch-rail > h2 { margin-bottom: 14px; }


.more-below .watch-rail {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 4px 18px;
}
.more-below .watch-rail > h2 { grid-column: 1 / -1; }



.replay-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
}
.replay-card {
  background: var(--card); border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow); display: block;
  transition: transform .18s, box-shadow .18s;
}
.replay-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.rc-art { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); }




.replay-grid.upright { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }
.replay-grid.upright .rc-art { aspect-ratio: 9 / 16; }



.shape-sep {
  display: flex; align-items: center; gap: 14px;
  margin: 30px 0 20px; color: var(--ink3);
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.shape-sep::before, .shape-sep::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--line);
}
.shape-sep span { flex: none; }
.rc-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-noart {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.5); font-size: 13px;
}
.rc-tag { position: absolute; top: 10px; left: 10px; }
.rc-dur {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.78); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 6px;
}
.rc-body { display: block; padding: 13px 15px 15px; }
.rc-body strong { display: block; font-size: .96rem; line-height: 1.3; margin-bottom: 3px; }
.rc-when, .rc-who { display: block; font-size: .78rem; color: var(--ink3); line-height: 1.45; }
.rc-who { color: var(--ink2); font-weight: 600; }



.rc-new, .rail-new {
  position: absolute; top: 8px; left: 8px;
  background: var(--hot); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(255,77,109,.8);
}


.rc-tag ~ .rc-new { top: auto; bottom: 8px; left: 8px; }



.replay-more {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 26px 0 6px; color: var(--ink3); font-size: .88rem; font-weight: 600;
}
.replay-more.quiet .spinner { display: none; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }



.club-find { margin: 4px 0 22px; }
.find-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow);
}
.find-box:focus-within { border-color: var(--accent); }
.find-icon { width: 18px; height: 18px; flex: none; color: var(--ink3); }
.find-box input[type=search] {
  flex: 1 1 auto; min-width: 0; border: 0; background: none; outline: none;
  font: 600 .95rem var(--body); color: var(--ink); padding: 8px 0;
}


.find-box input[type=search]::-webkit-search-decoration,
.find-box input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.find-box .btn { flex: none; }



.find-pills {
  display: flex; gap: 8px; margin-top: 12px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.find-pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; padding: 7px 14px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink2); white-space: nowrap;
}
.pill:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); }
.pill.on { background: var(--ink); color: #fff; box-shadow: none; }



.thumb-box { position: relative; }
.thumb-box > summary { list-style: none; cursor: pointer; }
.thumb-box > summary::-webkit-details-marker { display: none; }
.thumb-form {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0;
  width: min(30rem, calc(100vw - 40px));
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: var(--shadow-lift);
}
.thumb-head {
  margin: 0 0 8px; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink3);
}
.thumb-form .field + .btn { margin-top: 4px; }
.thumb-form .notice { margin-bottom: 12px; }

.still-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }


.still {
  position: relative; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 10px; overflow: hidden; line-height: 0; display: block;
  box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s, transform .15s;
}


.still input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.still:has(input:checked) { box-shadow: 0 0 0 2px var(--ink); }
.still:focus-within { box-shadow: 0 0 0 2px var(--accent); }


.still img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block;
  background: var(--ink);
}
.still:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--accent); }
.still.on { box-shadow: 0 0 0 2px var(--ink); }
.still-on {
  position: absolute; left: 6px; bottom: 6px;
  background: var(--ink); color: #fff; border-radius: 6px;
  font-size: .62rem; font-weight: 800; letter-spacing: .04em;
  padding: 2px 6px; line-height: 1.6;
}


.video-actions #cast .label { font-weight: 700; }



#action-note.notice { margin-top: 14px; }


.tag-row.mini { display: flex; margin-top: 6px; gap: 5px; }
.tag-chip.mini { padding: 2px 8px; font-size: .72rem; }
.likes { color: var(--coral); font-weight: 700; white-space: nowrap; }
.tag-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 11px; font-size: .8rem; font-weight: 600; color: var(--ink2);
}
a.tag-chip:hover { border-color: var(--accent); color: var(--accent); }


.watch-rail > h2 { font-size: .95rem; margin-bottom: 12px; }
.rail-item {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 11px;
  padding: 8px; border-radius: 14px; align-items: start;
}
.rail-item:hover { background: var(--line-soft); }
.rail-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px;
  overflow: hidden; background: var(--ink);
}
.rail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }


.rail-len {
  position: absolute; right: 5px; bottom: 5px;
  background: rgba(0,0,0,.78); color: #fff;
  font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 5px;
  line-height: 1.5;
}
.rail-t {
  font-weight: 700; font-size: .87rem; line-height: 1.32; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}


.rail-m {
  font-size: .76rem; color: var(--ink3); margin-top: 4px; line-height: 1.4;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 460px) { .rail-item { grid-template-columns: 132px minmax(0, 1fr); } }



.tag {
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px;
  border-radius: 999px; vertical-align: middle;
}
.yes { color: #0f9d78; font-weight: 700; }
.no  { color: #c9c4d4; }
form.inline { display: inline; margin: 0 0 0 6px; }



.row-actions { display: inline-flex; align-items: center; gap: 8px; }
.row-actions form.inline { margin: 0; }



button:not([class]) {
  margin-top: 18px; width: 100%; padding: 13px 22px; font: inherit; font-weight: 700;
  color: #fff; background: var(--hot); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 28px -10px rgba(255,77,109,.7);
}
form.inline button:not([class]) { width: auto; margin: 0; padding: 8px 16px; font-size: .86rem; }


.error { background: #fff1f3; color: #b4123a; padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.btn.danger { background: var(--card); color: #d1002b; box-shadow: inset 0 0 0 1.5px #f3d7de; }
.btn.danger:hover { background: #fff1f3; }



.grid-wrap {
  --slot: 30px;
  display: grid; grid-template-columns: 3.2rem repeat(7, minmax(7rem, 1fr));
  gap: 6px; overflow-x: auto; padding-bottom: 6px;
}
.grid-wrap .rail {
  display: grid; grid-auto-rows: var(--slot);
  padding-top: 44px;   
}
.grid-wrap .rail span {
  font-size: 11px; color: var(--ink3); text-align: right; padding-right: 8px;
  line-height: 1; transform: translateY(-4px);
}
.grid-wrap .day { min-width: 7rem; }
.grid-wrap .dayhead {
  height: 44px; display: flex; flex-direction: column; justify-content: center;
  align-items: center; line-height: 1.15;
}
.grid-wrap .dayhead b { font-size: .84rem; }
.grid-wrap .dayhead span { font-size: .74rem; color: var(--ink3); }
.grid-wrap .day.today .dayhead b { color: var(--accent); }


.grid-wrap .col {
  display: grid; position: relative;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.grid-wrap .day.today .col { box-shadow: inset 0 0 0 1.5px var(--accent); }



.grid-wrap .slot {
  grid-column: 1 / -1; border-top: 1px solid #f6efe9; transition: background .12s;
}
.grid-wrap .slot:first-child { border-top: 0; }
.grid-wrap .slot:hover { background: #fffaf6; }



.grid-wrap .blk {
  margin: 1px 3px; padding: 5px 7px; border-radius: 9px;
  background: color-mix(in srgb, var(--blk) 14%, #fff);
  box-shadow: inset 3px 0 0 var(--blk);
  color: var(--ink); text-decoration: none; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start;
  font-size: .76rem; line-height: 1.25; z-index: 1;
}
.grid-wrap .blk:hover { background: color-mix(in srgb, var(--blk) 26%, #fff); z-index: 2; }


.grid-wrap .blk.tight { margin: 1px 2px; padding: 4px 5px; font-size: .71rem; }
.grid-wrap .blk.tight span, .grid-wrap .blk.tight em { font-size: .68rem; }


.grid-wrap .blk.short {
  flex-direction: row; align-items: baseline; gap: 5px; padding: 3px 7px;
}
.grid-wrap .blk.short b, .grid-wrap .blk.short span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


.grid-wrap .blk.short b { flex: 1 1 auto; min-width: 0; }
.grid-wrap .blk.short span { flex: 0 0 auto; }
.grid-wrap .blk.short em { display: none; }
.grid-wrap .blk.short.tight span { display: none; }
.grid-wrap .blk b { font-weight: 700; }
.grid-wrap .blk span { color: var(--ink2); font-size: .72rem; }
.grid-wrap .blk em { font-style: normal; color: var(--ink3); font-size: .72rem; }



.grid-wrap .blk.draft {
  background: repeating-linear-gradient(135deg, #fff, #fff 6px, #fdf4ec 6px, #fdf4ec 12px);
  box-shadow: inset 3px 0 0 #d9cfc6;
}
.grid-wrap .blk.draft em { color: #9a6100; font-weight: 600; }
.grid-wrap .blk.off { opacity: .5; }
.grid-wrap .blk.off b { text-decoration: line-through; }
.grid-wrap .blk.live { box-shadow: inset 3px 0 0 var(--blk), 0 0 0 2px var(--blk); }



.days { display: flex; gap: 6px; flex-wrap: wrap; }
.daybox {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: .85rem; font-weight: 600; cursor: pointer;
}
.daybox:has(input:checked) { background: var(--ink); color: #fff; box-shadow: none; }

@media (max-width: 720px) {
  

  .grid-wrap { grid-template-columns: 2.6rem repeat(7, 8rem); }
}



.club-hero { text-align: center; padding-block: clamp(18px, 4vw, 40px) clamp(24px, 4vw, 44px); }
.club-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; margin: 18px auto 0;
  max-width: 18ch;
}



.club-hero h1 { max-width: none; }
.club-hero h1 span { display: block; }



.club-hero .club-name-line {
  background: linear-gradient(100deg, var(--accent), var(--accent-2, var(--accent)) 92%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  

  padding-bottom: .06em;
}
.club-hero .club-name-line.plain {
  background: none; color: var(--ink); -webkit-text-fill-color: var(--ink);
}
.club-hero .lead { max-width: 38ch; margin: 16px auto 0; font-size: 1.05rem; }
.club-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

.club-band { margin-bottom: clamp(28px, 5vw, 48px); }
.band-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.band-head h2 { flex: 1; }
.club-band > h2 { margin-bottom: 16px; }



.on-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.on-card {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--card); border-radius: var(--radius-sm); padding: 16px 18px;
  box-shadow: var(--shadow); border-left: 5px solid var(--blk, var(--accent));
  transition: transform .16s, box-shadow .2s;
}
.on-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.on-card .when { font-size: .8rem; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; }
.on-card strong { font-size: 1.02rem; line-height: 1.25; }


.on-card .who {
  font-size: .88rem; color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.on-card .len { font-size: .8rem; color: var(--ink3); margin-top: 2px; }


.replay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.replay { display: block; }
.replay .frame {
  position: relative; display: block; aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--ink); box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .2s;
}
.replay:hover .frame { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.replay .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.replay .noart {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.55); font-size: .85rem; font-weight: 600;
}
.replay .tag { position: absolute; top: 9px; left: 9px; }
.replay .dur {
  position: absolute; right: 9px; bottom: 9px; background: rgba(0,0,0,.62); color: #fff;
  font-size: .74rem; padding: 3px 8px; border-radius: 999px;
}
.replay strong { display: block; margin-top: 10px; font-size: .97rem; line-height: 1.3; }
.replay .who { display: block; font-size: .85rem; color: var(--ink3); }



.standing {
  display: inline-block; margin: 0 0 18px;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.3rem);
  padding: 12px 20px; border-radius: 999px;
}
.standing.soon { background: #fff6e6; color: #9a6100; }
.standing.done { background: #eef4ff; color: #2b5bd7; }



.waiting {
  position: relative; width: 100%; max-width: 62rem; aspect-ratio: 16/9;
  max-height: 56vh; margin-inline: auto;
  
  align-self: start;
  border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 120% at 50% 10%, #2a2145 0%, #14101f 60%);
  box-shadow: var(--shadow-lift);
  display: grid; place-items: center; text-align: center;
}


.waiting::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--accent) 70deg, transparent 150deg);
  opacity: .16; animation: waitsweep 14s linear infinite;
}
@keyframes waitsweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .waiting::before { animation: none; } }



.ended {
  position: relative; width: 100%; max-width: 62rem;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, #2a2145 0%, #14101f 70%);
  box-shadow: var(--shadow-lift);
  display: grid; place-items: center; text-align: center;
  

  min-height: min(56vh, 56.25vw);
  

  aspect-ratio: auto;
  margin-inline: auto;
  

  align-self: start;
}
.ended .inner {
  
  padding: clamp(20px, 5.5vw, 28px); max-width: 34rem;
}


.ended .do {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.ended .kicker {
  margin: 0 0 10px; color: rgba(255,255,255,.62);
  font-size: clamp(.8rem, 1.4vw, .95rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
}
.ended h2 {
  margin: 0 0 12px; color: #fff;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.15;
}
.ended p { margin: 0 0 18px; color: rgba(255,255,255,.72); font-size: .98rem; line-height: 1.5; }
.ended .btn { margin: 0; }



@media (max-width: 560px) {
  .ended .do { flex-direction: column; align-items: stretch; }
  .ended .do .btn, .ended .do .working { width: 100%; justify-content: center; }
  .ended h2 { font-size: clamp(1.3rem, 6.5vw, 1.7rem); }
  .ended p { font-size: .92rem; margin-bottom: 16px; }
  .standing { font-size: 1rem; padding: 10px 16px; }
}


.ended .working {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.12); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem;
}
.ended .working i {
  width: 8px; height: 8px; border-radius: 50%; background: #ffc93c;
  animation: breathe 1.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .ended .working i { animation: none; } }

.wait-inner { position: relative; padding: 24px; }
.waiting .kicker {
  margin: 0 0 10px; color: rgba(255,255,255,.62);
  font-size: clamp(.8rem, 1.4vw, .95rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
}
.waiting .clock {
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  font-family: var(--display); font-weight: 800; color: #fff;
  font-size: clamp(2.6rem, 9vw, 6rem); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}


.waiting .clock span {
  min-width: 1.15em; display: inline-block;
  background: rgba(255,255,255,.07); border-radius: 14px; padding: .06em .1em;
}
.waiting .clock i { font-style: normal; opacity: .45; padding: 0 .04em; animation: tickblink 1s steps(1) infinite; }
@keyframes tickblink { 50% { opacity: .12; } }
@media (prefers-reduced-motion: reduce) { .waiting .clock i { animation: none; } }

.waiting .waitsub {
  margin: 16px 0 0; color: rgba(255,255,255,.72);
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
}
.waiting.due .clock { font-size: clamp(1.5rem, 4vw, 2.4rem); }



.stage { display: flex; justify-content: center; }



.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.cal-day {
  background: var(--card); border-radius: var(--radius-sm); padding: 10px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  min-height: 7rem;
}
.cal-day.today { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.cal-head { text-align: center; line-height: 1.15; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cal-head b { display: block; font-size: .82rem; }
.cal-head span { font-size: .72rem; color: var(--ink3); }
.cal-day.today .cal-head b { color: var(--accent); }
.cal-none { margin: auto; color: var(--ink3); font-size: 1.1rem; }



.slot-card {
  display: block; padding: 9px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--blk, var(--accent)) 12%, #fff);
  box-shadow: inset 3px 0 0 var(--blk, var(--accent));
  transition: background .15s;
}
.slot-card:hover { background: color-mix(in srgb, var(--blk, var(--accent)) 26%, #fff); }
.slot-card .at {
  display: flex; align-items: baseline; gap: 6px;
  font-weight: 800; font-size: .84rem; font-variant-numeric: tabular-nums;
}
.slot-card .at i { font-style: normal; font-weight: 600; font-size: .68rem; color: var(--ink3); }
.slot-card strong { display: block; font-size: .88rem; line-height: 1.25; margin-top: 2px; }
.slot-card .under {
  display: block; font-size: .76rem; color: var(--ink2); line-height: 1.3; margin-top: 1px;
}


.slot-card.gone { opacity: .42; }

.cal-nav { display: inline-flex; align-items: center; gap: 8px; }
.cal-label { font-weight: 700; font-size: .9rem; color: var(--ink2); white-space: nowrap; }

@media (max-width: 900px) {
  

  .calendar { grid-template-columns: 1fr; }
  .cal-day { min-height: 0; }
  .cal-day:has(.cal-none) { display: none; }
  .cal-head { display: flex; gap: 8px; align-items: baseline; text-align: left; }
}



.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.pill { position: relative; display: inline-flex; }


a.pill { gap: 6px; align-items: baseline; }
.pill input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.pill span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: .88rem; font-weight: 600; line-height: 1;
  transition: background .15s, color .15s, box-shadow .15s;
}

.pill span::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--ink3); transition: background .15s;
}
.pill input:checked + span {
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.pill input:checked + span::before { background: var(--accent); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill .from { font-weight: 500; font-size: .76rem; color: var(--ink3); }



.dropzone {
  position: relative; display: grid; place-items: center; gap: 10px;
  padding: 22px; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--card); transition: border-color .15s, background .15s;
}
.dropzone-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.dropzone-say { margin: 0; color: var(--ink3); font-size: .9rem; pointer-events: none; }
.dropzone-say strong { color: var(--accent); }
.dropzone-shot {
  max-width: 300px; max-height: 100px; width: auto; height: auto;
  display: block; pointer-events: none;
}

.dropzone.over, .dropzone:focus-within {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, #fff);
}
.dropzone.over .dropzone-say { color: var(--ink2); }



.bcast-stage {
  position: relative; background: #14101f; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16/9;
}
.bcast-stage video { width: 100%; height: 100%; display: block; }



.bcast-stage video.mirror { transform: scaleX(-1); }



.bcast-stage .warmover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; object-fit: cover;
}

.bcast-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.bcast-row[hidden] { display: none; }
.bcast-save { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; cursor: pointer; }
.bcast-why { flex: 1 1 14rem; min-width: 0; }



.meterbox {
  height: 10px; background: var(--line-soft); border-radius: 999px;
  overflow: hidden; margin-top: 10px;
}
.meterbox i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s; }



.veil {
  position: fixed; inset: 0; background: rgba(28,22,51,.45);
  display: grid; place-items: center; padding: 20px; z-index: 50;
}
.veil[hidden] { display: none; }
.veil .sheet {
  background: var(--card); border-radius: var(--radius); padding: clamp(20px, 4vw, 28px);
  width: 100%; max-width: 25rem; box-shadow: 0 20px 60px -20px rgba(28,22,51,.4);
}
.veil .sheet h2 { margin: 0 0 4px; }
.veil .sheet .err {
  background: #fff1f3; color: #b4123a; padding: 10px 12px;
  border-radius: var(--radius-sm); margin-top: 12px; font-size: .9rem;
}
.veil .sheet .err[hidden] { display: none; }
.veil .sheet .bcast-row { justify-content: flex-end; }



.rec-name { display: flex; align-items: flex-start; gap: 14px; }
.rec-name > span { min-width: 0; }
.rec-thumb {
  flex: 0 0 auto; width: 96px; height: 54px; border-radius: 10px;
  object-fit: cover; display: block; background: #14101f;
}



.rec-thumb.saving {
  background: linear-gradient(160deg, #2a2145 0%, #14101f 70%);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  color: rgba(255,255,255,.86);
  font-size: .56rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.rec-thumb.saving i {
  width: 6px; height: 6px; border-radius: 50%; background: #ffc93c;
  animation: breathe 1.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .rec-thumb.saving i { animation: none; } }



@media (max-width: 560px) {
  .rec-thumb.saving { font-size: 0; gap: 0; }
}



@media (max-width: 560px) {
  .rec-thumb { width: 64px; height: 36px; }
}



.help-search { display: flex; gap: 10px; }
.help-search input { flex: 1; font-size: 1.05rem; }
.help-list li, .help-hits li { padding: 10px 0; border-bottom: 1px solid var(--line, #eee); }
.help-list li:last-child, .help-hits li:last-child { border-bottom: 0; }
.help-list a, .help-hits a { font-weight: 600; }

.help-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; } }
.help-article { max-width: none; line-height: 1.65; }
.help-article h2 { margin: 28px 0 10px; font-size: 1.3rem; }
.help-article h3 { margin: 22px 0 8px; font-size: 1.1rem; }
.help-article h2:first-child, .help-article h3:first-child { margin-top: 0; }
.help-article p { margin: 0 0 12px; }
.help-article ul, .help-article ol { margin: 0 0 14px 1.2rem; }
.help-article li { margin: 4px 0; }
.help-article code { background: #f4f4f5; border-radius: 5px; padding: 1px 5px; font-size: .92em; }
.help-article table { margin: 6px 0 16px; }
.help-note {
  border-left: 4px solid var(--accent, #ff4d6d);
  background: #fff7f8;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 14px;
}
.help-shot { margin: 16px 0 20px; }
.help-shot img {
  width: 100%;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  display: block;
}
.help-shot a { display: block; }
.help-shot figcaption { margin-top: 8px; color: #6b7280; font-size: .92rem; }



.bk-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0; padding: 14px 16px; border-top: 1px solid var(--line);
}
.bk-row:first-child, .bk-head + .bk-row { border-top: 0; }
.bk-row strong { display: block; color: var(--ink); }
.bk-row select, .bk-row input[type="text"], .bk-row input:not([type]) {
  width: auto; flex: 1 1 10rem; min-width: 0;
}
.bk-row > div:first-child { flex: 0 1 auto; min-width: 0; }
.bk-row button { flex: none; }

.bk-row.roll > div:first-child { flex: 0 0 9rem; }
.bk-note { display: block; font-size: .88rem; color: var(--ink2); margin-top: 2px; }
@media (max-width: 620px) {
  .bk-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .bk-row button { width: 100%; }
}


.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-row form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }



td.nowrap, th.nowrap { white-space: nowrap; }
td.actions-cell { white-space: nowrap; text-align: right; }
td.actions-cell form { display: inline; }



form.addbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }


form.addbar .lead-in { color: var(--ink2); font-size: .92rem; }


form.addbar input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]),
form.addbar select {
  width: auto; flex: 0 1 auto; min-width: 0; padding: 9px 13px;
}
form.addbar input.wide:not([type=color]) { flex: 1 1 13rem; width: auto; }
form.addbar input[type=number]:not([type=color]) { flex: 0 0 7rem; width: auto; }
form.addbar input[type="datetime-local"]:not([type=color]) { width: auto; }
form.addbar input[type=color] { flex: none; width: 46px; height: 40px; }
form.addbar button { flex: none; }



tr.mine > td { background: color-mix(in srgb, var(--accent) 8%, #fff); font-weight: 600; }


li.family-member { margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
li.family-member:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }


.mycode { width: 16rem; max-width: 100%; margin: 0 auto; aspect-ratio: 1; display: flex; }
.mycode > svg, .mycode > img { width: 100%; height: 100%; display: block; }



.setting-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.setting-row > select:not([size]) { width: auto; flex: 0 1 auto; min-width: 0; }
p.setting-row label { display: inline-flex; align-items: center; gap: 6px; }



body.kiosk .kiosk-stage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
}
.door-screen { text-align: center; }
.door-screen h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 .3em; }
.door-screen p { font-size: clamp(1.05rem, 2.2vw, 1.6rem); color: var(--ink2); margin: 0 0 1.2em; }
.door-code { width: min(70vw, 62vh); }


li.rule-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
li.rule-row:last-child { border-bottom: 0; }
li.rule-row > div { min-width: 0; }
li.rule-row form { margin: 0; flex: none; }
