:root {
  color-scheme: dark;
  --bg: #0b0d0f;
  --bg-soft: #101317;
  --panel: #14181c;
  --panel-strong: #1a1f24;
  --panel-hover: #20262c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f4ee;
  --muted: #9da3a4;
  --subtle: #707779;
  --accent: #b8f34a;
  --accent-ink: #101408;
  --coral: #ff7657;
  --aqua: #61d6c4;
  --gold: #f5c451;
  --danger: #ff5f63;
  --success: #70d69a;
  --header-height: 72px;
  --radius: 8px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

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

svg {
  flex: 0 0 auto;
}

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

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  display: inline-block;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--accent);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid var(--accent-ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(11, 13, 15, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1480px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: left;
}

.brand small {
  display: block;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-search {
  position: relative;
  width: min(360px, 34vw);
  margin-left: auto;
}

.header-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: var(--subtle);
  transform: translateY(-50%);
  pointer-events: none;
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  outline: 0;
  background: var(--panel);
  color: var(--text);
  transition: border-color 160ms ease, background 160ms ease;
}

.header-search input:focus {
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

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

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--text);
  font-weight: 700;
  line-height: 1;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
}

.button:hover {
  background: var(--panel-hover);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button.primary:hover {
  background: #c8ff64;
}

.button.coral {
  background: var(--coral);
  color: #1b0a06;
}

.button.ghost {
  border-color: var(--line);
  background: transparent;
}

.button.danger {
  background: rgba(255, 95, 99, 0.13);
  color: #ff9b9e;
  border-color: rgba(255, 95, 99, 0.24);
}

.button.small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.button.icon-only {
  width: 40px;
  min-height: 40px;
  padding: 0;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.icon-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.mobile-menu-button {
  display: none;
}

.user-menu {
  position: relative;
}

.avatar-button {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px 0 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
}

.avatar-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.avatar {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #11150b;
  font-size: 13px;
  font-weight: 800;
}

.avatar.small {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.avatar.large {
  width: 52px;
  height: 52px;
  font-size: 19px;
}

.avatar-button strong {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.user-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #171b1f;
  box-shadow: var(--shadow);
}

.popover-head {
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.popover-head strong,
.popover-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popover-head span {
  color: var(--muted);
  font-size: 12px;
}

.popover-item {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.popover-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.popover-item svg {
  width: 17px;
  height: 17px;
}

main {
  min-height: calc(100vh - var(--header-height));
}

.content-wrap {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
}

.short-feed {
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  background: #060708;
  overscroll-behavior-y: contain;
}

.short-feed::-webkit-scrollbar {
  display: none;
}

.short-item {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  padding: 16px 0;
  isolation: isolate;
}

.short-backdrop {
  position: absolute;
  inset: -40px;
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: blur(45px) saturate(0.8);
  opacity: 0.22;
  transform: scale(1.15);
}

.short-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 42%, transparent 0%, rgba(4, 5, 6, 0.34) 55%, rgba(4, 5, 6, 0.78) 100%),
    linear-gradient(180deg, rgba(6, 7, 8, 0.2), rgba(6, 7, 8, 0.72));
  pointer-events: none;
}

.short-stage {
  position: relative;
  width: min(430px, calc((100vh - var(--header-height) - 32px) * 0.5625), calc(100vw - 36px));
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - var(--header-height) - 32px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0c0e10;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.short-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #090a0b;
}

.short-video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, transparent 26%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.34) 38%, transparent 65%);
  pointer-events: none;
}

.short-topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.short-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 9, 10, 0.42);
  backdrop-filter: blur(12px);
}

.short-tabs button {
  min-height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.short-tabs button.active {
  background: #f7f7f2;
  color: #0c0d0e;
}

.short-round-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(8, 9, 10, 0.48);
  color: #fff;
  backdrop-filter: blur(12px);
}

.short-round-button svg {
  width: 17px;
  height: 17px;
}

