/*
 * LanClicker — Guide view (assets/js/views/guide.js).
 * Scoped under .v-guide (the view root) and .v-guide-sheet (the program sheet, which ui.sheet()
 * mounts on <body>). Built on the app.css tokens, so themes, accents and large size apply.
 *
 * Grid geometry is driven by CSS variables:
 *   --g-ch-w   channel column width (px)        --g-row-h  row height
 *   --g-ppm    base pixels per minute (unitless; JS reads it, stretches it to fill wide
 *              screens and sets --ppm on .g-canvas)
 *   --g-mins   minutes in the window (JS)        --now      minutes from window start to now (JS)
 *   --s / --d  start minute / length in minutes of one block or tick (JS, per element)
 */

/* The guide scrolls inside its own container, so the page itself stays put on this route. */
body[data-route="guide"] .app-main {
  overflow: hidden;
}

body[data-route="guide"] .view-host {
  height: 100%;
}

/* ================================================================== tokens */
.view.v-guide {
  flex: 1 1 0px;
  min-height: 0;
  padding-bottom: 14px;

  --g-ch-w: 100px;
  --g-ppm: 4;
  --g-row-h: 64px;
  --g-head-h: 40px;

  --g-bg: #0b1121;
  --g-col-bg: #0f1629;
  --g-head-bg: #131b30;
  --g-line: rgba(255, 255, 255, 0.05);
  --g-prog-bg: rgba(255, 255, 255, 0.062);
  --g-prog-border: rgba(255, 255, 255, 0.06);
  --g-prog-hover: rgba(255, 255, 255, 0.1);
  --g-live-bg: rgba(var(--accent-rgb), 0.17);
  --g-past: rgba(0, 0, 0, 0.32);
  --g-skel: rgba(255, 255, 255, 0.055);
  --g-edge-shadow: rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] .v-guide {
  --g-bg: #ffffff;
  --g-col-bg: #ffffff;
  --g-head-bg: #f5f7fb;
  --g-line: rgba(15, 23, 42, 0.06);
  --g-prog-bg: rgba(15, 23, 42, 0.045);
  --g-prog-border: rgba(15, 23, 42, 0.07);
  --g-prog-hover: rgba(15, 23, 42, 0.08);
  --g-live-bg: rgba(var(--accent-rgb), 0.1);
  --g-past: rgba(15, 23, 42, 0.07);
  --g-skel: rgba(15, 23, 42, 0.055);
  --g-edge-shadow: rgba(15, 23, 42, 0.2);
}

@media (min-width: 700px) {
  .view.v-guide {
    --g-ch-w: 128px;
    --g-ppm: 6;
    --g-row-h: 72px;
    --g-head-h: 42px;
  }
}

html[data-size="large"] .v-guide {
  --g-row-h: 74px;
}

@media (min-width: 700px) {
  html[data-size="large"] .v-guide {
    --g-row-h: 84px;
  }
}

/* ========================================================= header, toolbar */
.v-guide .g-header {
  margin-bottom: 12px;
}

.v-guide .g-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.v-guide .g-note {
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-faint);
  font-size: 13px;
}

.v-guide .g-refresh.busy .icon {
  animation: lc-spin 0.9s linear infinite;
}

.v-guide .g-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
}

.v-guide .g-timenav {
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  gap: 6px;
  min-width: 0;
}

.v-guide .g-nowbtn {
  gap: 6px;
  padding: 0 14px 0 11px;
}

.v-guide .g-when {
  flex: 1 1 auto;
  margin-left: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.v-guide .g-filters {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 10px;
  min-width: 0;
}

.v-guide .g-chips {
  display: flex;
  align-items: center;
  flex: none;
  gap: 6px;
}

.v-guide .g-chips .chip {
  height: 38px;
}

.v-guide .g-chips .chip.on .icon {
  color: var(--warning);
}

.v-guide .g-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.v-guide .g-count:empty {
  display: none;
}

.v-guide .chip.on .g-count {
  background: rgba(var(--accent-rgb), 0.22);
  color: var(--accent-text);
}

.v-guide .g-search {
  position: relative;
  flex: none;
  width: 220px;
}

.v-guide .g-search-ic {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--text-faint);
  pointer-events: none;
  transform: translateY(-50%);
}

.v-guide .g-search-input {
  height: 38px;
  min-height: 38px;
  padding: 0 36px 0 36px;
  border-radius: 19px;
  font-size: 16px; /* 16px stops iOS from zooming in on focus */
}

