:root {
  --ink: #17141f;
  --muted: #706a77;
  --paper: #fffaf4;
  --paper-deep: #f4ede6;
  --white: #ffffff;
  --accent: #ff5f7f;
  --accent-warm: #ff8c65;
  --accent-soft: #ffd7dc;
  --line: rgba(23, 20, 31, 0.13);
  --shadow: 0 32px 90px rgba(46, 29, 42, 0.16);
  --radius-lg: 36px;
  --radius-md: 24px;
  --radius-sm: 16px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.18;
}

.ambient-one {
  top: -280px;
  right: -160px;
  background: var(--accent);
}

.ambient-two {
  bottom: -340px;
  left: -240px;
  background: #f2b173;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50% 50% 50% 14%;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
}

.brand-light {
  color: #fff;
}

.brand-light .brand-mark {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
}

.site-header {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.header-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 70px;
  padding-block: 72px 90px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow > span {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.dashboard-intro h1,
.login-card h1,
.watch-caption h1,
.watch-error h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(64px, 6.3vw, 103px);
  line-height: 0.86;
}

.hero h1 em {
  position: relative;
  color: var(--accent);
  font-weight: 400;
}

.hero h1 em::after {
  position: absolute;
  right: 2px;
  bottom: -10px;
  width: 68%;
  height: 8px;
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
  transform: rotate(-4deg);
}

.hero-lead {
  max-width: 560px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-top: 37px;
}

.scan-hint {
  display: flex;
  align-items: center;
  gap: 14px;
}

.scan-hint > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.scan-hint b {
  font-size: 13px;
}

.scan-hint small {
  color: var(--muted);
  font-size: 11px;
}

.scan-icon {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--ink);
}

.scan-icon i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: var(--paper);
  border-style: solid;
}

.scan-icon i:nth-child(1) {
  top: 9px;
  left: 9px;
  border-width: 2px 0 0 2px;
}

.scan-icon i:nth-child(2) {
  top: 9px;
  right: 9px;
  border-width: 2px 2px 0 0;
}

.scan-icon i:nth-child(3) {
  bottom: 9px;
  left: 9px;
  border-width: 0 0 2px 2px;
}

.scan-icon i:nth-child(4) {
  right: 9px;
  bottom: 9px;
  border-width: 0 2px 2px 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
}

.text-link span {
  font-size: 17px;
}

.portrait-stage {
  position: relative;
  min-height: 520px;
}

.portrait-frame {
  position: absolute;
  inset: 10px 35px 10px 20px;
  overflow: hidden;
  border-radius: 42% 42% 46% 26% / 37% 30% 52% 42%;
  background: #aaa;
  box-shadow: var(--shadow);
  transform: rotate(2.2deg);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: contrast(1.04);
  transform: scale(1.03) rotate(-2.2deg);
}

.portrait-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(175deg, transparent 52%, rgba(19, 15, 23, 0.55) 100%),
    linear-gradient(90deg, rgba(255, 81, 119, 0.14), transparent 35%);
  mix-blend-mode: multiply;
}

.portrait-label {
  position: absolute;
  right: 38px;
  bottom: 36px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.portrait-label span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.portrait-label strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-style: italic;
  font-weight: 400;
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(23, 20, 31, 0.24);
  border-radius: 50%;
}

.orbit::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 6px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  content: "";
}

.orbit-a {
  inset: -12px 5px 0 -5px;
  transform: rotate(-13deg);
}

.orbit-a::after {
  top: 69px;
  right: 45px;
}

.orbit-b {
  inset: 34px -16px -18px 34px;
  transform: rotate(18deg);
}

.orbit-b::after {
  bottom: 58px;
  left: 31px;
  width: 8px;
  height: 8px;
}

.vertical-word {
  position: absolute;
  top: 45%;
  right: -9px;
  color: rgba(23, 20, 31, 0.42);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.48em;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
}

