/* Shared page chrome for catalog / detail / user */

.ly-page {
  width: min(100% - 24px, var(--ly-container));
  margin: 16px auto 0;
  padding-bottom: calc(var(--ly-tabbar-h) + 24px);
}

@media (min-width: 768px) {
  .ly-page {
    padding-bottom: 40px;
  }
}

.ly-page__title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
}

.ly-page__sub {
  margin: 0 0 16px;
  color: var(--ly-muted);
  font-size: 13px;
}

.ly-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ly-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--ly-radius-pill);
  border: 1px solid var(--ly-border);
  background: var(--ly-bg-card);
  color: var(--ly-muted);
  font-size: 13px;
  text-decoration: none;
}

.ly-chip:hover,
.ly-chip.is-active {
  color: var(--ly-accent);
  border-color: var(--ly-accent-glow);
  background: var(--ly-accent-dim);
}

.ly-grid--catalog {
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 640px) {
  .ly-grid--catalog {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .ly-grid--catalog {
    grid-template-columns: repeat(6, 1fr);
  }
}

.ly-grid--catalog .ly-card {
  border: 0;
  background: transparent;
}

.ly-grid--catalog .ly-card__body {
  padding: 8px 0 0;
}

.ly-grid--catalog .ly-card__meta {
  color: var(--ly-accent);
}

/* Detail */
.ly-vod-hero {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .ly-vod-hero {
    grid-template-columns: 180px 1fr;
    align-items: start;
  }
}

.ly-vod-hero__poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--ly-radius-lg);
  overflow: hidden;
  background: var(--ly-bg-card);
  max-width: 180px;
}

.ly-vod-hero__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ly-vod-hero__meta {
  color: var(--ly-muted);
  font-size: 13px;
  margin: 8px 0;
}

.ly-vod-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ly-vod-hero__blurb {
  margin: 12px 0 0;
  color: var(--ly-muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Play page — kanju.ai cinema shell */
.ly-play-page .ly-header,
.ly-play-page .ly-footer,
.ly-play-page .ly-tabbar,
.ly-play-page .ly-ad-slot--sticky-bottom {
  display: none !important;
}

.ly-play-page {
  height: 100dvh;
  overflow: hidden;
  background: #08090a;
}

.ly-play-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2147482000;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
}

.ly-play-progress.is-active {
  opacity: 1;
}

.ly-play-progress__rail {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--ly-accent) 12%, transparent);
}

.ly-play-progress__value {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 0 center;
  transform: scaleX(0.04);
  background: #16e05a;
  box-shadow:
    0 0 8px color-mix(in srgb, #16e05a 72%, transparent),
    0 0 18px color-mix(in srgb, #16e05a 42%, transparent);
}

.ly-play-progress.is-active .ly-play-progress__value {
  animation: ly-play-progress 1.5s cubic-bezier(0.2, 0.72, 0.28, 1) infinite;
}

@keyframes ly-play-progress {
  0% { transform: scaleX(0.04); }
  42% { transform: scaleX(0.52); }
  76% { transform: scaleX(0.79); }
  100% { transform: scaleX(0.94); }
}

@media (prefers-reduced-motion: reduce) {
  .ly-play-progress.is-active .ly-play-progress__value {
    animation: none;
    transform: scaleX(0.72);
  }
}

.ly-play-page .ly-cinema {
  position: relative;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 8px;
  overflow: auto;
}

.ly-cinema__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(103, 232, 249, 0.1), transparent 34%),
    linear-gradient(180deg, #25262b, #08090a);
}

.ly-cinema__atmosphere-img {
  position: absolute;
  inset: -3rem;
  width: calc(100% + 6rem);
  height: calc(100% + 6rem);
  transform: scale(1.1);
  opacity: 0.16;
  filter: blur(64px) saturate(1.5);
  background: var(--ly-poster, none) center / cover no-repeat;
}

.ly-cinema__atmosphere-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ly-cinema__atmosphere-shield {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5, 10, 13, 0.52), rgba(5, 10, 13, 0.82)),
    linear-gradient(90deg, rgba(5, 10, 13, 0.86), rgba(5, 10, 13, 0.46), rgba(5, 10, 13, 0.86));
}

.ly-cinema__atmosphere-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(103, 232, 249, 0.12), transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(243, 201, 105, 0.08), transparent 28%);
}

@media (min-width: 1200px) {
  .ly-play-page .ly-cinema {
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
    padding: 12px 12px 12px 8px;
  }

  .ly-play-page.is-side-collapsed .ly-cinema {
    grid-template-columns: minmax(0, 1fr);
  }

  .ly-play-page.is-side-collapsed .ly-cinema__side {
    display: none;
  }
}