/* No clear button while empty, so the placeholder gets the room. */
.v-guide .g-search-input:placeholder-shown {
  padding-right: 12px;
}

.v-guide .g-search-input::-webkit-search-cancel-button,
.v-guide .g-search-input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

.v-guide .g-search-clear {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-dim);
  cursor: pointer;
  transform: translateY(-50%);
}

/* ===================================================================== grid */
.v-guide .g-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 0px;
  min-height: 0;
}

.v-guide .g-empty {
  margin: auto 0;
}

.v-guide .g-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--g-bg);
  box-shadow: var(--shadow);
}

/* The single scroll container: both sticky edges belong to it. */
.v-guide .g-scroll {
  flex: 1 1 0px;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  outline: none;
}

.v-guide .g-canvas {
  position: relative;
  width: calc(var(--g-ch-w) + var(--g-mins, 180) * var(--ppm, 6px));
  min-width: 100%;
}

/* ------------------------------------------------------------- time header */
.v-guide .g-head {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  height: var(--g-head-h);
  border-bottom: 1px solid var(--border);
  background: var(--g-head-bg);
  transition: box-shadow 0.2s;
}

.v-guide .g-grid.scrolled-y .g-head {
  box-shadow: 0 10px 16px -14px var(--g-edge-shadow);
}