.short-copy {
  position: absolute;
  left: 16px;
  right: 78px;
  bottom: 28px;
  z-index: 2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.short-creator-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.short-creator-line strong {
  font-size: 14px;
}

.short-creator-line span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.short-copy h1 {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 31px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.short-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.short-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 700;
}

.short-actions {
  position: absolute;
  right: 12px;
  bottom: 28px;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 13px;
}

.short-avatar-button {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: transparent;
}

.short-avatar-button .avatar {
  width: 100%;
  height: 100%;
}

.short-avatar-button > span {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff5f8d;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transform: translateX(-50%);
}

.short-action {
  min-width: 52px;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.short-action > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 9, 10, 0.42);
  backdrop-filter: blur(10px);
}

.short-action svg {
  width: 20px;
  height: 20px;
}

.short-action strong {
  font-size: 10px;
  font-weight: 750;
}

.short-action.liked {
  color: #ff5f8d;
}

.short-action.liked svg {
  fill: currentColor;
}

.short-music {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(8, 9, 10, 0.42);
  color: #fff;
  animation: music-spin 5s linear infinite;
}

.short-music svg {
  width: 17px;
  height: 17px;
}

.short-play-state {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(6, 7, 8, 0.5);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease;
  backdrop-filter: blur(12px);
}

.short-play-state.show {
  opacity: 1;
  pointer-events: auto;
}