.ly-cinema__stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
}

.ly-cinema__frame {
  position: relative;
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

@media (min-width: 1200px) {
  .ly-cinema__frame {
    height: 100%;
    aspect-ratio: auto;
  }
}

.ly-play-page .ly-player-wrap {
  margin: 0;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  position: relative;
  z-index: 1;
  background: transparent;
}

.ly-play-page .ly-player-wrap .MacPlayer,
.ly-play-page .ly-player-wrap iframe {
  background: transparent !important;
}

.ly-play-loading {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(8px, 4vmin, 24px);
  pointer-events: auto;
  cursor: pointer;
  color: #f4f8fa;
  text-align: center;
  background: #05070a;
  transition: opacity 0.18s;
}

.ly-play-loading.is-buffering {
  background: transparent;
}

.ly-play-loading.is-buffering .ly-play-loading__wall,
.ly-play-loading.is-buffering .ly-play-loading__veil,
.ly-play-loading.is-buffering .ly-play-loading__bar,
.ly-play-loading.is-buffering .ly-play-loading__countdown,
.ly-play-loading.is-buffering .ly-play-loading__tip,
.ly-play-loading.is-buffering .ly-play-loading__actions {
  display: none;
}

.ly-play-loading.is-buffering .ly-play-loading__panel {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.ly-play-loading.is-done,
.ly-play-loading[hidden] {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.ly-play-loading__wall {
  position: absolute;
  inset: 0;
  background:
    url("../img/play-poster-wall.jpg") center / cover no-repeat;
}

.ly-play-loading__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(103, 232, 249, 0.22), transparent 38%),
    linear-gradient(180deg, #000000db, #0000008a 44%, #000000e0);
}

.ly-play-loading__panel {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(360px, calc(100% - 24px));
  justify-items: center;
  gap: clamp(6px, 2.4vmin, 13px);
  padding: clamp(10px, 3vmin, 20px) clamp(12px, 3.4vmin, 22px) clamp(10px, 2.8vmin, 18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(8px, 2vmin, 12px);
  background: rgba(8, 10, 14, 0.56);
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.ly-play-loading__dots {
  display: flex;
  height: clamp(8px, 2.8vmin, 12px);
  align-items: center;
  gap: clamp(5px, 1.8vmin, 7px);
}

.ly-play-loading__dots span {
  width: clamp(5px, 1.8vmin, 7px);
  height: clamp(5px, 1.8vmin, 7px);
  border-radius: 999px;
  background: #16e09d;
  opacity: 0.42;
  animation: ly-yj-dot 1.05s ease-in-out infinite;
}

.ly-play-loading__dots span:nth-child(2) { animation-delay: 0.14s; }
.ly-play-loading__dots span:nth-child(3) { animation-delay: 0.28s; }

@keyframes ly-yj-dot {
  0%, 80%, 100% { opacity: 0.42; transform: translateY(0) scale(0.9); }
  40% { opacity: 1; transform: translateY(-3px) scale(1); }
}

.ly-play-loading__text {
  overflow-wrap: anywhere;
  font-size: clamp(13px, 4vmin, 17px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.28;
  color: #f4f8fa;
}

.ly-play-loading__bar {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.ly-play-loading__bar span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(to right, #16e09d, #9bf2ff);
  box-shadow: 0 0 22px rgba(22, 224, 157, 0.48);
  transition: width 0.32s linear;
}

.ly-play-loading__countdown {
  margin: 0;
  min-height: clamp(16px, 4vmin, 20px);
  color: rgba(244, 248, 250, 0.62);
  font-size: clamp(11px, 3vmin, 13px);
}

.ly-play-loading__tip {
  margin: 0;
  min-height: clamp(14px, 3.4vmin, 18px);
  color: rgba(244, 248, 250, 0.48);
  overflow-wrap: anywhere;
  font-size: clamp(10px, 2.8vmin, 12px);
  line-height: 1.35;
}

.ly-play-loading__actions {
  display: flex;
  width: 100%;
  justify-content: center;
}

.ly-play-loading__switch {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  color: #f4f8fa;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.16s, background-color 0.16s, color 0.16s;
}

.ly-play-loading__switch:hover,
.ly-play-loading__switch:focus-visible {
  border-color: #16e09d;
  color: #16e09d;
  background: rgba(18, 31, 37, 0.98);
}

@media (prefers-reduced-motion: reduce) {
  .ly-play-loading__dots span { animation: none; opacity: 0.85; }
}

.ly-cinema__chrome {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 42%);
}

.ly-cinema__back,
.ly-cinema__src-pill {
  pointer-events: auto;
}

.ly-cinema__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 10, 0.55);
  color: #fff;
  backdrop-filter: blur(10px);
}

.ly-cinema__titles {
  justify-self: center;
  text-align: center;
  padding-top: 6px;
}

.ly-cinema__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.ly-cinema__sub {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
}

.ly-cinema__src-pill,
.ly-cinema__ep-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 12rem;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 10, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.ly-cinema__src-pill em {
  font-style: normal;
  color: var(--ly-accent);
  font-size: 11px;
}

.ly-cinema__src-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fbbf24;
}

.ly-cinema__ep-pill {
  position: absolute;
  z-index: 81;
  left: 14px;
  bottom: 72px;
}

@media (min-width: 1200px) {
  .ly-cinema__ep-pill {
    display: none;
  }
}

.ly-cinema__ep-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ly-cinema__side-toggle {
  display: none;
  position: absolute;
  z-index: 81;
  top: 50%;
  right: 0;
  width: 22px;
  height: 52px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px 0 0 8px;
  background: rgba(24, 24, 27, 0.88);
  color: var(--ly-muted);
  cursor: pointer;
}

@media (min-width: 1200px) {
  .ly-cinema__side-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ly-play-page.is-side-collapsed .ly-cinema__side-toggle svg {
    transform: rotate(180deg);
  }
}

.ly-cinema__side {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ly-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ly-bg-elevated) 62%, transparent);
  backdrop-filter: blur(18px);
  overflow: auto;
}

