/* frontend/panseo/clips.css — 판서. 숏클립 뷰 스타일.
 *
 * 규범 스펙: .superpowers/sdd/2026-08-15-panseo-community-core/panseo-src/app/short-clips.css
 * 무수정 이식본. (원본 파일을 한 줄도 고치지 않고 그대로 복사했다 — 아래 이 주석 머리말만 추가.)
 *
 * ⚠ 원본은 ShortClips.tsx 가 직접 import 하는 뷰 전용 시트다. 파일 뒷부분(두 번째 `.clips-section`
 *   선언, `position: fixed` 부터)은 전체화면 레이아웃 재정의로 앞부분의 창(窓)형 레이아웃을
 *   조건 없이 덮어쓴다 — 원본이 그렇게 생겼고, 그대로 옮겼다.
 *
 * ⚠ 캐스케이드: base.css(globals) → community.css → jobs.css → events.css → **clips.css** →
 *   readability.css. readability.css 가 `.clips-section` 하위 글자 크기를 다시 줄이는 규칙을
 *   갖고 있으므로 이 시트는 반드시 그 앞에 링크돼야 한다.
 */

  .clips-section {
    --clips-paper: #ffffff;
    --clips-white: #ffffff;
    --clips-ink: #171717;
    --clips-muted: #706d67;
    --clips-line: #d4d0c7;
    --clips-orange: #ef5b2a;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 46px 0 80px;
    color: var(--clips-ink);
  }

  .clips-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 26px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--clips-ink);
    gap: 32px;
  }

  .clips-heading-copy { min-width: 0; }

  .clips-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--clips-orange);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
  }

  .clips-heading h1 {
    margin: 0;
    font-size: clamp(28px, 4.2vw, 46px);
    font-weight: 850;
    letter-spacing: -.065em;
    line-height: 1.12;
  }

  .clips-heading p {
    margin: 10px 0 0;
    color: var(--clips-muted);
    font-size: 13px;
  }

  .clips-upload-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 9px 17px;
    border: 1px solid var(--clips-orange);
    border-radius: 3px;
    background: var(--clips-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
  }

  .clips-upload-button:hover { background: var(--orange-dark); }
  .clips-upload-button span { margin-right: 7px; font-size: 19px; font-weight: 400; }

  .clips-stage {
    display: grid;
    grid-template-columns: 88px minmax(0, 500px) 86px;
    justify-content: center;
    align-items: center;
    min-height: 620px;
    gap: 22px;
  }

  .clips-stage-note {
    display: grid;
    justify-self: end;
    width: 48px;
    justify-items: center;
    color: var(--clips-muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  }

  .clips-stage-note span { font-size: 9px; letter-spacing: .14em; }
  .clips-stage-note strong { margin-top: 4px; color: var(--clips-ink); font-size: 24px; }
  .clips-stage-note i { width: 1px; height: 76px; margin: 10px 0; background: var(--clips-frame); }
  .clips-stage-note small { font-size: 10px; }

  .clips-player {
    position: relative;
    min-width: 0;
    border: 1px solid var(--clips-frame);
    background: var(--clips-frame);
  }

  .clips-player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    padding: 0 12px 0 14px;
    border-bottom: 1px solid #3d3d3d;
    color: #aaa7a0;
    font-size: 11px;
  }

  .clips-player-bar b { color: #fff; }
  .clips-player-bar i { font-style: normal; }

  .clips-player-controls {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .clips-sound-button,
  .clips-settings-button {
    display: inline-flex;
    align-items: center;
    padding: 5px 7px;
    border: 1px solid #5d5d5d;
    color: #fff;
    font-size: 11px;
    gap: 5px;
  }

  .clips-sound-button span,
  .clips-settings-button span {
    display: inline-grid;
    width: 15px;
    height: 15px;
    place-items: center;
    color: var(--clips-orange);
    font-family: ui-monospace, monospace;
    font-size: 10px;
    font-weight: 900;
  }

  .clips-sound-button:disabled {
    cursor: default;
    opacity: .68;
  }

  .clips-settings-button[aria-expanded="true"] {
    border-color: var(--clips-orange);
    background: #292929;
  }

  .clips-settings-button span {
    width: auto;
    min-width: 20px;
    font-size: 10px;
    letter-spacing: .06em;
  }

  .clips-settings-panel {
    position: absolute;
    z-index: 20;
    top: 51px;
    right: 10px;
    width: min(292px, calc(100% - 20px));
    padding: 15px;
    border: 1px solid var(--clips-ink);
    border-top: 3px solid var(--clips-orange);
    background: var(--clips-paper);
    color: var(--clips-ink);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .38);
  }

  .clips-settings-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--clips-ink);
  }

  .clips-settings-head > div { display: grid; gap: 3px; }

  .clips-settings-head span {
    color: var(--clips-orange);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
  }

  .clips-settings-head strong { font-size: 16px; letter-spacing: -.035em; }
  .clips-settings-head button { padding: 0 2px; color: var(--clips-ink); font-size: 22px; line-height: 1; }

  .clips-playback-options {
    display: grid;
    margin: 13px 0 0;
    padding: 0;
    border: 0;
    gap: 7px;
  }

  .clips-playback-options legend {
    margin-bottom: 7px;
    color: var(--clips-muted);
    font-size: 11px;
    font-weight: 800;
  }

  .clips-playback-option {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: center;
    min-height: 56px;
    padding: 9px 11px;
    border: 1px solid var(--clips-line);
    background: var(--clips-white);
    cursor: pointer;
    gap: 9px;
  }

  .clips-playback-option-active { border-color: var(--clips-orange); }
  .clips-playback-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--clips-orange); }
  .clips-playback-option > span { display: grid; gap: 3px; }
  .clips-playback-option b { font-size: 11px; }
  .clips-playback-option small { color: var(--clips-muted); font-size: 11px; line-height: 1.4; }

  .clips-settings-panel > p {
    margin: 12px 0 0;
    color: var(--clips-muted);
    font-size: 11px;
    line-height: 1.55;
  }

  .clips-feed {
    height: min(720px, calc(100vh - 175px));
    min-height: 570px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
  }

  .clips-feed::-webkit-scrollbar { display: none; }
  .clips-feed:focus-visible { outline: 2px solid var(--clips-orange); outline-offset: 3px; }

  .clips-clip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #111;
    color: #fff;
  }

  .clips-visual {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid #3d3d3d;
    background: #222;
  }

  .clips-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #080808;
  }

  .clips-video-toggle {
    position: absolute;
    z-index: 17;
    top: 50%;
    left: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(10, 10, 10, .62);
    color: #fff;
    font-size: 15px;
    opacity: .62;
    transform: translate(-50%, -50%);
    touch-action: manipulation;
  }

  .clips-video-toggle:hover,
  .clips-video-toggle:focus-visible,
  .clips-video-toggle--paused { opacity: 1; }

  .clips-external-player {
    position: absolute;
    inset: 0 0 184px;
    display: grid;
    place-items: center;
    background: #000;
  }

  .clips-embed {
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
  }

  .clips-play-fallback {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #fff;
    background: rgba(17, 17, 17, .92);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    transform: translate(-50%, -50%);
    gap: 7px;
  }

  .clips-play-fallback span { color: var(--clips-orange); }

  .clips-embed-paused {
    display: grid;
    justify-items: center;
    color: #fff;
    gap: 6px;
  }

  .clips-embed-paused span {
    color: var(--clips-orange);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
  }

  .clips-embed-paused strong { font-size: 14px; }

  .clips-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 27px 25px 210px;
    overflow: hidden;
  }

  .clips-cover::before,
  .clips-cover::after {
    position: absolute;
    content: "";
    pointer-events: none;
  }

  .clips-cover-topline {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid currentColor;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .09em;
  }

  .clips-cover-mark {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.08em;
  }

  .clips-cover-mark span { color: var(--clips-orange); }

  .clips-cover-words {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    margin-top: auto;
  }

  .clips-cover-words strong {
    font-size: clamp(42px, 8.8vw, 60px);
    font-weight: 900;
    letter-spacing: -.085em;
    line-height: .94;
  }

  .clips-cover-rule {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 5px;
    margin: 24px 0 13px;
    background: var(--clips-orange);
  }

  .clips-cover p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.65;
  }

  .clips-cover-coordinate {
    position: absolute;
    z-index: 1;
    right: 22px;
    bottom: 205px;
    font-family: ui-monospace, monospace;
    font-size: 10px;
  }

  .clips-theme-ink .clips-cover { background: #181818; color: #fff; }
  .clips-theme-ink .clips-cover::before { top: 94px; right: 25px; width: 70px; height: 70px; border: 1px solid #5b5b5b; border-radius: 50%; }
  .clips-theme-ink .clips-cover::after { top: 129px; right: 8px; width: 105px; height: 1px; background: #5b5b5b; transform: rotate(-24deg); }

  .clips-theme-orange .clips-cover { background: var(--clips-orange); color: #171717; }
  .clips-theme-orange .clips-cover-mark span { color: #fff; }
  .clips-theme-orange .clips-cover-rule { background: #171717; }
  .clips-theme-orange .clips-cover::before { top: 105px; right: -37px; width: 132px; height: 132px; border: 20px solid rgba(23, 23, 23, .15); border-radius: 50%; }
  .clips-theme-orange .clips-cover::after { top: 0; right: 24px; width: 1px; height: 100%; background: rgba(23, 23, 23, .17); }

  .clips-theme-paper .clips-cover { background: #f3efe6; color: #171717; }
  .clips-theme-paper .clips-cover::before { top: 0; left: 16px; width: 5px; height: 100%; background: var(--clips-orange); }
  .clips-theme-paper .clips-cover::after { top: 135px; right: 25px; width: 86px; height: 46px; border-top: 2px solid #171717; border-bottom: 2px solid #171717; transform: rotate(-7deg); }

  .clips-theme-grid .clips-cover {
    color: #171717;
    background-color: #ebe8df;
    background-image: linear-gradient(#d4d0c7 1px, transparent 1px), linear-gradient(90deg, #d4d0c7 1px, transparent 1px);
    background-size: 24px 24px;
  }
  .clips-theme-grid .clips-cover::before { top: 112px; right: 23px; width: 76px; height: 76px; border: 2px solid #171717; transform: rotate(45deg); }
  .clips-theme-grid .clips-cover::after { top: 149px; right: 8px; width: 108px; height: 2px; background: var(--clips-orange); transform: rotate(-15deg); }

  .clips-platform-label {
    position: absolute;
    z-index: 3;
    top: 15px;
    left: 15px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(18, 18, 18, .88);
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .03em;
    pointer-events: none;
  }

  .clips-cover + .clips-platform-label { top: auto; bottom: 189px; }

  .clips-meta {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    height: 184px;
    padding: 17px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, .34);
    background: rgba(16, 16, 16, .94);
    color: #fff;
  }

  .clips-subject {
    display: block;
    margin-bottom: 5px;
    color: #ff7a4c;
    font-size: 10px;
    font-weight: 800;
  }

  .clips-meta h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 13px;
    font-size: clamp(17px, 3vw, 21px);
    font-weight: 780;
    letter-spacing: -.04em;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .clips-author {
    display: grid;
    grid-template-columns: 30px auto minmax(0, 1fr) 15px;
    align-items: center;
    max-width: 100%;
    padding: 0;
    color: #fff;
    text-align: left;
    gap: 7px;
  }

  .clips-author > span {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid #777;
    border-radius: 50%;
    background: #fff;
    color: #171717;
    font-size: 10px;
    font-weight: 900;
  }

  .clips-author b { font-size: 11px; white-space: nowrap; }
  .clips-author small { overflow: hidden; color: #aaa7a0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .clips-author i { display: grid; width: 14px; height: 14px; place-items: center; border-radius: 50%; background: var(--clips-orange); color: #fff; font-size: 8px; font-style: normal; }

  .clips-source-link {
    display: inline-block;
    margin-top: 11px;
    padding-bottom: 1px;
    border-bottom: 1px solid #8f8f8f;
    color: #d7d4cc;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
  }

  .clips-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    padding: 20px 5px 31px;
    background: #111;
    gap: 22px;
  }

  .clips-action {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 0;
    color: #bcb8b0;
    line-height: 1.2;
    gap: 4px;
  }

  .clips-action:hover,
  .clips-action-active { color: #fff; }

  .clips-action-glyph {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 2px;
    place-items: center;
    border: 1px solid #656565;
    border-radius: 50%;
    background: #1d1d1d;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
  }

  .clips-action-active .clips-action-glyph { border-color: var(--clips-orange); color: var(--clips-orange); }
  .clips-action b { font-size: 9px; }
  .clips-action small { color: #84817b; font-size: 8px; }

  .clips-comments {
    position: absolute;
    z-index: 8;
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-height: 55%;
    padding: 16px;
    overflow: auto;
    border-top: 3px solid var(--clips-orange);
    background: var(--clips-paper);
    color: var(--clips-ink);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .38);
  }

  .clips-comments-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; border-bottom: 1px solid var(--clips-ink); }
  .clips-comments-head strong { font-size: 13px; }
  .clips-comments-head button { padding: 0 3px; color: var(--clips-ink); font-size: 23px; line-height: 1; }
  .clips-comment-list { padding: 4px 0; }
  .clips-comment-list p { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--clips-line); color: var(--clips-body); font-size: 11px; line-height: 1.55; }
  .clips-comment-list b { margin-right: 5px; color: var(--clips-ink); }

  .clips-comment-form { display: grid; grid-template-columns: 1fr auto; margin-top: 11px; border: 1px solid var(--clips-control); background: var(--clips-white); }
  .clips-comment-form input { min-width: 0; height: 38px; padding: 0 10px; border: 0; outline: 0; background: transparent; color: var(--clips-ink); font-size: 11px; }
  .clips-comment-form:focus-within,
  .clips-link-input:focus-within { outline: 2px solid var(--clips-orange); outline-offset: 2px; }
  .clips-comment-form button { padding: 0 11px; background: var(--clips-ink); color: var(--clips-on-ink); font-size: 10px; font-weight: 800; }

  .clips-stepper {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
  }

  .clips-stepper > button {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 53px;
    padding: 8px 4px;
    border: 1px solid var(--clips-line);
    color: var(--clips-ink);
    gap: 2px;
  }

  .clips-stepper > button:hover:not(:disabled) { border-color: var(--clips-ink); }
  .clips-stepper > button:disabled { cursor: default; opacity: .28; }
  .clips-stepper span { font-size: 18px; line-height: 1; }
  .clips-stepper small { font-size: 8px; font-weight: 800; }

  .clips-dots { display: flex; align-items: center; flex-direction: column; gap: 7px; }
  .clips-dot { display: block; width: 4px; height: 4px; border-radius: 50%; background: #a9a59c; transition: height 160ms ease, background 160ms ease; }
  .clips-dot-active { height: 19px; border-radius: 3px; background: var(--clips-orange); }

  .clips-mobile-hint { display: none; }

  .clips-status {
    position: fixed;
    z-index: 210;
    right: 22px;
    bottom: 22px;
    max-width: 330px;
    padding: 11px 14px;
    border-left: 3px solid var(--clips-orange);
    background: #171717;
    color: #fff;
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 150ms ease, transform 150ms ease;
  }

  .clips-status:not(:empty) { opacity: 1; transform: translateY(0); }

  .clips-modal-backdrop {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    background: rgba(10, 10, 10, .72);
  }

  .clips-modal-dismiss {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
  }

  .clips-modal {
    position: relative;
    z-index: 1;
    width: min(100%, 650px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-top: 4px solid var(--clips-orange);
    background: var(--clips-paper);
    color: var(--clips-ink);
  }

  .clips-modal-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin: 0 28px;
    padding: 23px 0 19px;
    border-bottom: 1px solid var(--clips-ink);
  }

  .clips-modal-head span { color: var(--clips-orange); font-family: ui-monospace, monospace; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
  .clips-modal-head h2 { margin: 3px 0 0; font-size: 25px; font-weight: 850; letter-spacing: -.05em; }
  .clips-modal-head button { padding: 0 3px; color: var(--clips-muted); font-size: 28px; line-height: 1; }

  .clips-upload-form { padding: 22px 28px 26px; }

  .clips-source-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

  .clips-source-tab {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-height: 86px;
    padding: 16px 15px 12px;
    border: 1px solid var(--clips-line);
    background: var(--clips-white);
    color: var(--clips-muted);
    text-align: left;
    font-size: 12px;
    font-weight: 800;
  }

  .clips-source-tab > span { position: absolute; top: 8px; right: 9px; color: var(--clips-muted); font-family: ui-monospace, monospace; font-size: 10px; }
  .clips-source-tab small { margin-top: 5px; color: var(--clips-muted); font-size: 11px; font-weight: 550; }
  .clips-source-tab-active { border-color: var(--clips-ink); border-top: 3px solid var(--clips-orange); padding-top: 14px; background: var(--clips-white); color: var(--clips-ink); }

  .clips-source-panel { margin-top: 12px; padding: 15px; border: 1px solid var(--clips-line); background: var(--clips-wash); }
  .clips-source-panel > label:not(.clips-file-picker) { display: block; margin-bottom: 6px; color: var(--clips-muted); font-size: 11px; font-weight: 800; }
  .clips-source-panel > p { margin: 7px 0 0; color: var(--clips-muted); font-size: 11px; }

  .clips-link-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--clips-control); background: var(--clips-white); }
  .clips-link-input input { min-width: 0; height: 42px; padding: 0 11px; border: 0; outline: 0; background: transparent; font-size: 11px; }
  .clips-detected { display: inline-flex; align-items: center; margin: 7px; padding: 0 8px; border-left: 1px solid var(--clips-line); color: var(--clips-muted); font-size: 11px; white-space: nowrap; }
  .clips-detected-ok { color: var(--clips-orange); font-weight: 800; }

  .clips-file-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 92px;
    border: 1px dashed var(--clips-control-2);
    background: var(--clips-white);
    color: var(--clips-ink);
    cursor: pointer;
  }

  .clips-file-picker > span { font-size: 12px; font-weight: 800; }
  .clips-file-picker > small { max-width: 90%; margin-top: 5px; overflow: hidden; color: var(--clips-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .clips-file-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

  .clips-file-preview { display: block; width: min(100%, 220px); max-height: 220px; margin: 12px auto 0; background: #111; object-fit: contain; }

  .clips-fields { display: flex; flex-direction: column; margin-top: 17px; gap: 12px; }
  .clips-fields label { display: flex; flex-direction: column; color: var(--clips-muted); font-size: 11px; font-weight: 800; gap: 5px; }
  .clips-fields input,
  .clips-fields select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid var(--clips-control); border-radius: 0; outline: 0; background: var(--clips-white); color: var(--clips-ink); font-size: 11px; font-weight: 500; }
  .clips-fields input:focus,
  .clips-fields select:focus { border-color: var(--clips-ink); }
  .clips-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  .clips-modal-foot { display: flex; align-items: end; justify-content: space-between; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--clips-line); gap: 16px; }
  .clips-modal-foot p { max-width: 270px; margin: 0; color: var(--clips-muted); font-size: 11px; line-height: 1.6; }
  .clips-modal-foot > div { display: flex; gap: 7px; }
  .clips-cancel-button,
  .clips-submit-button { min-height: 39px; padding: 8px 13px; border: 1px solid var(--clips-ink); font-size: 10px; font-weight: 800; }
  .clips-cancel-button { background: transparent; color: var(--clips-ink); }
  .clips-submit-button { border-color: var(--clips-orange); background: var(--clips-orange); color: var(--on-orange); }
  .clips-submit-button:hover { background: var(--orange-dark); }

  .clips-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
  }

  @media (max-width: 780px) {
    .clips-section { width: 100%; padding: 25px 0 48px; }
    .clips-heading { align-items: start; margin: 0 14px 16px; padding-bottom: 17px; gap: 14px; }
    .clips-heading h1 { font-size: clamp(25px, 8vw, 34px); }
    .clips-heading p { max-width: 280px; font-size: 10px; line-height: 1.55; }
    .clips-eyebrow { margin-bottom: 5px; font-size: 8px; }
    .clips-upload-button { min-height: 37px; padding: 7px 10px; font-size: 10px; }
    .clips-upload-button span { margin-right: 3px; font-size: 15px; }
    .clips-stage { display: block; min-height: 0; }
    .clips-stage-note,
    .clips-stepper { display: none; }
    .clips-player { width: 100%; border-right: 0; border-left: 0; }
    .clips-player-bar { min-height: 39px; padding-right: 10px; padding-left: 14px; }
    .clips-settings-panel { top: 47px; right: 10px; left: 10px; width: auto; }
    .clips-playback-option { min-height: 58px; }
    .clips-feed { height: min(690px, calc(100svh - 205px)); min-height: 500px; }
    .clips-clip { grid-template-columns: minmax(0, 1fr) 64px; }
    .clips-cover { padding: 22px 21px 205px; }
    .clips-cover-words strong { font-size: clamp(39px, 14vw, 58px); }
    .clips-cover + .clips-platform-label { bottom: 189px; }
    .clips-meta { min-height: 163px; padding-right: 15px; padding-left: 16px; }
    .clips-meta h2 { font-size: 17px; }
    .clips-actions { padding-right: 3px; padding-left: 3px; gap: 19px; }
    .clips-action-glyph { width: 35px; height: 35px; font-size: 18px; }
    .clips-mobile-hint { display: block; margin: 10px 0 0; color: var(--clips-muted); text-align: center; font-size: 11px; }
    .clips-status { right: 14px; bottom: 76px; left: 14px; max-width: none; text-align: center; }
    .clips-modal-backdrop { align-items: end; padding: 0; }
    .clips-modal { width: 100%; max-height: 92svh; }
    .clips-modal-head { margin: 0 18px; padding-top: 19px; }
    .clips-upload-form { padding: 18px 18px 22px; }
  }

  @media (max-width: 430px) {
    .clips-heading { align-items: end; }
    .clips-heading-copy p { display: none; }
    .clips-player-bar > span { font-size: 8px; }
    .clips-player-bar > span i { display: none; }
    .clips-player-controls { gap: 4px; }
    .clips-sound-button,
    .clips-settings-button { padding-right: 6px; padding-left: 6px; }
    .clips-cover-coordinate { bottom: 200px; }
    .clips-author { grid-template-columns: 28px auto minmax(0, 1fr) 14px; }
    .clips-author small { display: none; }
    .clips-comments { right: 7px; bottom: 7px; left: 7px; }
    .clips-source-tabs { grid-template-columns: 1fr; }
    .clips-source-tab { min-height: 68px; }
    .clips-field-row { grid-template-columns: 1fr; }
    .clips-modal-foot { align-items: stretch; flex-direction: column; }
    .clips-modal-foot > div { justify-content: flex-end; }
    .clips-link-input { grid-template-columns: 1fr; }
    .clips-detected { min-height: 25px; margin: 0 7px 7px; padding-left: 0; border-top: 1px solid var(--clips-line); border-left: 0; }
  }

  html.clips-fullscreen-active,
  body.clips-fullscreen-active {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.clips-fullscreen-active {
    padding-bottom: 0 !important;
    background: #000;
  }

  .clips-section {
    position: fixed;
    z-index: 180;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: #000;
    color: #fff;
  }

  .clips-heading,
  .clips-stage-note,
  .clips-mobile-hint {
    display: none;
  }

  .clips-stage {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 0;
  }

  .clips-player {
    position: relative;
    width: min(100vw, 56.25vh);
    width: min(100vw, 56.25dvh);
    max-width: none;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    border: 0;
    background: #000;
  }

  .clips-player-bar {
    position: absolute;
    z-index: 40;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    min-height: 58px;
    padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .54) 62%, transparent 100%);
    color: #fff;
    box-sizing: border-box;
    pointer-events: none;
  }

  .clips-player-left,
  .clips-player-controls {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
    pointer-events: auto;
  }

  .clips-player-left { gap: 10px; }

  .clips-back-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 4px 7px 4px 2px;
    color: #fff;
    gap: 7px;
  }

  .clips-back-button > span { font-size: 23px; line-height: 1; }
  .clips-back-button b { font-size: 18px; font-weight: 900; letter-spacing: -.08em; }
  .clips-back-button i { color: var(--clips-orange); font-style: normal; }

  .clips-player-title {
    display: inline-flex;
    align-items: baseline;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    gap: 6px;
  }

  .clips-player-title i {
    color: #aaa;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
  }

  .clips-player-controls { margin-left: auto; }

  .clips-player-bar .clips-bar-upload-button,
  .clips-player-bar .clips-sound-button,
  .clips-player-bar .clips-settings-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 3px;
    background: rgba(15, 15, 15, .58);
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    backdrop-filter: blur(8px);
    gap: 5px;
  }

  .clips-player-bar .clips-bar-upload-button:hover,
  .clips-player-bar .clips-sound-button:hover:not(:disabled),
  .clips-player-bar .clips-settings-button:hover,
  .clips-player-bar .clips-settings-button[aria-expanded="true"] {
    border-color: var(--clips-orange);
    background: rgba(18, 18, 18, .82);
  }

  .clips-player-bar .clips-bar-upload-button > span:first-child,
  .clips-player-bar .clips-sound-button > span:first-child,
  .clips-player-bar .clips-settings-button > span:first-child {
    display: inline-grid;
    width: 16px;
    height: 16px;
    place-items: center;
    color: var(--clips-orange);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 9px;
    font-weight: 900;
  }

  .clips-player-bar .clips-sound-button:disabled { opacity: .7; }

  .clips-settings-panel {
    z-index: 60;
    top: max(60px, calc(env(safe-area-inset-top) + 52px));
    right: max(10px, env(safe-area-inset-right));
    width: min(292px, calc(100% - 20px));
  }

  .clips-feed {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: none;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    touch-action: pan-y;
  }

  .clips-feed:focus-visible { outline: 2px solid var(--clips-orange); outline-offset: -2px; }

  .clips-clip {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #111;
  }

  .clips-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 0;
    background: #111;
  }

  .clips-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .clips-external-player {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #000;
  }

  .clips-embed { width: 100%; height: 100%; }
  .clips-external-player:not(.clips-external-player--interactive) .clips-embed { pointer-events: none; }

  .clips-swipe-layer {
    position: absolute;
    z-index: 2;
    inset: 0;
    cursor: ns-resize;
    touch-action: pan-y;
    user-select: none;
  }

  .clips-swipe-layer span { display: none; }

  .clips-gesture-toggle {
    position: absolute;
    z-index: 16;
    top: max(70px, calc(env(safe-area-inset-top) + 62px));
    right: max(12px, env(safe-area-inset-right));
    min-height: 32px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 3px;
    background: rgba(12, 12, 12, .78);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    backdrop-filter: blur(8px);
  }

  .clips-gesture-toggle[aria-pressed="true"] { border-color: var(--clips-orange); }

  .clips-play-fallback { z-index: 18; }

  .clips-cover {
    inset: 0;
    padding: max(82px, calc(env(safe-area-inset-top) + 70px)) 25px max(245px, calc(220px + env(safe-area-inset-bottom)));
  }

  .clips-cover-words strong { font-size: clamp(42px, 8.5dvh, 72px); }
  .clips-cover-coordinate { bottom: max(232px, calc(208px + env(safe-area-inset-bottom))); }

  .clips-platform-label,
  .clips-cover + .clips-platform-label {
    z-index: 15;
    top: max(70px, calc(env(safe-area-inset-top) + 62px));
    bottom: auto;
    left: max(14px, env(safe-area-inset-left));
  }

  .clips-meta {
    position: absolute;
    z-index: 10;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    min-height: 0;
    padding: 120px 82px max(24px, calc(18px + env(safe-area-inset-bottom))) max(18px, env(safe-area-inset-left));
    border: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 8, .62) 42%, rgba(8, 8, 8, .96) 100%);
    pointer-events: none;
  }

  .clips-meta > * { pointer-events: auto; }
  .clips-meta h2 { max-width: 100%; margin-bottom: 11px; font-size: clamp(17px, 2.4dvh, 22px); }
  .clips-source-link { margin-top: 9px; }

  .clips-actions {
    position: absolute;
    z-index: 14;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(188px, calc(168px + env(safe-area-inset-bottom)));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    padding: 0;
    background: transparent;
    gap: 16px;
  }

  .clips-action { color: #fff; text-shadow: 0 1px 6px #000; }
  .clips-action small { color: #ddd; }
  .clips-action-glyph { border-color: rgba(255, 255, 255, .55); background: rgba(18, 18, 18, .7); backdrop-filter: blur(6px); }

  .clips-comments {
    z-index: 50;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    max-height: min(65%, 520px);
  }

  .clips-stepper {
    position: absolute;
    z-index: 20;
    top: 50%;
    left: calc(50% + min(50vw, 28.125vh) + 22px);
    left: calc(50% + min(50vw, 28.125dvh) + 22px);
    display: flex;
    transform: translateY(-50%);
  }

  .clips-stepper > button { border-color: #565656; color: #fff; }
  .clips-stepper > button:hover:not(:disabled) { border-color: #fff; }
  .clips-dot { background: #666; }

  .clips-status {
    z-index: 260;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
  }

  .clips-modal-backdrop { z-index: 240; }
  .clips-modal { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); }

  @media (max-width: 900px) {
    .clips-stepper { display: none; }
  }

  @media (max-width: 520px) {
    .clips-player-title { display: none; }
    .clips-player-bar { padding-right: max(8px, env(safe-area-inset-right)); padding-left: max(8px, env(safe-area-inset-left)); }
    .clips-player-left { gap: 4px; }
    .clips-back-button { padding-right: 3px; }
    .clips-meta { padding-right: 72px; padding-left: max(15px, env(safe-area-inset-left)); }
    .clips-actions { right: max(9px, env(safe-area-inset-right)); }
    .clips-comments { right: max(7px, env(safe-area-inset-right)); left: max(7px, env(safe-area-inset-left)); }
    .clips-modal-backdrop { align-items: end; padding: 0; }
    .clips-modal { width: 100%; max-height: 92dvh; }
  }

  @media (max-width: 430px), (max-height: 620px) {
    .clips-control-label { display: none; }
    .clips-player-title { display: none; }
    .clips-player-controls { gap: 4px; }
    .clips-player-bar .clips-bar-upload-button,
    .clips-player-bar .clips-sound-button,
    .clips-player-bar .clips-settings-button { width: 38px; min-height: 38px; padding: 5px; }
    .clips-back-button b { font-size: 17px; }
    .clips-gesture-toggle { min-height: 30px; padding: 5px 7px; }
    .clips-cover { padding-right: 20px; padding-left: 20px; }
    .clips-cover-words strong { font-size: clamp(40px, 8.2dvh, 61px); }
  }

  @media (max-height: 620px) {
    .clips-meta {
      padding-top: 70px;
      padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    .clips-meta h2 { margin-bottom: 7px; font-size: 15px; }
    .clips-author small { display: none; }
    .clips-source-link { margin-top: 5px; }
    .clips-actions {
      bottom: max(108px, calc(92px + env(safe-area-inset-bottom)));
      gap: 8px;
    }
    .clips-action b,
    .clips-action small { display: none; }
    .clips-action-glyph { width: 32px; height: 32px; margin: 0; font-size: 17px; }
    .clips-cover { padding-bottom: max(176px, calc(158px + env(safe-area-inset-bottom))); }
    .clips-cover-coordinate { bottom: max(164px, calc(146px + env(safe-area-inset-bottom))); }
  }

  @media (prefers-reduced-motion: reduce) {
    .clips-feed { scroll-behavior: auto; }
    .clips-dot,
    .clips-status { transition: none; }
  }
