:root {
  color-scheme:dark;
  --bg:#101114;
  --panel:#191b20;
  --edge:#30323a;
  --white:#f6f3ee;
  --muted:#b5b2bb;
  --accent:#f5bd65;
  font-family:system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  background:var(--bg);
  color:var(--white);
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

a {
  color:inherit;
  text-decoration:none;
}

button,input {
  font:inherit;
}

a:focus-visible,button:focus-visible,input:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px;
}

[hidden] {
  display:none!important;
}

.shell {
  width:min(1160px,calc(100% - 64px));
  margin-inline:auto;
}

.bar {
  border-bottom:1px solid #25272d;
}

.bar-inner {
  height:4.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.wordmark {
  display:flex;
  align-items:center;
  gap:.65rem;
  font-size:1.24rem;
  font-weight:800;
  letter-spacing:.12em;
}

.mark {
  display:grid;
  gap:3px;
  transform:rotate(-24deg);
}

.mark i {
  width:20px;
  height:4px;
  border-radius:2px;
  background:var(--accent);
}

.mark i+ i {
  width:14px;
}

.bar nav {
  display:flex;
  gap:2rem;
  color:var(--muted);
}

.bar nav a:hover,footer a:hover {
  color:var(--accent);
}

.hero {
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:flex-end;
  min-height:485px;
  margin-top:1.75rem;
  overflow:hidden;
  border:1px solid var(--edge);
  border-radius:1.35rem;
  background:#283039;
}

.hero-image {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:65% 46%;
  z-index:-2;
}

.hero:after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(9,12,15,.96) 0%,rgba(9,12,15,.80) 27%,rgba(9,12,15,.17) 72%),linear-gradient(0deg,rgba(9,12,15,.69),transparent 54%);
}

.hero-content {
  padding:clamp(1.65rem,5vw,4rem);
  max-width:36rem;
}

.feature-label {
  margin:0 0 .8rem;
  color:#ffcf86;
  font-weight:700;
  font-size:.88rem;
  letter-spacing:.16em;
}

.hero h1 {
  font-size:clamp(3.3rem,8vw,6rem);
  line-height:1.02;
  margin:0;
  letter-spacing:.06em;
}

.hero-original {
  margin:.3rem 0 1rem;
  font-size:1.3rem;
  color:#e0e4e0;
  letter-spacing:.07em;
}

.hero-summary {
  margin:0 0 1.5rem;
  color:#e6e3e0;
  font-size:1.04rem;
  line-height:1.8;
}

.hero-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:1rem;
}

.hero-actions>span {
  font-size:.92rem;
  color:#dfdddb;
}

.primary {
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  padding:.72rem 1.1rem;
  border-radius:.62rem;
  background:var(--accent);
  color:#201509;
  font-weight:750;
}

.primary:hover {
  background:#ffce8a;
}

.triangle,.cover-play:after {
  display:inline-block;
  width:0;
  height:0;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
  border-left:8px solid currentColor;
}

.collection {
  padding:2.75rem 0 3.1rem;
  scroll-margin-top:1rem;
}

.collection h2 {
  margin:0 0 1rem;
  font-size:1.65rem;
}

.toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
  margin-bottom:1.25rem;
}

.filters {
  display:flex;
  gap:.45rem;
  flex-wrap:wrap;
}

.filters button,.search {
  min-height:2.5rem;
  background:var(--panel);
  border:1px solid var(--edge);
  border-radius:.6rem;
  color:var(--muted);
}

.filters button {
  padding:.4rem .84rem;
  cursor:pointer;
}

.filters button:hover,.filters button[aria-pressed="true"] {
  color:var(--accent);
  border-color:#9c7445;
}

.search {
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:0 .75rem;
}

.search-icon {
  position:relative;
  width:.8rem;
  height:.8rem;
  border:1.5px solid currentColor;
  border-radius:50%;
}

.search-icon:after {
  content:"";
  width:.36rem;
  border-top:1.5px solid currentColor;
  position:absolute;
  bottom:-.18rem;
  right:-.23rem;
  transform:rotate(45deg);
}

.search input {
  min-width:0;
  width:10rem;
  padding:.43rem .2rem;
  background:transparent;
  border:0;
  color:var(--white);
  outline-offset:1px;
}

.grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.05rem;
}

.card {
  min-width:0;
  background:var(--panel);
  border:1px solid var(--edge);
  border-radius:.85rem;
  overflow:hidden;
}

.cover {
  position:relative;
  display:block;
  background:#2a3037;
  aspect-ratio:16/9;
  overflow:hidden;
}

.cover img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s;
}

.cover:hover img,.cover:focus-visible img {
  transform:scale(1.04);
}

.cover-play {
  position:absolute;
  left:.7rem;
  bottom:.7rem;
  display:grid;
  place-items:center;
  width:2rem;
  height:2rem;
  background:#111419dc;
  border:1px solid #ffffff58;
  border-radius:50%;
  color:#fff;
}

.cover-play:after {
  content:"";
  margin-left:2px;
}

.duration {
  position:absolute;
  bottom:.64rem;
  right:.7rem;
  padding:.14rem .39rem;
  border-radius:.26rem;
  background:#111419e8;
  color:#fff;
  font:600 .86rem ui-monospace,monospace;
}

.card-body {
  padding:.88rem 1rem .96rem;
}

.card h3 {
  margin:0;
  font-size:1.14rem;
}

.card h3 a:hover {
  color:var(--accent);
}

.card p {
  margin:.25rem 0 0;
  color:var(--muted);
  font-size:.88rem;
}

.card .card-meta {
  margin-top:.6rem;
}

.card-meta span {
  padding:0 .22rem;
  color:var(--accent);
}

#empty {
  margin:2rem 0;
  color:var(--muted);
}

footer {
  padding:1.3rem 0 2rem;
  border-top:1px solid var(--edge);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:.65rem 1.4rem;
  color:var(--muted);
  font-size:.9rem;
}

footer p {
  margin:0;
}

footer strong {
  margin-right:.65rem;
  color:var(--white);
}

footer a+a {
  margin-left:1rem;
}

dialog {
  width:min(760px,calc(100% - 1.5rem));
  max-height:calc(100% - 1.5rem);
  margin:auto;
  padding:0;
  border:1px solid var(--edge);
  border-radius:1rem;
  background:var(--panel);
  color:var(--white);
  overflow:auto;
}

dialog::backdrop {
  background:#06070cdd;
}

.player-head {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:1rem;
  padding:1rem 1.2rem;
}

.player-head h2,.player-head p {
  margin:0;
}

.player-head p {
  margin-top:.25rem;
  color:var(--muted);
  font-size:.87rem;
}

.player-head button {
  border:1px solid var(--edge);
  border-radius:.5rem;
  width:2.4rem;
  height:2.4rem;
  cursor:pointer;
  background:#111217;
  color:var(--white);
  font-size:1.45rem;
}

.player-head button:hover {
  color:var(--accent);
}

video {
  display:block;
  width:100%;
  aspect-ratio:16/9;
  max-height:58vh;
  background:#000;
}

.player-info {
  padding:.85rem 1.2rem 1.1rem;
}

.player-info p {
  margin:.3rem 0 .7rem;
  line-height:1.65;
}

.player-links {
  display:flex;
  flex-wrap:wrap;
  gap:.65rem 1.1rem;
}

.player-links a {
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:.24em;
}

#play-error {
  color:#ffdca6;
}

@media(max-width:760px) {
  .shell {
    width:calc(100% - 36px);
  }
  .hero {
    min-height:390px;
  }
  .grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:480px) {
  .shell {
    width:calc(100% - 28px);
  }
  .bar-inner {
    height:3.8rem;
  }
  .bar nav {
    gap:1rem;
  }
  .hero {
    margin-top:1rem;
    min-height:360px;
  }
  .hero:after {
    background:linear-gradient(0deg,rgba(9,12,15,.97),rgba(9,12,15,.52) 58%,rgba(9,12,15,.07));
  }
  .hero-image {
    object-position:60% center;
  }
  .grid {
    gap:.7rem;
  }
  .card-body {
    padding:.65rem .7rem;
  }
  .search {
    width:100%;
  }
  .search input {
    width:100%;
  }
  .collection {
    padding-top:2rem;
  }
}

@media(prefers-reduced-motion:reduce) {
  .cover img {
    transition:none;
  }
}