.how-section {
  padding-block: 100px 120px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading .eyebrow {
  margin: 0 0 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 66px;
  border-top: 1px solid var(--line);
}

.steps article {
  min-height: 240px;
  padding: 32px 36px 34px 0;
  border-right: 1px solid var(--line);
}

.steps article + article {
  padding-left: 36px;
}

.steps article:last-child {
  border-right: 0;
}

.step-number {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
}

.steps h3 {
  margin: 49px 0 12px;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.steps p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer {
  display: grid;
  min-height: 108px;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-footer span:nth-child(2) {
  text-align: center;
}

.site-footer a {
  justify-self: end;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  border-color: currentColor;
}

/* Buttons and fields */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 14px 30px rgba(23, 20, 31, 0.16);
}

.button-primary span {
  color: var(--accent-soft);
  font-size: 17px;
}

.button-ghost {
  border: 1px solid var(--line);
  background: transparent;
}

.button-small {
  min-height: 38px;
  padding-inline: 18px;
  font-size: 11px;
}

.button-wide {
  width: 100%;
}

.button-light {
  background: #fff;
  color: var(--ink);
}

.field-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.field-label small {
  color: #a29ca5;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

input[type="text"],
input[type="password"],
input:not([type]) {
  width: 100%;
  height: 54px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 160ms ease;
}

input:focus {
  border-color: var(--accent);
}

input::placeholder {
  color: #b0aab2;
}

/* Login */

.admin-page {
  min-height: 100vh;
  background: #f6f0e9;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr;
  padding: 38px 7vw 60px;
}

.login-brand {
  align-self: start;
  justify-self: start;
}

.login-card {
  width: min(450px, 100%);
  align-self: center;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 34px;
  padding: 52px;
  background: rgba(255, 250, 244, 0.76);
  box-shadow: 0 35px 90px rgba(59, 41, 53, 0.14);
  backdrop-filter: blur(24px);
}

.login-card .eyebrow {
  margin-bottom: 18px;
}

.login-card h1 {
  margin: 0;
  font-size: 49px;
}

.login-card > p:not(.eyebrow, .form-error) {
  margin: 15px 0 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.password-field {
  position: relative;
  margin-top: 5px;
}

.password-field input {
  padding-right: 84px;
}

.password-field button {
  position: absolute;
  top: 0;
  right: 0;
  height: 54px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.form-error {
  min-height: 21px;
  margin: 11px 0 7px;
  color: #bd2847;
  font-size: 12px;
}

.back-link {
  display: table;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 11px;
}

/* Dashboard */

.admin-shell {
  min-height: 100vh;
}

.admin-header {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-inline: max(32px, calc((100vw - 1240px) / 2));
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55ad74;
  box-shadow: 0 0 0 4px rgba(85, 173, 116, 0.12);
}

.dashboard {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: 68px 100px;
}

.dashboard-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
}

.dashboard-intro .eyebrow {
  margin-bottom: 13px;
}

.dashboard-intro h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1;
}

.dashboard-intro > div:first-child > p:last-child {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.storage-note {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  margin-bottom: 6px;
}

.storage-note span,
.storage-note small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.storage-note strong {
  margin-block: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
}

.upload-panel,
.library-panel {
  border: 1px solid rgba(23, 20, 31, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 244, 0.82);
  box-shadow: 0 24px 65px rgba(49, 35, 45, 0.08);
  backdrop-filter: blur(18px);
}

.upload-panel {
  padding: 34px;
}

.panel-title {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.panel-index {
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #9a2943;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: italic;
}

.panel-title h2 {
  margin: 1px 0 5px;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.panel-title p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.upload-form {
  margin-top: 35px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.field-group {
  display: flex;
  flex-direction: column;
}

.drop-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 14px;
  margin-top: 34px;
}

.drop-zone {
  position: relative;
  display: flex;
  min-height: 170px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow: hidden;
  border: 1px dashed rgba(23, 20, 31, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--accent);
  background: rgba(255, 215, 220, 0.2);
  transform: translateY(-2px);
}

.drop-zone.has-file {
  border-style: solid;
  border-color: rgba(255, 95, 127, 0.5);
  background: rgba(255, 215, 220, 0.16);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.drop-icon {
  display: grid;
  min-width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 22px;
}

.video-drop-icon {
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-indent: 2px;
}

.drop-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.drop-copy strong {
  font-size: 13px;
}

.drop-copy small {
  color: var(--muted);
  font-size: 10px;
}

.file-chip {
  position: absolute;
  right: 15px;
  bottom: 14px;
  left: 15px;
  overflow: hidden;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(23, 20, 31, 0.88);
  color: #fff;
  font-size: 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-progress {
  margin-top: 26px;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
}

.progress-meta strong {
  color: var(--ink);
  font-size: 12px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-deep);
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transition: width 120ms linear;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 26px;
}

.form-footer p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.library-panel {
  margin-top: 24px;
  padding: 34px;
}

.library-title {
  align-items: center;
}

.library-title .icon-button {
  margin-left: auto;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  transition: transform 180ms ease;
}

.icon-button:hover {
  transform: rotate(45deg);
}

.video-library {
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.video-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 11px 14px 11px 11px;
  background: rgba(255, 255, 255, 0.44);
}

.video-thumb {
  position: relative;
  width: 112px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #27222e;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.83);
  color: var(--ink);
  content: "▶";
  font-size: 8px;
  text-indent: 1px;
  transform: translate(-50%, -50%);
}

.video-info {
  min-width: 0;
}

.video-info h3 {
  overflow: hidden;
  margin: 0 0 7px;
  font-size: 14px;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-info p {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.video-link {
  display: block;
  overflow: hidden;
  max-width: 620px;
  color: #9f3550;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.action-button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease;
}

.action-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.action-button.qr-action {
  border-color: transparent;
  background: var(--accent-soft);
  color: #7b243a;
}

.action-button.delete-action {
  width: 38px;
  justify-content: center;
  padding: 0;
  color: #a14559;
}

.empty-state {
  display: flex;
  min-height: 270px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50% 50% 50% 18%;
  background: var(--paper-deep);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
}

.empty-state h3 {
  margin: 18px 0 6px;
  font-size: 15px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}

.toast {
  min-width: 250px;
  max-width: min(380px, calc(100vw - 48px));
  border-radius: 15px;
  padding: 13px 17px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  font-size: 11px;
  line-height: 1.5;
  animation: toast-in 220ms ease both;
}

.toast.is-error {
  background: #a52d49;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Watch page */

.watch-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #0d0b12;
  color: #fff;
}

.watch-background,
.watch-overlay {
  position: fixed;
  inset: 0;
}

.watch-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1d1820;
  filter: blur(30px) saturate(0.72);
  opacity: 0.48;
  transform: scale(1.1);
}

.watch-overlay {
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 93, 127, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(9, 7, 12, 0.55), rgba(9, 7, 12, 0.92));
}

.watch-header,
.watch-footer {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1220px, calc(100% - 64px));
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
}

.watch-header {
  min-height: 86px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.watch-kicker,
.watch-footer {
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.watch-main {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1100px, calc(100% - 64px));
  min-height: calc(100vh - 160px);
  margin-inline: auto;
  place-items: center;
  padding-block: 45px 75px;
}

.watch-card {
  width: 100%;
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: min(920px, 100%);
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: #000;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.52);
}

.video-frame video {
  width: 100%;
  max-height: 68vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.custom-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(15px);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, opacity 160ms ease;
}

.custom-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.custom-play span {
  font-size: 20px;
  text-indent: 4px;
}

.custom-play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.watch-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  width: min(920px, 100%);
  margin: 30px auto 0;
}

.eyebrow-light {
  margin-bottom: 11px;
  color: rgba(255, 255, 255, 0.48);
}

.watch-caption h1 {
  margin: 0;
  font-size: clamp(35px, 5vw, 58px);
  line-height: 1;
}

.watch-caption [data-video-description] {
  max-width: 680px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.65;
}

.share-button {
  display: flex;
  align-self: end;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 9px 17px 9px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.share-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-size: 17px;
}

.share-button > span:last-child {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.share-button b {
  font-size: 10px;
}

.share-button small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
}

.watch-loading,
.watch-error {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.loading-orbit {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.watch-loading p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.watch-error > span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
}

.watch-error h1 {
  margin: 15px 0 8px;
  font-size: 54px;
}

.watch-error p {
  max-width: 420px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.53);
  font-size: 12px;
  line-height: 1.7;
}

.watch-footer {
  min-height: 74px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.92fr);
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(59px, 7.5vw, 80px);
  }

  .portrait-stage {
    min-height: 470px;
  }

  .video-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .video-thumb {
    width: 96px;
  }

  .video-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 820px) {
  .shell,
  .dashboard,
  .watch-header,
  .watch-footer,
  .watch-main {
    width: min(100% - 36px, 680px);
  }

  .site-header {
    min-height: 78px;
  }

  .header-note {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-block: 62px 78px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(59px, 15vw, 84px);
  }

  .hero-lead {
    max-width: 590px;
  }

  .portrait-stage {
    min-height: 520px;
  }

  .portrait-frame {
    inset-inline: 5% 8%;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps article,
  .steps article + article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }

  .steps article:last-child {
    border-bottom: 0;
  }

  .steps h3 {
    margin-top: 28px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer span:nth-child(2) {
    display: none;
  }

  .dashboard-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .storage-note {
    align-items: flex-start;
  }

  .form-grid,
  .drop-grid {
    grid-template-columns: 1fr;
  }

  .cover-zone {
    min-height: 130px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .button {
    width: 100%;
  }

  .watch-caption {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .share-button {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .shell,
  .dashboard,
  .watch-header,
  .watch-footer,
  .watch-main {
    width: calc(100% - 28px);
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .hero {
    min-height: 0;
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(52px, 16vw, 72px);
  }

  .hero-lead {
    margin-top: 29px;
    font-size: 15px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .portrait-stage {
    min-height: 395px;
  }

  .portrait-frame {
    inset: 5px 18px 5px 4px;
  }

  .vertical-word {
    right: -8px;
  }

  .how-section {
    padding-block: 72px 80px;
  }

  .section-heading h2 {
    font-size: 44px;
  }

  .steps {
    margin-top: 44px;
  }

  .site-footer {
    min-height: 88px;
  }

  .login-screen {
    padding: 26px 14px 36px;
  }

  .login-card {
    border-radius: 27px;
    padding: 34px 24px;
  }

  .login-card h1 {
    font-size: 43px;
  }

  .admin-header {
    min-height: 74px;
    padding-inline: 14px;
  }

  .status-pill {
    display: none;
  }

  .dashboard {
    padding-block: 46px 70px;
  }

  .dashboard-intro {
    margin-bottom: 33px;
  }

  .dashboard-intro h1 {
    font-size: 49px;
  }

  .upload-panel,
  .library-panel {
    border-radius: 27px;
    padding: 22px 16px;
  }

  .drop-zone {
    min-height: 150px;
    padding-inline: 17px;
  }

  .video-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 13px;
    border-radius: 18px;
  }

  .video-thumb {
    width: 78px;
  }

  .video-link {
    display: none;
  }

  .video-actions {
    justify-content: stretch;
  }

  .action-button:not(.delete-action) {
    flex: 1;
    justify-content: center;
  }

  .watch-header {
    min-height: 72px;
  }

  .watch-kicker {
    display: none;
  }

  .watch-main {
    min-height: calc(100vh - 138px);
    padding-block: 28px 54px;
  }

  .video-frame {
    border-radius: 20px;
  }

  .video-frame video {
    max-height: 59vh;
    aspect-ratio: auto;
    min-height: 230px;
  }

  .custom-play {
    width: 68px;
    height: 68px;
  }

  .watch-caption h1 {
    font-size: 39px;
  }

  .watch-footer span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
