.highlights-page { width: min(100%, 1120px); margin: 0 auto; padding: 34px 0 70px; }
.highlights-page button, .highlights-page input { font: inherit; }
.eyebrow { display: block; color: #8eacff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hidden { display: none !important; }

.highlights-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.highlights-head h1 { margin: 8px 0 10px; color: #f6f7fb; font-size: clamp(2.15rem, 4vw, 3.55rem); line-height: 1.02; letter-spacing: -.052em; }
.highlights-head > div:first-child > p { max-width: 680px; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.head-proof { display: grid; grid-template-columns: 34px auto; min-width: 215px; padding: 13px 15px; border: 1px solid rgba(126,158,255,.24); border-radius: 13px; background: rgba(92,124,219,.08); }
.head-proof > span { grid-row: 1 / 3; color: #9eb7ff; font-size: 1.25rem; }
.head-proof strong { color: #dfe7ff; font-size: .78rem; }
.head-proof small { color: var(--muted-2); font-size: .67rem; }

.source-panel, .video-panel, .progress-panel, .results-panel, .history-panel { border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, rgba(24,28,35,.98), rgba(17,20,25,.98)); box-shadow: 0 18px 50px rgba(0,0,0,.13); }
.source-panel { padding: 22px; }
.source-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-number { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: #9bb7ff; color: #14203c; font-size: .8rem; font-weight: 900; }
.source-title-row h2 { margin: 0; color: #edf0f6; font-size: 1rem; }
.source-title-row p { margin: 3px 0 0; color: var(--muted); font-size: .76rem; }
.url-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.url-form label { display: flex; align-items: center; gap: 11px; min-width: 0; height: 52px; padding: 0 15px; border: 1px solid #303640; border-radius: 11px; background: #0c0f13; }
.url-form label:focus-within { border-color: #769dff; box-shadow: 0 0 0 3px rgba(107,145,245,.1); }
.url-form svg { width: 20px; fill: none; stroke: #748095; stroke-width: 1.7; }
.url-form input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #e9edf5; }
.url-form input::placeholder { color: #5e6674; }
.url-form button, .analyze-button { border: 0; border-radius: 11px; background: #9db9ff; color: #142044; font-weight: 820; cursor: pointer; transition: transform .16s ease, filter .16s ease; }
.url-form button { display: flex; align-items: center; gap: 20px; min-width: 166px; padding: 0 18px; justify-content: center; }
.url-form button:hover, .analyze-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.url-form button:disabled, .analyze-button:disabled { cursor: wait; filter: grayscale(.25); opacity: .65; transform: none; }
.status { min-height: 20px; margin: 10px 2px 0; color: var(--muted); font-size: .76rem; }
.status.success { color: var(--ok); }.status.error { color: var(--danger); }

.video-panel { display: grid; grid-template-columns: minmax(300px, 46%) 1fr; gap: 0; overflow: hidden; margin-top: 18px; }
.video-cover { position: relative; min-height: 286px; background: #080a0d; }
.video-cover::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, transparent 62%, rgba(17,20,25,.86)); }
.video-cover img { width: 100%; height: 100%; object-fit: cover; }
.video-cover > span { position: absolute; right: 14px; bottom: 14px; z-index: 1; padding: 5px 8px; border-radius: 6px; background: rgba(0,0,0,.75); color: #fff; font-size: .72rem; font-weight: 750; }
.video-info { padding: 26px 28px; }
.ready-badge { display: inline-flex; padding: 5px 8px; border-radius: 7px; background: rgba(69,193,119,.1); color: #73d99d; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.video-info h2 { margin: 12px 0 6px; color: #eff2f7; font-size: 1.35rem; line-height: 1.25; }
.video-info > p { color: var(--muted); }
.video-info #video-channel { margin: 0; font-size: .78rem; }
.analysis-details { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 20px; }
.analysis-details > div { padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: #101318; }
.analysis-details span { display: block; margin-bottom: 4px; color: var(--muted-2); font-size: .63rem; text-transform: uppercase; letter-spacing: .06em; }
.analysis-details strong { color: #dce2ec; font-size: .78rem; }
.analysis-settings { display: grid; gap: 14px; margin-top: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: rgba(10,12,16,.52); }
.setting-block { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.setting-block + .setting-block { padding-top: 14px; border-top: 1px solid var(--border); }
.setting-label strong, .setting-label span { display: block; }
.setting-label strong { color: #dce2ec; font-size: .76rem; }
.setting-label span { margin-top: 3px; color: var(--muted-2); font-size: .64rem; }
.count-options { display: flex; flex: 0 0 auto; gap: 4px; padding: 3px; border: 1px solid #2b313b; border-radius: 9px; background: #0b0e12; }
.count-options button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #818b99; font-size: .66rem; font-weight: 750; cursor: pointer; }
.count-options button.active { background: #263a68; color: #cbd8ff; box-shadow: inset 0 0 0 1px rgba(148,177,255,.22); }
.range-setting { align-items: flex-end; }
.range-inputs { display: flex; align-items: flex-end; gap: 6px; }
.range-inputs label > span { display: block; margin: 0 0 4px 2px; color: var(--muted-2); font-size: .58rem; text-transform: uppercase; letter-spacing: .06em; }
.range-inputs input { width: 72px; height: 34px; padding: 0 9px; border: 1px solid #303640; border-radius: 7px; outline: 0; background: #0b0e12; color: #dce4f4; font-family: ui-monospace, monospace; font-size: .7rem; }
.range-inputs input:focus { border-color: #769dff; }
.range-arrow { padding-bottom: 9px; color: #687385; font-size: .7rem; }
.range-inputs button { height: 34px; padding: 0 9px; border: 1px solid #303640; border-radius: 7px; background: #131820; color: #aebbd2; font-size: .62rem; cursor: pointer; }
.billing-note { margin: 13px 0 0 !important; color: #7f8896 !important; font-size: .7rem; line-height: 1.5; }
.analyze-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; margin-top: 17px; }
.analyze-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.progress-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 18px; padding: 24px; }
.progress-orbit { position: relative; display: grid; width: 58px; height: 58px; place-items: center; color: #a9bfff; }
.progress-orbit i { position: absolute; inset: 0; border: 2px solid rgba(131,160,255,.18); border-top-color: #96b3ff; border-radius: 50%; animation: spin 1.1s linear infinite; }
.progress-copy h2 { margin: 4px 0; color: #ecf0f7; font-size: 1rem; }
.progress-copy p { margin: 0; color: var(--muted); font-size: .74rem; }
.progress-track { height: 5px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: #0b0d11; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6d98ff, #abc0ff); transition: width .35s ease; }
#progress-value { color: #b9caff; font-family: ui-monospace, monospace; font-size: .88rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.results-panel { margin-top: 18px; padding: 24px; }
.results-head, .history-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.results-head h2, .history-head h2 { margin: 5px 0 0; color: #eff2f7; font-size: 1.25rem; }
.results-head p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; }
.secondary-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--border); border-radius: 9px; background: #12151a; color: #ccd2dd; cursor: pointer; }
.highlight-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 20px; }
.highlight-card { display: flex; height: 100%; overflow: hidden; flex-direction: column; border: 1px solid #2b313a; border-radius: 13px; background: #101318; transition: border-color .18s ease, transform .18s ease; }
.highlight-card:hover { border-color: #49618f; transform: translateY(-2px); }
.highlight-visual { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #080a0d; }
.highlight-visual::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(8,10,13,.92), transparent 65%); }
.highlight-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.rank-badge, .range-badge { position: absolute; z-index: 1; top: 11px; padding: 5px 7px; border-radius: 6px; font-size: .64rem; font-weight: 800; }
.rank-badge { left: 11px; background: #a4bdff; color: #172143; }.range-badge { right: 11px; background: rgba(7,9,13,.78); color: #edf1f8; }
.platforms { position: absolute; z-index: 1; right: 11px; bottom: 10px; display: flex; gap: 5px; }
.platforms span { padding: 3px 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; background: rgba(8,10,14,.66); color: #bec7d5; font-size: .58rem; }
.highlight-body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.highlight-body h3 { margin: 0; color: #e9edf5; font-size: .98rem; }
.highlight-hook { margin: 8px 0 0; color: #aebbd5; font-size: .75rem; line-height: 1.5; }
.highlight-excerpt { margin: 12px 0 0; padding-left: 11px; border-left: 2px solid #5879c8; color: #929ba9; font-size: .72rem; line-height: 1.55; }
.highlight-why { margin: 10px 0 0; color: #6f7886; font-size: .67rem; line-height: 1.5; }
.highlight-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; padding-top: 14px; }
.highlight-actions a { display: flex; min-height: 39px; align-items: center; justify-content: center; border-radius: 8px; font-size: .71rem; font-weight: 760; text-decoration: none; }
.highlight-actions .open-slicer { background: #9db9ff; color: #142044; }.highlight-actions .watch-source { padding: 0 12px; border: 1px solid var(--border); color: #c2c9d4; }

.history-panel { margin-top: 18px; padding: 22px 24px; }
.history-head > span { color: var(--muted); font-size: .7rem; }
.history-list { display: grid; gap: 8px; margin-top: 16px; }
.history-item { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 12px; padding: 9px; border: 1px solid var(--border); border-radius: 10px; background: #101318; }
.history-item img { width: 62px; height: 42px; border-radius: 7px; object-fit: cover; background: #080a0d; }
.history-item strong { display: block; overflow: hidden; color: #dce1e9; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.history-item small { color: var(--muted-2); font-size: .65rem; }
.history-item button { padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; background: transparent; color: #b9c8ed; font-size: .67rem; cursor: pointer; }
.history-empty { display: grid; min-height: 120px; margin-top: 14px; place-items: center; align-content: center; color: var(--muted-2); text-align: center; }
.history-empty > span { color: #829ee7; }.history-empty strong { margin-top: 5px; color: #aab1bd; font-size: .8rem; }.history-empty small { margin-top: 3px; font-size: .67rem; }

@media (max-width: 820px) {
  .highlights-page { padding-top: 24px; }.highlights-head { align-items: flex-start; flex-direction: column; }.head-proof { display: none; }
  .video-panel { grid-template-columns: 1fr; }.video-cover { min-height: 230px; }.video-cover::after { background: linear-gradient(0deg, rgba(17,20,25,.75), transparent 55%); }
  .highlight-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .url-form { grid-template-columns: 1fr; }.url-form button { min-height: 48px; }.analysis-details { grid-template-columns: 1fr; }
  .setting-block, .range-setting { align-items: stretch; flex-direction: column; }.count-options { display: grid; grid-template-columns: repeat(3, 1fr); }.range-inputs { display: grid; grid-template-columns: 1fr auto 1fr; }.range-inputs input { width: 100%; }.range-inputs button { grid-column: 1 / -1; }.range-arrow { align-self: end; }
  .progress-panel { grid-template-columns: auto 1fr; }.progress-panel > strong { display: none; }.results-head, .history-head { align-items: flex-start; flex-direction: column; }
  .history-item { grid-template-columns: 50px 1fr; }.history-item img { width: 50px; }.history-item button { grid-column: 1 / -1; }
  .highlight-list { grid-template-columns: 1fr; }
}