.ly-cinema__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px 10px 0;
  border-bottom: 1px solid var(--ly-border);
}

.ly-cinema__tab {
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ly-muted);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.ly-cinema__tab.is-active {
  color: var(--ly-text);
  box-shadow: inset 0 -2px 0 var(--ly-accent);
}

.ly-cinema__panel {
  padding: 12px;
}

.ly-cinema__panel[hidden],
.ly-cinema__panel:not(.is-active) {
  display: none;
}

.ly-cinema-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ly-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.ly-cinema-card > * {
  position: relative;
  z-index: 2;
}

.ly-cinema-card--backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ly-poster) center 42% / cover no-repeat;
}

.ly-cinema-card--backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(7, 13, 16, 0.12), rgba(7, 13, 16, 0.34)),
    linear-gradient(90deg, rgba(7, 13, 16, 0.72), rgba(7, 13, 16, 0.42) 42%, rgba(7, 13, 16, 0.1) 78%, rgba(7, 13, 16, 0.2));
}

.ly-cinema-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
}

.ly-cinema-card__title {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  color: var(--ly-text);
  font-size: 16px;
  font-weight: 800;
}

.ly-cinema-card__title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ly-cinema-card__title svg {
  color: var(--ly-accent);
  flex-shrink: 0;
}

.ly-cinema-card__heat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--ly-border);
  color: var(--ly-accent);
  font-size: 10px;
  font-weight: 800;
}

.ly-cinema-card__meta {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ly-muted);
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ly-cinema-card__actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.ly-cinema-action {
  min-height: 56px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  border: 1px solid var(--ly-border);
  background: var(--ly-bg-elevated);
  color: var(--ly-text);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ly-cinema-action:hover,
.ly-cinema-action.is-fav {
  border-color: var(--ly-accent);
  color: var(--ly-accent);
}

.ly-cinema-action.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ly-cinema-sources {
  margin-bottom: 12px;
}

.ly-cinema-ep__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ly-cinema-ep__kicker {
  font-size: 16px;
  font-weight: 800;
}

.ly-cinema-ep__now {
  margin: 2px 0 0;
  color: var(--ly-muted);
  font-size: 13px;
  font-weight: 600;
}

.ly-cinema-ep__expand {
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 2px solid var(--ly-accent-dim);
  background: transparent;
  color: var(--ly-accent);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.ly-cinema-ep__latest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--ly-border);
  color: var(--ly-text);
  font-size: 13px;
  font-weight: 800;
}

.ly-ep-grid--cinema a {
  min-width: 4.5rem;
  height: 40px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

.ly-play-page .ly-ep-grid a.is-active {
  background: var(--ly-accent);
  border-color: var(--ly-accent);
  color: #052e1f;
}

.ly-cinema-discover {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--ly-border);
  background: var(--ly-bg-card);
}

.ly-cinema-discover__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ly-cinema-discover__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ly-accent-dim);
  color: var(--ly-accent);
}

.ly-cinema-discover h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.ly-cinema-discover p {
  margin: 4px 0 0;
  color: var(--ly-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ly-cinema-discover__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.ly-cinema-discover__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--ly-border);
  color: var(--ly-text);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.ly-cinema-related {
  margin-top: 16px;
}

.ly-cinema-talk__lead {
  color: var(--ly-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ly-cinema-feedback__types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.ly-cinema-feedback__types label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ly-muted);
}

.ly-cinema-feedback textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--ly-border);
  background: var(--ly-bg-input);
  color: var(--ly-text);
  resize: vertical;
}

