/* 추억의 TV(도봉실버센터) — 어르신이 보기 쉽게: 큰 글자, 큰 단추, 또렷한 대비 */
:root {
  /* v0.3.10 「추억의 TV」: 꺼진 브라운관처럼 검은 바탕, 옛 방송 화면조정 색띠에서 가져온 색 */
  --paper: #000000;        /* 바탕 */
  --card: #161616;         /* 카드·회차 단추 */
  --card-2: #242424;       /* 보조 단추 */
  --edge: #3d3d3d;         /* 테두리 */
  --ink: #f3eedf;          /* 글자 */
  --ink-2: #b4afa3;        /* 흐린 글자 */
  --dim: #8a857a;          /* 더 흐린 글자(본 회·꼬리말) */
  --line: #262626;
  --bar-y: #f2c230;        /* 화면조정 노랑 — 주 단추·지금 볼 것 */
  --bar-c: #5fc3e4;        /* 하늘 — 길잡이·부제 */
  --bar-g: #6cc56a;        /* 초록 — 본 회 ✓ */
  --bar-m: #c65bb0;
  --bar-r: #e0503f;
  --bar-b: #3b5bd1;
  --red: var(--bar-r);
  --red-ink: #ffffff;
  --teal: var(--bar-c);
  --seen: #0d0d0d;
  --stage: #000000;
  --focus: var(--bar-y);
  --radius: 16px;
  font-size: 20px;
  color-scheme: dark;
}
@media (max-width: 420px) { :root { font-size: 18px; } }
@media (min-width: 1600px) { :root { font-size: 24px; } }   /* 데이케어 큰 화면 */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

