:root {
  color-scheme: dark;
  --outer: #050403;
  --white: #f8f5ef;
  --glass: rgba(18, 13, 10, .46);
  --glass-line: rgba(255, 255, 255, .18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

body {
  margin: 0;
  padding: clamp(12px, 1.5vw, 24px);
  color: var(--white);
  background: var(--outer);
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-frame {
  position: relative;
  width: 100%;
  min-height: calc(100svh - clamp(24px, 3vw, 48px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: clamp(20px, 2vw, 30px);
  background: #0a0705;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .36);
}

.home-header {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 2.6vw, 38px) clamp(20px, 3vw, 46px);
}

.home-brand {
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

.home-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
}

.home-header nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}

.home-header nav a:hover,
.home-header nav a:focus-visible {
  color: #16100d;
  background: var(--white);
}

.home-header nav a:focus-visible,
.home-brand:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

main {
  min-height: inherit;
}

.home-poster {
  position: relative;
  min-height: inherit;
  overflow: hidden;
  background: #080503;
}

.home-poster::before,
.home-poster::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.home-poster::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, .34) 0, transparent 25%, transparent 72%, rgba(0, 0, 0, .3) 100%);
}

.home-poster::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.home-poster img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.poster-entry {
  position: absolute;
  z-index: 2;
  bottom: clamp(20px, 3vw, 42px);
  left: 50%;
  padding: 10px 16px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  color: rgba(255, 255, 255, .84);
  background: var(--glass);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .12em;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  transition: color .2s ease, background-color .2s ease;
}

.poster-entry:hover,
.poster-entry:focus-visible {
  color: #16100d;
  background: var(--white);
}

.poster-entry:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  body {
    padding: 8px;
  }

  .site-frame {
    min-height: calc(100svh - 16px);
    border-radius: 18px;
  }

  .home-header {
    gap: 12px;
    padding: 14px;
  }

  .home-brand {
    max-width: 8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }

  .home-header nav {
    gap: 2px;
    padding: 3px;
  }

  .home-header nav a {
    padding: 7px 9px;
    font-size: 10px;
    letter-spacing: 0;
  }

  .home-poster img {
    object-fit: contain;
  }

  .poster-entry {
    bottom: 16px;
    padding: 8px 12px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-header nav a,
  .poster-entry {
    transition: none;
  }
}
