:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #1b2335;
  --muted: #596477;
  --blue: #2458c6;
  --blue-dark: #19449f;
  --soft-blue: #edf4ff;
  --line: #e3e8f0;
  --panel: #f6f8fc;
  --font: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button:not([disabled]) { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
[id] { scroll-margin-top: 1rem; }
.shell { width: min(1400px, calc(100% - 5rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; top: 1rem; left: 1rem; clip-path: none; width: auto; height: auto; background: white; padding: .75rem; }

.masthead { background: white; border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 4.25rem; display: flex; justify-content: space-between; align-items: center; gap: clamp(1rem, 3vw, 2.8rem); }
.brand { display: inline-flex; align-items: center; gap: .62rem; font-weight: 780; white-space: nowrap; letter-spacing: -.026em; }
.brand-mark { width: 2rem; height: 2rem; border-radius: .55rem; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.75rem); margin-right: auto; }
.nav a, .language { color: #4e5a70; min-height: 2.5rem; display: inline-flex; align-items: center; white-space: nowrap; font-size: .91rem; font-weight: 600; }
.nav a:first-child { color: var(--blue); }
.nav a:hover, .language:hover, .foot-nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .22em; }
.masthead-actions { display: flex; align-items: center; gap: 1.1rem; }
.account-entry { display: inline-flex; align-items: center; min-height: 2.45rem; padding-inline: .65rem; border: 1px solid currentColor; border-radius: .6rem; color: var(--blue-dark); white-space: nowrap; font-size: .9rem; font-weight: 660; }
.account-entry:hover { color: var(--blue); }
.pill-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.45rem; padding: .4rem .88rem; border-radius: .55rem; white-space: nowrap; background: var(--blue); color: white; font-size: .9rem; font-weight: 680; }
.pill-link:hover { background: var(--blue-dark); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.8rem; padding: .48rem .94rem; font-size: .92rem; font-weight: 670; line-height: 1.35; border-radius: .52rem; border: 1px solid transparent; transition: background-color .15s, border-color .15s; text-align: center; white-space: nowrap; }
.button.compact { min-height: 2.45rem; padding-inline: .94rem; }
.primary { background: var(--blue); color: white; }
.primary:hover:not(:disabled) { background: var(--blue-dark); }
.secondary { background: white; color: var(--blue); border-color: #cbd8ef; }
.secondary:hover:not(:disabled) { background: #f2f6ff; }
.button:disabled { opacity: .58; }
.play-icon { width: 0; height: 0; border: .32rem solid transparent; border-left: .55rem solid currentColor; border-right: 0; }

.follow { margin: 2.2rem 0 2.9rem; display: grid; grid-template-columns: 1fr auto; gap: .8rem 1.4rem; align-items: center; border: 1px solid #e0e9f8; border-radius: .9rem; padding: 1.35rem 1.55rem; background: #f5f8fe; }
.follow-content { max-width: 34rem; }
.follow h2 { font-size: 1.16rem; letter-spacing: -.02em; }
.section-intro { color: var(--muted); margin-top: .42rem; }
.follow-privacy { color: var(--muted); margin-top: .45rem; font-size: .84rem; }
.follow-actions { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; }
.follow-controls { max-width: 25rem; }
.follow-status { color: #485b79; margin-top: .45rem; font-size: .87rem; }
.follow-status:empty, .form-status:empty { display: none; }
.feed-address { display: flex; gap: .45rem; margin-top: .2rem; width: 100%; }
.feed-address input { flex: 1; min-width: 0; }
.foot { border-top: 1px solid var(--line); }
.foot-inner { min-height: 4.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; padding-block: .75rem; }
.foot-brand { font-size: .88rem; font-weight: 690; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .86rem; }

.manage { max-width: 49rem; margin: 2.15rem auto 3.25rem; }
.manage h1 { font-size: clamp(1.65rem, 3vw, 2.15rem); letter-spacing: -.04em; margin-bottom: .3rem; }
.manage-card { border: 1px solid var(--line); padding: 1.35rem 1.5rem; border-radius: .9rem; margin-top: 1.1rem; }
.manage-card h2 { font-size: 1.13rem; }
.manage-card p { color: var(--muted); margin: .4rem 0 .65rem; font-size: .94rem; }
.form-field { display: grid; gap: .4rem; font-size: .91rem; font-weight: 650; margin: .8rem 0; }
.form-field input, .feed-address input { border: 1px solid #cfd8e7; border-radius: .5rem; background: white; color: var(--ink); padding: .55rem .68rem; width: 100%; min-width: 0; font-weight: 450; }
.form-field input[type="number"] { max-width: 8rem; }
.form-field span { color: var(--muted); font-size: .84rem; font-weight: 440; }
.upload-field { background: #f5f8fe; border: 1px dashed #c2d5f4; border-radius: .62rem; padding: .85rem; }
.upload-field input { border: 0; background: transparent; padding: .2rem 0; }
.upload-field input::file-selector-button { margin-right: .65rem; padding: .44rem .7rem; border: 1px solid #cddbf0; border-radius: .4rem; background: white; color: var(--blue); cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .9rem; }
.form-status { display: block; margin-top: .56rem; color: var(--blue-dark); font-size: .92rem; }
progress { width: 100%; accent-color: var(--blue); }
.published-videos { margin: .65rem 0 0; padding: 0; list-style: none; }
.published-videos li { display: flex; justify-content: space-between; gap: .6rem; padding: .55rem .05rem; border-top: 1px solid var(--line); font-size: .9rem; }
.published-videos a { color: var(--blue); }

@media (max-width: 930px) {
  .shell { width: calc(100% - 2.8rem); }
}
@media (max-width: 625px) {
  .shell { width: calc(100% - 1.75rem); }
  .masthead-inner { flex-wrap: wrap; gap: .1rem .5rem; padding-top: .55rem; }
  .brand { font-size: .94rem; }
  .brand-mark { width: 1.74rem; height: 1.74rem; }
  .masthead-actions { margin-left: auto; gap: .75rem; }
  .masthead-actions .language { min-height: 2.25rem; }
  .pill-link { font-size: .83rem; padding-inline: .65rem; min-height: 2.2rem; }
  .nav { width: 100%; order: 3; min-height: 2.25rem; gap: 1.35rem; }
  .nav a { font-size: .87rem; min-height: 2.15rem; }
  .follow { grid-template-columns: minmax(0,1fr); padding: 1rem; }
  .follow-actions { justify-content: flex-start; }
  .manage-card { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