/* 머리줄 */
.top { background: var(--ink); color: var(--paper); padding: 10px 16px; position: sticky; top: 0; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 52px; }
.brand-icon { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 1.35rem; letter-spacing: .02em; }
.brand-text small { font-size: .8rem; color: #e9d9bd; }

main { max-width: 1280px; margin: 0 auto; padding: 8px 16px 32px; outline: none; }
.loading, .none { color: var(--ink-2); font-size: 1.05rem; padding: 24px 0; }
.row { margin-top: 24px; }
.row h2 { font-size: 1.3rem; margin: 0 0 12px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.row-head h2 { margin: 0; }

/* 단추 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 8px 18px; border-radius: var(--radius);
  border: 2px solid var(--ink); background: var(--card); color: var(--ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #fff; }
.btn.big { min-height: 64px; font-size: 1.1rem; padding: 10px 24px; }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--red-ink); }
.btn.primary:hover { background: #9c2822; }
.btn:disabled { opacity: .35; cursor: default; }

/* 갈래 단추 */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { min-height: 52px; padding: 6px 20px; border-radius: 999px; border: 2px solid var(--ink-2); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.poster { position: relative; }
.tag { position: absolute; left: 8px; top: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(43, 33, 24, .82); color: #fff; font-size: .8rem; font-weight: 700; }
.hidden-tag { left: auto; right: 8px; background: var(--red); }
.preview-note { margin: 8px 0; padding: 10px 14px; border-radius: var(--radius); background: #fde7c2; border: 2px solid var(--focus); font-weight: 700; }

/* 찾기 */
.search {
  width: 100%; min-height: 60px; padding: 10px 18px; margin-bottom: 16px;
  border: 2px solid var(--ink-2); border-radius: var(--radius); background: #fff; color: var(--ink);
  font: inherit; font-size: 1.1rem;
}

/* 프로그램 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.card {
  display: flex; flex-direction: column; text-decoration: none; background: var(--card);
  border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.card:hover { border-color: var(--ink); }
.poster { display: block; aspect-ratio: 16 / 9; background: #d9c8ab; overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.card-text { display: flex; flex-direction: column; padding: 10px 14px 14px; }
.card-text b { font-size: 1.2rem; }
.card-text span { color: var(--ink-2); font-size: .9rem; }

/* 이어서 보기 */
.cont { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .cont { grid-template-columns: 1fr; } }
.cont-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--card);
  border: 2px solid var(--red); border-radius: var(--radius); overflow: hidden; min-height: 92px;
}
.cont-card img { width: 150px; aspect-ratio: 16 / 9; object-fit: cover; flex: none; }
.cont-text { display: flex; flex-direction: column; padding-right: 10px; }
.cont-text b { font-size: 1.15rem; }
.cont-text span { color: var(--red); font-weight: 700; }

/* 프로그램 첫 장 */
.crumb { margin: 12px 0 4px; }
.back { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; text-decoration: none; color: var(--teal); font-size: 1.05rem; }
.hero { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 24px; align-items: start; margin-top: 8px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }
.hero .poster { border-radius: var(--radius); }
.hero h1 { font-size: 2rem; margin: 0; line-height: 1.2; }
.meta { color: var(--ink-2); margin: 6px 0 0; font-weight: 700; }
.desc { margin: 12px 0 0; white-space: pre-line; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* 회차 */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { min-height: 48px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
@media (max-width: 420px) { .eps { grid-template-columns: repeat(3, 1fr); } }
.ep {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 72px; padding: 6px; border-radius: var(--radius); background: var(--card);
  border: 2px solid var(--line); text-decoration: none; text-align: center;
}
.ep b { font-size: 1.2rem; }
.ep small { font-size: .75rem; color: var(--ink-2); line-height: 1.2; }
.ep:hover { border-color: var(--ink); }
.ep.seen { background: var(--seen); }
.ep.now { border: 3px solid var(--red); }
.ep.off { opacity: .45; }
.ep .mark { position: absolute; top: 4px; right: 8px; font-style: normal; color: var(--teal); font-weight: 900; }
.jump { display: flex; align-items: center; gap: 8px; }
.jump label { font-weight: 700; }
.jump input { width: 110px; min-height: 52px; padding: 6px 12px; font: inherit; border: 2px solid var(--ink-2); border-radius: var(--radius); }

/* 보기 */
.watch { margin-top: 4px; }
.stage { background: var(--stage); border-radius: var(--radius); overflow: hidden; }
.frame { position: relative; width: 100%; max-width: calc(78vh * 16 / 9); margin: 0 auto; aspect-ratio: 16 / 9; }
.frame > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.w-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: center; padding: 14px 2px 0; }
.w-head { min-width: 0; }
.w-title { font-size: 1.5rem; margin: 0; line-height: 1.25; }
.w-sub { margin: 2px 0 0; color: var(--ink-2); font-size: .95rem; }
.w-ctrl { display: flex; gap: 10px; }
.w-note { grid-column: 1 / -1; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.w-note:empty { display: none; }
.w-opt { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 700; cursor: pointer; }
.check input { width: 28px; height: 28px; accent-color: var(--red); }
@media (max-width: 760px) {
  .w-bar { grid-template-columns: 1fr; }
  .w-ctrl { display: grid; grid-template-columns: 1fr 1fr; }
}
/* 휴대폰을 눕히면 영상이 화면을 채우게 */
@media (orientation: landscape) and (max-height: 520px) {
  .top { position: static; }
  .frame { max-width: calc(92vh * 16 / 9); }
}

.empty { text-align: center; padding: 48px 0; }
.empty h1 { font-size: 1.6rem; }

.foot { max-width: 1280px; margin: 0 auto; padding: 16px 16px 40px; color: var(--ink-2); font-size: .85rem; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.foot .ver { opacity: .7; }
.noscript { padding: 16px; }

/* ---- v0.3.9 「저녁 연속극」 꾸밈: 요즘 화면에 옛 방송의 화면조정 색띠 한 줄. 영상에는 아무것도 덮지 않는다 */
.top { background: #000; color: var(--ink); padding-bottom: 16px; }
.top-in::after {   /* 화면조정 띠 — 유일한 장식. v0.3.13 부터 본문 폭만큼 */
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 6px;
  background: linear-gradient(90deg, #d9d9d9 0 14.28%, var(--bar-y) 0 28.57%, var(--bar-c) 0 42.85%, var(--bar-g) 0 57.14%, var(--bar-m) 0 71.42%, var(--bar-r) 0 85.71%, var(--bar-b) 0);
}
.brand-text b { font-size: 1.45rem; letter-spacing: 0; }
.brand-text small { color: var(--ink-2); }

.btn { background: var(--card-2); border: 2px solid var(--edge); color: var(--ink); }
.btn:hover { background: #333333; }
.btn.primary { background: var(--bar-y); border-color: var(--bar-y); color: #1b1b1b; }
.btn.primary:hover { background: #ffd34d; }

.row h2, .row-head h2 { font-size: 1.35rem; font-weight: 800; }

/* 갈래 = 채널 번호 */
.chips { counter-reset: ch 5; }
.chip { background: transparent; color: var(--ink); border: 2px solid var(--edge); padding-left: 8px; display: inline-flex; align-items: center; gap: 10px; }
.chip::before { counter-increment: ch 1; content: counter(ch); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--card-2); font-weight: 900; color: var(--bar-y); }
.chip[aria-pressed="true"] { background: var(--bar-y); color: #1b1b1b; border-color: var(--bar-y); }
.chip[aria-pressed="true"]::before { background: #1b1b1b; color: var(--bar-y); }

.search { background: var(--card); border-color: var(--edge); color: var(--ink); }
.search::placeholder { color: var(--dim); }

/* 프로그램 카드: 그림이 주인공, 모서리만 브라운관처럼 살짝 */
.card { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.card .poster { border-radius: 22px / 26px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.06); }
.card .poster img { transition: transform .25s; }
.card:hover .poster img { transform: scale(1.03); }
.card:hover { border: 0; }
.card-text { padding: 10px 4px 0; }
.card-text b { font-size: 1.25rem; }
.card-text span { color: var(--ink-2); }
.tag { background: rgba(15, 23, 43, .85); }
.poster { background: #1c1c1c; }

.cont-card { background: var(--card); border: 0; border-left: 8px solid var(--bar-y); border-radius: 14px; }
.cont-text span { color: var(--bar-y); }

/* 프로그램 첫 장 */
.back { color: var(--bar-c); }
.hero .poster { border-radius: 26px / 30px; }
.hero h1 { font-size: 2.4rem; font-weight: 900; }
.meta { color: var(--bar-c); }
.desc { color: var(--ink); max-width: 34em; }
.tab { background: transparent; border-color: var(--edge); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ep { background: var(--card); border: 2px solid transparent; min-height: 76px; }
.ep b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.ep small { color: var(--ink-2); }
.ep:hover { border-color: var(--bar-y); }
.ep.seen { background: var(--seen); color: var(--dim); }
.ep.seen b { color: var(--dim); }
.ep.now { border-color: var(--bar-y); background: var(--card-2); }
.ep .mark { color: var(--bar-g); }
.jump input { background: var(--card); color: var(--ink); border-color: var(--edge); }

/* 보기: 영상은 그대로 크게, 아래 정보만 방송 자막처럼 */
.stage { border-radius: 18px; background: #000; box-shadow: 0 0 0 1px var(--line); }
.w-bar { padding-top: 18px; }
.w-title { font-size: 1.8rem; font-weight: 900; }
.w-sub { color: var(--bar-c); font-weight: 700; }
.w-note { color: var(--bar-y); }
.check input { accent-color: var(--bar-y); }

.foot { color: var(--dim); border-top-color: var(--line); }
.preview-note { background: #2a2414; border-color: var(--bar-y); color: var(--ink); }

/* ---- v0.3.10 머리 이름표 「추억의 TV」 · 큰 썸네일 · 이어서 보기 */

main { max-width: 1680px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px 22px; }
@media (min-width: 1600px) { .grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; gap: 22px; } }
.card-text b { font-size: 1.4rem; }

/* 이어서 보기: 썸네일 위에 제목·회·시간을 얹는다(옆에 두면 좁아서 제목이 세로로 꺾였다) */
.cont { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 22px; }
@media (max-width: 760px) { .cont { grid-template-columns: 1fr; } }
.cont-card { position: relative; display: block; aspect-ratio: 16 / 9; min-height: 0; border: 0; border-radius: 22px / 26px; overflow: hidden; background: #1c1c1c; }
.cont-card img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.cont-card::before {      /* 재생 단추: 얼굴을 가리지 않게 오른쪽 아래 글 띠 안에 */
  content: ''; position: absolute; right: 18px; bottom: 18px; width: 64px; height: 64px; z-index: 1; border-radius: 50%;
  background: rgba(0,0,0,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23f2c230'/%3E%3C/svg%3E") center / 44px no-repeat;
  box-shadow: 0 0 0 3px var(--bar-y);
}
.cont-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 100px 18px 20px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.82) 40%, rgba(0,0,0,.94)); }
.cont-text b { font-size: 1.45rem; line-height: 1.2; }
.cont-text span { font-size: 1.05rem; }
.cont-card:hover .cont-text b { text-decoration: underline; text-underline-offset: 4px; }

/* ---- v0.3.11 머리줄: 내용과 같은 폭에 로고(DBSV)·이름, 오른쪽 돋보기 / 꼬리말도 같은 폭 */
.top { padding: 0; }
.top-in::after { height: 4px; }
.top-in, .find-in { max-width: 1680px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 14px; }
.brand { gap: 14px; min-height: 56px; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-name { font-size: 1.7rem; font-weight: 900; letter-spacing: -.01em; line-height: 1; color: var(--ink); }
.find-btn { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #141414; color: var(--ink); border: 1px solid var(--edge); }
.find-btn:hover { background: #222; }
.find-btn[aria-expanded="true"] { background: var(--ink); color: #000; border-color: var(--ink); }
.find-in { display: flex; gap: 10px; padding-bottom: 18px; }
.find-in input { flex: 1; min-width: 0; min-height: 58px; padding: 8px 18px; border-radius: var(--radius); border: 2px solid var(--edge);
  background: #111; color: var(--ink); font: inherit; font-size: 1.15rem; }
.find-in input::placeholder { color: var(--dim); }
.find-close { min-height: 58px; padding: 0 20px; border-radius: var(--radius); border: 1px solid var(--edge); background: #141414; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.row:first-child { margin-top: 28px; }
.foot { max-width: 1680px; padding: 18px 16px 44px; margin-top: 24px; border-top: 1px solid var(--line); }
/* 썸네일 테두리: 4:3 영상은 양옆이 검게 박혀 있어 검은 바탕에서 카드 모양이 사라진다 */
.card .poster { box-shadow: 0 0 0 1px #2c2c2c; background: #111; }
.grid.one-cat .tag:not(.hidden-tag) { display: none; }
@media (max-width: 520px) {
  .brand-logo { height: 40px; }
  .brand-name { font-size: 1.45rem; }
  .find-btn { width: 52px; height: 52px; }
}

/* ---- v0.3.15 프로그램 화면: 그림을 깐 머리, 돌아가기 단추, 회차 타일 */
.crumb { margin: 18px 0 6px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 16px 4px 10px; border-radius: 99px;
  background: #141414; border: 1px solid var(--edge); color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.back::before { content: ''; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5l-7 7 7 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5l-7 7 7 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.back:hover { background: #222; }

.hero { position: relative; display: block; min-height: 440px; margin-top: 10px; border-radius: 26px; overflow: hidden; background: #0b0b0b; isolation: isolate; }
.hero-art { position: absolute; top: 0; right: 0; width: 66%; height: 100%; object-fit: cover; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent 45%); }
.hero-text { position: relative; max-width: 620px; padding: 48px 44px 40px; display: flex; flex-direction: column; justify-content: center; min-height: 440px; }
.hero h1 { font-size: 2.8rem; line-height: 1.1; letter-spacing: -.01em; }
.hero .meta { margin-top: 10px; color: var(--ink-2); font-weight: 600; }
.hero .desc { margin-top: 14px; color: var(--ink); max-width: 30em; }
.hero .actions { margin-top: 26px; }
.btn.ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); }
.progress { margin-top: 22px; display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .85rem; font-weight: 600; }
.progress-bar { width: 180px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--bar-y); }
@media (max-width: 760px) {
  .hero { min-height: 0; border-radius: 18px; }
  .hero-art { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 40%); mask-image: linear-gradient(0deg, transparent 0, #000 40%); }
  .hero::after { display: none; }
  .hero-text { min-height: 0; padding: 0 18px 22px; margin-top: -40px; }
  .hero h1 { font-size: 2rem; }
}

.row-head h2 .count { font-size: .95rem; color: var(--ink-2); font-weight: 600; margin-left: 6px; }
.jump label { color: var(--ink-2); font-size: .95rem; }
.tabs { gap: 6px; padding: 4px; background: #111; border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; }
.tab { border: 0; background: transparent; color: var(--ink-2); min-height: 44px; border-radius: 10px; }
.tab[aria-selected="true"] { background: var(--ink); color: #000; }

.eps { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px 14px; }
@media (max-width: 520px) { .eps { grid-template-columns: 1fr 1fr; gap: 14px 10px; } }
.ep { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0; padding: 0; background: transparent; border: 0; border-radius: 0; text-align: left; color: var(--ink); }
.ep:hover { border: 0; }
.ep-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #1a1a1a; box-shadow: 0 0 0 1px #2c2c2c; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.ep:hover .ep-thumb img { transform: scale(1.04); }
.ep:hover .ep-thumb, .ep:focus-visible .ep-thumb { box-shadow: 0 0 0 3px var(--ink); }
.ep-text { display: flex; flex-direction: column; padding: 8px 2px 0; }
.ep-text b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.ep-text small { font-size: .8rem; color: var(--ink-2); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-badge { position: absolute; left: 8px; top: 8px; padding: 2px 10px; border-radius: 99px; font-style: normal; font-size: .75rem; font-weight: 800; }
.now-b { background: var(--bar-y); color: #111; }
.seen-b { background: rgba(0,0,0,.75); color: #9fe0a8; }
.ep-len { position: absolute; right: 8px; bottom: 8px; padding: 1px 8px; border-radius: 6px; background: rgba(0,0,0,.8); color: #fff; font-style: normal; font-size: .75rem; font-weight: 700; }
.ep.seen { background: transparent; }
.ep.seen .ep-thumb img { opacity: .45; filter: grayscale(.5); }
.ep.seen .ep-text b { color: var(--ink-2); }
.ep.now { border: 0; }
.ep.now .ep-thumb { box-shadow: 0 0 0 3px var(--bar-y); }
.ep.off { opacity: .5; }

/* ---- v0.3.15 이어서 보기 빼기 · 휴대폰 가로로 보기 */
.cont-item { position: relative; }
.cont-del { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%23f3eedf' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; cursor: pointer; }
.cont-del:hover { background-color: #000; border-color: var(--ink); }
.w-views { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.unrotate { display: none; }
.stage.rotate { position: fixed; top: 0; left: 0; z-index: 100; border-radius: 0; transform-origin: top left; display: flex; align-items: center; justify-content: center; }
.stage.rotate .frame { max-width: none; margin: 0; }
.stage.rotate .unrotate { display: block; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 58px; padding: 12px 0; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35); background: #111; color: var(--ink); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
body.rotated { overflow: hidden; }
.stage:fullscreen { display: flex; align-items: center; justify-content: center; border-radius: 0; }
.stage:fullscreen .frame { max-width: calc(100vh * 16 / 9); width: 100%; }
/* v0.3.18 퍼가기 막힌 영상: 유튜브에서 보기 */
.w-note .w-err { flex: 1 1 100%; }
.w-err-act { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.yt-out { text-decoration: none; display: inline-flex; align-items: center; }

/* ---- v0.3.20 */
/* 갈래 단추: 채널 번호(6·7·8)는 프로그램 수로 보여 뺀다 */
.chip { padding-left: 20px; }
.chip::before { content: none; display: none; }
/* 4:3 옛 방송 썸네일의 양옆 검은 띠를 확대로 채운다(tv.js fitThumb 가 --fit 을 단다) */
img.fit { transform: scale(var(--fit, 1)); }
.card:hover .poster img.fit { transform: scale(calc(var(--fit, 1) * 1.03)); }
.ep:hover .ep-thumb img.fit { transform: scale(calc(var(--fit, 1) * 1.04)); }
.cont-card { isolation: isolate; }
/* 이어서 보기: 썸네일에 박힌 글자 위에서도 제목이 읽히게 아래를 더 어둡게 */
.cont-text { padding-top: 84px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.9) 38%, #000); }
.cont-text b, .cont-text span { text-shadow: 0 1px 3px #000, 0 0 8px #000; }
/* 휴대폰(한 줄에 하나): 프로그램마다 한 칸으로 묶어 그림·제목이 어느 프로그램 것인지 바로 보이게 */
@media (max-width: 760px) {
  .grid { gap: 20px; }
  .card { background: #161616; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px #2a2a2a; }
  .card .poster { border-radius: 0; box-shadow: none; }
  .card-text { padding: 12px 18px 16px; gap: 2px; }
  .card-text b { font-size: 1.5rem; line-height: 1.25; }
  .card-text span { font-size: .95rem; }
  .cont { gap: 16px; }
}
/* 유튜브에서 돌아왔을 때 묻는 안내 */
.w-back { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
/* 회 타일의 부제는 두 줄까지(한 줄로 자르면 가요무대처럼 부제로 방송을 가리는 프로그램이 다 같아 보였다) */
.ep-text small { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
/* 휴대폰: 방송일로 편성한 프로그램(가요무대)은 한 줄에 한 방송 — 그림 왼쪽, 날짜·부제 오른쪽, 줄마다 칸으로 */
@media (max-width: 520px) {
  .eps.dated { grid-template-columns: 1fr; gap: 10px; }
  .eps.dated .ep { flex-direction: row; align-items: center; gap: 14px; padding: 8px; border-radius: 16px; background: #161616; box-shadow: 0 0 0 1px #2a2a2a; }
  .eps.dated .ep-thumb { flex: 0 0 44%; border-radius: 10px; }
  .eps.dated .ep-text { flex: 1; min-width: 0; padding: 0; }
  .eps.dated .ep-text b { font-size: 1.2rem; }
  .eps.dated .ep-text small { font-size: .85rem; -webkit-line-clamp: 3; line-clamp: 3; }
  .eps.dated .ep.now { box-shadow: 0 0 0 3px var(--bar-y); }
  .eps.dated .ep.now .ep-thumb { box-shadow: none; }
}
@media (max-width: 520px) { .eps:not(.dated) { row-gap: 24px; } }
.foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.top-act { display: flex; align-items: center; gap: 10px; flex: none; }
.to-play { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 24px; background: #141414; border: 1px solid var(--edge);
  color: var(--ink); font-weight: 800; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.to-play:hover { background: #222; }
.to-play[hidden] { display: none; }
@media (max-width: 420px) {
  .brand-name { white-space: nowrap; }
  .top-act { gap: 8px; }
  .to-play { min-height: 44px; padding: 0 12px; font-size: .95rem; }
  .top-act .find-btn { width: 48px; height: 48px; }
}
@media (max-width: 380px) {
  .brand { gap: 10px; }
  .brand-logo { height: 40px; }
  .brand-name { font-size: 1.35rem; }
}
