/* Homepage — kanju.ai inspired */

.ly-home-hero {
  padding: 28px 0 8px;
  text-align: center;
}

.ly-home-hero__title {
  margin: 0;
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--ly-text) 0%, var(--ly-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ly-home-hero__sub {
  margin: 8px 0 24px;
  font-size: 13px;
  color: var(--ly-muted);
}

.ly-search-hero {
  position: relative;
  max-width: 560px;
  margin: 0 auto 16px;
}

.ly-search-hero__box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  background: var(--ly-bg-card);
  border: 1px solid var(--ly-border);
  border-radius: var(--ly-radius-pill);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.ly-search-hero__box:focus-within {
  border-color: var(--ly-accent-glow);
  box-shadow: 0 0 0 3px var(--ly-accent-dim);
}

.ly-search-hero input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: var(--ly-text);
  font-size: 15px;
  appearance: none;
  -webkit-appearance: none;
}

.ly-search-hero input:focus,
.ly-search-hero input:focus-visible {
  outline: none;
  box-shadow: none;
  border: 0;
}

.ly-search-hero input::-webkit-search-decoration,
.ly-search-hero input::-webkit-search-cancel-button,
.ly-search-hero input::-webkit-search-results-button,
.ly-search-hero input::-webkit-search-results-decoration {
  appearance: none;
  -webkit-appearance: none;
}

.ly-search-hero input::placeholder {
  color: var(--ly-muted);
}

.ly-search-hero__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ly-accent);
  color: #052e1f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}

.ly-search-hero__btn:hover {
  background: var(--ly-accent-hover);
  transform: scale(1.04);
}

.ly-search-hero__btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

/* Hot tags */
.ly-hot-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 8px;
}

.ly-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--ly-radius-pill);
  background: var(--ly-bg-card);
  border: 1px solid var(--ly-border);
  color: var(--ly-muted);
  font-size: 13px;
  transition: border-color 0.15s, color 0.15s;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ly-tag:hover {
  border-color: var(--ly-accent-glow);
  color: var(--ly-accent);
}

.ly-tag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--ly-accent);
  fill: none;
  stroke-width: 2;
}

/* Calendar strip */
.ly-calendar {
  margin-block: 28px 20px;
  padding: 16px;
  background: var(--ly-bg-card);
  border: 1px solid var(--ly-border);
  border-radius: var(--ly-radius-lg);
}

.ly-calendar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ly-calendar__titles {
  min-width: 0;
}

.ly-calendar__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ly-calendar__title svg {
  width: 20px;
  height: 20px;
  stroke: var(--ly-accent);
  fill: none;
  stroke-width: 2;
}

.ly-calendar__hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ly-muted);
}

.ly-calendar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 2px;
}

.ly-calendar__more {
  font-size: 13px;
  color: var(--ly-accent);
}

.ly-calendar__range {
  font-size: 12px;
  color: var(--ly-muted);
}

.ly-calendar__strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.ly-calendar__strip::-webkit-scrollbar {
  height: 4px;
}

.ly-calendar__strip::-webkit-scrollbar-track {
  background: transparent;
}

.ly-calendar__strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.ly-calendar__strip::-webkit-scrollbar-button {
  display: none;
}

.ly-cal-day {
  flex: 1 1 0;
  min-width: 72px;
  scroll-snap-align: start;
  padding: 10px 6px;
  border-radius: var(--ly-radius);
  border: 1px solid var(--ly-border);
  background: transparent;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-decoration: none;
  color: inherit;
  font: inherit;
}

.ly-cal-day:hover {
  border-color: var(--ly-accent-glow);
}

.ly-cal-day.is-today,
.ly-cal-day.is-selected {
  border-color: var(--ly-accent);
  background: transparent;
}

.ly-calendar__panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 18px;
}

@media (min-width: 960px) {
  .ly-calendar__panels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

.ly-calendar__panels.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.ly-cal-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.ly-cal-panel__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.ly-cal-panel__count {
  font-size: 12px;
  color: var(--ly-muted);
}

.ly-cal-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ly-cal-item {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: inherit;
  text-decoration: none;
}

.ly-cal-item:hover .ly-cal-item__name {
  color: var(--ly-accent);
}

.ly-cal-item__thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ly-bg);
}

.ly-cal-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ly-cal-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ly-cal-item__name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ly-cal-item__rem {
  font-size: 12px;
  color: var(--ly-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ly-cal-empty {
  font-size: 12px;
  color: var(--ly-muted);
  padding: 8px 0;
}

.ly-cal-day__week {
  display: block;
  font-size: 11px;
  color: var(--ly-muted);
}

.ly-cal-day.is-today .ly-cal-day__week,
.ly-cal-day.is-selected .ly-cal-day__week,
.ly-cal-day.is-today .ly-cal-day__date,
.ly-cal-day.is-selected .ly-cal-day__date,
.ly-cal-day.is-today .ly-cal-day__count,
.ly-cal-day.is-selected .ly-cal-day__count {
  color: var(--ly-accent);
}

.ly-cal-day__date {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0;
}

.ly-cal-day__count {
  display: block;
  font-size: 10px;
  color: var(--ly-muted);
}

/* Horizontal content rows */
.ly-row {
  margin-block: 24px;
}

.ly-row__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-inline: 2px;
}

.ly-row__titles {
  min-width: 0;
}

.ly-row__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.ly-row__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ly-muted);
}

.ly-row__count {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ly-muted);
}

.ly-row__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ly-row__nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ly-border);
  background: var(--ly-bg-card);
  color: var(--ly-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ly-row__nav:hover:not(:disabled) {
  border-color: var(--ly-accent-glow);
  color: var(--ly-accent);
}

.ly-row__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.ly-row__more {
  font-size: 13px;
  color: var(--ly-accent);
  margin-left: 4px;
}

.ly-row__scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ly-row__scroll::-webkit-scrollbar {
  display: none;
}

.ly-row__scroll .ly-card {
  flex: 0 0 120px;
  scroll-snap-align: start;
  border: 0;
  background: transparent;
}

@media (min-width: 640px) {
  .ly-row__scroll .ly-card {
    flex-basis: 140px;
  }
}

.ly-row__scroll .ly-card__body {
  padding: 8px 0 0;
}

.ly-row__scroll .ly-card__title {
  font-size: 12px;
}

.ly-row__scroll .ly-card__meta {
  font-size: 11px;
  color: var(--ly-accent);
}

/* Continue watch on home — landscape resume cards */
.ly-home .ly-continue {
  margin: 20px 0 8px;
}