.short-play-state svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.short-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 4;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.short-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.short-counter {
  position: absolute;
  left: 14px;
  top: 62px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feed-hint {
  position: absolute;
  right: 24px;
  top: 50%;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
  text-align: right;
  transform: translateY(-50%);
}

.feed-hint span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.feed-hint svg {
  width: 14px;
  height: 14px;
}

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

.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #111;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.68) 42%, rgba(5, 6, 7, 0.2) 72%),
    linear-gradient(0deg, var(--bg) 0%, transparent 38%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 76px;
}

.hero-copy {
  width: min(650px, 72vw);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow svg {
  width: 15px;
  height: 15px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-subtitle {
  margin: 16px 0 0;
  color: #d4d7d5;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 650;
}

.hero-description {
  max-width: 560px;
  margin: 14px 0 0;
  color: #b0b5b4;
  line-height: 1.75;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
  color: #c6cac8;
  font-size: 13px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg {
  width: 15px;
  height: 15px;
  color: var(--subtle);
}

.section {
  padding: 58px 0;
}

.section.compact {
  padding: 38px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.text-link svg {
  width: 17px;
  height: 17px;
}

.category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.category-chip:hover,
.category-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px 15px;
}

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

.video-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #171b1f;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(.2,.8,.2,1), filter 250ms ease;
}

.video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 45%);
  opacity: 0.7;
  transition: opacity 180ms ease;
}

.video-cover:hover img {
  transform: scale(1.045);
}

.video-cover:hover::after {
  opacity: 1;
}

.cover-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(8, 10, 11, 0.68);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -45%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.video-cover:hover .cover-play {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.cover-play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.duration-badge {
  position: absolute;
  z-index: 2;
  right: 9px;
  bottom: 9px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.access-badge {
  position: absolute;
  z-index: 2;
  left: 9px;
  top: 9px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.access-badge.vip,
.short-access-badge {
  background: #f5c451;
  color: #1b1404;
}

.inline-vip {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  background: #f5c451;
  color: #1b1404;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.07em;
  vertical-align: middle;
}

.inline-vip.large {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.short-access-badge {
  position: absolute;
  z-index: 3;
  right: 14px;
  top: 62px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}

.vip-paywall {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: min(280px, calc(100% - 40px));
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 20px;
  border: 1px solid rgba(245, 196, 81, 0.32);
  border-radius: 8px;
  background: rgba(12, 13, 15, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -48%) scale(0.97);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(16px);
}

.vip-paywall.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.vip-paywall > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 196, 81, 0.14);
  color: #f5c451;
}

.vip-paywall > span svg {
  width: 21px;
  height: 21px;
}

.vip-paywall strong {
  font-size: 17px;
}

.vip-paywall p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.watch-access-badge {
  position: absolute;
  z-index: 5;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f5c451;
  color: #1b1404;
  font-size: 11px;
  font-weight: 850;
}

.watch-paywall {
  width: min(340px, calc(100% - 40px));
}

.video-card-body {
  display: flex;
  gap: 10px;
  padding-top: 12px;
}

.video-card-info {
  min-width: 0;
  flex: 1;
}

.video-card-title {
  width: 100%;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.45;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card-title:hover {
  color: var(--accent);
}

.video-card-sub {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--subtle);
  font-size: 12px;
}

.card-like {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--subtle);
}

.card-like:hover,
.card-like.liked {
  color: var(--coral);
}

.card-like svg {
  width: 17px;
  height: 17px;
}

.card-like.liked svg {
  fill: currentColor;
}

.empty-state {
  min-height: 300px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 40px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: var(--subtle);
}

.empty-state h3 {
  margin: 0 0 6px;
  color: var(--text);
}

.empty-state p {
  max-width: 420px;
  margin: 0;
}

.page-head {
  padding: 52px 0 28px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.breadcrumbs button:hover {
  color: var(--text);
}

.breadcrumbs svg {
  width: 14px;
  height: 14px;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
  padding-bottom: 76px;
}

.video-player-shell {
  width: min(480px, 100%);
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  margin: 0 auto;
}

.video-player-shell video {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
}

.watch-info {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.watch-info h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.watch-subtitle {
  margin: 8px 0 0;
  color: #c3c8c6;
  font-size: 16px;
}

.watch-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.creator {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.creator strong,
.creator span {
  display: block;
}

.creator span {
  color: var(--muted);
  font-size: 12px;
}

.watch-actions {
  display: flex;
  gap: 8px;
}

.watch-actions .button.liked {
  background: rgba(255, 118, 87, 0.13);
  color: var(--coral);
  border-color: rgba(255, 118, 87, 0.24);
}

.watch-description {
  padding: 22px 0 7px;
  color: #c0c5c3;
  line-height: 1.85;
  white-space: pre-wrap;
}

.comments-section {
  width: min(720px, 100%);
  margin: 0 auto;
  padding-top: 22px;
}

.comments-section h3,
.related-section h3 {
  margin: 0 0 20px;
  font-size: 18px;
}

.comment-form {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

.comment-input-wrap {
  position: relative;
}

.comment-input-wrap textarea {
  width: 100%;
  min-height: 94px;
  resize: vertical;
  padding: 13px 14px 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: var(--panel);
  color: var(--text);
}

.comment-input-wrap textarea:focus {
  border-color: var(--line-strong);
}

.comment-submit {
  position: absolute;
  right: 8px;
  bottom: 8px;
}

.comment-list {
  display: grid;
  gap: 20px;
}

.comment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
}

.comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-head strong {
  font-size: 13px;
}

.comment-head time {
  color: var(--subtle);
  font-size: 12px;
}

.comment p {
  margin: 5px 0 0;
  color: #c3c8c6;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.login-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.login-inline p {
  margin: 0;
  color: var(--muted);
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.related-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  background: var(--panel);
}

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

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.related-item:hover strong {
  color: var(--accent);
}

.auth-page {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: stretch;
}

.auth-visual {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background-image: url("/assets/vertical/short-01.jpg");
  background-position: center;
  background-size: cover;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 7, 0.25), var(--bg) 100%);
}

.auth-visual-copy {
  position: absolute;
  z-index: 2;
  left: 8vw;
  bottom: 9vh;
  width: min(560px, 60vw);
}

.auth-visual-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.auth-panel {
  display: flex;
  align-items: center;
  padding: 60px;
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
}

.auth-form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.auth-form h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.auth-form > p {
  margin: 8px 0 28px;
  color: var(--muted);
}

.form-stack {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #cdd1cf;
  font-size: 13px;
  font-weight: 650;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: var(--panel);
  color: var(--text);
  transition: border-color 160ms ease, background 160ms ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(184, 243, 74, 0.55);
  background: var(--panel-strong);
}

.field-hint {
  color: var(--subtle);
  font-size: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-switch {
  margin-top: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.demo-credentials {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.demo-credentials strong {
  color: var(--text);
}

.admin-shell {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
}

.admin-sidebar-title {
  padding: 0 10px 14px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-nav {
  display: grid;
  gap: 5px;
}

.admin-nav button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.admin-nav button:hover,
.admin-nav button.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.admin-nav button.active {
  box-shadow: inset 2px 0 0 var(--accent);
}

.admin-nav svg {
  width: 18px;
  height: 18px;
}

.admin-main {
  min-width: 0;
  padding: 34px;
}

.admin-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-topline h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.admin-topline p {
  margin: 5px 0 0;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-block {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.stat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--accent);
}

.stat-icon svg {
  width: 17px;
  height: 17px;
}

.stat-block span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stat-block strong {
  display: block;
  margin-top: 2px;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.panel-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.panel-block-head h2 {
  margin: 0;
  font-size: 16px;
}

.simple-list {
  padding: 5px 0;
}

.simple-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
}

.simple-row + .simple-row {
  border-top: 1px solid var(--line);
}

.simple-row-cover {
  width: 42px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 5px;
  background: var(--panel-strong);
}

.simple-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.simple-row-info {
  min-width: 0;
  flex: 1;
}

.simple-row-info strong,
.simple-row-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-row-info strong {
  font-size: 13px;
}

.simple-row-info span {
  color: var(--muted);
  font-size: 12px;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.table-toolbar h2 {
  margin: 0;
  font-size: 20px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: #d4d8d6;
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-video {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 260px;
}

.table-video img {
  width: 54px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  flex: 0 0 auto;
  border-radius: 5px;
  background: var(--panel-strong);
}

.table-video strong,
.table-video span {
  display: block;
}

.table-video span {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-actions button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
}

.table-actions button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.table-actions button.danger:hover {
  border-color: rgba(255, 95, 99, 0.35);
  color: #ff9b9e;
  background: rgba(255, 95, 99, 0.08);
}

.table-actions button.vip-action {
  border-color: rgba(245, 196, 81, 0.45);
  color: #f5c451;
  background: rgba(245, 196, 81, 0.08);
}

.table-actions svg {
  width: 16px;
  height: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #c9cecc;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.badge.success {
  background: rgba(112, 214, 154, 0.12);
  color: #8ce5b0;
}

.badge.gold {
  background: rgba(245, 196, 81, 0.13);
  color: #f7cf76;
}

.badge.coral {
  background: rgba(255, 118, 87, 0.13);
  color: #ff9c85;
}

.badge.muted {
  background: rgba(255, 255, 255, 0.045);
  color: var(--subtle);
}

.account-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 680px);
  gap: 48px;
  padding: 56px 0 80px;
}

.account-profile {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  align-self: start;
}

.account-profile h2 {
  margin: 14px 0 2px;
  font-size: 22px;
}

.account-profile p {
  margin: 0;
  color: var(--muted);
}

.account-form-section {
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.account-form-section h2 {
  margin: 0 0 20px;
  font-size: 20px;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.color-option {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.color-option.active {
  border-color: var(--text);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 4, 5, 0.78);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #15191d;
  box-shadow: var(--shadow);
}

.modal.wide {
  width: min(760px, 100%);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(21, 25, 29, 0.96);
  backdrop-filter: blur(12px);
}

.modal-head h2 {
  margin: 0;
  font-size: 19px;
}

.modal-body {
  padding: 22px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
}

.modal-copy {
  margin: 0 0 20px;
  color: var(--muted);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #343b40;
  transition: background 180ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f1f1ed;
  transition: transform 180ms ease;
}

.switch input:checked + span {
  background: var(--accent);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.upload-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-field input[type="text"] {
  min-width: 0;
  flex: 1;
}

.upload-progress {
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 120ms linear;
}

.video-cover-tools {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.video-cover-tools > div {
  display: grid;
  gap: 4px;
}

.video-cover-tools > div span {
  color: var(--muted);
  font-size: 12px;
}

.video-cover-tools video {
  width: min(220px, 100%);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 6px;
  background: #050607;
}

.video-cover-tools .button {
  justify-self: center;
}

.cover-preview {
  width: 96px;
  aspect-ratio: 9 / 16;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: var(--panel-strong);
}

.toast-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  width: min(360px, calc(100vw - 44px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  background: #1b2024;
  box-shadow: var(--shadow);
  color: #e9ece9;
  font-size: 13px;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #161a1e;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  animation: shimmer 1.2s infinite;
}

.page-loading {
  min-height: 520px;
  display: grid;
  place-content: center;
  color: var(--muted);
}

.mobile-nav {
  display: none;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

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

@media (max-width: 1180px) {
  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .watch-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    width: min(100% - 28px, 1480px);
    gap: 14px;
  }

  .main-nav,
  .header-search,
  .user-menu {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .mobile-nav.open {
    position: fixed;
    z-index: 48;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    background: #111519;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
  }

  .mobile-nav form {
    position: relative;
  }

  .mobile-nav input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
  }

  .mobile-nav button {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 560px;
  }

  .hero-inner {
    width: min(100% - 28px, 1480px);
  }

  .hero-copy {
    width: min(640px, 100%);
  }

  .content-wrap {
    width: min(100% - 28px, 1480px);
  }

  .feed-hint {
    display: none;
  }

  .short-stage {
    width: min(430px, calc((100vh - var(--header-height) - 24px) * 0.5625), calc(100vw - 24px));
    max-height: calc(100vh - var(--header-height) - 24px);
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .watch-layout {
    grid-template-columns: 1fr;
  }

  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 390px;
  }

  .auth-visual-copy {
    left: 24px;
    bottom: 36px;
    width: calc(100% - 48px);
  }

  .auth-panel {
    padding: 46px 24px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }

  .admin-sidebar-title {
    display: none;
  }

  .admin-nav {
    display: flex;
    width: max-content;
  }

  .admin-nav button {
    min-height: 38px;
    white-space: nowrap;
  }

  .admin-nav button.active {
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  .admin-main {
    padding: 26px 18px;
  }

  .account-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .account-profile {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-actions .button:not(.primary) {
    display: none;
  }

  .hero {
    min-height: 600px;
  }

  .short-item {
    padding: 10px 0;
  }

  .short-copy {
    left: 14px;
    right: 70px;
    bottom: 24px;
  }

  .short-copy h1 {
    font-size: 23px;
  }

  .short-actions {
    right: 9px;
    gap: 11px;
  }

  .short-action > span {
    width: 37px;
    height: 37px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(5, 6, 7, 0.9), rgba(5, 6, 7, 0.54)),
      linear-gradient(0deg, var(--bg) 0%, transparent 48%);
  }

  .hero-inner {
    padding: 80px 0 54px;
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .section {
    padding: 40px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 10px;
  }

  .video-cover {
    border-radius: 7px;
  }

  .cover-play {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .watch-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .watch-actions {
    width: 100%;
  }

  .watch-actions .button {
    flex: 1;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

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

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

  .auth-panel {
    padding: 38px 20px;
  }

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

  .admin-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topline .button {
    width: 100%;
  }

  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-toolbar .button {
    width: 100%;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 94vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 10px 10px 0 0;
  }

  .modal-body {
    padding: 18px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@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;
  }
}
