/* Video discovery and the next step share the site's existing color tokens. */
.mp-video-page { color: var(--mp-ink); overflow-wrap: anywhere; }
.mp-video-breadcrumb, .mp-video-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--mp-muted); font-size: 13px; }
.mp-video-breadcrumb { margin-bottom: 18px; }
.mp-video-breadcrumb a { min-height: 32px; display: inline-flex; align-items: center; }
.mp-video-header { margin-bottom: 24px; max-width: 900px; }
.mp-video-eyebrow { color: var(--mp-primary); font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.mp-video-header h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.4; font-weight: 750; margin: 10px 0 14px; letter-spacing: -.03em; }
.mp-video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 28px; }
.mp-video-main, .mp-video-sidebar { min-width: 0; }
.mp-video-player { aspect-ratio: 16 / 9; background: #101820; border-radius: 14px; overflow: hidden; }
.mp-video-player iframe { width: 100%; height: 100%; border: 0; }
.mp-video-play { position: relative; display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: white; }
.mp-video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-video-play span { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 12px; background: #101820e6; font-weight: 700; }
.mp-video-play i { font-style: normal; color: white; font-size: 24px; }
.mp-video-play:focus-visible { outline: 3px solid white; outline-offset: -5px; }
.mp-video-source { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 20px; font-size: 13px; color: var(--mp-muted); }
.mp-video-source a { min-height: 32px; display: inline-flex; align-items: center; }
.mp-video-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.mp-app .mp-video-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--mp-border); border-radius: 10px; color: var(--mp-ink); background: var(--mp-surface); font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; }
.mp-app .mp-video-action-primary { background: var(--mp-primary); color: white; border-color: var(--mp-primary); }
.mp-app .mp-video-action:hover { border-color: var(--mp-primary); }
.mp-app .mp-video-action-primary:hover { background: var(--mp-primary-hover); }
.mp-video-section, .mp-video-next { padding: 24px; border: 1px solid var(--mp-border); background: var(--mp-surface); border-radius: 14px; margin-bottom: 20px; }
.mp-video-section h2, .mp-video-section summary, .mp-video-next h2 { font-size: 18px; font-weight: 750; line-height: 1.5; margin: 0; }
.mp-video-section h2 { margin-bottom: 16px; }
.mp-video-summary { color: var(--mp-ink); line-height: 1.8; }
.mp-video-points { margin-top: 18px; padding-left: 22px; list-style: decimal; }
.mp-video-points li { padding: 4px 0 4px 4px; color: var(--mp-muted); line-height: 1.75; }
.mp-video-points li::marker { color: var(--mp-primary); font-weight: 700; }
.mp-video-description summary { cursor: pointer; min-height: 44px; }
.mp-video-description p { white-space: pre-line; line-height: 1.85; font-size: 14px; color: var(--mp-muted); margin-top: 12px; }
.mp-video-entities + .mp-video-entities { margin-top: 16px; }
.mp-video-entities h3 { font-size: 13px; color: var(--mp-muted); margin-bottom: 6px; }
.mp-video-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-video-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--mp-border); border-radius: 8px; color: var(--mp-primary); font-size: 14px; }
.mp-video-tags { display: flex; flex-wrap: wrap; gap: 8px; color: var(--mp-muted); font-size: 13px; margin: 20px 0; }
.mp-video-next { background: var(--mp-primary-soft); }
.mp-video-next-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.mp-video-next-heading img { flex: none; border-radius: 12px; }
.mp-video-next > .mp-video-action { width: 100%; justify-content: space-between; }
.mp-video-service-links { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 12px 0; font-size: 13px; }
.mp-video-service-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.mp-video-offer { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: white; border: 1px solid var(--mp-border); border-radius: 10px; padding: 16px; }
.mp-video-offer strong { font-size: 15px; }
.mp-video-offer small { display: block; color: var(--mp-muted); font-size: 12px; margin-top: 5px; }
.mp-video-apps { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--mp-border); scroll-margin-top: 100px; }
.mp-video-apps h3 { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.mp-video-store-links { display: grid; gap: 8px; }
.mp-video-guides { display: grid; gap: 12px; }
.mp-video-recommendation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mp-video-recommendation-grid > #video-related { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mp-video-recommendations { margin-top: 20px; }
.mp-video-editorial-body { font-size: 15px; line-height: 1.85; }
.mp-video-editorial-body h2, .mp-video-editorial-body h3 { margin: 24px 0 12px; font-size: 17px; font-weight: 750; }
.mp-video-editorial-body p, .mp-video-editorial-body ul, .mp-video-editorial-body ol { margin: 12px 0; }
.mp-video-editorial-body ul { list-style: disc; padding-left: 24px; }
.mp-video-editorial-body ol { list-style: decimal; padding-left: 24px; }
.mp-video-editorial-body a, .mp-video-editorial-sources a { text-decoration: underline; text-underline-offset: 3px; color: var(--mp-primary); }
.mp-video-editorial-body table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; }
.mp-video-editorial-body th, .mp-video-editorial-body td { border: 1px solid var(--mp-border); padding: 8px 12px; }
.mp-video-editorial-sources { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--mp-border); color: var(--mp-muted); font-size: 13px; }
.mp-video-editorial-sources li { margin-top: 8px; }
.mp-video-ad { margin: 32px 0; padding-top: 16px; border-top: 1px solid var(--mp-border); }
.mp-video-ad > p { margin: 0 0 8px; font-size: 12px; color: var(--mp-muted); }
.mp-video-guide { display: block; padding: 16px; border: 1px solid var(--mp-border); border-radius: 10px; }
.mp-video-guide h3 { margin: 6px 0; font-size: 16px; font-weight: 700; }
.mp-video-guide p { color: var(--mp-muted); font-size: 14px; line-height: 1.7; }
.mp-video-related { margin-top: 32px; }
.mp-video-related > h2 { font-size: 22px; font-weight: 750; margin-bottom: 20px; }
.mp-video-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mp-video-related-card { border: 1px solid var(--mp-border); border-radius: 12px; overflow: hidden; background: white; }
.mp-video-related-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mp-video-related-card div { padding: 14px; }
.mp-video-related-card h3 { font-weight: 700; line-height: 1.6; }
.mp-video-related-card p { color: var(--mp-muted); font-size: 13px; margin-top: 8px; }
.mp-video-library-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0; }
/* 경주 영상 비교 진입 카드 (영상 상세 사이드바) — 비교 화면과 같은 A/B 표시를 쓴다 */
.mp-vc-card { padding: 20px; border: 1px solid var(--mp-border); background: var(--mp-surface); border-radius: 14px; margin-bottom: 20px; }
.mp-vc-card h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.03em; margin: 6px 0 8px; font-weight: 800; }
.mp-vc-card > p { color: var(--mp-muted); font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.mp-vc-slot { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; background: var(--mp-primary-soft); border: 1px solid #d9e2f3; }
.mp-vc-slot + .mp-vc-slot { margin-top: 8px; }
.mp-vc-slot strong { display: block; font-size: 14px; }
.mp-vc-slot small { display: block; color: var(--mp-muted); font-size: 11.5px; margin-top: 2px; }
.mp-vc-slot.empty { background: #fafbfc; border-style: dashed; border-color: #aab4c3; }
.mp-vc-card > .mp-video-action { width: 100%; margin-top: 14px; }
.mp-vc-features { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--mp-border); color: var(--mp-muted); font-size: 12px; }
.mp-vc-features li { padding: 3px 0; }
.mp-vc-features li::before { content: '✓'; color: var(--mp-primary); margin-right: 6px; font-weight: 700; }
.mp-vc-lane { display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 28px; border-radius: 7px; font-size: 12px; font-weight: 800; flex: none; }
.mp-vc-lane.a { color: #3157a4; background: #dbe6fa; }
.mp-vc-lane.b { color: #795000; background: #f7eedb; }
.mp-vc-lane.sm { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
@media (min-width: 1024px) { .mp-video-sidebar { position: sticky; top: 88px; } }
@media (max-width: 1023px) {
    .mp-video-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .mp-video-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mp-video-store-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .mp-video-recommendation-grid { grid-template-columns: minmax(0, 1fr); }
    .mp-video-recommendation-grid > #video-related { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
    .mp-video-section, .mp-video-next { padding: 18px; }
    .mp-video-quick-actions .mp-video-action { flex: 1; }
    /* 비교 버튼이 붙으면 4개를 2×2 로 — 한 줄에 4개면 글자가 두 줄로 꺾인다 */
    .mp-video-quick-actions.has-compare .mp-video-action { flex: 1 1 calc(50% - 4px); }
    .mp-video-related-grid { grid-template-columns: minmax(0, 1fr); }
    .mp-video-store-links { grid-template-columns: minmax(0, 1fr); }
}

/* 영상 상세 경주일·채널 블록, 채널 모음, 목록 채널 줄 (2026-10-30 시안 m3-video, 2026-11-01 운영 편입) */
.mp-m3-summary { margin: 0; color: var(--mp-ink); font-size: 15px; line-height: 1.75; max-width: 860px; }
.mp-m3-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mp-m3-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border-radius: 999px; background: var(--mp-primary-soft); border: 1px solid #d9e2f3; color: var(--mp-primary); font-size: 13px; font-weight: 700; }
.mp-m3-chip.plain { background: var(--mp-surface); border-color: var(--mp-border); color: var(--mp-ink); font-weight: 600; }
.mp-m3-chip:hover { border-color: var(--mp-primary); }
.mp-m3-sub { color: var(--mp-muted); font-size: 13.5px; line-height: 1.65; margin: -8px 0 14px; }
.mp-m3-day h2 { margin: 4px 0 14px; }
.mp-m3-tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mp-m3-track { border: 1px solid var(--mp-border); border-radius: 12px; padding: 12px 12px 8px; min-width: 0; }
.mp-m3-track header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 2px 6px; }
.mp-m3-track header strong { font-size: 16px; }
.mp-m3-track header small { color: var(--mp-muted); font-size: 12px; font-weight: 600; margin-left: 4px; }
.mp-m3-track header a { color: var(--mp-primary); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.mp-m3-track-line { color: var(--mp-muted); font-size: 13px; margin: 0 2px 6px; }
.mp-m3-races { list-style: none; margin: 0; padding: 0; }
.mp-m3-races a { display: grid; grid-template-columns: 52px 46px minmax(0, 1fr); gap: 6px; align-items: center; min-height: 40px; padding: 2px 6px; border-radius: 8px; font-size: 13.5px; }
.mp-m3-races a:hover { background: var(--mp-primary-soft); }
.mp-m3-races time { color: var(--mp-primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.mp-m3-races span { color: var(--mp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-m3-daylinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mp-m3-lock { font-size: 11px; color: var(--mp-muted); }
.mp-m3-note { margin: 12px 0 0; color: var(--mp-muted); font-size: 12.5px; line-height: 1.6; }
.mp-m3-channel h2 { margin: 4px 0 12px; }
.mp-m3-channel .mp-video-action { width: 100%; margin-top: 8px; }
.mp-m3-prevnext { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--mp-border); }
.mp-m3-prevnext a { display: block; padding: 10px 12px; border: 1px solid var(--mp-border); border-radius: 10px; }
.mp-m3-prevnext a:hover { border-color: var(--mp-primary); }
.mp-m3-prevnext small { display: block; color: var(--mp-muted); font-size: 11.5px; }
.mp-m3-prevnext span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.mp-m3-related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 16px; margin-bottom: 18px; }
.mp-m3-related-head h2 { font-size: 22px; font-weight: 750; margin: 0; }
.mp-m3-related-head p { color: var(--mp-muted); font-size: 13px; margin: 4px 0 0; }
.mp-m3-related-head > a { color: var(--mp-primary); font-size: 14px; font-weight: 700; white-space: nowrap; }
.mp-video-related + .mp-video-related { margin-top: 40px; }
.mp-video-related-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 채널 모음 */
.mp-m3-chheader h1 { margin-bottom: 10px; }
.mp-m3-h1sub { display: block; color: var(--mp-muted); font-size: .58em; font-weight: 700; margin-top: 4px; }
.mp-m3-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--mp-muted); font-size: 13px; margin-bottom: 12px; }
.mp-m3-stats b { color: var(--mp-ink); }
.mp-m3-first { margin-top: 8px; }
.mp-m3-day-group { background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: 14px; padding: 16px 20px 8px; margin-bottom: 14px; }
.mp-m3-day-group > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--mp-border); }
.mp-m3-day-group h3 { font-size: 17px; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.mp-m3-day-group h3 small { color: var(--mp-muted); font-size: 13px; font-weight: 600; margin-left: 6px; }
.mp-m3-day-links { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-m3-day-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 2px 10px; border: 1px solid var(--mp-border); border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.mp-m3-day-links a:hover { border-color: var(--mp-primary); color: var(--mp-primary); }
.mp-m3-vrow { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; }
.mp-m3-vrow + .mp-m3-vrow { border-top: 1px solid #f1f3f6; }
.mp-m3-vrow img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #e5e7eb; }
.mp-m3-vrow h4 { font-size: 15px; font-weight: 700; line-height: 1.5; margin: 4px 0 0; }
.mp-m3-vrow p { color: var(--mp-muted); font-size: 12.5px; margin: 4px 0 0; }
.mp-m3-vrow:hover h4 { color: var(--mp-primary); }
.mp-m3-kind { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--mp-primary-soft); color: var(--mp-primary); font-size: 11.5px; font-weight: 700; }
.mp-m3-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mp-m3-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 0; }
.mp-m3-pager .mp-video-action { min-width: 46px; }
.mp-m3-channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.mp-m3-channels a { display: block; padding: 12px 14px; border: 1px solid var(--mp-border); border-radius: 12px; background: var(--mp-surface); min-width: 0; }
.mp-m3-channels a:hover { border-color: var(--mp-primary); }
.mp-m3-channels strong { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-m3-channels small { display: block; color: var(--mp-muted); font-size: 12px; margin-top: 3px; }
/* 영상 목록 머리 — 채널별 모음 줄 */
.mp-m3-chrow { display: flex; align-items: center; gap: 10px; margin: -8px 0 20px; min-width: 0; }
.mp-m3-chrow-label { flex: none; font-size: 13px; font-weight: 800; color: var(--mp-ink); }
.mp-m3-chrow-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1; padding: 2px 0; }
.mp-m3-chrow-list::-webkit-scrollbar { display: none; }
.mp-m3-chrow-list a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--mp-border); border-radius: 999px; background: var(--mp-surface); font-size: 13px; font-weight: 600; white-space: nowrap; }
.mp-m3-chrow-list a:hover { border-color: var(--mp-primary); color: var(--mp-primary); }
.mp-m3-chrow-list small { color: var(--mp-muted); font-size: 11.5px; font-weight: 600; }
.mp-m3-chrow-all { flex: none; color: var(--mp-primary); font-size: 13px; font-weight: 700; white-space: nowrap; }
@media (max-width: 1023px) {
    .mp-m3-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .mp-m3-tracks { grid-template-columns: minmax(0, 1fr); }
    .mp-m3-related-head { flex-direction: column; align-items: flex-start; }
    .mp-m3-related-head h2 { font-size: 20px; }
    .mp-m3-day-group { padding: 14px 14px 6px; }
    .mp-m3-vrow { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
    .mp-m3-vrow h4 { font-size: 14px; -webkit-line-clamp: 3; }
    .mp-m3-chrow { flex-wrap: wrap; }
    .mp-m3-chrow-list { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .mp-m3-chrow-all { margin-left: auto; }
}
@media (max-width: 480px) {
    .mp-m3-grid4 { grid-template-columns: minmax(0, 1fr); }
    .mp-m3-rel .mp-video-related-grid { gap: 10px; }
    .mp-m3-rel .mp-video-related-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; }
    .mp-m3-rel .mp-video-related-card img { height: 100%; }
    .mp-m3-rel .mp-video-related-card div { padding: 8px 10px; }
    .mp-m3-rel .mp-video-related-card h3 { font-size: 13.5px; line-height: 1.45; }
    .mp-m3-rel .mp-video-related-card p { font-size: 11.5px; margin-top: 4px; }
    .mp-m3-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