.v-guide .g-corner {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  flex: none;
  width: var(--g-ch-w);
  padding: 0 12px;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: var(--g-head-bg);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.v-guide .g-ticks {
  position: relative;
  flex: none;
  width: calc(var(--g-mins, 180) * var(--ppm, 6px));
  height: 100%;
}

.v-guide .g-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--s) * var(--ppm, 6px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 8px;
  border-left: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.v-guide .g-tick.hour {
  color: var(--text-dim);
  font-weight: 700;
}

.v-guide .g-tick-day {
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v-guide .g-nowpill {
  position: absolute;
  top: 50%;
  left: calc(var(--now, 0) * var(--ppm, 6px));
  z-index: 1;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 22px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px -4px var(--accent-glow);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* The now line runs under the sticky channel column and the header. */
.v-guide .g-nowline {
  position: absolute;
  top: var(--g-head-h);
  bottom: 0;
  left: calc(var(--g-ch-w) + var(--now, 0) * var(--ppm, 6px) - 1px);
  z-index: 2;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  pointer-events: none;
}

/* -------------------------------------------------------------------- rows */
.v-guide .g-row {
  display: flex;
  height: var(--g-row-h);
  border-bottom: 1px solid var(--border);
}

.v-guide .g-ch {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: stretch;
  flex: none;
  width: var(--g-ch-w);
  height: 100%;
  border-right: 1px solid var(--border);
  background: var(--g-col-bg);
  transition: box-shadow 0.2s;
}

.v-guide .g-grid.scrolled-x .g-ch,
.v-guide .g-grid.scrolled-x .g-corner {
  box-shadow: 10px 0 16px -12px var(--g-edge-shadow);
}

/* The current TV is on this channel. */
.v-guide .g-row.is-current .g-ch {
  box-shadow: inset 3px 0 0 var(--accent);
}

.v-guide .g-grid.scrolled-x .g-row.is-current .g-ch {
  box-shadow: inset 3px 0 0 var(--accent), 10px 0 16px -12px var(--g-edge-shadow);
}

.v-guide .g-tune {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.v-guide .g-tune .ch-badge {
  transition: transform 0.12s var(--ease), opacity 0.15s;
}

.v-guide .g-tune:active .ch-badge {
  transform: scale(0.92);
}

.v-guide .g-ch.busy .ch-badge {
  opacity: 0.5;
}

/* Green dot on the badge: some TV is showing this channel. */
.v-guide .g-row.on-air .g-tune .ch-badge::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.35);
}

.v-guide .g-star {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.15s, transform 0.12s var(--ease);
}

.v-guide .g-star:active {
  transform: scale(0.84);
}

.v-guide .g-star.on {
  color: var(--warning);
}

/* Timeline lane with a faint line every 30 minutes. */
.v-guide .g-lane {
  --g-sk: 60;
  position: relative;
  flex: none;
  width: calc(var(--g-mins, 180) * var(--ppm, 6px));
  height: 100%;
  background-image: linear-gradient(90deg, var(--g-line) 0, var(--g-line) 1px, transparent 1px);
  background-size: calc(30 * var(--ppm, 6px)) 100%;
}

.v-guide .g-row:nth-child(3n + 2) .g-lane {
  --g-sk: 30;
}

.v-guide .g-row:nth-child(3n) .g-lane {
  --g-sk: 90;
}

/* Not loaded yet: shimmering placeholder blocks (pseudo-element, no extra DOM per row). */
.v-guide .g-lane.pending::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 2px;
  right: 2px;
  border-radius: 10px;
  background-image: repeating-linear-gradient(90deg,
    var(--g-skel) 0,
    var(--g-skel) calc(var(--g-sk) * var(--ppm, 6px) - 4px),
    transparent calc(var(--g-sk) * var(--ppm, 6px) - 4px),
    transparent calc(var(--g-sk) * var(--ppm, 6px)));
  animation: g-pulse 1.5s ease-in-out infinite;
}

/* The rest of a row that is still loading (partial answer). */
.v-guide .g-more {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: calc(var(--s) * var(--ppm, 6px) + 2px);
  width: calc(var(--d) * var(--ppm, 6px) - 4px);
  border-radius: 10px;
  background: var(--g-skel);
  pointer-events: none;
  animation: g-pulse 1.5s ease-in-out infinite;
}

/* Per-row message (no data / error + Retry); sticks next to the channel column. */
.v-guide .g-lane.has-msg {
  display: flex;
  align-items: center;
}

.v-guide .g-msg {
  position: -webkit-sticky;
  position: sticky;
  left: var(--g-ch-w);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 0 12px;
  color: var(--text-faint);
  font-size: 13.5px;
}

.v-guide .g-msg.err {
  color: var(--text-dim);
}

.v-guide .g-msg.err > .icon {
  color: var(--warning);
}

.v-guide .g-msg-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-guide .g-retry {
  flex: none;
  height: 34px;
  gap: 6px;
  padding: 0 12px;
}

/* ---------------------------------------------------------- program blocks */
.v-guide .g-prog {
  --past: clamp(0px, calc((var(--now, 0) - var(--s)) * var(--ppm, 6px) - 3px), calc(var(--d) * var(--ppm, 6px)));
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: calc(var(--s) * var(--ppm, 6px) + 2px);
  width: calc(var(--d) * var(--ppm, 6px) - 4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid var(--g-prog-border);
  border-radius: 10px;
  background-color: var(--g-prog-bg);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition: background-color 0.15s, border-color 0.15s, transform 0.12s var(--ease);
}

.v-guide .g-prog:active {
  transform: scale(0.975);
  background-color: var(--g-prog-hover);
}

.v-guide .g-prog:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.v-guide .g-prog.live {
  border-color: rgba(var(--accent-rgb), 0.42);
  background-color: var(--g-live-bg);
}

/* Dim the part of a program that has already aired. */
.v-guide .g-prog.live,
.v-guide .g-prog.ended {
  background-image: linear-gradient(90deg, var(--g-past) 0, var(--g-past) var(--past), transparent var(--past));
}

.v-guide .g-prog.ended .g-prog-top,
.v-guide .g-prog.ended .g-prog-sub {
  opacity: 0.55;
}

/* Started before / runs past the window edge. */
.v-guide .g-prog.cont-l {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.v-guide .g-prog.cont-r {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.v-guide .g-prog.cont-l .g-prog-title::before {
  content: "\2039\00a0";
  color: var(--text-faint);
}

.v-guide .g-prog-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.v-guide .g-prog-title {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.25;
}

.v-guide .g-prog-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.25;
}

.v-guide .g-prog-subtext {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v-guide .g-flag {
  flex: none;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text-dim);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.v-guide .g-flag.rec {
  background: rgba(var(--danger-rgb), 0.18);
  color: var(--danger);
}

/* "On: Bar" — the program is on one of the TVs right now. */
.v-guide .g-onair {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto; /* the time text next to it gives way first */
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  height: 18px;
  padding: 0 7px 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px -2px var(--accent-glow);
}

.v-guide .g-onair > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-guide .g-prog.short {
  padding: 0 6px;
}

.v-guide .g-prog.short .g-prog-sub,
.v-guide .g-prog.short .g-flag {
  display: none;
}

.v-guide .g-prog.short .g-prog-title {
  font-size: 12.5px;
}

/* ----------------------------------------------------- nothing to show */
.v-guide .g-norows {
  position: absolute;
  top: var(--g-head-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: var(--g-bg);
}

/* ============================================================ hover (mouse) */
@media (hover: hover) and (pointer: fine) {
  .v-guide .g-prog:hover {
    background-color: var(--g-prog-hover);
  }

  .v-guide .g-prog.live:hover {
    background-color: rgba(var(--accent-rgb), 0.24);
  }

  .v-guide .g-star:hover {
    color: var(--text-dim);
  }

  .v-guide .g-star.on:hover {
    color: var(--warning);
  }

  .v-guide .g-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
  }
}

/* ============================================================== responsive */
@media (min-width: 700px) {
  .v-guide .g-tune {
    padding-left: 12px;
  }

  .v-guide .g-tune .ch-badge-sm {
    width: 62px;
    height: 42px;
    border-radius: 10px;
  }

  .v-guide .g-tune .ch-badge-sm .ch-call {
    font-size: 10.5px;
  }

  .v-guide .g-tune .ch-badge-sm .ch-num {
    font-size: 14px;
  }

  .v-guide .g-tune .ch-badge-sm.no-call .ch-num {
    font-size: 17px;
  }

  .v-guide .g-star {
    width: 44px;
  }

  .v-guide .g-prog-title {
    font-size: 15px;
  }

  .v-guide .g-prog-sub {
    font-size: 13px;
  }
}

@media (max-width: 699px) {
  .view.v-guide {
    padding: 10px 10px 10px;
  }

  .v-guide .g-header {
    min-height: 40px;
    margin-bottom: 8px;
    padding: 0 4px;
  }

  .v-guide .g-note {
    font-size: 12px;
  }

  .v-guide .g-toolbar {
    gap: 8px;
    margin-bottom: 10px;
  }

  .v-guide .g-when {
    margin-left: 4px;
    font-size: 14px;
  }

  .v-guide .g-filters {
    width: 100%;
  }

  .v-guide .g-search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .v-guide .g-grid {
    border-radius: var(--radius-sm);
  }

  .v-guide .g-corner {
    padding: 0 10px;
    font-size: 10.5px;
  }

  .v-guide .g-tick {
    padding-left: 6px;
    font-size: 11.5px;
  }
}

@media (max-width: 420px) {
  .v-guide .g-fav-text {
    display: none;
  }

  .v-guide .g-chips .chip {
    padding: 0 12px;
  }
}

html[data-size="large"] .v-guide .g-prog-title {
  font-size: 16.5px;
}

html[data-size="large"] .v-guide .g-prog-sub {
  font-size: 14px;
}

@keyframes g-pulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

/* ========================================================= program sheet */
.v-guide-sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 2px;
}

.v-guide-sheet .g-ps-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.v-guide-sheet .g-ps-titles {
  flex: 1 1 auto;
  min-width: 0;
}

.v-guide-sheet .g-ps-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.v-guide-sheet .g-ps-episode {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.v-guide-sheet .g-ps-when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.v-guide-sheet .g-ps-when > .icon {
  color: var(--text-dim);
}

.v-guide-sheet .g-ps-dur {
  color: var(--text-dim);
  font-weight: 500;
}

.v-guide-sheet .g-ps-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.v-guide-sheet .g-ps-live {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v-guide-sheet .g-ps-live .progress {
  flex: 1 1 auto;
}

.v-guide-sheet .g-ps-left {
  flex: none;
  color: var(--text-dim);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.v-guide-sheet .g-ps-onnow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14.5px;
  font-weight: 600;
}

.v-guide-sheet .g-ps-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.v-guide-sheet .g-ps-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: -2px;
  color: var(--text-dim);
  font-size: 13.5px;
}

.v-guide-sheet .g-ps-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.v-guide-sheet .btn > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-guide-sheet .g-ps-fav.on > .icon {
  color: var(--warning);
}

@media (max-width: 519px) {
  .v-guide-sheet .g-ps-more {
    grid-template-columns: minmax(0, 1fr);
  }

  .v-guide-sheet .g-ps-head {
    gap: 12px;
  }

  .v-guide-sheet .g-ps-head .ch-badge-lg {
    width: 82px;
    height: 56px;
    border-radius: 14px;
  }

  .v-guide-sheet .g-ps-title {
    font-size: 20px;
  }
}
