/* =========================================================
   OBS 메인 (다크 리뉴얼) - 반응형
   ---------------------------------------------------------
   Desktop : 1200px 이상  (시안 기준 1300 컨텐츠 / 히어로 1340, 1200 이하로 유동 축소)
   Tablet  : 768 ~ 1199px
   Mobile  : 767px 이하
   ========================================================= */
:root{
  --bg:#0b0b0c;
  --surface:#18191d;
  --surface-2:#22242a;
  --line:#2c2e35;
  --text:#f2f2f4;
  --text-2:#a9abb3;
  --text-3:#6d7079;
  --point:#4341af;
  --brand:#28497e;
  --red:#e84747;
  --pink:#e2306c;
  --link:#5b8cff;
  --g:20px;                      /* 좌우 여백 */
  --sec-gap:80px;                /* 섹션 간격 */
  --head-gap:20px;               /* 타이틀 → 컨텐츠 */
  --header-h:70px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg)}
body{font-family:"NanumSquareAc","Noto Sans KR",sans-serif;color:var(--text);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
body.menu_open{overflow:hidden}
a{color:inherit;text-decoration:none}
ul{list-style:none}
img{display:block;width:100%;height:100%;object-fit:cover}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.contents_body{width:calc(100% - var(--g) * 2);max-width:1300px;margin:0 auto;position:relative}
.ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ellipsis2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.thumb{position:relative;overflow:hidden;background:var(--surface-2)}
.thumb img{transition:transform .35s ease}
@media (hover:hover){a:hover .thumb img,.thumb:hover img{transform:scale(1.04)}}

/* ---------- 섹션 공통 ---------- */
.m_section{margin-top:var(--sec-gap)}
.m_section.first{margin-top:70px}
.m_section.narrow{margin-top:80px}      /* 배너/롤링 영역 */
.sec_head{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--head-gap);min-height:26px}
.sec_head h2{font-size: 26px;font-weight: 500;letter-spacing:-.3px;display:flex;align-items:center;gap:14px}
.sec_more{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--text-2);white-space:nowrap}
.sec_more:after,.btn_pill:after{content:"";flex:none;width:7px;height:12px;background:url("../img/2026/26_next_s.1479bb61370c.png") center/7px 12px no-repeat}
.sec_more:hover{color:var(--text)}
.btn_pill{height: 40px;padding: 0 25px;border-radius: 20px;background: #4341af;display:inline-flex;align-items:center;gap:6px;background:var(--point);color:#fff;font-size:13px;font-weight:500;white-space:nowrap}
.btn_pill.pink{background:var(--pink)}
.tabs{display:flex;gap:6px}
.tabs[hidden]{display:none}
.tabs button{height:32px;padding:0 20px;border-radius:16px;border:1px solid #181818;background:transparent;font-size:14px;color:var(--text-2);font-weight:500}   /* 비활성: 테두리만 */
.tabs button.on{background:#161622;border-color:#161622;color:#fff}

/* ---------- 헤더 ---------- */
.d_header_wrap{position:absolute;top:0;left:0;right:0;z-index:30}
.header_box{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);background: url("../img/2026/26_top_bg.e7586799dde3.png") left center / cover no-repeat;max-width: 1340px;padding: 0 20px;}
.header_box .box1,.header_box .box2{display:flex;align-items:center}
.header_box .logo{font-size:26px;font-weight:700;letter-spacing:-1px;margin-right:46px}
.header_box .box1 .gnb_text{font-size:20px;font-weight:800;margin-right:45px}
.header_box .box2 .gnb_text{font-size:12px;color:#d6d7db;margin-left:20px}
.header_box .gnb_text:hover{color:#fff}
.ico_btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;margin-left:12px}
.ico_btn svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:2}
.ico_btn img{width:24px;height:24px;object-fit:contain}
/* 헤더 검색 입력박스 (header-2026.html #hSearch) — 헤더 오른쪽 위에 겹쳐 뜸 */
.header_box{position:relative}
.search_box{position:absolute;top:50%;right:20px;z-index:5;transform:translateY(-50%);display:flex;align-items:center;width:320px;height:40px;padding:0 6px 0 20px;border-radius:20px;background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.35)}
.search_box[hidden]{display:none}
.header_box:has(.search_box:not([hidden])) .box2 .gnb_text{visibility:hidden}   /* 열린 동안 뒤 메뉴 글자가 삐져나오지 않게 */
.search_box input{flex:1;min-width:0;height:100%;border:0;outline:0;background:none;color:#111;font:inherit;font-size:16px}
.search_box input::placeholder{color:#8a8c93}
.search_box input::-webkit-search-cancel-button{display:none}
.search_box button{flex:none;display:flex;align-items:center;justify-content:center;width:32px;height:32px}
.search_box button svg{width:20px;height:20px;stroke:#111;fill:none;stroke-width:2}
.btn_menu{display:none}

/* 전체메뉴 드로어 (태블릿/모바일) */
.m_drawer{position:fixed;inset:0;z-index:100;visibility:hidden}
.m_drawer .dim{position:absolute;inset:0;background:rgba(0,0,0,.6);opacity:0;transition:opacity .25s}
.m_drawer .panel{position:absolute;top:0;right:0;bottom:0;width:min(320px,86%);background:#1b1f24;padding:20px 24px;transform:translateX(100%);transition:transform .3s ease;overflow-y:auto}
.m_drawer.on{visibility:visible}
.m_drawer.on .dim{opacity:1}
.m_drawer.on .panel{transform:none}
.m_drawer .p_head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.m_drawer .p_head strong{font-size:22px}
.m_drawer nav a{display:block;padding:14px 0;border-bottom:1px solid var(--line);font-size:16px;font-weight:500}
.m_drawer .sub a{display:inline-block;margin:18px 16px 0 0;font-size:13px;color:var(--text-2)}

/* ---------- 히어로 ---------- */
.hero{position:relative;overflow:hidden}
.hero_side{position:absolute;top:0;bottom:0;width:calc(50% - 690px);overflow:hidden;opacity:.35;cursor:pointer;background:#000;transition:opacity .2s}
.hero_side:hover{opacity:.5}
.hero_side img,.hero_side video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.hero_side.prev img,.hero_side.prev video{object-position:right center}  /* 이전 슬라이드의 오른쪽 끝 */
.hero_side.next img,.hero_side.next video{object-position:left center}   /* 다음 슬라이드의 왼쪽 끝 */
.hero_side.prev{left:0;border-radius:0 20px 20px 0}
.hero_side.next{right:0;border-radius:20px 0 0 20px}
.hero_arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:15;width:44px;height:57px;opacity:.7;background:center/29px 57px no-repeat}
.hero_arrow:hover{opacity:1}
.hero_arrow.prev{left:calc(50% - 760px);background-image:url("../img/2026/26_prev_l.d8765fcaa13a.png")}
.hero_arrow.next{right:calc(50% - 760px);background-image:url("../img/2026/26_next_l.f2f71aaa395a.png")}
/* 배경 영역 1340x675 R20 */
.hero_bg{position:relative;width:calc(100% - var(--g) * 2 + 40px);max-width:1340px;margin:0 auto;aspect-ratio:1340/675;border-radius:20px;overflow:hidden;background:#000}
/* 배경: 공통 그라데이션 이미지(슬라이드와 무관) */
.hero_bg .blur{position:absolute;inset:0;z-index:1;pointer-events:none;background:url("../img/2026/26_hero_gradation.cc48a2a244eb.png") left center/cover no-repeat}
/* 동영상 영역 1200x675 R20 */
.hero_video{position:absolute;top:0;right:0;width:89.55%;height:100%;border-radius:0;overflow:hidden}
.hero [hidden]{display:none!important}
.hero_video img,.hero_video video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.hero_arrow:disabled{opacity:.2;cursor:default}
.hero_video:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.85) 0%,rgba(0,0,0,.45) 35%,rgba(0,0,0,0) 60%),linear-gradient(0deg,rgba(0,0,0,.5),rgba(0,0,0,0) 30%)}
.hero_text{position:absolute;left:80px;top:28%;z-index:5;width:800px;max-width:calc(100% - 40px)}
.hero_text .badge{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#d6d7db;margin-bottom:12px}
/* 프로그램 원형 이미지 50x50 (hero_circle_img) */
.hero_text .badge i{flex:none;display:flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:50%;overflow:hidden;background:#2a2c33}
.hero_text h3{font-size: 48px;line-height: 1.2;letter-spacing: -2px;text-shadow: 1px 1px 3px #000;font-weight:900;white-space:pre-line}
.hero_text .date{margin: 14px 0 22px;font-size: 17px;text-shadow: 1px 1px 3px #000;color:var(--text-2)}
.hero_text .badge i img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero_links{display:flex;flex-wrap:wrap;gap:8px}
/* 썸네일 96x54 R3 */
.hero_thumbs{position:absolute;left:20px;bottom:36px;z-index:5;display:flex;gap:8px}
.hero_thumbs button{flex:none;width:96px;height:54px;border-radius:3px;overflow:hidden;opacity:.5;outline:2px solid transparent;outline-offset:-2px;transition:.2s}
.hero_thumbs button.on{opacity:1;outline-color:#fff}
.hero_thumbs button:hover{opacity:.9}
/* 썸네일 하단 진행바: 6px 아래, 높이 3px. 현재 슬라이드만 배너 interval(--hero-int) 동안 채움 */
.hero_thumb{flex:none;display:flex;flex-direction:column;gap:6px}
.hero_bar{display:block;height:3px;background:#303133;overflow:hidden;visibility:hidden}   /* 표시중인 항목(.run)만 노출, 자리는 유지 */
.hero_bar:before{content:"";display:block;height:100%;background:#3b3a7e;transform:scaleX(0);transform-origin:left}
.hero_thumb.run .hero_bar{visibility:visible}
.hero_thumb.run .hero_bar:before{animation:heroBar var(--hero-int,5s) linear forwards}
@keyframes heroBar{to{transform:scaleX(1)}}
/* 자동 롤링 재생/정지: 썸네일 줄 오른쪽 끝, 썸네일 이미지 높이 기준 세로 중앙 (진행바 자리는 제외) */
.hero_thumbs .hero_play{flex:none;align-self:flex-start;width:32px;height:54px;border-radius:0;opacity:.8;outline:0;background:url("../img/desktop/pause_l.a5be2e97f060.png") center/12px 15px no-repeat}
.hero_thumbs .hero_play.paused{background-image:url("../img/desktop/play_l.64fc7ac10644.png")}
.hero_thumbs .hero_play:hover{opacity:1}
.hero_thumbs .hero_play:focus-visible{outline:2px solid #fff;outline-offset:-2px}

/* ---------- OBS TV / 표준FM ---------- */
.onair_wrap{display:grid;grid-template-columns:minmax(0,765fr) minmax(0,500fr);gap:35px}
.onair_card{display:flex;background:var(--surface);border-radius:15px;overflow:hidden;height:200px}
.onair_card .thumb{flex:none;border-radius:15px;height:100%}
.onair_card.tv .thumb{width:356px}
.onair_card.fm .thumb{width:200px}
/* 방송중 진행시간 바 — 썸네일 하단, 좌측 하단 모서리 50% */
.onair_prog{position:absolute;left:0;right:0;bottom:0;height:6px;background:rgba(0,0,0,.45);pointer-events:none}
.onair_prog i{display:block;height:100%;max-width:100%;background:#6b1b14;border-bottom-left-radius:50%;transition:width .6s linear}
.sched{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;padding:0}   /* 좌우 여백은 li 로 — .now 배경이 끝까지 차도록 */
.sched li{display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line)}
.sched li:last-child{border-bottom:0}
.sched .txt{flex:1;min-width:0}
.sched .time{font-size:12px;color:var(--text-3)}
.sched .tit{font-size:13px;color:var(--text-2)}
.sched li.now .tit{color:#fff;font-weight:500;font-size: 16px;}
.sched li.now{background:#36393e}
.sched .st{flex:none;min-width:40px;height:20px;padding:0 8px;border-radius:10px;background:var(--surface-2);font-size:11px;color:var(--text-3);text-align:center;line-height:20px}
.sched li.now .st{background:var(--red);color:#fff;font-weight:500}

/* ---------- 다시보기 ---------- */
.vod_grid{display:grid;gap:20px}
.vod_grid.r1{grid-template-columns:repeat(2,minmax(0,1fr))}
.vod_grid.r2{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:20px}
.vod_empty{padding:40px 0;text-align:center;color:var(--text-2)}
.vod_item{position:relative;display:block;border-radius:15px;overflow:hidden}
.vod_grid.r1 .vod_item{aspect-ratio:640/360}
.vod_grid.r2 .vod_item{aspect-ratio:420/240}
.vod_item .thumb{position:absolute;inset:0}
.vod_item .thumb img{transform:none!important}   /* 다시보기는 확대 대신 hover 무음 미리보기 */
.vod_item .thumb video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s ease;pointer-events:none}
.vod_item .thumb video.on{opacity:1}
.vod_item .cap{position:absolute;left:0;right:0;bottom:0;padding:60px 22px 18px;background:linear-gradient(0deg,rgba(0,0,0,.85),rgba(0,0,0,0))}
.vod_item .cap small{display:block;font-size:16px;color:var(--text-2);margin-bottom:4px}
.vod_item .cap strong{display:block;font-size:25px;font-weight:500;}
.vod_grid.r2 .cap strong{font-size:17px}

/* ---------- 주요 프로그램 ---------- */
.prog_main{position:relative;aspect-ratio:1300/623;border-radius:20px;overflow:hidden;background:var(--surface)}
.prog_visual{position:absolute;inset:0}
.prog_visual .bg{position:absolute;inset:0}
.prog_visual .bg img{transition:opacity .5s}
.prog_visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.75),rgba(0,0,0,.2) 55%,rgba(0,0,0,0)),linear-gradient(0deg,rgba(0,0,0,.6),rgba(0,0,0,0) 45%);pointer-events:none}
.prog_info{left: 70px;bottom: 50px;position:absolute;z-index:2;width:440px;max-width:40%}
.prog_info .ptit{font-size:38px;font-weight:700;letter-spacing:-1px;margin-bottom:14px}
.prog_info .time{font-size:14px;color:var(--text-2)}
/* 설명: ext.desc_main(없으면 프로그램 설명) — 방송시간과 20px, 최대 3줄 */
.prog_info p{font-size: 15px;color: #ffffff;line-height: 1.5;margin:20px 0 18px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
/* 활성 180x250 R10 / 기본 150x210 R8 */
/* 포스터 목록: 넘치면 가로 스크롤(스크롤바 숨김) + 좌/우 버튼(히어로 화살표 축소) */
.prog_rail{position:absolute;left:44%;right:0;bottom:30px;z-index:2;display:flex;align-items:center;gap:6px;padding-right:10px}
.prog_list{position:relative;flex:1;min-width:0;display:flex;align-items:flex-end;gap:14px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.prog_list::-webkit-scrollbar{display:none}
/* 포스터가 더 있는 쪽 끝을 흐리게 — 왼쪽 .fade_l · 오른쪽 .fade_r (index.html 의 arrows() 가 토글) */
.prog_list{--fade:90px;--fl:0px;--fr:0px}
.prog_list.fade_l{--fl:var(--fade)}
.prog_list.fade_r{--fr:var(--fade)}
.prog_list:is(.fade_l,.fade_r){-webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--fl),#000 calc(100% - var(--fr)),transparent);mask-image:linear-gradient(90deg,transparent,#000 var(--fl),#000 calc(100% - var(--fr)),transparent)}
.prog_arrow{flex:none;width:30px;height:44px;opacity:.7;background:url("../img/2026/26_next_m.7b937047c2b9.png") center/15px 28px no-repeat}
.prog_arrow:hover{opacity:1}
.prog_arrow:disabled{opacity:.2;cursor:default}
.prog_arrow[hidden]{display:none}
.prog_arrow.prev{transform:scaleX(-1)}   /* 26_prev_m.png 이 없어 26_next_m.png 를 좌우 반전 */
.prog_list button{flex:none;width:150px;height:210px;border-radius:8px;overflow:hidden;opacity:.85;transition:.25s}
.prog_list button.on{width:180px;height:250px;border-radius:10px;opacity:1;outline:2px solid #fff;outline-offset:-2px}

/* ---------- 특집 프로그램 ---------- */
.special_top{display:flex;align-items:center;gap:50px}
.special_top .thumb{flex:none;width:39.4%;aspect-ratio:512/288;border-radius:15px}
.special_top h3{font-size:30px;font-weight:500;margin-bottom:20px}
/* 설명: ext.desc_special(없으면 프로그램 설명) — 제목과 20px, 최대 3줄 */
.special_top p{font-size: 15px;color: #fff;line-height:1.7;max-width:600px;margin-bottom:22px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.special_list{display:grid;grid-template-columns:repeat(5,minmax(0,250px));justify-content:space-between;gap:12px;margin-top:20px}
.special_list button{display:flex;align-items:center;gap:12px;width:100%;height:90px;padding:0 12px;border-radius:5px;text-align:left;font-size:14px;color:var(--text-2);transition:.2s}
.special_list button.on,.special_list button:hover{background:var(--surface-2);color:#fff}
.special_list .cir{flex:none;width:72px;height:72px;border-radius:50%;overflow:hidden}

/* ---------- 카드 그리드 (클립/다큐) 310x175 R10 ---------- */
.card4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.card .thumb{aspect-ratio:310/175;border-radius:10px}
.card .ct{margin-top:10px;font-size:16px;color:#d7d8dc;line-height:1.5}
.card .cate{font-size: 14px;color: #726ff4;margin-top:6px;}
.card .card_link{display:block}
.card .ch{display:inline-block;max-width:100%;margin-top:6px;font-size:14px;color:#9a9ba3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top}
.card .ch:hover{color:#d7d8dc;text-decoration:underline}

/* ---------- 주요 뉴스 ---------- */
.news_wrap{display:grid;grid-template-columns:minmax(0,640fr) minmax(0,620fr);gap:40px}
.news_main .thumb{aspect-ratio:16/9;border-radius:15px}
.news_main h3{margin-top:18px;font-size:34px;font-weight:700;line-height:1.4;letter-spacing:-.5px}
.news_main p{margin-top:12px;font-size:16px;color:var(--text-2);line-height:1.75;-webkit-line-clamp:4}
.news_sub{display:grid;grid-template-columns:1fr 1fr;gap:28px 20px}
.news_sub .thumb{aspect-ratio:285/160;border-radius:8px}
.news_sub h4{margin-top:12px;font-size:20px;font-weight:700;line-height:1.45}
.news_sub p{font-size: 16px;color: #c6c6c6;margin-top:6px;line-height:1.6}

/* ---------- 라디오 팟캐스트 240x240 R8 ---------- */
.pod5{display:grid;grid-template-columns:repeat(5,minmax(0,240px));justify-content:space-between;gap:20px}
.pod5 .thumb{aspect-ratio:1;border-radius:8px}
.pod5 .ct{margin-top:10px;font-size:16px;color:#d7d8dc}

/* ---------- 배너 205x115 R3 ---------- */
/* 좌 2칸 .ad_fix(TV_MAIN_AD1 고정) + 우 4칸 .ad_roll(TV_MAIN_AD2 롤링). 칸 폭 = (뷰포트 - 간격) / --per */
.banner6{--gap:12px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--gap)}
.banner6 .ad_fix{display:contents}
.banner6 .ad_fix>*{grid-row:1}
.banner6 .ad_roll{--per:4;--pos:0;grid-column:3 / span 4;grid-row:1;min-width:0;overflow:hidden}
.banner6 .ad_track{display:flex;gap:var(--gap);transform:translateX(calc((100% + var(--gap)) * var(--pos) / var(--per) * -1));transition:transform .5s ease}
.banner6 .ad_track.no_anim{transition:none}
.banner6 .ad_track>*{flex:0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per))}
.banner6 a,.banner6 span{display:block;aspect-ratio:205/115;border-radius:3px;overflow:hidden;background:var(--surface-2)}

/* ---------- 롤링 ---------- */
.rolling_wrap{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:40px}
.rolling{display:flex;align-items:center;height:50px;padding:0 18px;background:var(--surface);border-radius:8px;min-width:0}
.rolling strong{flex:none;font-size:16px;font-weight:700;margin-right:18px}
.rolling .viewport{flex:1;min-width:0;height:20px;overflow:hidden;position:relative}
.rolling ul{display:flex;transition:transform .4s ease}   /* 수평 롤링: 항목 1개 = 뷰포트 폭 */
.rolling li{flex:0 0 100%;min-width:0;height:20px;line-height:20px;font-size:14px;color:var(--text-2)}
.rolling li a,.rolling li span{display:block}
.rolling li a:hover{color:#fff}
.rolling .ctrl{flex:none;display:flex;gap:4px;margin-left:12px}
.rolling .ctrl button{width:24px;height:24px;background:center/7px 12px no-repeat;opacity:.6;transition:opacity .2s}
.rolling .ctrl .prev{background-image:url("../img/2026/26_prev_s.a0f3b213b447.png")}
.rolling .ctrl .next{background-image:url("../img/2026/26_next_s.1479bb61370c.png")}
.rolling .ctrl button:hover{opacity:1}

/* ---------- 푸터 ---------- */
footer{margin-top:40px;background:#111215;border-top:1px solid #1d1f24;padding-bottom:50px}
/* 푸터 사이트맵 (obsnews .footer-site-map 방식): 제목 클릭 시 .fnb_wrap.open → 모든 열 목록이 아래로 펼쳐짐 */
.fnb_wrap{position:relative;border-bottom:1px solid #1d1f24}
.fnb_wrap:before{content:"";position:absolute;left:0;right:0;top:50px;border-top:1px solid #1d1f24;pointer-events:none}   /* 제목줄 아래 전체 폭 가로선 */
.fnb{display:flex}
.fnb_col{flex:1;min-width:0;border-right:1px solid #1d1f24}
.fnb_col:first-child{border-left:1px solid #1d1f24}
.fnb_head{width:100%;height:50px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px;font-size:14px;font-weight:500;color:#d6d7db;text-align:left}
.fnb_head:after{content:"";flex:none;width:6px;height:6px;border-right:1px solid #6d7079;border-bottom:1px solid #6d7079;transform:translateY(-2px) rotate(45deg);transition:transform .3s}
.fnb_wrap.open .fnb_head:after{transform:translateY(2px) rotate(-135deg)}
.fnb_head:hover{color:#fff}
.fnb_list{display:none;padding:20px}
.fnb_wrap.open .fnb_list{display:block}
.fnb_list li+li{margin-top:10px}
.fnb_list a{font-size:13px;color:var(--text-3)}
.fnb_list a:hover{color:#fff}
.info_wrap{padding-top:28px;font-size:11px;color:var(--text-3);line-height:1.9}
.info_wrap .row span+span:before{content:"";display:inline-block;width:1px;height:9px;background:#33353c;margin:0 12px;vertical-align:-1px}
.info_wrap .copy{margin-top:14px}
.sns{position:absolute;right:0;top:28px;display:flex;gap:10px}
.sns a{width:28px;height:28px;border-radius:4px;display:flex;align-items:center;justify-content:center}
.sns a svg{width:14px;height:14px;fill:#fff}
.sns .x{background:#000;border:1px solid #333}
.sns .fb{background:#1877f2}
.sns .yt{background:#ff0000}

/* 히어로 좌우 미리보기는 공간이 있을 때만 */
@media (max-width:1439px){.hero_side,.hero_arrow{display:none}}

/* =========================================================
   Desktop 유동 구간 (1200 ~ 1339)
   ========================================================= */
@media (max-width:1339px){
  .onair_card.tv .thumb{width:45%}
  .onair_card.fm .thumb{width:40%}
  .hero_text h3{font-size:38px}
}

/* =========================================================
   Tablet (768 ~ 1199)
   ========================================================= */
@media (max-width:1199px){
  :root{--sec-gap:56px;--head-gap:16px;--header-h:64px}

  /* 헤더: 주요 메뉴 유지, 보조 메뉴 → 전체메뉴 */
  .header_box .logo{font-size:24px;margin-right:32px}
  .header_box .box1 .gnb_text{font-size:15px;margin-right:24px}
  .header_box .box2 .gnb_text{display:none}
  .btn_menu{display:flex}

  /* 히어로: 동영상 영역이 배경 전체를 채우고 텍스트는 하단 */
  .hero_bg{width:calc(100% - var(--g) * 2);aspect-ratio:16/9}
  .hero_video{width:100%}
  .hero_video:after{background:linear-gradient(0deg,rgba(0,0,0,.85) 0%,rgba(0,0,0,.3) 50%,rgba(0,0,0,.35) 100%)}
  .hero_text{top:auto;bottom:88px;left:24px}
  .hero_text h3{font-size:30px}
  .hero_text .badge{margin-bottom:8px}
  .hero_text .date{margin:8px 0 14px}
  .hero_thumbs{left:24px;bottom:22px;gap:6px}
  .hero_thumbs button{width:72px;height:40px}
  .hero_thumbs .hero_play{width:28px;height:40px}
  .m_section.first{margin-top:48px}

  /* OBS TV / FM: 세로 배치 */
  .onair_wrap{grid-template-columns:1fr;gap:40px}
  .onair_card.tv .thumb{width:44%}
  .onair_card.fm .thumb{width:200px}

  /* 다시보기 */
  .vod_grid{gap:16px}
  .vod_grid.r2{margin-top:16px}
  .vod_item{border-radius:12px}
  .vod_item .cap{padding:40px 16px 14px}
  .vod_item .cap strong{font-size:15px}
  .vod_grid.r2 .cap small{display:none}
  .vod_grid.r2 .cap strong{font-size:13px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

  /* 주요 프로그램 */
  .prog_main{aspect-ratio:auto;height:480px;border-radius:16px}
  .prog_info{left:28px;bottom:28px;max-width:46%}
  .prog_info .ptit{font-size:30px}
  .prog_rail{left:52%;bottom:24px}
  .prog_list{gap:10px}
  .prog_list button{width:100px;height:140px}
  .prog_list button.on{width:128px;height:178px}

  /* 특집 */
  .special_top{gap:28px}
  .special_top .thumb{width:46%}
  .special_list{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:220px;justify-content:start;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  .special_list::-webkit-scrollbar{display:none}
  .special_list button{scroll-snap-align:start;height:80px}
  .special_list .cir{width:56px;height:56px}

  /* 카드 4 → 2x2 */
  .card4{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}

  /* 뉴스: 메인 위 / 서브 2x2 아래 */
  .news_wrap{grid-template-columns:1fr;gap:32px}
  .news_main h3{font-size:22px}

  /* 팟캐스트 */
  .pod5{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}

  /* 푸터 */
  /* 열이 줄바꿈되면 전체폭 가로선 대신 제목마다 밑줄 */
  .fnb_wrap{border-bottom:0}
  .fnb_wrap.open{border-bottom:1px solid #1d1f24}
  .fnb_wrap:before{display:none}
  .fnb{display:grid;grid-template-columns:repeat(3,1fr)}
  .fnb_col,.fnb_col:first-child{border-left:0;border-right:0}
  .fnb_head{padding:0 12px;border-bottom:1px solid #1d1f24}
  .fnb_list{padding:14px 12px}
  .sns{position:static;margin-top:18px}
}

/* =========================================================
   Mobile (~ 767)
   ========================================================= */
@media (max-width:767px){
  :root{--g:16px;--sec-gap:44px;--head-gap:14px;--header-h:56px}
  body{font-size:13px}

  /* 헤더: 로딩 시 숨김 → 스크롤하면 상단 고정 바로 내려옴 (.show 는 header-2026.html 스크립트가 토글) */
  .d_header_wrap{position:fixed;top:0;background:#1b1f24;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);transform:translateY(-100%);visibility:hidden;transition:transform .3s ease,visibility 0s .3s}
  .d_header_wrap.show{transform:none;visibility:visible;transition:transform .3s ease,visibility 0s}
  .header_box .box1 .gnb_text{display:none}
  .header_box .logo{font-size:22px;margin:0}
  .ico_btn{margin-left:4px}
  .search_box{left:var(--g);right:var(--g);width:auto}
  .sec_head h2{font-size:16px;gap:10px}

  /* 히어로: 영상 16:9 + 텍스트 하단 분리 */
  .hero{padding-top:4px}
  .hero_bg{width:100%;aspect-ratio:auto;border-radius:0;display:flex;flex-direction:column}
  .hero_bg .blur{display:none}  /* 공통 그라데이션은 데스크톱·태블릿만 */
  .hero_video{position:relative;width:calc(100% - var(--g) * 2);margin:0 auto;aspect-ratio:16/9;height:auto}
  .hero_video:after{background:linear-gradient(0deg,rgba(0,0,0,.35),rgba(0,0,0,0) 40%)}
  .hero_text{position:relative;inset:auto;width:auto;max-width:none;padding:18px var(--g) 0}
  .hero_text h3{font-size:24px;letter-spacing:-1px}
  .hero_text h3 br{display:none}
  .hero_text h3{white-space:normal}  /* 모바일은 줄바꿈 없이 이어서 */
  .hero_text .date{margin:6px 0 14px;font-size:12px}
  .hero_text h3,.hero_text .date{text-align:center}
  .hero_links{display:none}  /* 모바일은 바로가기 버튼 대신 영상 영역 클릭으로 이동 (index.html 히어로 JS) */
  .hero_video.has_link{cursor:pointer}
  .btn_pill{height:32px;padding:0 16px;font-size:12px}
  .hero_thumbs{position:relative;inset:auto;padding:16px var(--g) 20px;overflow-x:auto;scrollbar-width:none;justify-content:center;justify-content:safe center}  /* 넘치면 왼쪽부터(safe) */
  .hero_thumbs::-webkit-scrollbar{display:none}
  .hero_thumbs button{width:64px;height:36px}
  .hero_thumbs .hero_play{width:28px;height:36px}
  .m_section.first{margin-top:24px}

  /* 공통: 가로 스크롤 리스트 (화면 끝까지 붙임) */
  .m_scroll{display:grid;grid-template-columns:none!important;grid-auto-flow:column;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-right:calc(var(--g) * -1);padding-right:var(--g);gap:12px!important}
  .m_scroll::-webkit-scrollbar{display:none}
  .m_scroll>*{scroll-snap-align:start}

  /* OBS TV / FM: 이미지 위, 편성 아래 */
  .onair_wrap{gap:32px}
  .onair_card{flex-direction:column;height:auto}
  .onair_card .thumb,.onair_card.tv .thumb,.onair_card.fm .thumb{width:100%;height:auto;aspect-ratio:16/9;border-radius:12px}
  .onair_card.fm .thumb{aspect-ratio:2/1}
  .sched{padding:6px 0}
  .sched li{padding:10px 16px}

  /* 다시보기: 1단(큰 카드) + 2단 + 2단 — r1·r2 두 묶음을 풀어 패널 하나의 2열 격자로 흘린다 */
  .vod_panel:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .vod_grid{display:contents}
  .vod_grid.r1 .vod_item:first-child,.vod_empty{grid-column:1/-1}
  .vod_grid.r1 .vod_item+.vod_item,.vod_grid.r2 .vod_item{aspect-ratio:16/9}
  .vod_grid.r1 .vod_item+.vod_item .cap small{display:none}   /* 2번째 카드도 작은 카드(r2)와 같은 모양 */
  .vod_grid.r1 .vod_item+.vod_item .cap strong{font-size:13px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .vod_item .cap{padding:36px 14px 12px}
  .vod_item .cap small{font-size:10px}
  .vod_grid.r1 .cap strong{font-size:14px}

  /* 주요 프로그램: 비주얼 + 아래 포스터 스트립 */
  .prog_main{height:auto;border-radius:12px}
  .prog_visual{position:relative;aspect-ratio:4/5}
  .prog_visual:after{background:linear-gradient(0deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.2) 55%,rgba(0,0,0,0))}
  .prog_info{left:16px;right:16px;bottom:20px;width:auto;max-width:none}
  .prog_info .ptit{font-size:26px;margin-bottom:8px}
  .prog_info p{margin-bottom:14px}
  .prog_rail{position:static;padding:0}
  .prog_arrow{display:none!important}
  .prog_list{padding:14px 16px;gap:10px;--fade:48px}
  .prog_list::-webkit-scrollbar{display:none}
  .prog_list button{width:72px;height:100px;border-radius:6px}
  .prog_list button.on{width:84px;height:118px;border-radius:8px}

  /* 특집: 세로 배치 */
  .special_top{flex-direction:column;align-items:stretch;gap:16px}
  .special_top .thumb{width:100%;border-radius:12px}
  .special_top h3{font-size:17px;margin-bottom:8px}
  .special_top p{margin-bottom:14px}
  .special_list{grid-auto-columns:200px;margin-top:14px;margin-right:calc(var(--g) * -1);padding-right:var(--g);gap:8px}
  .special_list button{height:72px;padding:0 10px}
  .special_list .cir{width:48px;height:48px}

  /* 카드: 가로 스크롤 */
  .card4{grid-auto-columns:68%}
  .card .ct{font-size:12px;margin-top:8px}
  .card .ch{font-size:11px;margin-top:4px}

  /* 뉴스: 메인 + 썸네일 좌측 리스트 */
  .news_wrap{gap:20px}
  .news_main .thumb{border-radius:12px}
  .news_main h3{font-size:18px;margin-top:12px}
  .news_main p{-webkit-line-clamp:2;margin-top:8px}
  .news_sub{grid-template-columns:1fr;gap:0}
  .news_sub a{display:grid;grid-template-columns:120px 1fr;grid-template-rows:auto 1fr;column-gap:12px;padding:12px 0;border-top:1px solid var(--line)}
  .news_sub .thumb{grid-row:1/3;border-radius:6px}
  .news_sub h4{margin:0;font-size:13px}
  .news_sub p{margin-top:4px;-webkit-line-clamp:1}

  /* 팟캐스트: 가로 스크롤 */
  .pod5{grid-auto-columns:40%}
  .pod5 .ct{font-size:12px}

  /* 배너: 고정 2칸 한 줄 + 롤링은 아래 줄에 2칸씩 */
  .banner6{--gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .banner6 .ad_roll{--per:2;grid-column:1 / -1;grid-row:2}

  /* 롤링 세로 배치 */
  .rolling_wrap{grid-template-columns:1fr;gap:8px;margin-top:28px}
  .rolling{height:46px;padding:0 12px}
  .rolling strong{font-size:12px;margin-right:12px}

  /* 푸터 */
  footer{padding-bottom:calc(36px + env(safe-area-inset-bottom))}
  .fnb{grid-template-columns:1fr 1fr}
  .fnb_head{height:44px;font-size:13px}
  .info_wrap{padding-top:20px;font-size:10.5px;line-height:1.8}
  .info_wrap .row span{display:inline}
  .info_wrap .row span+span:before{margin:0 8px}
}