.ly-cinema-feedback__ok {
  margin: 10px 0 0;
  color: var(--ly-accent);
  font-size: 13px;
}

.ly-play-page__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.ly-play {
  width: min(100% - 24px, var(--ly-container));
  margin: 12px auto 0;
  padding-bottom: calc(var(--ly-tabbar-h) + 24px);
}

@media (min-width: 768px) {
  .ly-play {
    padding-bottom: 40px;
  }
}

.ly-play__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(52, 211, 153, 0.16), transparent 42%),
    linear-gradient(180deg, #091418 0%, #050b0e 100%);
}

.ly-play__gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: rgba(5, 11, 14, 0.72);
}

.ly-play__gate-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.ly-play__gate-sub {
  margin: 0 0 8px;
  color: var(--ly-muted);
  font-size: 13px;
}

.ly-play__gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.ly-play__resume {
  position: absolute;
  left: 14px;
  bottom: 58px;
  z-index: 81;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 46, 31, 0.88);
  color: var(--ly-accent);
  font-size: 12px;
}

.ly-play__tabs {
  position: sticky;
  top: var(--ly-header-h);
  z-index: 5;
  display: flex;
  gap: 18px;
  margin: 16px 0 12px;
  padding: 0 4px;
  border-bottom: 1px solid var(--ly-border);
  background: color-mix(in srgb, var(--ly-bg) 88%, transparent);
  backdrop-filter: blur(8px);
}

.ly-play__tab {
  position: relative;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ly-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.ly-play__tab.is-active {
  color: var(--ly-text);
}

.ly-play__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--ly-accent);
}

.ly-play__panel[hidden],
.ly-play__panel:not(.is-active) {
  display: none;
}

.ly-play__lines {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ly-play__lines-label {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--ly-muted);
}

.ly-play .ly-source-tabs {
  margin-bottom: 0;
}

.ly-play .ly-ep-grid a {
  min-width: 72px;
  height: 40px;
  border-radius: 8px;
}

.ly-play .ly-ep-grid a.is-active {
  background: var(--ly-accent);
  border-color: var(--ly-accent);
  color: #052e1f;
  font-weight: 600;
}

.ly-ep-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ly-ep-range {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--ly-border);
  background: var(--ly-bg-elevated);
  color: var(--ly-text);
  font-size: 12px;
  cursor: pointer;
}

.ly-ep-range.is-active {
  border-color: var(--ly-accent);
  color: var(--ly-accent);
}

.ly-play__facts {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.ly-play__facts > div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  font-size: 14px;
}

.ly-play__facts dt {
  margin: 0;
  color: var(--ly-muted);
}

.ly-play__facts dd {
  margin: 0;
}

.ly-play__plot {
  color: var(--ly-muted);
  line-height: 1.7;
  font-size: 14px;
}

/* User pages */
.ly-user-card {
  padding: 20px;
  border-radius: var(--ly-radius-lg);
  background: var(--ly-bg-card);
  border: 1px solid var(--ly-border);
  margin-bottom: 16px;
}

.ly-user-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ly-user-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--ly-radius);
  background: var(--ly-bg-card);
  border: 1px solid var(--ly-border);
  color: var(--ly-text);
}

.ly-user-menu a:hover {
  border-color: var(--ly-accent-glow);
  color: var(--ly-accent);
}

.ly-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.ly-form input {
  height: 44px;
  padding: 0 16px;
  border-radius: var(--ly-radius-pill);
  border: 1px solid var(--ly-border);
  background: var(--ly-bg-input);
  color: var(--ly-text);
}

.ly-form input:focus {
  outline: none;
  border-color: var(--ly-accent-glow);
  box-shadow: 0 0 0 3px var(--ly-accent-dim);
}

.ly-ulog-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 640px) {
  .ly-ulog-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .ly-ulog-list {
    grid-template-columns: repeat(6, 1fr);
  }
}

.ly-ulog-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ly-muted);
  padding: 48px 16px;
}

.ly-map-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ly-map-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--ly-radius);
  background: var(--ly-bg-card);
  border: 1px solid var(--ly-border);
  text-decoration: none;
  color: inherit;
}

.ly-map-item:hover {
  border-color: var(--ly-accent-glow);
}

.ly-map-item__thumb {
  width: 48px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ly-bg-elevated);
}

.ly-map-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ly-map-item__name {
  font-weight: 500;
  margin: 0 0 4px;
}

.ly-map-item__meta {
  margin: 0;
  font-size: 12px;
  color: var(--ly-accent);
}
