:root {
  --ink-950: #10202a;
  --ink-900: #142732;
  --ink-850: #1a313c;
  --ink-700: #38515a;
  --ink-500: #718189;
  --ink-400: #93a0a4;
  --paper: #f4f7f5;
  --white: #ffffff;
  --line: #dfe7e4;
  --line-dark: rgba(255, 255, 255, 0.11);
  --teal: #4d9d8d;
  --teal-dark: #367c70;
  --teal-soft: #e3f0ed;
  --coral: #d9795e;
  --coral-soft: #fae9e3;
  --yellow: #e1b75d;
  --yellow-soft: #f8f0d8;
  --danger: #c35d58;
  --shadow-soft: 0 10px 30px rgba(27, 47, 54, 0.07);
  --shadow-modal: 0 24px 80px rgba(8, 25, 34, 0.25);
  --radius: 8px;
  --sidebar-width: 264px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-950);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

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

button,
a {
  outline: none;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(77, 157, 141, 0.34);
  outline-offset: 2px;
}

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

[hidden],
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.icon,
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

[data-icon] svg {
  display: block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

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

.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 26px 18px 18px;
  color: #dfe9e7;
  background: var(--ink-900);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px;
}

.brand-mark {
  width: 31px;
  height: 31px;
  color: var(--ink-900);
  background: var(--yellow);
  border-radius: 9px;
  font-size: 18px;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.08;
}

.brand-copy strong {
  color: #f5f8f5;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 4px;
  color: #84979d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.workspace-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  margin-top: 31px;
  padding: 10px 11px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.workspace-avatar,
.sidebar-user-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink-900);
  background: #c8e4dd;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.workspace-copy,
.sidebar-user-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  line-height: 1.3;
}

.workspace-copy strong,
.sidebar-user-copy strong {
  overflow: hidden;
  color: #e6efec;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-copy small,
.sidebar-user-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: #82959b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-status,
.sidebar-user-dot,
.live-indicator {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #72c1a8;
  box-shadow: 0 0 0 4px rgba(114, 193, 168, 0.11);
}

.side-nav {
  margin-top: 31px;
}

.nav-label,
.section-kicker,
.modal-kicker {
  margin: 0 10px 10px;
  color: #7e959c;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  margin: 3px 0;
  padding: 0 11px;
  color: #a9babd;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  font-weight: 550;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.nav-item:hover,
.nav-item.is-active {
  color: #f3f7f5;
  background: rgba(255, 255, 255, 0.09);
}

.nav-item.is-active::before {
  position: absolute;
  left: -18px;
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--yellow);
  content: "";
}

.nav-button {
  cursor: pointer;
}

.nav-icon {
  width: 17px;
  color: #82999d;
  font-size: 16px;
}

.nav-item:hover .nav-icon,
.nav-item.is-active .nav-icon {
  color: #c9e6df;
}

.nav-count,
.nav-plus {
  margin-left: auto;
  color: #7c9499;
  font-size: 10px;
}

.nav-plus {
  color: #bbdcd3;
  font-size: 15px;
}

.sidebar-folders {
  min-height: 0;
  margin-top: 34px;
}

.sidebar-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #7e959c;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.folder-total {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  color: #a9c8c2;
  border-radius: 4px;
  background: rgba(77, 157, 141, 0.17);
  font-size: 9px;
  letter-spacing: 0;
}

.folder-list {
  display: flex;
  max-height: 196px;
  margin-top: 10px;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.folder-list::-webkit-scrollbar {
  width: 4px;
}

.folder-list::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.folder-list-empty {
  padding: 7px 10px;
  color: #647d83;
  font-size: 11px;
}

.folder-list-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 31px;
  padding: 0 10px;
  color: #9aafb2;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.folder-list-item span:first-child {
  color: #72908f;
  font-size: 13px;
}

.folder-list-item strong {
  margin-left: auto;
  color: #698087;
  font-size: 9px;
  font-weight: 500;
}

.sidebar-footer {
  margin-top: auto;
}

.storage-meter {
  padding: 13px 12px 12px;
  border-top: 1px solid var(--line-dark);
}

.storage-meter-heading {
  display: flex;
  justify-content: space-between;
  color: #a6b8ba;
  font-size: 10px;
}

