.youtube-picker-page { --yt-red: #dc2626; --yt-red-dark: #b91c1c; --yt-green: #0f8a78; }
.youtube-picker-page #content { min-width: 0; }
.youtube-picker-page .youtube-hero span { color: var(--yt-red-dark); }
.picker-workspace,
.draw-panel,
.guide-section { margin-top: 24px; border: 1px solid #d9e2ec; border-radius: 8px; background: #fff; overflow: hidden; }
.picker-workspace { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(250px, .82fr); }
.picker-input-panel { padding: 28px; }
.video-preview { min-width: 0; padding: 28px; border-left: 1px solid #d9e2ec; background: #f6f8fb; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading small,
.guide-kicker { display: block; margin-bottom: 5px; color: var(--yt-green); font-size: 12px; font-weight: 900; }
.section-heading h2,
.guide-section h2 { margin: 0; color: #111827; font-size: 25px; line-height: 1.3; }
.privacy-badge,
.pool-count { flex: 0 0 auto; padding: 7px 10px; border-radius: 6px; background: #e7f5f1; color: #087565; font-size: 12px; font-weight: 800; }
.picker-input-panel > label,
.field-group label { display: block; margin: 0 0 8px; color: #1f2937; font-size: 14px; font-weight: 800; }
.field-group label span { color: #8794a8; font-size: 11px; }
.youtube-picker-page input[type="text"],
.youtube-picker-page input[type="number"],
.youtube-picker-page select { width: 100%; height: 50px; margin: 0; border: 1px solid #cdd9e7; border-radius: 7px; background-color: #fff; color: #111827; font-size: 15px; }
.youtube-picker-page input[type="text"],
.youtube-picker-page input[type="number"] { padding: 0 14px; }
.youtube-picker-page input:focus,
.youtube-picker-page select:focus { border-color: var(--yt-green); box-shadow: 0 0 0 3px rgba(15, 138, 120, .12); outline: 0; }
.url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.field-help { margin: 8px 0 0; color: #718096; font-size: 12px; line-height: 1.65; }
.option-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(130px, .8fr) minmax(100px, .65fr); gap: 12px; margin-top: 22px; }
.check-options { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.check-options label { display: inline-flex; align-items: center; gap: 8px; color: #334155; font-size: 13px; font-weight: 700; cursor: pointer; }
.youtube-picker-page input[type="checkbox"] { accent-color: var(--yt-green); }
.primary-action,
.draw-button,
.secondary-action { min-height: 48px; padding: 0 18px; border: 0; border-radius: 7px; font-weight: 800; line-height: 1.25; cursor: pointer; }
.primary-action,
.draw-button { background: var(--yt-red); color: #fff; }
.primary-action:hover,
.draw-button:hover { background: var(--yt-red-dark); }
.secondary-action { border: 1px solid #cdd9e7; background: #fff; color: #334155; }
.secondary-action:hover { background: #f1f5f9; }
.primary-action:disabled,
.draw-button:disabled,
.secondary-action:disabled { cursor: not-allowed; opacity: .48; }
.action-row { display: flex; justify-content: flex-end; margin-top: 18px; }
.status-message { display: none; margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--yt-green); background: #edf8f5; color: #16695d; font-size: 13px; line-height: 1.6; }
.status-message.is-visible { display: block; }
.status-message.is-error { border-color: #dc2626; background: #fff1f1; color: #b42318; }
.status-message.is-loading { border-color: #d97706; background: #fff8e8; color: #8a5600; }
.preview-empty { display: grid; min-height: 310px; place-items: center; align-content: center; text-align: center; }
.preview-empty p { max-width: 240px; margin: 8px 0 0; color: #718096; font-size: 13px; line-height: 1.6; }
.youtube-mark { display: grid; width: 62px; height: 46px; margin-bottom: 14px; place-items: center; border-radius: 8px; background: var(--yt-red); color: #fff; font-size: 19px; }
.preview-content img { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 7px; object-fit: cover; }
.preview-body { padding-top: 17px; }
.preview-body > span { color: var(--yt-red-dark); font-size: 12px; font-weight: 800; }
.preview-body h3 { margin: 6px 0 16px; color: #111827; font-size: 18px; line-height: 1.45; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #d9e2ec; border-radius: 7px; overflow: hidden; }
.preview-stats span { padding: 10px 5px; color: #718096; font-size: 11px; text-align: center; }
.preview-stats span + span { border-left: 1px solid #d9e2ec; }
.preview-stats b { display: block; margin-top: 3px; color: #111827; font-size: 14px; }
.draw-panel { padding: 28px; }
.draw-panel > p { margin: -12px 0 20px; color: #64748b; font-size: 14px; line-height: 1.7; }
.draw-actions,
.result-actions { display: flex; gap: 10px; }
.draw-button { min-width: 220px; }
.winner-results { display: grid; gap: 10px; margin-top: 22px; }
.winner-empty { padding: 42px 20px; border: 1px dashed #c8d5e4; border-radius: 7px; color: #8a97aa; text-align: center; }
.winner-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px; border: 1px solid #d9e2ec; border-radius: 7px; }
.winner-rank { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #e7f5f1; color: #087565; font-weight: 900; }
.winner-info { min-width: 0; }
.winner-name { display: flex; align-items: center; gap: 8px; color: #111827; font-weight: 800; }
.winner-name img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.winner-comment { margin-top: 5px; overflow: hidden; color: #64748b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.winner-card a { color: var(--yt-red-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }
.result-actions { justify-content: flex-end; margin-top: 14px; }
.guide-section { padding: 30px; }
.guide-section > p { color: #64748b; line-height: 1.8; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0 30px; border-top: 1px solid #d9e2ec; border-left: 1px solid #d9e2ec; }
.guide-grid article { padding: 20px; border-right: 1px solid #d9e2ec; border-bottom: 1px solid #d9e2ec; }
.guide-grid b,
.guide-section h3 { color: #172033; }
.guide-grid p { margin: 8px 0 0; color: #64748b; font-size: 14px; line-height: 1.75; }
.guide-section h3 { margin: 30px 0 12px; font-size: 20px; }
.info-list { margin: 0; padding-left: 22px; color: #536278; }
.info-list li { margin: 8px 0; line-height: 1.7; }
.notice-box { margin-top: 24px; padding: 18px 20px; border-left: 4px solid #d97706; background: #fff8e8; }
.notice-box p { margin: 5px 0 0; color: #72521a; font-size: 13px; line-height: 1.7; }
@media screen and (max-width: 980px) { .picker-workspace { grid-template-columns: 1fr; } .video-preview { border-top: 1px solid #d9e2ec; border-left: 0; } .preview-empty { min-height: 210px; } }
@media screen and (max-width: 640px) {
  .picker-input-panel, .video-preview, .draw-panel, .guide-section { padding: 20px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2, .guide-section h2 { font-size: 22px; }
  .privacy-badge { max-width: 120px; text-align: center; }
  .url-row, .option-grid { grid-template-columns: 1fr; }
  .primary-action { width: 100%; }
  .check-options { display: grid; }
  .draw-actions, .result-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .draw-button { min-width: 0; }
  .guide-grid { grid-template-columns: 1fr; }
  .winner-card { grid-template-columns: 38px minmax(0, 1fr); }
  .winner-rank { width: 38px; height: 38px; }
  .winner-card > a { grid-column: 2; justify-self: start; }
}
