@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --paper: var(--pub-bg, #10110d);
  --surface: var(--pub-surface, #191b13);
  --ink: var(--pub-text, #f3f0dc);
  --muted: var(--pub-muted, #b5b7a3);
  --line: var(--pub-line, #6f70434d);
  --accent: var(--pub-yellow, #fff12e);
  --bright: var(--pub-yellow, #fff12e);
  --dark: #10110d;
  --display: var(--pub-font-display, 'Barlow Condensed', sans-serif);
  --body: var(--pub-font-body, 'DM Sans', sans-serif);
  --mono: var(--body);
  --danger: #f2a397;
  --success: #b2d59a;
}
.dark { color-scheme: dark; --paper: var(--pub-bg, #10110d); --surface: var(--pub-surface, #191b13); --ink: var(--pub-text, #f3f0dc); --muted: var(--pub-muted, #b5b7a3); --line: var(--pub-line, #6f70434d); --accent: var(--pub-yellow, #fff12e); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 25px; }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); font: 14px/1.65 var(--body); }
body::before { content: ''; position: absolute; z-index: 0; inset: 0 0 auto; height: 760px; pointer-events: none; background: radial-gradient(ellipse at 88% 25%, #b7a8241c, transparent 49%), radial-gradient(ellipse at 4% 51%, #bfa5240d, transparent 44%); }
#header, main, #footer { position: relative; }
::selection { background: var(--accent); color: var(--dark); }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; color: #c0c1ac; background: #282b20; border-color: #555a3e; }
button, .button { border: 1px solid #777b4b; border-radius: 7px; padding: 10px 17px; background: #1d2016; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; text-align: center; transition: background-color .18s, border-color .18s; }
button:not(:disabled):hover, .button:hover { background: #30351e; color: var(--ink); border-color: var(--accent); }
.primary { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.primary:not(:disabled):hover, .button.primary:hover { background: #fff781; border-color: #fff781; color: var(--dark); }
.skip { position: fixed; top: -100px; left: 16px; z-index: 30; background: var(--accent); color: var(--dark); padding: 12px 20px; }
.skip:focus { top: 12px; }
.shell-header { max-width: 1560px; margin: auto; padding: 19px 4vw; border-bottom: 1px solid var(--line); display: flex; gap: 35px; align-items: center; }
.brand { display: flex; gap: 11px; align-items: center; font: 800 32px/.9 var(--display); color: var(--accent); text-decoration: none; letter-spacing: -.03em; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; object-fit: contain; mix-blend-mode: screen; }
.brand small { color: var(--ink); font: 500 8px/1.5 var(--body); letter-spacing: .12em; text-transform: uppercase; display: block; margin-top: 5px; }
.shell-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; font-size: 11px; font-weight: 500; }
.shell-header nav a { text-decoration: none; padding: 9px 0; border-bottom: 1px solid transparent; }
.shell-header nav a[aria-current] { color: var(--accent); border-color: var(--accent); }
.account { margin-left: auto; font-size: 11px; text-decoration: none; border-bottom: 1px solid #717446; padding: 9px 0; overflow-wrap: anywhere; max-width: 180px; }
main { max-width: 1320px; margin: auto; padding: 0 5vw 80px; }
.eyebrow, .meta, .tag, .step, .smallcaps { font: 500 10px/1.7 var(--body); letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { color: var(--accent); display: flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.meta { color: var(--muted); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; overflow-wrap: anywhere; }
h1 { font: 700 clamp(68px, 8.5vw, 116px)/.88 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
h2 { font: 600 clamp(32px, 3.5vw, 47px)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
h3 { font: 600 28px/1.12 var(--display); }
.lead { font-size: 15px; line-height: 1.8; max-width: 520px; color: var(--muted); }
.hero { padding: 55px 0 42px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: center; }
.hero h1 { margin: 24px 0; }
.hero .lead { margin-top: 22px; max-width: 430px; }
.hero-aside { border-left: 1px solid var(--line); padding-left: 34px; }
.hero-aside .stamp { font: 600 clamp(39px, 5vw, 64px)/.98 var(--display); letter-spacing: -.015em; color: var(--accent); display: block; margin: 22px 0; }
.hero-aside p { font-size: 12px; line-height: 1.9; color: var(--muted); }
.hero-aside .meta { color: var(--muted); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.notice { padding: 18px 23px; border: 1px solid var(--line); border-left: 3px solid #ada751; border-radius: 0 9px 9px 0; background: #1b1e15; font-size: 12px; color: #c7cab3; line-height: 1.8; }
.notice b { color: var(--ink); }
.notice p + p { margin-top: 7px; }
.toolbar { display: flex; gap: 19px; align-items: end; justify-content: space-between; flex-wrap: wrap; margin: 32px 0 24px; }
.tabs { display: flex; gap: 24px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 11px 0; font-size: 13px; border-bottom: 2px solid transparent; color: var(--muted); }
.tabs a[aria-current] { color: var(--accent); border-color: var(--accent); }
.filters { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.filters .meta { font-size: 9px; letter-spacing: .06em; }
.filters input { width: 180px; }
.filters select { width: 168px; }
.filters button { min-height: 42px; }
input, select, textarea { color: var(--ink); background: #11140e; border: 1px solid #656b45; border-radius: 6px; padding: 11px 12px; min-height: 44px; max-width: 100%; min-width: 0; }
input::placeholder, textarea::placeholder { color: #9fa58b; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 125px; line-height: 1.75; }
input[type=file] { width: 100%; font-size: 12px; padding: 9px; }
input::file-selector-button { padding: 7px 10px; background: #30371f; color: var(--ink); border: 1px solid #616a43; border-radius: 4px; margin-right: 9px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; margin: 19px 0; }
.field small { font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.8; }
.section-top { display: flex; justify-content: space-between; gap: 32px; align-items: end; padding: 26px 0 24px; border-top: 1px solid var(--line); }
.section-top .eyebrow { margin-bottom: 9px; }
.section-top .lead { font-size: 12px; max-width: 360px; line-height: 1.8; }
.ranking { display: grid; gap: 13px; margin-top: 3px; }
.rank-item { display: grid; grid-template-columns: 37px minmax(0, 1fr) 193px; gap: 20px; border: 1px solid var(--line); border-radius: 11px; padding: 24px; align-items: start; background: var(--surface); overflow-wrap: anywhere; }
.rank-item:hover { border-color: #737747; }
.rank-num { font: 500 25px/1.1 var(--display); color: #969a74; padding-top: 3px; }
.suggestion-main { min-width: 0; }
.suggestion-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.tag { display: inline-flex; align-items: center; border: 1px solid #5e6643; border-radius: 4px; padding: 3px 8px; color: #c6ccb1; font-size: 9px; line-height: 1.5; letter-spacing: .07em; }
.format-tag { background: #292d1c; color: #e3dfad; }
.status-tag { color: #c2c6b2; background: #20241a; }
.status-tag::before { content: ''; width: 4px; height: 4px; border-radius: 50%; margin-right: 6px; background: currentColor; }
.status-tag[data-suggestion-status=approved], .status-tag[data-suggestion-status=ready], .status-tag[data-suggestion-status=published] { color: var(--success); border-color: #5d7449; background: #202c1b; }
.status-tag[data-suggestion-status=in_production] { color: #eddf8c; border-color: #817342; background: #302b17; }
.status-tag[data-suggestion-status=rejected], .status-tag[data-suggestion-status=failed] { color: var(--danger); border-color: #82574d; background: #30221c; }
.status-tag[data-suggestion-status=withdrawn] { color: #c3b7a5; border-color: #6e6351; }
.rank-item h3 { font: 600 28px/1.16 var(--display); letter-spacing: .005em; }
.rank-item h3 a { text-decoration: none; }
.rank-item h3 a:hover { color: var(--accent); }
.rank-item p { color: var(--muted); margin: 10px 0; max-width: 680px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.85; }
.submitted-material { margin-top: 15px; background: #12150f; border-left: 2px solid #85844a; border-radius: 0 5px 5px 0; padding: 12px 15px; }
.submitted-material .meta { font-size: 8px; color: #b0b491; }
.submitted-material p { color: #eeebd3; margin: 5px 0 0; font-size: 14px; line-height: 1.8; }
.case-label { display: block; font-size: 8px; color: #b0b491; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.rank-item .suggestion-case { margin-top: 13px; }
.suggestion-meta { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 13px; color: var(--muted); font-size: 10px; }
.suggestion-meta > span { min-width: 0; overflow-wrap: anywhere; }
.free-votes { color: #e4e4c9; font-weight: 600; }
.rank-item .inline-actions:empty { display: none; }
.rank-item .inline-actions button, .rank-item .inline-actions .button { min-height: 36px; padding: 7px 11px; font-size: 10px; }
.rank-money { align-self: stretch; border-left: 1px solid var(--line); padding-left: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
.rank-money .support-label { display: block; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.rank-money strong { font: 600 28px/1 var(--display); color: #e5e4bd; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rank-money small { display: block; color: var(--muted); font-size: 10px; line-height: 1.8; margin-top: 7px; }
.rank-money .button { margin-top: auto; width: 100%; min-height: 41px; padding: 9px; font-size: 10px; }
.empty, .error { padding: 45px 25px; background: var(--surface); text-align: center; border: 1px solid var(--line); border-radius: 12px; }
.empty::before { content: 'PUB / THE NEXT FRAME'; display: block; color: #c3c17e; font-size: 9px; letter-spacing: .18em; margin-bottom: 20px; }
.empty .eyebrow, .error .eyebrow { justify-content: center; margin-bottom: 12px; }
.empty h3 { font-size: 34px; }
.empty p, .error p { margin: 15px auto; max-width: 550px; color: var(--muted); font-size: 13px; }
.error { border-color: #9d685a; background: #241d16; }
.error .eyebrow, .error h2 { color: var(--danger); }
.error .eyebrow::before { background: var(--danger); }
.skeleton { height: 174px; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(100deg, #1a1e14 20%, #2a2e1d 50%, #1a1e14 80%); position: relative; overflow: hidden; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #b8ba6b0c, transparent); animation: loading-pass 1.8s ease-in-out infinite; }
.page-message:empty { display: none; }
.page-message { margin: 16px 0; padding: 16px 20px; background: #252b19; color: #dedec2; border: 1px solid #646e43; border-left: 3px solid var(--accent); border-radius: 6px; overflow-wrap: anywhere; font-size: 12px; }
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 32px; padding: 27px 0; }
.detail > article { min-width: 0; }
.detail h2 { margin: 15px 0 20px; font-size: clamp(35px, 4vw, 55px); text-transform: none; }
.detail p { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail .lead { color: #d2d5be; font-size: 14px; line-height: 1.9; max-width: none; }
.detail .text-block { margin-top: 23px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid #b6b05a; border-radius: 0 8px 8px 0; line-height: 1.95; font-size: 15px; }
.detail small { color: var(--muted); font-size: 11px; }
.support-box { border: 1px solid #777747; border-radius: 10px; background: #1d2115; padding: 24px; align-self: start; }
.support-box .eyebrow { font-size: 8px; letter-spacing: .08em; margin-bottom: 16px; }
.support-box h3 { margin-bottom: 22px; font-size: 33px; }
.support-box p { font-size: 12px; color: #c4c9ae; line-height: 1.85; }
.support-box strong { display: block; font: 600 38px/1.1 var(--display); margin-bottom: 7px; color: #ebe7bd; }
.support-box [role=status] { border: 1px solid #747448; border-radius: 6px; background: #282c1c; padding: 12px; }
video { display: block; width: 100%; max-height: 580px; margin-top: 22px; background: #090c08; border: 1px solid var(--line); border-radius: 8px; }
.admin-box { border: 1px solid #777747; border-radius: 9px; background: #1c2115; margin-top: 28px; padding: 22px; }
.admin-box h3 { font-size: 28px; margin-bottom: 10px; }
.admin-box p { color: var(--muted); font-size: 12px; }
button[data-status=rejected], #withdraw, button[data-withdraw] { color: var(--danger); border-color: #805b4b; }
button[data-status=approved], button[data-status=published]:not(.primary) { color: var(--success); border-color: #607c49; }
.job { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; margin-top: 22px; }
.job h3 { margin-bottom: 14px; }
.job progress { display: block; width: 100%; height: 9px; margin: 13px 0; accent-color: var(--accent); }
dialog { width: min(760px, calc(100% - 24px)); max-height: 90dvh; overflow-y: auto; border: 1px solid #85814b; border-radius: 13px; padding: 30px; background: #1b1f15; color: var(--ink); box-shadow: 0 30px 100px #080a06a6; overscroll-behavior: contain; }
dialog::backdrop { background: #090c08c9; backdrop-filter: blur(7px); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.dialog-header > div { min-width: 0; }
.dialog-header .eyebrow { margin-bottom: 11px; font-size: 9px; }
.dialog-header button { flex-shrink: 0; font-size: 10px; padding: 7px 11px; min-height: 36px; }
.dialog-header h2 { font-size: 36px; text-transform: none; }
.dialog-copy { color: #c1c7ae; margin: 18px 0; font-size: 13px; line-height: 1.85; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.check { display: flex; gap: 12px; align-items: start; margin: 20px 0; padding: 14px; border: 1px solid #626e40; border-radius: 7px; background: #22291a; font-size: 12px; line-height: 1.85; color: #e3e6d0; }
.check input { margin: 4px 0 0; min-height: 18px; height: 18px; width: 18px; flex-shrink: 0; accent-color: var(--accent); }
.review-list { border: 1px solid var(--line); border-radius: 8px; background: #12160f; margin: 18px 0; padding: 3px 19px; }
.review-list dt { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #b9bf9e; margin-top: 18px; }
.review-list dd { margin: 6px 0 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.85; }
.review-list dd + dt { padding-top: 15px; border-top: 1px solid var(--line); }
.dialog-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.dialog-footer .primary { max-width: 100%; }
.form-error { color: var(--danger); margin-top: 15px; font-size: 12px; overflow-wrap: anywhere; }
.form-error:not(:empty) { padding: 12px; border-left: 2px solid #d38776; background: #32221c; }
.form-error:empty { display: none; }
.signin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.signin-grid > form { padding-left: 25px; border-left: 1px solid var(--line); }
.signin-grid h3 { font-size: 25px; margin-top: 8px; }
.voice-strip { display: none; gap: 12px; justify-content: space-between; align-items: center; font-size: 11px; padding: 12px; background: #30371d; color: #f1e895; border-radius: 6px; margin: 12px 0; }
.qc-mic-recording { background: var(--accent) !important; color: var(--dark) !important; }
.footer { max-width: 1560px; margin: auto; border-top: 1px solid var(--line); padding: 24px 5vw; display: flex; justify-content: space-between; gap: 25px; font: 500 9px/1.9 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--accent); }
@keyframes loading-pass { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (max-width: 1100px) {
  .shell-header { gap: 24px; }
  .shell-header nav { gap: 15px; }
  .toolbar { align-items: start; }
  .filters { width: 100%; }
  .hero { gap: 35px; }
}
@media (max-width: 767px) {
  body { font-size: 13px; }
  .shell-header { gap: 12px; flex-wrap: wrap; padding: 15px 20px 10px; }
  .shell-header nav { order: 3; width: 100%; gap: 6px 20px; justify-content: flex-start; font-size: 10px; }
  .brand { font-size: 27px; gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand small { font-size: 7px; }
  .account { font-size: 10px; max-width: 120px; }
  main { padding: 0 20px 50px; }
  .hero { padding: 37px 0 27px; gap: 27px; grid-template-columns: 1fr; }
  .hero h1 { font-size: 84px; margin: 22px 0; }
  .hero .lead { font-size: 13px; }
  .hero-aside { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px; align-items: center; }
  .hero-aside .stamp { font-size: 32px; margin: 0; }
  .hero-aside .meta { display: none; }
  .hero-aside p { font-size: 10px; line-height: 1.85; }
  .notice { padding: 15px 17px; font-size: 11px; }
  .toolbar { gap: 20px; margin-top: 24px; }
  .tabs { gap: 10px 20px; }
  .tabs a { font-size: 12px; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 8px; }
  .filters label[for=search] { grid-column: 1 / -1; }
  .filters input { width: 100%; grid-column: 1 / -1; }
  .filters label[for=sort] { grid-column: 1 / -1; }
  .filters select { width: 100%; }
  .filters input, .filters select { font-size: 16px; }
  .section-top { align-items: start; flex-direction: column; gap: 13px; padding-top: 22px; }
  .section-top h2 { font-size: 33px; }
  .section-top .lead { font-size: 11px; max-width: none; }
  .rank-item { grid-template-columns: 23px minmax(0, 1fr); gap: 10px; padding: 17px 14px; }
  .rank-num { font-size: 21px; }
  .rank-item h3 { font-size: 27px; }
  .rank-item p { font-size: 12px; }
  .submitted-material { padding: 11px; }
  .submitted-material p { font-size: 13px; }
  .rank-money { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); padding: 14px 0 0; margin-top: 5px; gap: 13px; }
  .rank-money strong { font-size: 25px; }
  .rank-money .button { margin: 0; width: 100%; }
  .rank-money .support-label { font-size: 8px; }
  .suggestion-meta { line-height: 1.8; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .detail h2 { font-size: 38px; }
  .detail .text-block { padding: 18px; font-size: 14px; }
  .detail .lead { font-size: 13px; }
  .support-box { padding: 22px; }
  .admin-box { padding: 18px; }
  .signin-grid, .two-col { grid-template-columns: 1fr; gap: 0; }
  .signin-grid > form { border-left: 0; border-top: 1px solid var(--line); margin-top: 25px; padding: 21px 0 0; }
  dialog { padding: 20px; width: calc(100% - 20px); max-height: 92dvh; }
  .dialog-header { gap: 10px; }
  .dialog-header h2 { font-size: 30px; }
  .dialog-header .eyebrow { font-size: 8px; }
  dialog input:not([type=checkbox]), dialog textarea, dialog select { font-size: 16px; }
  .dialog-footer { flex-wrap: wrap; }
  .dialog-footer button { flex: 1 1 auto; }
  .review-list { padding: 2px 14px; }
  .check { padding: 12px; font-size: 11px; }
  .footer { flex-direction: column; gap: 9px; padding: 21px 20px; font-size: 8px; }
}
@media (max-width: 360px) {
  main { padding-left: 15px; padding-right: 15px; }
  .shell-header { padding-left: 15px; padding-right: 15px; }
  .brand small { font-size: 6px; }
  .account { max-width: 102px; }
  .shell-header nav { gap: 5px 13px; font-size: 9px; }
  .hero h1 { font-size: 73px; }
  .hero .inline-actions > * { width: 100%; }
  .hero-aside .stamp { font-size: 28px; }
  .rank-item { padding-left: 11px; padding-right: 11px; gap: 8px; }
  .dialog-header h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
