main { max-width: 1432px; padding: 40px 36px 60px; margin: 0 auto; }
h1, h2, h3, p { margin: 0; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 12px 0 42px; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .07em; margin-bottom: 14px; }
.page-heading h1 { font-size: clamp(32px, 3.2vw, 46px); letter-spacing: -.055em; line-height: 1.25; font-weight: 700; }
.page-heading h1 span { color: #aaa99c; font-weight: 450; }
.page-intro { color: #aaa99c; font-size: 14px; line-height: 1.8; margin-top: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid #3c3b32; border-radius: 7px; padding: 12px 18px; color: #f2efe7; text-decoration: none; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 44px; }
.button.primary { background: #e3a16b; color: #27190f; border-color: #e3a16b; }
.button.primary:hover:not(:disabled) { background: #efb784; }
.button.secondary { background: transparent; color: #ddd8cb; }
.button.secondary:hover { background: #302e26; }
.button span { font-size: 18px; line-height: 1; }
.library-toolbar strong { font-size: 17px; letter-spacing: -.03em; }
.count-label { margin-left: 10px; font-size: 12px; color: #e3a16b; background: #302319; padding: 3px 7px; border-radius: 5px; }
.search-field input { border: 1px solid #36362f; border-radius: 6px; background: #1c1c19; color: #f2efe7; padding: 10px 12px; width: 260px; font-size: 12px; }
.games-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.65fr); gap: 30px; align-items: start; }
.library-panel { min-width: 0; }
.detail { color: #aaa99c; font-size: 12px; line-height: 1.75; }
#library-status { margin-bottom: 14px; }
ul { list-style: none; padding: 0; margin: 0; }
#library-list button { position: relative; width: 100%; border: 1px solid #36362f; background: #1c1c19; border-radius: 9px; padding: 18px 18px 18px 22px; color: #f2efe7; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
#library-list button[aria-pressed=true] { background: #2d251e; border-color: #a8754d; }
#library-list button[aria-pressed=true]::before { content: ""; position: absolute; top: 18px; bottom: 18px; width: 2px; left: 0; background: #e3a16b; }
.game-name { display: block; font-size: 14px; line-height: 1.5; font-weight: 650; margin: 9px 0 11px; }
.game-date { color: #c0bcb0; font-size: 11px; }
.game-status { float: right; font-size: 10px; padding: 2px 6px; border: 1px solid #4c4437; color: #d2ba9e; border-radius: 4px; }
.game-owner { font-size: 11px; color: #aaa99c; line-height: 1.65; display: block; overflow-wrap: anywhere; }
.game-activity { font-size: 10px; color: #8f8e82; line-height: 1.6; display: block; margin-top: 8px; border-top: 1px solid #383329; padding-top: 8px; }
.shared-note { color: #858477; font-size: 11px; padding: 17px 4px; }
.selected-panel { min-width: 0; border: 1px solid #36362f; background: #1a1a17; border-radius: 11px; overflow: hidden; }
.selected-heading { padding: 22px 24px 19px; }
.selected-heading .eyebrow { margin-bottom: 8px; font-size: 10px; }
.selected-heading h2 { font-size: 20px; letter-spacing: -.04em; overflow-wrap: anywhere; }
.selected-heading .detail { margin-top: 7px; overflow-wrap: anywhere; }
#selected-video { display: block; width: 100%; aspect-ratio: 16/9; background: #0e0e0c; }
.selected-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 24px 10px; }
.tracking-caption, .error-note { margin: 0 24px 20px; }
.analysis-panel { margin: 20px 24px; padding: 15px 0; border-top: 1px solid #36362f; }
.analysis-panel summary { font-size: 13px; cursor: pointer; color: #ddd8cb; }
.analysis-panel p { margin: 12px 0; }
.activity-panel { padding: 19px 24px 23px; border-top: 1px solid #36362f; }
.activity-panel h3 { font-size: 12px; color: #c5c1b5; margin-bottom: 12px; }
.activity-panel li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 11px; line-height: 1.8; color: #9a998c; padding: 4px 0; }
.activity-panel li strong { min-width: 0; overflow-wrap: anywhere; font-weight: 500; color: #c3beb1; }
.selection-empty { min-height: 430px; border: 1px dashed #39392f; border-radius: 12px; display: grid; align-content: center; justify-items: center; gap: 18px; text-align: center; padding: 40px 22px; }
.selection-empty h2 { font-size: 19px; font-weight: 550; }
.selection-empty p, .coming-soon p { color: #aaa99c; font-size: 13px; line-height: 1.8; }
.upload-page { max-width: 1150px; }
.upload-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(230px, .8fr); gap: 60px; }
.upload-panel { border: 1px solid #36362f; border-radius: 12px; background: #1c1c19; padding: 30px; }
.section-index { color: #e3a16b; font-size: 12px; margin-bottom: 20px; }
.section-index span { margin-left: 13px; color: #aaa99c; }
.upload-panel h2 { font-size: 22px; letter-spacing: -.04em; }
#upload-form { margin-top: 30px; }
.field-label { display: block; font-size: 13px; color: #d7d2c6; font-weight: 550; margin-bottom: 10px; }
.field-label span { color: #b18560; font-size: 10px; margin-left: 5px; }
.date-input, .login-panel input { display: block; width: 100%; border: 1px solid #434237; border-radius: 7px; background: #161613; color: #f2efe7; padding: 13px 14px; font-size: 14px; }
.date-input { max-width: 260px; }
.field-help { font-size: 11px; line-height: 1.65; color: #99988b; margin-top: 9px; }
.file-zone { display: flex; flex-direction: column; align-items: center; gap: 10px; border: 1px dashed #5b5040; border-radius: 9px; background: #22211c; padding: 30px 20px; margin: 26px 0 17px; text-align: center; cursor: pointer; }
.file-zone:hover { border-color: #b78356; background: #28241d; }
.upload-glyph { width: 40px; height: 40px; border: 1px solid #514435; border-radius: 10px; color: #e3a16b; font-size: 26px; }
.file-zone strong { font-size: 14px; font-weight: 550; }
.file-zone > span:not(.upload-glyph) { font-size: 11px; color: #aaa99c; }
.file-zone input { max-width: 100%; width: 100%; padding: 10px; font-size: 11px; }
.file-zone input::file-selector-button { color: #e3a16b; background: #33291f; border: 1px solid #534634; border-radius: 5px; padding: 8px 12px; margin-right: 10px; cursor: pointer; }
.file-zone small { font-size: 11px; line-height: 1.6; color: #aaa99c; overflow-wrap: anywhere; }
.upload-submit { width: 100%; justify-content: space-between; margin-top: 22px; }
progress { display: block; width: 100%; accent-color: #e3a16b; height: 8px; margin: 20px 0; }
.upload-guide { padding-top: 25px; }
.upload-guide ol { padding: 0 0 0 18px; margin: 20px 0 0; }
.upload-guide li { padding-left: 9px; margin-bottom: 25px; color: #a17b55; font-size: 12px; }
.upload-guide strong { color: #dbd5c7; font-size: 14px; font-weight: 550; }
.upload-guide p:not(.eyebrow) { color: #99988b; font-size: 12px; line-height: 1.8; margin-top: 7px; }
.storage-note { padding-top: 20px; border-top: 1px solid #36362f; }
.coming-soon { display: flex; align-items: center; flex-direction: column; padding: 60px 24px 75px; border: 1px solid #36362f; border-radius: 12px; gap: 22px; text-align: center; background: #1a1a17; }
.coming-soon h2 { font-size: 23px; font-weight: 550; letter-spacing: -.04em; }
.status-pill { display: inline-block; padding: 5px 10px; font-size: 11px; background: #33281e; color: #e3a16b; border: 1px solid #5a4430; border-radius: 20px; }
.login-page { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; max-width: none; padding: 0; }
.login-story { position: relative; display: flex; flex-direction: column; min-height: 100dvh; background: #24231c; padding: 50px 12%; overflow: hidden; }
.login-copy { position: relative; z-index: 1; margin-top: min(17vh, 150px); }
.login-copy h1 { font-size: clamp(36px, 4vw, 62px); font-weight: 600; line-height: 1.22; letter-spacing: -.06em; }
.login-copy > p:last-child { font-size: 14px; color: #aaa99a; margin-top: 27px; line-height: 1.8; }
.login-footnote { position: relative; font-size: 11px; color: #8f8c7d; line-height: 1.8; margin-top: auto; padding-top: 100px; z-index: 1; }
.login-panel { display: grid; place-items: center; padding: 50px; }
.login-form-wrap { max-width: 340px; width: 100%; }
.login-panel h2 { font-size: 32px; letter-spacing: -.05em; }
.login-panel .page-intro { font-size: 13px; margin-top: 12px; }
#login-form { margin-top: 35px; }
.login-panel input { margin-bottom: 22px; }
#login-status { min-height: 24px; color: #d2ad8e; margin-bottom: 15px; }
#login-submit { width: 100%; justify-content: space-between; }
.login-help { color: #77766a; font-size: 11px; border-top: 1px solid #36362f; padding-top: 23px; margin-top: 30px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 980px) {
  .games-layout { gap: 20px; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.3fr); }
  .selected-actions { flex-direction: column; align-items: stretch; }
  .upload-layout { gap: 30px; }
  .login-story { padding-inline: 9%; }
}
@media (max-width: 760px) {
  main { padding: 28px 20px 45px; }
  .page-heading { margin-top: 5px; margin-bottom: 30px; gap: 20px; align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 34px; }
  .page-intro { font-size: 13px; }
  .games-layout { grid-template-columns: minmax(0, 1fr); }
  #library-list button { height: 100%; }
  .shared-note { display: none; }
  .search-field, .search-field input { width: 100%; }
  .selected-heading { padding: 20px; }
  .selected-actions { margin: 20px 20px 10px; }
  .tracking-caption { margin-inline: 20px; }
  .upload-layout { grid-template-columns: minmax(0, 1fr); }
  .upload-panel { padding: 24px 20px; }
  .upload-guide { padding: 10px 12px; }
  .coming-soon { padding: 45px 20px; }
  .coming-soon h2 { font-size: 20px; }
  .login-page { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .login-story { min-height: 280px; padding: 28px 30px; }
  .login-copy { margin-top: 36px; }
  .login-copy h1 { font-size: 35px; }
  .login-copy > p:last-child, .login-footnote { display: none; }
  .login-panel { padding: 40px 28px; }
}
/* 목록은 가로 행, 재생은 별도 상세 화면으로 분리한다. */
.compact-heading { margin: 0 0 24px; align-items: center; }
.compact-heading h1 { font-size: 27px; line-height: 1.3; }
.compact-heading h1 .count-label { font-size: 13px; color: var(--accent); vertical-align: middle; }
#library-list .video-row:hover { background: var(--surface); }
.video-title-link { color: var(--text); text-decoration: none; padding: 10px 0; }
.video-title-link:hover { color: var(--accent); }
.video-row-actions { display: flex; flex-wrap: wrap; gap: 7px; }
#library-list .video-row-actions button { width: auto; min-height: 36px; padding: 8px 10px; border-radius: 6px; font-size: 11px; text-align: center; }
#library-list .video-row-actions .delete-video { color: #dab3a4; }
.video-row-error { grid-column: 1 / -1; color: #e1b5a6; font-size: 12px; }
.video-row .game-name { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.video-row .game-activity { margin: 6px 0 0; border: 0; padding: 0; }
.video-row .game-date, .video-row .game-owner, .video-row .game-uploaded { font-size: 12px; color: var(--muted); }
.game-period { display: block; margin-top: 5px; font-size: 11px; }
.video-row .game-status { float: none; justify-self: start; white-space: nowrap; font-size: 11px; }
.video-title-cell { min-width: 0; }
.video-detail-page { max-width: 1200px; }
.video-detail-page #library-status:empty { display: none; }
.upload-page { max-width: 900px; }
.filming-guide { margin-bottom: 22px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.filming-guide h2 { margin: 0 0 12px; font-size: 14px; }
.filming-guide ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 13px; line-height: 1.8; }
.filming-guide p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.upload-page #upload-form { margin: 0; }
.upload-fields { display: grid; grid-template-columns: minmax(160px, 2fr) 1fr 1fr; gap: 18px; }
.upload-fields .date-input { max-width: none; }
.upload-page .file-zone { width: 100%; min-height: 260px; justify-content: center; color: var(--text); font-family: inherit; }
.upload-page .file-zone.is-dragging { border-style: solid; border-color: var(--accent); background: var(--accent-dark); }
.upload-page .file-zone:disabled { cursor: progress; }

.upload-page #upload-submit { margin-top: 14px; }
@media (max-width: 980px) {
}
@media (max-width: 900px) {
  .compact-heading { flex-direction: row; align-items: center; margin-bottom: 22px; }
  .compact-heading h1 { font-size: 24px; }
  .video-row .video-title-link { grid-column: 1 / -1; }
  .video-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .video-row .game-date { display: block; }
  .video-row .game-uploaded { display: block; font-size: 11px; }
  .video-row .game-owner { font-size: 11px; }
  .video-row .game-status { font-size: 10px; }
  .video-row .game-name { font-size: 13px; }
  .upload-page .file-zone { padding: 24px 14px; }
  .upload-fields { grid-template-columns: 1fr 1fr; gap: 14px; }
  .upload-fields > div:first-child { grid-column: 1 / -1; }
}

/* 열의 의미만 페이지마다 정하고 목록의 치수는 공통 목록 스타일을 사용한다. */
.video-board { --list-board-columns: minmax(100px,.7fr) minmax(240px,1.8fr) 65px 135px 95px 145px; --list-board-columns-medium: minmax(80px,.7fr) minmax(210px,1.5fr) 60px 110px 80px 115px; }
.video-team-cell { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.video-team-cell img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.upload-team-field { margin-bottom: 20px; }

#upload-team-status:empty { display: none; }
@media (max-width: 900px) {
  .video-team-cell { grid-column: 1 / -1; }
}

/* 팀 카드는 가로로 넘겨 선택하고 현재 선택을 색상과 체크로 함께 표시한다. */
.upload-team-cards { display: flex; gap: 12px; overflow-x: auto; padding: 3px 3px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #665242 transparent; }
.upload-team-card { position: relative; flex: 0 0 168px; min-width: 0; min-height: 126px; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: #171714; text-align: left; font-family: inherit; cursor: pointer; scroll-snap-align: start; }
.upload-team-card img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.upload-team-card strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.upload-team-card:hover:not(:disabled) { border-color: #a57b59; background: #29231d; }
.upload-team-card[aria-pressed="true"] { border-color: var(--accent); background: #30251c; box-shadow: inset 0 0 0 1px var(--accent); }
.upload-team-check { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #27190f; background: var(--accent); font-size: 13px; opacity: 0; }
.upload-team-card[aria-pressed="true"] .upload-team-check { opacity: 1; }
.upload-team-card:focus-visible, .upload-page .file-zone:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.upload-team-card:disabled { cursor: wait; opacity: .65; }
.upload-page #upload-submit { width: 100%; min-height: 48px; }
.upload-page #upload-submit:disabled { background: #38352e; border-color: #454136; color: #8e897d; cursor: not-allowed; }
#file-selection-note { overflow-wrap: anywhere; }
.upload-page .file-zone strong { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.upload-page .file-zone.has-file { border-style: solid; border-color: var(--accent); background: #28231d; }
.upload-file-action { margin-top: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; }
.upload-team-required { margin: 70px 0; text-align: center; color: var(--muted); }
#upload-readiness:empty { display: none; }
@media (max-width: 600px) {
  .upload-team-card { flex-basis: 145px; min-height: 118px; padding: 15px; }
  .upload-page .file-zone { min-height: 180px; }
}
