@font-face {
  font-family: OPPO;
  src: url("/asset-8abad30ae24484b22812.ttf");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #26332f;
  --panel: #303e39;
  --text: #f4f3eb;
  --muted: #b9c2ba;
  --accent: #ff9b60;
  --border: #ffffff24;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 OPPO,
    system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button {
  color: inherit;
}
button[hidden],
[hidden] {
  display: none !important;
}
.header {
  max-width: 1440px;
  margin: auto;
  padding: 32px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.brand {
  font-size: 28px;
  letter-spacing: 0.1em;
  font-weight: 700;
  line-height: 1.15;
}
.brand span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.19em;
  margin-top: 8px;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
nav a {
  color: var(--muted);
}
nav a[aria-current],
nav a:hover {
  color: var(--accent);
}
.wrap {
  max-width: 1440px;
  padding: 0 5vw;
  margin: auto;
}
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 82px 0 64px;
  gap: 40px;
}
.eyebrow {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 22px;
}
h1 {
  font-size: clamp(48px, 7.5vw, 104px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  font-weight: 400;
  margin: 0;
}
h1 span {
  color: var(--accent);
}
.hero-copy {
  padding-bottom: 8px;
  font-size: 21px;
}
.muted {
  color: var(--muted);
  font-size: 16px;
}
.hero-copy .muted {
  margin-top: 30px;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.section-top h2,
h2 {
  font-weight: 400;
  font-size: 24px;
  margin: 0;
}
.section-top > span {
  color: var(--muted);
  font-size: 14px;
}
.collection {
  padding-bottom: 64px;
}
.notice {
  padding: 54px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}
.video-card {
  min-width: 0;
}
.video-open {
  border: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  background: none;
  display: block;
}
.thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16/10;
  background: #17231f;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.play {
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f5f2e9e8;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 30px #0003;
  transition:
    background 0.2s,
    transform 0.2s;
}
.play svg {
  width: 22px;
  fill: #26332f;
  margin-left: 4px;
}
.video-open:hover .play {
  background: var(--accent);
  transform: scale(1.08);
}
.card-title {
  font-size: 20px;
  font-weight: 400;
  margin: 16px 0 6px;
  overflow-wrap: anywhere;
}
.card-description {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0;
}
.footer {
  max-width: 1440px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: auto;
  padding: 28px 5vw;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.footer a {
  color: var(--text);
}
dialog {
  padding: 24px;
  background: #18231f;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: min(1100px, 94vw);
  max-height: 94svh;
  overflow: auto;
}
dialog::backdrop {
  background: #05110ce8;
  backdrop-filter: blur(8px);
}
.player-header {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.player-header h2 {
  font-size: 24px;
}
.player-header p {
  color: var(--muted);
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.icon-button {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 50%;
  font-size: 28px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  line-height: 1;
}
.player-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}
#player {
  display: block;
  width: 100%;
  max-height: 64svh;
  background: black;
  border-radius: 12px;
}
#player-message {
  color: var(--accent);
}
.primary,
.secondary {
  border: 1px solid transparent;
  border-radius: 40px;
  padding: 11px 25px;
  font-size: 16px;
  display: inline-block;
}
.primary {
  background: var(--accent);
  color: #18231f;
}
.secondary {
  background: transparent;
  border-color: var(--border);
}
.text-button {
  background: none;
  border: 0;
  padding: 0;
  font-size: 16px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.admin-wrap {
  padding-top: 48px;
  padding-bottom: 70px;
}
.admin-title {
  font-size: clamp(36px, 6vw, 64px);
}
.panel {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
  margin: 30px 0 48px;
}
.narrow {
  max-width: 560px;
}
label {
  display: block;
  color: var(--text);
  margin: 16px 0;
}
input,
textarea {
  display: block;
  width: 100%;
  background: #1d2b25;
  border: 1px solid #ffffff30;
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  margin-top: 8px;
}
textarea {
  resize: vertical;
}
.upload-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.file-zone {
  min-height: 280px;
  border: 1px dashed #b4c4b370;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  position: relative;
  background: #26332f;
}
.file-zone.dragging {
  border-color: var(--accent);
  background: #374b3d;
}
.file-zone input {
  width: 100%;
  font-size: 14px;
  margin-top: 20px;
}
.file-zone input::file-selector-button {
  background: #e9eee6;
  color: #25352a;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  margin-right: 8px;
}
.file-zone > span:not(.file-icon) {
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.file-icon {
  font-size: 40px;
  color: var(--accent);
}
progress {
  width: 100%;
  accent-color: var(--accent);
  margin-top: 20px;
}
.status:not(:empty) {
  border-left: 3px solid var(--accent);
  padding: 10px 16px;
  color: var(--accent);
  background: #ff9b600b;
}
.admin-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.admin-item header {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.admin-item h3 {
  margin: 0;
  font-weight: 400;
  font-size: 21px;
  overflow-wrap: anywhere;
}
.badge {
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}
.badge.live {
  color: var(--accent);
}
.admin-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.edit-fields {
  max-width: 720px;
}
.edit-fields label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 10px;
}
.edit-fields input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}
@media (max-width: 850px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-copy {
    font-size: 18px;
  }
  .upload-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .file-zone {
    min-height: 220px;
  }
}
@media (max-width: 560px) {
  .header {
    padding: 24px 20px;
  }
  .brand {
    font-size: 24px;
  }
  .brand span {
    font-size: 10px;
  }
  nav {
    gap: 16px;
  }
  nav a {
    font-size: 14px;
  }
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    padding: 52px 0 36px;
    display: block;
  }
  .hero-copy {
    margin-top: 26px;
  }
  .hero-copy br {
    display: none;
  }
  .hero-copy p {
    margin: 10px 0;
  }
  .hero-copy .muted {
    margin-top: 10px;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .section-top > span {
    font-size: 13px;
  }
  .section-top h2 {
    font-size: 22px;
  }
  .footer {
    padding: 24px 20px;
    flex-direction: column;
  }
  .panel {
    padding: 22px 18px;
  }
  .admin-wrap {
    padding-top: 36px;
  }
  .player-header h2 {
    font-size: 20px;
  }
  dialog {
    padding: 18px;
  }
  .thumbnail {
    aspect-ratio: 16/9;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-section {
  margin: 24px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.cover-section h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 0;
}
.cover-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
#cover-video {
  display: block;
  width: 100%;
  max-height: 360px;
  background: #111b16;
  border-radius: 12px;
}
#cover-position {
  padding: 0;
  accent-color: var(--accent);
}
#cover-time {
  color: var(--accent);
  margin-left: 12px;
}
#capture-cover {
  margin-top: 12px;
}
.cover-result {
  min-width: 0;
}
.cover-result > p:first-child {
  margin: 0 0 12px;
}
#cover-image {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  object-position: top;
  background: #17231f;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.danger {
  border: 1px solid #e78a7b;
  background: #492c29;
  color: #ffc2b5;
  border-radius: 40px;
  padding: 11px 25px;
  font-size: 16px;
}
.danger:hover {
  background: #65342e;
}
.delete-dialog {
  max-width: 520px;
}
.delete-dialog h2 {
  font-size: 26px;
}
.delete-dialog #delete-title {
  overflow-wrap: anywhere;
  color: var(--accent);
}
.delete-dialog .admin-actions {
  justify-content: flex-end;
}
.admin-cover {
  display: block;
  width: 160px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 16px;
  background: #17231f;
}
@media (max-width: 650px) {
  .cover-layout {
    grid-template-columns: 1fr;
  }
  .cover-result {
    max-width: 420px;
  }
  .danger {
    padding: 10px 18px;
  }
}