.storage-meter-heading span:last-child {
  color: #72c1a8;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.storage-track {
  height: 4px;
  margin: 9px 0 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.storage-track span {
  display: block;
  width: 33%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.storage-meter small {
  color: #668087;
  font-size: 9px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 10px 2px;
  border-top: 1px solid var(--line-dark);
}

.sidebar-user-avatar {
  width: 28px;
  height: 28px;
  color: #e7f2ef;
  background: #456e70;
  font-size: 10px;
}

.sidebar-user-copy strong {
  font-size: 10px;
}

.sidebar-user-copy small {
  font-size: 9px;
}

.sidebar-user-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.sidebar-backdrop {
  position: fixed;
  z-index: 35;
  inset: 0;
  background: rgba(10, 25, 33, 0.5);
}

.main-shell {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 76px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 245, 0.94);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 160px;
  color: var(--ink-950);
  font-size: 12px;
}

.breadcrumb-muted,
.breadcrumb-separator {
  color: #98a4a5;
}

.breadcrumbs strong {
  font-weight: 650;
}

.global-search {
  display: flex;
  align-items: center;
  width: min(340px, 34vw);
  height: 36px;
  margin-left: auto;
  padding: 0 10px;
  color: #879598;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.73);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.global-search:focus-within {
  border-color: rgba(77, 157, 141, 0.65);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(77, 157, 141, 0.11);
}

.search-icon {
  width: 16px;
  margin-right: 8px;
  color: #7b8d91;
  font-size: 15px;
}

.global-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0;
  color: var(--ink-950);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}

.global-search input::placeholder {
  color: #a3aeae;
}

.global-search kbd,
.drop-zone-hint kbd {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 2px;
  place-items: center;
  color: #8a9899;
  border: 1px solid #d8e0dd;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #f5f8f7;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #7a8b8e;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  transition: color 160ms ease, background 160ms ease;
}

.icon-button:hover {
  color: var(--ink-950);
  background: #e8efec;
}

[data-tooltip]::after {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  left: 50%;
  padding: 5px 7px;
  color: #f4f8f6;
  border-radius: 4px;
  background: var(--ink-950);
  content: attr(data-tooltip);
  font-size: 10px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.auth-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.auth-action:hover,
.auth-action.is-authenticated {
  color: var(--teal-dark);
  border-color: #b8d8d1;
  background: #f0f8f5;
}

.auth-action-icon {
  color: var(--teal);
  font-size: 14px;
}

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

.content {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 28px 42px 40px;
}

.hero {
  position: relative;
  display: flex;
  min-height: 274px;
  overflow: hidden;
  padding: 39px 46px;
  color: #edf6f2;
  border-radius: var(--radius);
  background: var(--ink-850);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 1px;
  background: rgba(218, 239, 232, 0.18);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #a5c7bf;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.eyebrow-line {
  width: 26px;
  height: 1px;
  background: #587570;
}

.hero h1 {
  margin: 19px 0 12px;
  color: #f4faf7;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.hero h1 em {
  color: #e9c98a;
  font-style: normal;
}

.hero-description {
  max-width: 475px;
  margin: 0;
  color: #a7b9b8;
  font-size: 12px;
  line-height: 1.8;
}

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

.primary-button,
.dark-button,
.outline-button,
.select-button,
.quiet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.primary-button {
  padding: 0 14px;
  color: #173039;
  background: #e8c67e;
}

.primary-button:hover {
  background: #f0d28f;
  transform: translateY(-1px);
}

.primary-button [data-icon] {
  font-size: 15px;
}

.quiet-link {
  min-height: 28px;
  color: #b4cac5;
  background: transparent;
}

.quiet-link:hover {
  color: #f0f7f3;
}

.quiet-link [data-icon] {
  font-size: 14px;
  transition: transform 160ms ease;
}

.quiet-link:hover [data-icon] {
  transform: translateX(3px);
}

.hero-orbit {
  position: absolute;
  top: 50%;
  right: 9%;
  width: 266px;
  height: 194px;
  transform: translateY(-50%);
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(175, 217, 205, 0.22);
  border-radius: 22px;
  transform: rotate(-23deg);
}

.orbit-ring-one {
  inset: 12px 9px 24px 34px;
}

.orbit-ring-two {
  inset: 0 40px 39px 0;
  border-color: rgba(224, 183, 93, 0.3);
  transform: rotate(26deg);
}

.orbit-core {
  position: absolute;
  top: 51px;
  left: 90px;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  color: #17313a;
  border: 8px solid rgba(245, 229, 175, 0.15);
  border-radius: 18px;
  background: #e4bb6a;
  box-shadow: 0 16px 26px rgba(4, 17, 23, 0.2);
  font-size: 28px;
  transform: rotate(-8deg);
}

.orbit-label {
  position: absolute;
  color: #769492;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.17em;
}

.orbit-label-one {
  top: 21px;
  right: 5px;
}

.orbit-label-two {
  bottom: 15px;
  left: 21px;
  color: #bf9e5d;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(170px, 0.85fr);
  gap: 10px;
  margin-top: 12px;
}

.stat-card,
.stat-aside {
  min-height: 132px;
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.stat-card-primary {
  color: #e9f5f0;
  border-color: var(--ink-850);
  background: var(--ink-850);
}

.stat-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7c8a8d;
  font-size: 10px;
  font-weight: 600;
}

.stat-card-primary .stat-card-top {
  color: #a9c5be;
}

.stat-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #356f69;
  border-radius: 6px;
  background: var(--teal-soft);
  font-size: 14px;
}

