/* 메인과 추천 코스에 필요한 기본 스타일만 제공한다. */
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; line-height: 1.6; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
a { color: inherit; }
#main { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 12px; background: #fff; color: #222; border: 2px solid #a52623; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.search-autocomplete { position: absolute; background: #fff; border: 1px solid #d5d9d6; border-radius: 4px; box-shadow: 0 8px 20px #17251b14; padding: 6px; }
.search-autocomplete-item { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 10px; align-items: center; padding: 9px; border-radius: 3px; }
.search-autocomplete-item:hover, .search-autocomplete-item.is-active { background: #f0f3f1; }
.search-autocomplete-item img { width: 76px; aspect-ratio: 16 / 9; object-fit: contain; }
.search-autocomplete-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.5; }
.search-autocomplete-item small { display: block; color: #646b66; font-size: 11px; }
.search-autocomplete mark { background: #fbe4df; color: inherit; }
.search-autocomplete-empty { padding: 14px; font-size: 13px; }
.search-autocomplete-empty span { display: block; color: #666; }
.search-autocomplete-empty div { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.search-autocomplete-empty a { text-decoration: underline; }
.footer-inner { max-width: 1136px; margin: auto; display: grid; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
.footer-brand img { width: 120px; height: auto; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a, .footer-links button { min-height: 40px; display: inline-flex; align-items: center; padding: 4px 8px; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; }
[data-watch-video-card].is-watched { position: relative; opacity: 1; }
[data-watch-video-card].is-watched::after { content: "시청 확인"; position: absolute; left: 6px; top: 6px; padding: 2px 6px; background: #fff; color: #283d30; border-radius: 3px; font-size: 11px; pointer-events: none; }
.pwa-prompt { position: fixed; bottom: 16px; right: 16px; z-index: 80; width: min(380px,calc(100vw - 32px)); padding: 18px; border: 1px solid #d5d9d6; border-radius: 6px; background: #fff; box-shadow: 0 5px 20px #0002; font-size: 13px; }
.pwa-prompt strong, .pwa-prompt span { display: block; }
.pwa-prompt-actions { display: flex; gap: 8px; margin-top: 12px; }
.pwa-prompt button { padding: 8px 12px; border: 1px solid #ddd; background: #fff; border-radius: 4px; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
