.hp-ot-page {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.hp-ot-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--hp-surface);
  box-shadow: var(--hp-header-shadow, 0 1px 0 rgba(15, 23, 42, 0.06));
}

.hp-ot-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.hp-ot-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hp-ot-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--hp-text);
  background: var(--hp-surface-2);
  border: 1px solid var(--hp-border);
  font-weight: 600;
}

.hp-ot-back:hover {
  border-color: var(--hp-accent, #6e00ff);
  color: var(--hp-accent, #6e00ff);
}

.hp-ot-main {
  padding: 24px 0 48px;
}

.hp-ot-hero {
  text-align: center;
  padding: 28px 20px 32px;
  margin-bottom: 28px;
  border-radius: var(--hp-radius, 20px);
  background:
    radial-gradient(circle at top, rgba(110, 0, 255, 0.12), transparent 55%),
    linear-gradient(135deg, var(--hp-surface), var(--hp-surface-2));
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
}

.hp-ot-hero__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hp-accent-soft, rgba(110, 0, 255, 0.12));
  color: var(--hp-accent, #6e00ff);
  font-size: 1.4rem;
}

.hp-ot-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--hp-text);
}

.hp-ot-hero__subtitle {
  margin: 0 0 10px;
  color: var(--hp-text-muted);
  font-size: 1rem;
}

.hp-ot-hero__intro {
  margin: 0 auto 16px;
  max-width: 52ch;
  color: var(--hp-text);
  line-height: 1.8;
}

.hp-ot-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 20px;
  font-size: 0.9rem;
  color: var(--hp-text-muted);
}

.hp-ot-hero__meta a {
  color: var(--hp-accent, #6e00ff);
  text-decoration: none;
}

.hp-ot-list {
  display: grid;
  gap: 24px;
}

.hp-ot-card {
  border-radius: var(--hp-radius, 20px);
  border: 1px solid var(--hp-border);
  background: var(--hp-surface);
  box-shadow: var(--hp-shadow);
  overflow: hidden;
}

.hp-ot-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 0;
}

.hp-ot-card__num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hp-accent-soft, rgba(110, 0, 255, 0.12));
  color: var(--hp-accent, #6e00ff);
  font-weight: 700;
  font-size: 0.9rem;
}

.hp-ot-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--hp-text);
}

.hp-ot-player {
  position: relative;
  margin: 14px 18px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.hp-ot-player__facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.hp-ot-player__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-ot-player__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: rgba(255, 255, 255, 0.7);
  font-size: 3rem;
}

.hp-ot-player__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-size: 2rem;
  transition: background 0.2s ease;
}

.hp-ot-player__play i {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(110, 0, 255, 0.92);
  box-shadow: 0 8px 24px rgba(110, 0, 255, 0.35);
}

.hp-ot-player__facade:hover .hp-ot-player__play {
  background: rgba(15, 23, 42, 0.2);
}

.hp-ot-player__facade:focus-visible {
  outline: 2px solid var(--hp-accent, #6e00ff);
  outline-offset: 2px;
}

.hp-ot-player__mount {
  position: absolute;
  inset: 0;
}

.hp-ot-player__mount video,
.hp-ot-player__mount iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.hp-ot-player.is-loaded .hp-ot-player__facade {
  display: none;
}

.hp-ot-player.is-loaded .hp-ot-player__mount {
  display: block !important;
}

.hp-ot-card__desc {
  padding: 16px 18px 18px;
  line-height: 1.85;
  color: var(--hp-text);
  font-size: 0.95rem;
}

.hp-ot-empty,
.hp-ot-support {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--hp-radius, 20px);
  border: 1px solid var(--hp-border);
  background: var(--hp-surface);
  box-shadow: var(--hp-shadow);
}

.hp-ot-empty {
  margin-bottom: 24px;
}

.hp-ot-empty i {
  font-size: 2.4rem;
  color: var(--hp-text-muted);
  margin-bottom: 12px;
}

.hp-ot-empty h2,
.hp-ot-support h3 {
  margin: 0 0 8px;
  color: var(--hp-text);
}

.hp-ot-empty p,
.hp-ot-support p {
  margin: 0;
  color: var(--hp-text-muted);
  line-height: 1.7;
}

.hp-ot-support {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.hp-ot-support__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hp-ot-support__actions .hp-btn,
.hp-ot-empty .hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.hp-ot-support__actions .hp-btn--primary,
.hp-ot-empty .hp-btn--primary {
  background: var(--hp-accent, #6e00ff);
  color: #fff;
}

.hp-ot-support__actions .hp-btn--ghost {
  background: var(--hp-surface-2);
  color: var(--hp-text);
  border-color: var(--hp-border);
}

@media (min-width: 768px) {
  .hp-ot-list {
    gap: 28px;
  }

  .hp-ot-support {
    grid-template-columns: 1fr auto;
    align-items: center;
    text-align: right;
  }

  .hp-ot-support__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 992px) {
  .hp-ot-page {
    padding-bottom: 0;
  }
}
