.ly-card {
  background: var(--ly-bg-card);
  border-radius: var(--ly-radius);
  overflow: hidden;
  border: 1px solid var(--ly-border);
  transition: border-color 0.15s;
}

.ly-card:hover {
  border-color: var(--ly-accent-glow);
}

.ly-card--flat {
  border: 0;
  background: transparent;
}

.ly-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: var(--ly-primary);
  overflow: hidden;
}

.ly-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ly-card__thumb--wide {
  aspect-ratio: 16 / 9;
}

.ly-card__body {
  padding: 8px 10px 10px;
}

.ly-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ly-card__meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ly-muted);
}

.ly-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
}

.ly-card__badge--br {
  top: auto;
  left: auto;
  right: 6px;
  bottom: 6px;
}

.ly-hero {
  position: relative;
  border-radius: var(--ly-radius-lg);
  overflow: hidden;
  min-height: 180px;
  background: var(--ly-bg-card);
}

@media (min-width: 1024px) {
  .ly-hero {
    min-height: 320px;
  }
}

.ly-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.ly-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.95) 0%, rgba(11, 18, 32, 0.2) 70%);
}

.ly-hero__content {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width: 520px;
}

.ly-hero__title {
  margin: 0 0 8px;
  font-size: 22px;
}

@media (min-width: 1024px) {
  .ly-hero__title {
    font-size: 32px;
  }
}

.ly-ep-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ly-ep-grid a {
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--ly-bg-elevated);
  border: 1px solid var(--ly-border);
  font-size: 13px;
}

.ly-ep-grid a.is-active,
.ly-ep-grid a:hover {
  border-color: var(--ly-accent);
  color: var(--ly-accent);
}

.ly-paging {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.ly-paging a,
.ly-paging span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--ly-bg-card);
  border: 1px solid var(--ly-border);
  padding: 0 10px;
}

.ly-paging a.is-active {
  background: var(--ly-accent);
  color: #062a28;
  border-color: var(--ly-accent);
}

.ly-search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.ly-search-form input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--ly-radius);
  border: 1px solid var(--ly-border);
  background: var(--ly-bg-card);
  color: var(--ly-text);
}

.ly-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.ly-logo__mark {
  height: 36px;
  width: 36px;
  flex-shrink: 0;
  border-radius: 8px;
}

.ly-logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.ly-logo__cn {
  font-size: 18px;
  font-weight: 600;
  color: var(--ly-text);
  letter-spacing: 0.04em;
}

.ly-logo__en {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ly-muted);
}

@media (min-width: 1024px) {
  .ly-logo__mark {
    height: 40px;
    width: 40px;
  }

  .ly-logo__cn {
    font-size: 20px;
  }
}

.ly-logo img {
  height: 32px;
  width: auto;
}

@media (min-width: 1024px) {
  .ly-logo img {
    height: 36px;
  }
}

.ly-topic-banner {
  border-radius: var(--ly-radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 1;
  background: var(--ly-bg-card);
}

.ly-topic-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ly-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ly-live-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ly-live);
}

.ly-source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ly-source-tab {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--ly-border);
  background: var(--ly-bg-elevated);
  color: var(--ly-text);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.ly-source-tab.is-active,
.ly-source-tab:hover {
  border-color: var(--ly-accent);
  color: var(--ly-accent);
}

.ly-ep-panel:not(.is-active) {
  display: none;
}

.ly-continue.is-hidden {
  display: none;
}

.ly-continue__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.ly-continue__title {
  margin: 0;
  color: var(--ly-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.ly-continue__more {
  display: inline-flex;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--ly-border);
  border-radius: 4px;
  background: color-mix(in srgb, var(--ly-bg-elevated) 88%, transparent);
  color: var(--ly-muted);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.ly-continue__more:hover,
.ly-continue__more:focus-visible {
  border-color: color-mix(in srgb, var(--ly-accent) 42%, var(--ly-border));
  background: color-mix(in srgb, var(--ly-accent) 10%, var(--ly-bg-elevated));
  color: var(--ly-text);
}

.ly-continue__rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px 12px;
  margin: 0;
  list-style: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ly-continue__rail::-webkit-scrollbar {
  display: none;
}

.ly-continue__item {
  flex: 0 0 240px;
  scroll-snap-align: start;
  position: relative;
}

@media (min-width: 640px) {
  .ly-continue__item {
    flex-basis: 264px;
  }
}

@media (min-width: 1024px) {
  .ly-continue__item {
    flex-basis: 280px;
  }
}

.ly-continue__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ly-continue__media {
  position: relative;
  display: block;
  height: 144px;
  overflow: hidden;
  border: 1px solid var(--ly-border);
  border-radius: 6px;
  background: var(--ly-bg-elevated);
}

@media (min-width: 640px) {
  .ly-continue__media {
    height: 160px;
  }
}

.ly-continue__media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ly-continue__shade--x,
.ly-continue__shade--y {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ly-continue__shade--x {
  box-shadow: inset 3.25rem 0 3.5rem -3.25rem rgba(0, 0, 0, 0.58);
}

.ly-continue__shade--y {
  box-shadow: inset 0 -4rem 3.75rem -4rem rgba(0, 0, 0, 0.5);
}

.ly-continue__panel {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background:
    linear-gradient(rgba(7, 16, 19, 0.08), rgba(7, 16, 19, 0.34)),
    rgba(7, 16, 19, 0.24);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.08);
  color: #fff;
  pointer-events: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.ly-continue__link:hover .ly-continue__panel,
.ly-continue__link:focus-visible .ly-continue__panel {
  background:
    linear-gradient(rgba(9, 30, 35, 0.1), rgba(8, 21, 24, 0.42)),
    rgba(8, 21, 24, 0.32);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.3),
    0 0 18px color-mix(in srgb, var(--ly-accent) 12%, transparent),
    inset 0 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.ly-continue__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 82%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .ly-continue__name {
    font-size: 16px;
    line-height: 1.5;
  }
}

.ly-continue__sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ly-continue__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
}

.ly-continue__track {
  height: 6px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.ly-continue__fill {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ly-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--ly-accent) 45%, transparent);
}

.ly-continue__fill i {
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ly-accent);
  transform: translateY(-50%);
  box-shadow: 0 0 8px var(--ly-accent);
}

.ly-continue__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.75);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}

.ly-continue__item:hover .ly-continue__remove,
.ly-continue__item:focus-within .ly-continue__remove {
  opacity: 1;
}

.ly-empty {
  color: var(--ly-muted);
  padding: 24px 0;
  text-align: center;
}

.ly-empty.is-hidden,
.is-hidden {
  display: none !important;
}

.ly-play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.ly-fav-btn.is-fav {
  border-color: var(--ly-accent);
  color: var(--ly-accent);
}

.ly-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--ly-tabbar-h) + 24px);
  transform: translateX(-50%) translateY(12px);
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--ly-radius-pill);
  background: rgba(24, 24, 27, 0.95);
  border: 1px solid var(--ly-border);
  color: var(--ly-text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.ly-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
  .ly-toast {
    bottom: 32px;
  }
}

.ly-map-item[hidden] {
  display: none !important;
}