.stat-icon-coral {
  color: #ad604b;
  background: var(--coral-soft);
}

.stat-icon-teal {
  color: #397a71;
  background: #e1f0ec;
}

.stat-card-primary .stat-icon {
  color: #d6f0e8;
  background: rgba(125, 204, 181, 0.15);
}

.stat-value {
  margin-top: 13px;
  color: var(--ink-950);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-card-primary .stat-value {
  color: #f5fbf8;
}

.stat-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #9aa7a8;
  font-size: 10px;
}

.stat-card-primary .stat-note {
  color: #8fb1a9;
}

.trend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #70b79c;
}

.stat-aside {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-700);
  background: #eef4f1;
}

.stat-aside-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #8f7641;
  border-radius: 50%;
  background: #f2e6bf;
  font-size: 16px;
}

.stat-aside span:last-child {
  display: flex;
  flex-direction: column;
}

.stat-aside strong {
  font-size: 11px;
  font-weight: 700;
}

.stat-aside small {
  margin-top: 4px;
  color: #82938f;
  font-size: 9px;
  line-height: 1.4;
}

.library-section {
  margin-top: 38px;
  scroll-margin-top: 24px;
}

.section-heading,
.library-toolbar,
.pagination-bar,
.folder-strip,
.sidebar-section-heading {
  display: flex;
  align-items: center;
}

.section-heading {
  justify-content: space-between;
}

.section-heading .section-kicker {
  margin: 0 0 5px;
  color: #9aa8a8;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink-950);
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 25px;
  font-weight: 650;
  line-height: 1.15;
}

.section-heading-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8d9b9d;
  font-size: 10px;
}

.section-heading-meta .live-indicator {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.folder-strip {
  gap: 15px;
  min-height: 45px;
  margin-top: 20px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf4f1;
}

.folder-strip-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: #687c7d;
  font-size: 10px;
  font-weight: 650;
}

.folder-strip-icon {
  color: #63968b;
  font-size: 15px;
}

.folder-chips {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}

.folder-chip,
.muted-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 5px 8px;
  color: #5c7777;
  border: 1px solid #d4e4df;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.66);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  white-space: nowrap;
}

.folder-chip strong {
  color: #90a3a0;
  font-weight: 500;
}

.muted-chip {
  color: #91a2a1;
  border-color: transparent;
  background: transparent;
  font-family: inherit;
}

.library-toolbar {
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.result-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #869496;
  font-size: 11px;
}

