:root{--brand:#9ecb48;--brand-dark:#6d991e;--ink:#222;--muted:#777;--line:#ececec}
.recipe-page{padding:16px 16px 28px;background:#fff}
.recipe-page-head{display:flex;align-items:end;justify-content:space-between;margin:2px 0 14px}
.recipe-page-head h1{margin:0;font-size:22px;line-height:1.25;letter-spacing:0}
.recipe-page-head span{color:var(--brand-dark);font-size:14px;font-weight:900}
.recipe-tabs{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;margin:0 -16px 10px;padding:0 16px 12px;scrollbar-width:none;-webkit-overflow-scrolling:touch;border-bottom:8px solid #f5f5f5}
.recipe-tabs::-webkit-scrollbar{display:none}
.recipe-tab{flex:0 0 auto;height:34px;display:flex;align-items:center;padding:0 12px;border:1px solid #e5e5e5;border-radius:7px;background:#fff;color:#555;font-size:14px;font-weight:800;white-space:nowrap}
.recipe-tab.active{border-color:var(--brand);background:var(--brand);color:#fff}
.recipe-list-section{padding-top:6px}
.recipe-list{display:block}
.recipe-list-item{padding-bottom:22px;background:#fff}
.recipe-list-link{display:block;padding:0}
.recipe-list-thumb{position:relative;width:100%;aspect-ratio:16/9;border-radius:8px;background:#f1f1f1;display:grid;place-items:center;color:#aaa;font-size:13px;overflow:hidden}
.recipe-list-thumb::before{content:"레시피 이미지"}
.recipe-list-thumb.has-image::before{display:none}
.recipe-list-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.recipe-list-info{min-width:0;padding:10px 2px 0}
.recipe-list-info h2{margin:0;color:var(--ink);font-size:17px;line-height:1.35;font-weight:900;letter-spacing:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.recipe-list-writer{margin-top:7px;color:#555;font-size:13px;font-weight:800}
.recipe-list-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px;color:#888;font-size:12px}
.recipe-empty{padding:40px 0;color:#888;text-align:center;font-size:14px}
.recipe-load-sentinel{height:48px;display:flex;align-items:center;justify-content:center;color:#888;font-size:13px}
.recipe-view-page{padding-top:0}
.recipe-view-head{padding:18px 0 14px;border-bottom:1px solid var(--line)}
.recipe-view-head h1{margin:0;color:var(--ink);font-size:22px;line-height:1.35;letter-spacing:0}
.recipe-view-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;color:#888;font-size:13px}
.recipe-youtube{width:100%;aspect-ratio:16/9;margin-top:16px;border-radius:8px;background:#111;overflow:hidden}
.recipe-youtube iframe{width:100%;height:100%;display:block;border:0}
.recipe-video-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.recipe-video-button{height:42px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:7px;background:#fff;color:#333;font-size:14px;font-weight:900}
.recipe-video-button::before{content:"";display:block;flex:0 0 auto;margin-right:7px;background-image:url("/images/logo.png");background-repeat:no-repeat}
.recipe-video-button.youtube-button{border-color:#e5e5e5;background:#f5f5f5;color:#333}
.recipe-video-button.youtube-button::before{width:34px;height:25px;background-size:140px 148.75px;background-position:-46.2px -76.3px}
.recipe-video-button.share-button{border-color:#fee500;background:#fee500;color:#191919;cursor:pointer}
.recipe-video-button.share-button::before{width:29px;height:30px;background-size:140px 148.75px;background-position:-8.75px -73.15px}
.recipe-view-content{max-width:100%;padding:18px 0;color:#444;font-size:15px;line-height:1.45;overflow:hidden;overflow-wrap:anywhere;word-break:break-word}
.recipe-view-content *{max-width:100%!important;box-sizing:border-box}
.recipe-view-content p{margin:0 0 5px;line-height:1.45}
.recipe-view-content p:has(> br:only-child){margin:0 0 4px;line-height:.7}
.recipe-view-content p:has(> b > br:only-child){margin:0 0 4px;line-height:.7}
.recipe-view-content b{line-height:1.45}
.recipe-view-content img{max-width:100%!important;height:auto!important}
.recipe-view-content table{width:100%!important;max-width:100%!important;table-layout:fixed}
.recipe-replies{margin:0 -16px;padding:20px 16px;border-top:10px solid #f5f5f5}
.recipe-replies-title{display:flex;align-items:end;justify-content:space-between;gap:10px;margin-bottom:12px}
.recipe-replies-title h2{margin:0;font-size:18px}
.recipe-replies-title h2 span{color:var(--brand-dark)}
.recipe-replies-title p{margin:0;color:#888;font-size:12px}
.recipe-reply-form{padding:12px;border:1px solid #e5e5e5;border-radius:9px;background:#fff}
.recipe-reply-form textarea{width:100%;height:82px;padding:0;border:0;outline:0;resize:none;color:#333;font:inherit;line-height:1.5}
.recipe-reply-form>div{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.recipe-reply-form span{color:#999;font-size:12px}
.recipe-reply-form button{height:34px;padding:0 18px;border-radius:7px;background:var(--brand);color:#fff;font-size:13px;font-weight:900}
.recipe-reply-form button:disabled{opacity:.5}
.recipe-reply-login{display:flex;height:42px;align-items:center;justify-content:center;border:1px solid var(--brand);border-radius:8px;color:var(--brand-dark);font-size:14px;font-weight:900}
.recipe-reply-list{margin-top:14px;border-top:1px solid var(--line)}
.recipe-reply-item{padding:14px 2px;border-bottom:1px solid var(--line)}
.recipe-reply-answer{position:relative;margin:0 0 0 22px;padding:12px 12px 12px 16px;border-bottom:1px solid #e7ecdf;background:#f7faF2}
.recipe-reply-answer::before{content:"";position:absolute;left:-13px;top:15px;width:8px;height:8px;border-left:2px solid #b6c99b;border-bottom:2px solid #b6c99b}
.recipe-reply-answer-label{margin-bottom:6px;color:var(--brand-dark);font-size:11px;font-weight:900}
.recipe-reply-head{display:flex;align-items:center;gap:8px}
.recipe-reply-head strong{font-size:13px}
.recipe-reply-head span{color:#999;font-size:12px}
.recipe-reply-delete{margin-left:auto;padding:3px 5px;background:transparent;color:#999;font-size:12px;text-decoration:underline}
.recipe-reply-content{margin-top:8px;color:#444;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.recipe-reply-empty{margin:0;padding:28px 0;color:#999;text-align:center;font-size:13px}
.recipe-reply-more{width:100%;height:42px;margin-top:12px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#555;font-size:13px;font-weight:800}
.recipe-reply-more:disabled{opacity:.5}
.recipe-related{margin:0 -16px;padding:18px 0 12px;border-top:10px solid #f5f5f5;overflow:hidden}
.recipe-related h2{margin:0 16px 12px;font-size:18px;letter-spacing:0}
.recipe-related-list{display:flex;gap:10px;overflow-x:auto;padding:0 0 10px;scroll-padding-left:16px;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.recipe-related-list::-webkit-scrollbar{display:none}
.recipe-related-item{flex:0 0 calc((100vw - 52px)/2.5);min-width:0;scroll-snap-align:start;background:#fff}
.recipe-related-item:first-child{margin-left:16px}
.recipe-related-item:last-child{margin-right:16px}
.recipe-related-thumb{width:100%;aspect-ratio:1/1;border-radius:8px;background:#f1f1f1;display:grid;place-items:center;overflow:hidden}
.recipe-related-thumb::before{content:"";width:24px;height:24px;border-radius:50%;background:#ddd}
.recipe-related-thumb.has-image::before{display:none}
.recipe-related-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.recipe-related-cart{height:34px;margin-top:7px;border-radius:7px;font-size:12px}
.recipe-related-info{min-width:0}
.recipe-related-info strong{display:-webkit-box;margin:7px 1px 0;color:var(--ink);font-size:13px;line-height:1.35;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.recipe-related-info em{display:block;margin-top:5px;color:#111;font-style:normal;font-size:13px;font-weight:900}
.recipe-empty-view{min-height:calc(100vh - 140px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.recipe-empty-view h1{margin:0;font-size:20px}
.recipe-empty-view a{margin-top:14px;padding:11px 18px;border-radius:7px;background:var(--brand);color:#fff;font-weight:900}
@media (min-width:760px){
  .recipe-page{padding-left:22px;padding-right:22px}
  .recipe-tabs{margin-left:-22px;margin-right:-22px;padding-left:22px;padding-right:22px}
  .recipe-list-item{padding-bottom:26px}
  .recipe-replies{margin-left:-22px;margin-right:-22px;padding-left:22px;padding-right:22px}
  .recipe-related{margin-left:-22px;margin-right:-22px}
  .recipe-related h2{margin-left:22px;margin-right:22px}
  .recipe-related-list{scroll-padding-left:22px}
  .recipe-related-item{flex-basis:180px}
  .recipe-related-item:first-child{margin-left:22px}
  .recipe-related-item:last-child{margin-right:22px}
}
