/* this-week.css — «이번 주 아토비아» 칸(PRD 43 퍼널 도착지) · 콘텐츠관 · 대문 같이 읽음 · 정본 tools/design_rollback/patches/tw_01.py CSS · 짓는 길 tw_02.py · 데이터 메인워커 · this-week.js 메인기능 */
/* DESIGN-1027:tw-01 BEGIN — 콘텐츠관 «이번 주 아토비아» 칸(PRD 43 퍼널 도착지 · 그 주 영상 세 편 · 쪽 안 재생). 되돌리기 rb.py undo tw-01 */
.atv-this-week[hidden]{display:none!important}
/* #atv-this-week · 카드(곧 id=tw-<갈래>)로 바로 올 때 고정 머리띠(PC 79 · 폰 71px)에 제목이 가리지 않게 — 10-27 텍스트 짚음 · 메인워커 전함(허브 블로그 고리가 여기로 옴) */
.atv-this-week,.atv-this-week .atv-tw-item{scroll-margin-top:96px}
.atv-this-week{--atv-tw-ready:1;margin:0 0 28px;padding:28px 28px 30px;border:1px solid rgba(24,35,55,.1);border-radius:28px;background:rgba(255,255,255,.88);box-shadow:0 18px 48px rgba(24,35,55,.08)}
.atv-this-week .atv-tw-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 0 22px}
.atv-this-week .atv-tw-head .col-kicker{display:block;margin:0 0 6px;color:#136a7d;font-size:13px;font-weight:700;letter-spacing:.12em;line-height:1.4;text-transform:uppercase}
.atv-this-week .atv-tw-head h2{margin:0;color:#182337;font-size:28px;font-weight:700;letter-spacing:-.04em;line-height:1.2}
.atv-this-week .atv-tw-sub{margin:6px 0 0;color:#56606f;font-size:15px;line-height:1.5}
.atv-this-week .atv-tw-range{flex:none;padding:6px 12px;border:1px solid rgba(24,35,55,.14);border-radius:999px;color:#56606f;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.atv-this-week .atv-tw-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:22px;margin:0;padding:0;list-style:none}
.atv-this-week .atv-tw-item{min-width:0;margin:0;padding:0}
.atv-this-week .atv-tw-frame{position:relative;display:flex;justify-content:center;aspect-ratio:16/9;overflow:hidden;border-radius:16px;background:#0e1316}
.atv-this-week .atv-tw-play{position:relative;display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:#0e1316;cursor:pointer}
.atv-this-week .atv-tw-poster{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.atv-this-week .atv-tw-play:hover .atv-tw-poster{transform:scale(1.03)}
.atv-this-week .atv-tw-play:focus-visible{outline:3px solid #136a7d;outline-offset:-3px}
.atv-this-week .atv-tw-icon{position:absolute;bottom:14px;left:14px;width:50px;height:50px;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 6px 18px rgba(0,0,0,.34)}
.atv-this-week .atv-tw-icon::before{position:absolute;top:50%;left:50%;margin:-9px 0 0 -5px;border-style:solid;border-width:9px 0 9px 15px;border-color:transparent transparent transparent #182337;content:""}
.atv-this-week .atv-tw-media{display:block;width:100%;height:100%;border:0;background:#0e1316}
.atv-this-week .atv-tw-item.is-playing[data-shape="short"] .atv-tw-frame{aspect-ratio:9/16;max-height:78vh}
.atv-this-week .atv-tw-body{padding:14px 2px 0}
.atv-this-week .atv-tw-brand{display:inline-block;padding:3px 10px;border-radius:999px;background:#dcf0f3;color:#136a7d;font-size:13px;font-weight:700;line-height:1.5}
.atv-this-week .atv-tw-title{display:-webkit-box;margin:9px 0 4px;overflow:hidden;color:#182337;font-size:17px;font-weight:700;letter-spacing:-.02em;line-height:1.42;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}
.atv-this-week .atv-tw-note{display:-webkit-box;margin:0;overflow:hidden;color:#56606f;font-size:15px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.atv-this-week .atv-tw-product{display:inline-flex;align-items:center;gap:4px;min-height:32px;margin-top:6px;color:#136a7d;font-size:15px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.atv-this-week .atv-tw-product::after{content:"→";text-decoration:none}
/* 글 항목(메인기능 tw-00c · data-kind="article") — 그림을 누르면 그 글로 · 영상 셋 다음 줄에서 시작 · 윗선으로 영상과 가름(10-27 허브 구조 «카드뉴스 = 글») */
.atv-this-week .atv-tw-read-media{display:block;width:100%;height:100%}
.atv-this-week .atv-tw-read-media:hover .atv-tw-poster{transform:scale(1.03)}
.atv-this-week .atv-tw-read-media:focus-visible{outline:3px solid #136a7d;outline-offset:-3px}
.atv-this-week .atv-tw-item[data-kind="article"] .atv-tw-frame{background:#e9eef0}
.atv-this-week .atv-tw-item[data-kind="video"]+.atv-tw-item[data-kind="article"]{grid-column-start:1}
.atv-this-week .atv-tw-item[data-kind="video"]~.atv-tw-item[data-kind="article"]{margin-top:4px;padding-top:24px;border-top:1px solid rgba(24,35,55,.1)}
.atv-this-week .atv-tw-read{display:inline-flex;align-items:center;gap:4px;min-height:32px;margin-top:6px;color:#136a7d;font-size:15px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.atv-this-week .atv-tw-read::after{content:"→";text-decoration:none}
.atv-this-week .atv-tw-read+.atv-tw-product{margin-left:14px}
@media (max-width:700px){
/* 폰: 글은 작은 줄(그림 왼쪽 · 글 오른쪽) — 큰 카드 여섯 장이면 칸이 2,000px 을 넘는다 */
.atv-this-week .atv-tw-item[data-kind="article"]{display:grid;grid-template-columns:116px minmax(0,1fr);gap:12px;align-items:start}
.atv-this-week .atv-tw-item[data-kind="video"]~.atv-tw-item[data-kind="article"]{margin-top:0;padding-top:16px}
.atv-this-week .atv-tw-item[data-kind="video"]~.atv-tw-item[data-kind="article"]~.atv-tw-item[data-kind="article"]{border-top:0;padding-top:0}
.atv-this-week .atv-tw-item[data-kind="article"] .atv-tw-frame{border-radius:10px}
.atv-this-week .atv-tw-item[data-kind="article"] .atv-tw-body{padding:0}
.atv-this-week .atv-tw-item[data-kind="article"] .atv-tw-title{margin:6px 0 2px;font-size:15px}
.atv-this-week .atv-tw-item[data-kind="article"] .atv-tw-note{font-size:14px;-webkit-line-clamp:1}
.atv-this-week .atv-tw-item[data-kind="article"] .atv-tw-read{margin-top:2px;font-size:14px}
.atv-this-week,.atv-this-week .atv-tw-item{scroll-margin-top:88px}
.atv-this-week{margin-bottom:20px;padding:20px 16px 22px;border-radius:22px}
.atv-this-week .atv-tw-head{display:block;margin-bottom:18px}
.atv-this-week .atv-tw-head h2{font-size:24px}
.atv-this-week .atv-tw-range{display:inline-block;margin-top:10px}
.atv-this-week .atv-tw-list{grid-template-columns:minmax(0,1fr);gap:24px}
.atv-this-week .atv-tw-frame{border-radius:14px}
.atv-this-week .atv-tw-title{font-size:16px}}
@media (prefers-reduced-motion:reduce){.atv-this-week .atv-tw-poster{transition:none}.atv-this-week .atv-tw-play:hover .atv-tw-poster,.atv-this-week .atv-tw-read-media:hover .atv-tw-poster{transform:none}}
@media (prefers-color-scheme:dark){
html:not(.atv-light) .atv-this-week{background:rgba(16,22,25,.9);border-color:rgba(255,255,255,.14);box-shadow:0 18px 48px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.08)}
html:not(.atv-light) .atv-this-week .atv-tw-head .col-kicker{color:#9ec8d1}
html:not(.atv-light) .atv-this-week .atv-tw-head h2,html:not(.atv-light) .atv-this-week .atv-tw-title{color:#cfd5e0}
html:not(.atv-light) .atv-this-week .atv-tw-sub,html:not(.atv-light) .atv-this-week .atv-tw-note,html:not(.atv-light) .atv-this-week .atv-tw-range{color:#a9b4bf}
html:not(.atv-light) .atv-this-week .atv-tw-range{border-color:rgba(255,255,255,.16)}
html:not(.atv-light) .atv-this-week .atv-tw-brand{background:rgba(143,217,234,.12);color:#8fd9ea}
html:not(.atv-light) .atv-this-week .atv-tw-product,html:not(.atv-light) .atv-this-week .atv-tw-read{color:#8fd9ea}
html:not(.atv-light) .atv-this-week .atv-tw-frame{box-shadow:0 0 0 1px rgba(255,255,255,.1)}
html:not(.atv-light) .atv-this-week .atv-tw-item[data-kind="article"] .atv-tw-frame{background:#1d262b}
html:not(.atv-light) .atv-this-week .atv-tw-item[data-kind="video"]~.atv-tw-item[data-kind="article"]{border-top-color:rgba(255,255,255,.12)}}
html.atv-dark .atv-this-week{background:rgba(16,22,25,.9);border-color:rgba(255,255,255,.14);box-shadow:0 18px 48px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.08)}
html.atv-dark .atv-this-week .atv-tw-head .col-kicker{color:#9ec8d1}
html.atv-dark .atv-this-week .atv-tw-head h2,html.atv-dark .atv-this-week .atv-tw-title{color:#cfd5e0}
html.atv-dark .atv-this-week .atv-tw-sub,html.atv-dark .atv-this-week .atv-tw-note,html.atv-dark .atv-this-week .atv-tw-range{color:#a9b4bf}
html.atv-dark .atv-this-week .atv-tw-range{border-color:rgba(255,255,255,.16)}
html.atv-dark .atv-this-week .atv-tw-brand{background:rgba(143,217,234,.12);color:#8fd9ea}
html.atv-dark .atv-this-week .atv-tw-product,html.atv-dark .atv-this-week .atv-tw-read{color:#8fd9ea}
html.atv-dark .atv-this-week .atv-tw-frame{box-shadow:0 0 0 1px rgba(255,255,255,.1)}
html.atv-dark .atv-this-week .atv-tw-item[data-kind="article"] .atv-tw-frame{background:#1d262b}
html.atv-dark .atv-this-week .atv-tw-item[data-kind="video"]~.atv-tw-item[data-kind="article"]{border-top-color:rgba(255,255,255,.12)}
/* DESIGN-1027:tw-01 END */
/* 대문 자리 — main.hr 의 «.hr section{padding:128px 0}»(옆 0)을 덮고 hr-wrap 폭에 맞춘다. 밑 «내게 필요한 케어» 칸이 위 224 · 이음선을 가진다 */
main.hr .atv-this-week{width:min(1240px,calc(100% - 64px));margin:72px auto 0;padding:28px 28px 30px}
@media (max-width:700px){main.hr .atv-this-week{width:calc(100% - 48px);margin-top:44px;padding:20px 16px 22px}}
/* 편집형(제안 · 10-27 23시대) — 이번 주 한 편 크게 + 나머지 작은 줄
   여섯 칸 같은 격자는 «새 글 · 새 영상» 피드와 같은 꼴이라 겹쳐 보이고 길다(PC 1,109 · 폰 1,832px). 첫 항목 = 그 주 대표(데이터 차례 맨 앞).
   #atv-this-week 로 거는 것은 글 줄 규칙(.atv-tw-item[data-kind] 다섯 칸 셈)을 덮으려고. */
#atv-this-week .atv-tw-list>li:not(:first-child){display:grid;grid-template-columns:132px minmax(0,1fr);gap:14px;align-items:center;grid-column-start:auto;margin:0;padding:14px 0 0;border-top:0}
#atv-this-week .atv-tw-list>li:nth-child(n+3){padding-top:14px;border-top:1px solid rgba(24,35,55,.1)}
#atv-this-week .atv-tw-list>li:not(:first-child) .atv-tw-frame{border-radius:10px}
#atv-this-week .atv-tw-list>li:not(:first-child) .atv-tw-body{padding:0}
#atv-this-week .atv-tw-list>li:not(:first-child) .atv-tw-title{margin:5px 0 0;font-size:15px;line-height:1.4}
#atv-this-week .atv-tw-list>li:not(:first-child) .atv-tw-note{display:none}
#atv-this-week .atv-tw-list>li:not(:first-child) .atv-tw-read,#atv-this-week .atv-tw-list>li:not(:first-child) .atv-tw-product{min-height:28px;margin-top:2px;font-size:14px}
#atv-this-week .atv-tw-list>li:not(:first-child) .atv-tw-icon{bottom:6px;left:6px;width:30px;height:30px}
#atv-this-week .atv-tw-list>li:not(:first-child) .atv-tw-icon::before{margin:-6px 0 0 -3px;border-width:6px 0 6px 10px}
#atv-this-week .atv-tw-list>li:not(:first-child).is-playing{display:block}
#atv-this-week .atv-tw-list>li:not(:first-child).is-playing .atv-tw-frame{margin-bottom:10px}
#atv-this-week .atv-tw-list>li:first-child .atv-tw-title{font-size:21px;line-height:1.38}
@media (min-width:701px){
#atv-this-week .atv-tw-list{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:0 36px}
#atv-this-week .atv-tw-list>li:first-child{grid-column:1;grid-row:1 / span 6}
#atv-this-week .atv-tw-list>li:not(:first-child){grid-column:2}}
@media (max-width:700px){
#atv-this-week .atv-tw-list{gap:0}
#atv-this-week .atv-tw-list>li:first-child{padding-bottom:6px}
#atv-this-week .atv-tw-list>li:not(:first-child){grid-template-columns:116px minmax(0,1fr)}
#atv-this-week .atv-tw-list>li:first-child .atv-tw-title{font-size:18px}}
@media (prefers-color-scheme:dark){html:not(.atv-light) #atv-this-week .atv-tw-list>li:nth-child(n+3){border-top-color:rgba(255,255,255,.12)}}
html.atv-dark #atv-this-week .atv-tw-list>li:nth-child(n+3){border-top-color:rgba(255,255,255,.12)}

/* 이번 주 아토비아 — 콘텐츠관 «콘텐츠 모음» 결로 (2026-11-07 메인기능 · PRD 43 둘째 판)
   그 주에 올라온 콘텐츠를 모두 보여 주고 콘텐츠관 «전체 보기» 단추를 둔다. 칸 HTML 은 서버 정기 작업이 첫 화면에 미리 박는다
   (atovia-contents-seed.py · 로딩 전후 같음) · 넘기기 · 제자리 재생은 this-week.js. 옛 판(tw-01~04) 규칙과 이름이 겹치지 않게 twd- 로. */
.atv-twd{--twd-ink:#13233a;--twd-muted:#64748b;--twd-teal:#17758f;--twd-teal-2:#17758f;--twd-line:rgba(15,35,60,.09);
  --twd-read:#fffdf8;--twd-watch:#f7fbfc;--twd-card:#fff;--twd-shadow:0 22px 44px -30px rgba(15,35,60,.38);
  max-width:1240px;margin:0 auto;padding:64px 20px 56px;color:var(--twd-ink);}
.atv-twd[hidden]{display:none!important}
.twd-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 26px}
.twd-kicker{display:block;margin:0 0 10px;font-size:13px;font-weight:800;letter-spacing:.16em;color:var(--twd-teal)}
.twd-head h2{margin:0 0 8px;font-size:clamp(26px,3.2vw,34px);font-weight:800;letter-spacing:-.02em;line-height:1.2}
.twd-head p{margin:0;font-size:15px;line-height:1.6;color:var(--twd-muted)}
.twd-head-side{display:flex;align-items:center;gap:10px;flex:none}
.twd-range{padding:9px 16px;border:1px solid var(--twd-line);border-radius:999px;font-size:13px;font-weight:700;color:var(--twd-muted);background:#fff;white-space:nowrap}
.twd-cta{display:inline-flex;align-items:center;gap:6px;padding:12px 20px;border-radius:999px;background:#13233a;color:#fff!important;
  font-size:14px;font-weight:800;text-decoration:none;white-space:nowrap;box-shadow:0 10px 22px -14px rgba(19,35,58,.8)}
.twd-cta:hover{background:#0f6f88}
.twd-grid{display:grid;grid-template-columns:minmax(290px,.95fr) 2.2fr;gap:22px;align-items:stretch}
.twd-panel{border:1px solid var(--twd-line);border-radius:28px;padding:24px 22px 22px;box-shadow:var(--twd-shadow);min-width:0}
.twd-read{background:var(--twd-read)}
.twd-watch{background:linear-gradient(180deg,#fff,var(--twd-watch))}
.twd-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.twd-panel-head>div:first-child{display:flex;align-items:baseline;gap:10px}
.twd-panel-head span{font-size:13px;font-weight:800;letter-spacing:.14em;color:var(--twd-teal)}
.twd-panel-head h3{margin:0;font-size:19px;font-weight:800;white-space:nowrap}
.twd-nav{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:var(--twd-ink)}
.twd-nav .twd-count{color:var(--twd-muted);font-weight:700;margin-right:2px}
.twd-nav button{width:34px;height:34px;border-radius:999px;border:1px solid var(--twd-line);background:#fff;color:var(--twd-ink);
  font-size:15px;cursor:pointer;display:inline-grid;place-items:center;padding:0}
.twd-nav button:hover{border-color:var(--twd-teal);color:var(--twd-teal)}
.twd-nav i{font-style:normal;color:var(--twd-muted)}
.twd-nav>span{white-space:nowrap}
.twd-stack{position:relative}
.twd-card{display:none}
.twd-card.is-on{display:flex}
.twd-vid.is-on{display:block}
.twd-short .twd-stack{display:flex;justify-content:center;width:100%}
/* 글 */
.twd-post{flex-direction:column;position:relative;z-index:2;background:var(--twd-card);border:1px solid var(--twd-line);border-radius:22px;
  padding:10px 10px 18px;text-decoration:none;color:var(--twd-ink);box-shadow:0 18px 30px -24px rgba(15,35,60,.5)}
.twd-read .twd-stack::before,.twd-read .twd-stack::after{content:"";position:absolute;left:12px;right:-6px;top:10px;bottom:-8px;border-radius:22px;
  background:#fff;border:1px solid var(--twd-line);z-index:1}
.twd-read .twd-stack::after{left:24px;right:-12px;top:20px;bottom:-16px;z-index:0;opacity:.7}
.twd-thumb{display:block;aspect-ratio:16/12;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,#e8f2f5,#f6efe6)}
.twd-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.twd-meta{display:flex;justify-content:space-between;gap:10px;margin:14px 8px 8px;font-size:13px}
.twd-meta b{color:var(--twd-teal);font-weight:800}
.twd-meta time{color:var(--twd-muted)}
.twd-post strong{margin:0 8px;font-size:16.5px;line-height:1.5;font-weight:800;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3em}
.twd-post em{margin:12px 8px 0;font-style:normal;font-size:13.5px;font-weight:800;color:var(--twd-teal-2)}
.twd-strips{margin-top:22px;display:grid;gap:6px}
.twd-strip{display:flex;gap:10px;align-items:center;padding:9px 14px;border-radius:14px;background:rgba(255,255,255,.75);border:1px solid var(--twd-line);
  font-size:13px;color:var(--twd-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;text-align:left;width:100%}
.twd-strip b{flex:none;font-size:13px;letter-spacing:.12em;color:var(--twd-teal);font-weight:800}
.twd-strip span{overflow:hidden;text-overflow:ellipsis}
/* 영상 */
.twd-watch-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:16px}
.twd-sub{border:1px solid var(--twd-line);border-radius:22px;background:#fff;padding:16px 16px 14px;display:flex;flex-direction:column;min-width:0}
.twd-sub-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0 0 14px}
.twd-sub-head span{font-size:13px;font-weight:800;letter-spacing:.14em;color:var(--twd-teal)}
.twd-sub-head h4{display:inline;margin:0 0 0 8px;font-size:15px;font-weight:800}
.twd-sub-head small{font-size:13px;font-weight:700;color:var(--twd-muted)}
.twd-vid{position:relative;border:0;padding:0;margin:0;width:100%;cursor:pointer;background:#0b1216;color:#fff;overflow:hidden;text-align:left;font:inherit}
.twd-long .twd-vid{aspect-ratio:16/9;border-radius:18px;box-shadow:0 22px 34px -22px rgba(0,0,0,.65)}
.twd-vid img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.twd-vid::after{content:"";position:absolute;inset:auto 0 0 0;height:58%;background:linear-gradient(transparent,rgba(5,10,14,.88))}
.twd-badge{position:absolute;z-index:2;left:12px;top:12px;padding:6px 12px;border-radius:999px;background:rgba(10,16,20,.7);border:1px solid rgba(255,255,255,.25);
  font-size:13px;font-weight:800;letter-spacing:.08em}
.twd-vcopy{position:absolute;z-index:2;left:16px;right:16px;bottom:14px;display:grid;gap:6px}
.twd-vcopy time{font-size:13px;font-weight:700;color:rgba(255,255,255,.75)}
.twd-vcopy strong{font-size:15px;line-height:1.45;font-weight:800;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.twd-play{position:absolute;z-index:2;right:14px;top:12px;width:40px;height:40px;border-radius:999px;background:rgba(255,255,255,.92);color:#13233a;
  display:grid;place-items:center;font-size:14px}
.twd-vid.is-playing::after,.twd-vid.is-playing .twd-badge,.twd-vid.is-playing .twd-vcopy,.twd-vid.is-playing .twd-play,.twd-vid.is-playing img{display:none}
.twd-vid iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.twd-long .twd-strip{background:#141c22;color:rgba(255,255,255,.82);border-color:transparent}
.twd-long .twd-strip b{color:#5fd3d9}
.twd-long .twd-strip--prev{margin-bottom:8px}
.twd-long .twd-strip--next{margin-top:8px}
.twd-short-stage{position:relative;display:flex;justify-content:center;align-items:center;flex:1;min-height:0;padding:4px 0 8px}
.twd-short .twd-vid{width:min(100%,190px);aspect-ratio:9/16;border-radius:16px;z-index:2;box-shadow:0 20px 34px -20px rgba(0,0,0,.7)}
.twd-short .twd-vcopy strong{font-size:13.5px}
.twd-peek{position:absolute;top:50%;width:min(36%,120px);aspect-ratio:9/16;transform:translateY(-50%);border-radius:14px;overflow:hidden;opacity:.55;z-index:1;
  background:#dfe8ec;border:0;padding:0;cursor:pointer}
.twd-peek img{width:100%;height:100%;object-fit:cover;display:block}
.twd-peek--prev{left:0}
.twd-peek--next{right:0}
.twd-sub .twd-nav{justify-content:center;margin-top:12px}
.twd-empty{padding:30px 10px;text-align:center;color:var(--twd-muted);font-size:14px}
/* 영상 · 음악 탭 — 한 칸 안에서 고른다. PC 는 두 판을 겹쳐 세워 높이가 같다(탭을 바꿔도 아래가 안 밀림) */
.twd-tabs{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:rgba(15,35,60,.06)}
.twd-tabs button{border:0;background:transparent;padding:8px 16px;border-radius:999px;font:inherit;font-size:13.5px;font-weight:800;color:var(--twd-muted);cursor:pointer;white-space:nowrap}
.twd-tabs button b{margin-left:4px;font-weight:800}
.twd-tabs button.is-on{background:#fff;color:var(--twd-ink);box-shadow:0 4px 10px -6px rgba(15,35,60,.5)}
.twd-panes{display:grid}
.twd-pane{grid-area:1/1;min-width:0}
.twd-pane:not(.is-on){visibility:hidden;pointer-events:none}
.twd-genre-rows{display:grid;gap:10px;align-content:start}
.twd-genre{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;padding:8px;border-radius:16px;
  border:1px solid var(--twd-line);background:var(--twd-card);color:var(--twd-ink);font:inherit;text-align:left;cursor:pointer}
.twd-genre:hover{border-color:var(--twd-teal)}
.twd-genre img{width:96px;aspect-ratio:16/9;object-fit:cover;border-radius:10px;display:block}
.twd-genre b{display:block;font-size:14.5px;font-weight:800}
.twd-genre small{display:block;margin-top:2px;font-size:13px;color:var(--twd-muted);white-space:nowrap}
.twd-genre em{font-style:normal;font-size:13px;font-weight:800;color:var(--twd-teal-2);white-space:nowrap}
@media (max-width:1080px){.twd-grid{grid-template-columns:1fr}.twd-read .twd-stack{max-width:520px}}
@media (max-width:760px){.twd-pane:not(.is-on){display:none}
  .twd-panel-head{flex-wrap:wrap;row-gap:10px}.twd-panel-head .twd-nav,.twd-panel-head .twd-tabs{margin-left:auto}}
@media (max-width:760px){.atv-twd{padding:44px 16px 40px}.twd-head{flex-direction:column;align-items:flex-start}.twd-head-side{flex-wrap:wrap}
  .twd-watch-grid{grid-template-columns:1fr}.twd-panel{padding:18px 14px 16px;border-radius:22px}.twd-short .twd-vid{width:min(62%,200px)}
  .twd-long .twd-vcopy strong{-webkit-line-clamp:1;font-size:14px}.twd-long .twd-vcopy{bottom:10px}.twd-badge{top:10px;left:10px;padding:5px 10px}}
/* 다크 — 청록은 공용 다크 링크색(#8fd3e6) 계열(디자인 11-07 tw2-a11y · 라이트 #17758f 는 다크 바탕 2.97~3.46 이었다) */
html.atv-dark .atv-twd{--twd-teal:#7fd0e6;--twd-teal-2:#8fd3e6;--twd-ink:#e7eef3;--twd-muted:#9fb0bc;--twd-line:rgba(255,255,255,.1);--twd-read:#141b20;--twd-watch:#10181d;--twd-card:#1a232a}
html.atv-dark .twd-range,html.atv-dark .twd-nav button,html.atv-dark .twd-sub{background:#162027;color:var(--twd-ink)}
html.atv-dark .twd-watch{background:linear-gradient(180deg,#141c22,var(--twd-watch))}
html.atv-dark .twd-tabs{background:rgba(255,255,255,.06)}
html.atv-dark .twd-tabs button.is-on{background:#24323c}
html.atv-dark .twd-read .twd-stack::before,html.atv-dark .twd-read .twd-stack::after{background:#1a232a}
html.atv-dark .twd-strip{background:rgba(255,255,255,.04)}
html.atv-dark .twd-cta{background:#e7eef3;color:#13233a!important}
@media (prefers-color-scheme:dark){html:not(.atv-light) .atv-twd{--twd-teal:#7fd0e6;--twd-teal-2:#8fd3e6;--twd-ink:#e7eef3;--twd-muted:#9fb0bc;--twd-line:rgba(255,255,255,.1);--twd-read:#141b20;--twd-watch:#10181d;--twd-card:#1a232a}
  html:not(.atv-light) .twd-range,html:not(.atv-light) .twd-nav button,html:not(.atv-light) .twd-sub{background:#162027;color:var(--twd-ink)}
  html:not(.atv-light) .twd-watch{background:linear-gradient(180deg,#141c22,var(--twd-watch))}
  html:not(.atv-light) .twd-tabs{background:rgba(255,255,255,.06)}
  html:not(.atv-light) .twd-tabs button.is-on{background:#24323c}
  html:not(.atv-light) .twd-read .twd-stack::before,html:not(.atv-light) .twd-read .twd-stack::after{background:#1a232a}
  html:not(.atv-light) .twd-strip{background:rgba(255,255,255,.04)}
  html:not(.atv-light) .twd-cta{background:#e7eef3;color:#13233a!important}}