.result-summary strong {
  color: var(--ink-950);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.result-divider {
  width: 1px;
  height: 13px;
  margin: 0 4px;
  background: #d3ddda;
}

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

.outline-button,
.select-button {
  padding: 0 10px;
  color: #64787a;
  border: 1px solid var(--line);
  background: var(--white);
}

.outline-button:hover,
.select-button:hover {
  color: var(--teal-dark);
  border-color: #bdd9d2;
  background: #f3faf7;
}

.outline-button [data-icon],
.select-button [data-icon] {
  font-size: 14px;
}

.outline-button strong {
  display: grid;
  min-width: 17px;
  height: 17px;
  margin-left: 2px;
  place-items: center;
  color: #f5fbf8;
  border-radius: 50%;
  background: var(--teal);
  font-size: 9px;
}

.select-button {
  gap: 5px;
  color: #7b898b;
}

.select-button strong {
  color: var(--ink-950);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.select-button [data-icon] {
  color: #94a2a2;
  font-size: 12px;
}

.native-page-size {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.list-shell {
  position: relative;
  min-height: 184px;
  margin-top: 10px;
}

.desktop-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 5px 18px rgba(25, 50, 55, 0.025);
}

.video-table {
  width: 100%;
  min-width: 890px;
  border-collapse: collapse;
  table-layout: fixed;
}

.video-table th {
  height: 42px;
  padding: 0 14px;
  color: #94a1a1;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.video-table th:nth-child(1) {
  width: 48px;
}

.video-table th:nth-child(2) {
  width: 34%;
}

.video-table th:nth-child(3) {
  width: 115px;
}

.video-table th:nth-child(4) {
  width: 80px;
}

.video-table th:nth-child(5) {
  width: 190px;
}

.video-table th:nth-child(6) {
  width: 90px;
}

.video-table th:nth-child(7) {
  width: 103px;
}

.video-table td {
  height: 68px;
  padding: 0 14px;
  color: #657578;
  border-bottom: 1px solid #edf1ef;
  font-size: 11px;
  vertical-align: middle;
}

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

.video-table tbody tr {
  transition: background 140ms ease;
}

.video-table tbody tr:hover {
  background: #f8fbfa;
}

.check-column,
.video-table td:first-child {
  padding-right: 2px;
  padding-left: 14px;
  text-align: center;
}

.actions-column {
  text-align: right !important;
}

input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.video-file-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.video-file-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  color: #a76d50;
  border-radius: 6px;
  background: #f7e7df;
  font-size: 15px;
}

.video-file-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.video-title-link {
  overflow: hidden;
  color: #2d464c;
  font-size: 11.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-title-link:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.video-path {
  overflow: hidden;
  margin-top: 2px;
  color: #a1acae;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  color: #65837e;
  border-radius: 4px;
  background: #eef5f2;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}

.folder-badge [data-icon] {
  font-size: 11px;
}

.mono-value {
  overflow: hidden;
  color: #869496;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-value,
.duration-value,
.size-value {
  color: #657578;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.row-action {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: #91a0a0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

.row-action:hover {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.row-action.delete-action:hover {
  color: var(--danger);
  background: var(--coral-soft);
}

.mobile-card-list {
  display: none;
}

.loading-state {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 21px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.loading-line {
  height: 12px;
  border-radius: 4px;
  background: #e7eeeb;
  animation: loading-pulse 1.3s ease-in-out infinite alternate;
}

.loading-line-head {
  width: 74%;
  height: 17px;
}

.loading-line:nth-child(3) {
  width: 89%;
  animation-delay: 120ms;
}

.loading-line:nth-child(4) {
  width: 62%;
  animation-delay: 240ms;
}

.loading-state > span {
  margin-top: 4px;
  color: #91a1a0;
  font-size: 10px;
}

@keyframes loading-pulse {
  from { opacity: 0.54; }
  to { opacity: 1; }
}

.error-state,
.empty-state {
  display: flex;
  align-items: center;
  min-height: 184px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

.error-state-icon {
  color: var(--danger);
  font-size: 24px;
}

.error-state strong,
.empty-state strong {
  color: var(--ink-700);
  font-size: 13px;
}

.error-state > span:not(.error-state-icon),
.empty-state > span {
  max-width: 360px;
  color: #9aa7a7;
  font-size: 10px;
}

.error-state .outline-button {
  margin-top: 7px;
}

.empty-state-visual {
  position: relative;
  display: grid;
  width: 56px;
  height: 49px;
  margin-bottom: 3px;
  place-items: center;
  color: #7ba79e;
  border: 1px solid #b8d8d1;
  border-radius: 9px;
  background: #eff8f5;
  font-size: 22px;
}

.small-button {
  min-height: 33px;
  margin-top: 9px;
  font-size: 10px;
}

.pagination-bar {
  justify-content: space-between;
  gap: 16px;
  min-height: 57px;
}

.page-range {
  color: #99a5a5;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 3px;
}

.page-button {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  place-items: center;
  color: #78898a;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.page-button:hover:not(:disabled) {
  color: var(--ink-950);
  background: #e6eeeb;
}

.page-button.is-current {
  color: #f1f8f5;
  background: var(--ink-850);
}

.page-button:disabled {
  color: #c1cbca;
  cursor: not-allowed;
}

.page-ellipsis {
  width: 24px;
  color: #aab5b4;
  text-align: center;
}

.app-footer {
  display: flex;
  gap: 8px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 42px 24px;
  color: #a4afad;
  font-size: 9px;
}

.footer-separator {
  color: #c4ceca;
}

.modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 25, 33, 0.62);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 690px);
  max-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid rgba(213, 229, 223, 0.78);
  border-radius: 9px;
  background: #fbfdfc;
  box-shadow: var(--shadow-modal);
  animation: modal-enter 180ms ease-out;
}

@keyframes modal-enter {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 69px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.modal-title-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
}

.modal-title-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #356f69;
  border-radius: 7px;
  background: var(--teal-soft);
  font-size: 17px;
}

.upload-title-icon {
  color: #a6674e;
  background: var(--coral-soft);
}

.modal-kicker {
  margin: 0 0 3px;
  color: #9aaaa8;
  font-size: 8px;
}

.modal-header h2 {
  margin: 0;
  color: var(--ink-950);
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.1;
}

.modal-close {
  color: #98a5a5;
}

.login-panel {
  width: min(100%, 414px);
}

.login-form {
  padding: 23px 25px 26px;
}

.modal-intro {
  margin: 0 0 21px;
  color: #829192;
  font-size: 11px;
  line-height: 1.8;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: #546a6d;
  font-size: 10px;
  font-weight: 700;
}

.password-field,
.date-input-wrap {
  display: flex;
  align-items: center;
  height: 41px;
  padding: 0 10px;
  color: #8ea09e;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.password-field:focus-within,
.date-input-wrap:focus-within {
  border-color: rgba(77, 157, 141, 0.67);
  box-shadow: 0 0 0 3px rgba(77, 157, 141, 0.11);
}

.password-field > [data-icon],
.date-input-wrap > [data-icon] {
  margin-right: 8px;
  font-size: 15px;
}

.password-field input,
.date-input-wrap input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0;
  color: var(--ink-950);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.password-field input::placeholder {
  color: #afbab8;
}

.password-toggle {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #9aa8a6;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
}

.password-toggle:hover {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.field-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 10px;
}

.form-submit {
  width: 100%;
  margin-top: 22px;
}

.upload-panel {
  display: flex;
  flex-direction: column;
}

.upload-body {
  min-height: 0;
  overflow-y: auto;
  padding: 21px 22px 18px;
}

.upload-config-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.date-field {
  width: 172px;
}

.date-input-wrap {
  height: 37px;
  padding-left: 9px;
}

.date-input-wrap input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.upload-path-note {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  color: #849594;
  font-size: 10px;
}

.upload-path-note > [data-icon] {
  color: var(--teal);
  font-size: 15px;
}

.upload-path-note strong {
  color: #627977;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 500;
}

.upload-path-note b {
  color: var(--teal-dark);
  font-weight: 650;
}

.drop-zone {
  display: flex;
  min-height: 172px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
  color: #758887;
  border: 1px dashed #b7ccc6;
  border-radius: 8px;
  background: #f4faf7;
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging,
.drop-zone:focus-visible {
  border-color: var(--teal);
  background: #edf8f4;
}

.drop-zone.is-dragging {
  transform: scale(1.006);
}

.drop-zone-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 13px;
  place-items: center;
  color: #528e82;
  border: 1px solid #c3ddd6;
  border-radius: 50%;
  background: #e4f2ee;
  font-size: 20px;
}

.drop-zone > strong {
  color: #486766;
  font-size: 12px;
  font-weight: 700;
}

.drop-zone > span:not(.drop-zone-icon):not(.drop-zone-hint) {
  margin-top: 6px;
  color: #94a6a3;
  font-size: 10px;
}

.drop-zone-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  color: #9aaba8;
  font-size: 9px;
}

.drop-zone-hint kbd {
  min-width: 16px;
  height: 16px;
  margin: 0;
  font-size: 8px;
}

.drop-zone-hint i {
  width: 3px;
  height: 3px;
  margin: 0 4px;
  border-radius: 50%;
  background: #c3d3cf;
}

.queue-summary {
  margin-top: 15px;
  padding: 12px 13px;
  border: 1px solid #e0ebe7;
  border-radius: 6px;
  background: #f5f9f7;
}

.queue-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #758987;
  font-size: 10px;
}

.queue-summary-top strong {
  color: #52716c;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.queue-progress {
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 4px;
  background: #e1ebe7;
}

.queue-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.file-list {
  display: flex;
  margin-top: 13px;
  flex-direction: column;
  gap: 7px;
}

.file-list:empty {
  display: none;
}

.upload-file-row {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #e3ebe8;
  border-radius: 6px;
  background: var(--white);
}

.upload-file-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #a66d53;
  border-radius: 5px;
  background: #faece6;
  font-size: 14px;
}

.upload-file-main {
  min-width: 0;
}

.upload-file-head,
.upload-file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.upload-file-name {
  overflow: hidden;
  color: #4d6667;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-status {
  flex: 0 0 auto;
  padding: 3px 5px;
  color: #829592;
  border-radius: 3px;
  background: #f0f5f3;
  font-size: 8px;
  font-weight: 700;
}

.upload-status.is-hashing {
  color: #6b7e9a;
  background: #eef2fa;
}

.upload-status.is-uploading {
  color: #a06d47;
  background: #fcf1e5;
}

.upload-status.is-done {
  color: #3b806e;
  background: #e6f4ef;
}

.upload-status.is-error {
  color: var(--danger);
  background: #fbedeb;
}

.upload-file-meta {
  margin-top: 5px;
  color: #a0acab;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
}

.upload-file-progress {
  height: 3px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #eef2f0;
}

.upload-file-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 120ms ease;
}

.upload-file-remove {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #b0bcba;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.upload-file-remove:hover {
  color: var(--danger);
  background: var(--coral-soft);
}

.upload-file-error {
  margin-top: 5px;
  color: var(--danger);
  font-size: 9px;
  line-height: 1.4;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 0 22px;
  border-top: 1px solid var(--line);
  background: #f8fbf9;
}

.queue-hint {
  overflow: hidden;
  color: #8a9997;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.dark-button {
  padding: 0 14px;
  color: #eff7f4;
  background: var(--ink-850);
}

.dark-button:hover {
  background: var(--ink-950);
}

.toast {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 0 13px;
  color: #f1f8f5;
  border: 1px solid rgba(182, 222, 210, 0.18);
  border-radius: 6px;
  background: var(--ink-950);
  box-shadow: 0 12px 32px rgba(9, 27, 34, 0.2);
  font-size: 11px;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  border-color: rgba(242, 173, 163, 0.25);
  background: #743f3d;
}

.toast-icon {
  color: #9dd0c1;
  font-size: 15px;
}

.toast.is-error .toast-icon {
  color: #ffd0c8;
}

/* Shared playback surface for watch.php. */
.watch-shell {
  min-height: 100vh;
  color: #eaf3f0;
  background: var(--ink-900);
}

.watch-shell .watch-card,
.watch-card {
  border: 1px solid rgba(221, 240, 232, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.watch-panel {
  overflow: hidden;
  border: 1px solid rgba(221, 240, 232, 0.1);
  border-radius: 8px;
  background: #172a33;
  box-shadow: 0 20px 55px rgba(3, 13, 17, 0.24);
}

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

.watch-kicker {
  color: #8fc7b9;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.watch-video {
  display: block;
  width: 100%;
  min-height: 220px;
  max-height: 72vh;
  object-fit: contain;
  background: #050607;
}

.watch-info {
  padding: 24px;
}

.watch-detail dt {
  color: #718c8d;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watch-detail dd {
  margin: 5px 0 0;
  color: #d9e7e3;
  overflow-wrap: anywhere;
}

.watch-md5 {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.watch-content {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: 34px 0 56px;
}

.watch-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9bb1b0;
  font-size: 12px;
}

.watch-back:hover {
  color: #e2f0eb;
}

.watch-title {
  margin: 24px 0 7px;
  color: #f2f8f5;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 650;
  line-height: 1.2;
}

.watch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  color: #91a8a6;
  font-size: 11px;
}

.watch-player {
  display: block;
  width: 100%;
  max-height: 70vh;
  margin-top: 26px;
  border: 1px solid rgba(221, 240, 232, 0.1);
  border-radius: 8px;
  background: #071116;
  box-shadow: 0 18px 54px rgba(3, 13, 17, 0.28);
}

.watch-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 20px;
  margin-top: 19px;
  padding: 15px 17px;
  color: #91a8a6;
  border: 1px solid rgba(221, 240, 232, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.watch-card .watch-player {
  margin-top: 0;
  border: 0;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .topbar,
  .content,
  .app-footer {
    padding-right: 28px;
    padding-left: 28px;
  }

  .hero {
    padding-right: 35px;
    padding-left: 35px;
  }

  .hero-orbit {
    right: 3%;
    opacity: 0.8;
    transform: translateY(-50%) scale(0.86);
    transform-origin: right center;
  }

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

  .stat-aside {
    display: none;
  }
}

@media (max-width: 960px) {
  .sidebar {
    box-shadow: 18px 0 40px rgba(6, 21, 28, 0.15);
    transform: translateX(-100%);
    transition: transform 200ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .main-shell {
    margin-left: 0;
  }

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

  .topbar {
    gap: 11px;
  }

  .breadcrumbs {
    min-width: auto;
  }

  .global-search {
    width: min(350px, 42vw);
  }
}

@media (max-width: 700px) {
  .topbar {
    height: 64px;
    padding: 0 17px;
  }

  .global-search {
    width: auto;
    min-width: 0;
    flex: 1;
  }

  .global-search kbd,
  .topbar-divider {
    display: none;
  }

  .auth-action {
    width: 34px;
    flex: 0 0 34px;
    padding: 0;
  }

  .auth-action-label {
    display: none;
  }

  .content {
    padding: 17px 15px 28px;
  }

  .hero {
    min-height: 0;
    padding: 18px 20px;
  }

  .hero h1 {
    margin: 10px 0 0;
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.25;
  }

  .hero-description {
    max-width: 300px;
    font-size: 11px;
  }

  .hero-orbit {
    display: none;
  }

  .hero-actions {
    position: relative;
    z-index: 3;
    gap: 16px;
    margin-top: 14px;
  }

  .hero-actions .primary-button,
  .hero-actions .quiet-link {
    min-height: 44px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .stat-card {
    min-height: 100px;
    padding: 12px 10px;
  }

  .stat-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    font-size: 9px;
  }

  .stat-icon {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }

  .stat-value {
    margin-top: 8px;
    font-size: 18px;
  }

  .stat-note {
    display: none;
  }

  .library-section {
    margin-top: 31px;
  }

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

  .folder-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 10px 11px;
  }

  .folder-chips {
    width: 100%;
  }

  .library-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .result-summary {
    width: 100%;
  }

  .toolbar-actions .select-button {
    margin-left: auto;
  }

  .desktop-table-wrap {
    display: none;
  }

  .mobile-card-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .mobile-video-card {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
  }

  .mobile-video-main {
    min-width: 0;
  }

  .mobile-video-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: #9ba8a7;
    font-size: 9px;
  }

  .mobile-video-meta .folder-badge {
    padding: 3px 5px;
  }

  .mobile-video-side {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
  }

  .mobile-video-side .size-value {
    color: #7e9190;
  }

  .pagination-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 14px 0 0;
  }

  .pager {
    width: 100%;
    justify-content: flex-end;
  }

  .app-footer {
    padding: 0 15px 22px;
  }

  .upload-config-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .date-field {
    width: 100%;
  }

  .upload-path-note {
    min-height: 22px;
  }

  .upload-body {
    padding: 17px 15px 15px;
  }

  .modal-header,
  .modal-footer {
    padding-right: 15px;
    padding-left: 15px;
  }

  .queue-hint {
    max-width: 46%;
  }

  .watch-content {
    width: min(100% - 30px, 980px);
    padding-top: 24px;
  }

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

@media (max-width: 600px) {
  .breadcrumbs {
    display: none;
  }

  .topbar {
    gap: 10px;
  }

  .mobile-menu-button {
    flex: 0 0 34px;
  }

  .topbar-actions {
    flex: 0 0 auto;
  }
}

@media (max-width: 410px) {
  .modal-footer {
    align-items: flex-end;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .queue-hint {
    align-self: flex-start;
    max-width: 100%;
  }
}

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