/* =========================================================
   롸이트핫.라이브 - 메인 스타일
   이미지 파일은 /images 에 넣으면 자동 적용됩니다.
   (hero.jpg, thumb-1.jpg ~ thumb-3.jpg, ad-senior.jpg)
   파일이 없으면 그라데이션이 대신 표시됩니다.
   ========================================================= */

:root {
  --navy: #13275a;
  --navy-deep: #0e1f4b;
  --red: #ef4136;
  --red-soft: #fdecea;
  --text: #16213e;
  --text-sub: #5b6477;
  --line: #eceef3;
  --bg: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(19, 39, 90, 0.06);
  --container: 1560px;
  --gutter: 24px;
  --tabbar-h: 72px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-hand: "Nanum Pen Script", cursive;
}

/* 글씨 크게 모드: rem 기준값을 키워 전체 텍스트를 확대 */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
html.is-large { font-size: 18.5px; }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.m-only { display: none; }
:focus-visible { outline: 3px solid #ffb400; outline-offset: 2px; }

/* ---------- 헤더 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; }
.header-inner { display: flex; align-items: center; height: 88px; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 36px; height: 44px; }
.logo-text { white-space: nowrap; font-size: 34px; font-weight: 800; letter-spacing: -0.04em; color: #fff; }
.logo-text em { font-style: normal; color: var(--red); }
.logo-domain { margin-left: 2px; font-size: 0.62em; font-weight: 700; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.85); }
.logo--dark .logo-domain { color: var(--text-sub); }

.gnb { display: flex; align-items: center; gap: 4px; margin-left: 24px; }
.gnb a { position: relative; padding: 10px 18px; white-space: nowrap; font-size: 18px; font-weight: 600; opacity: 0.92; }
.gnb a:hover { opacity: 1; }
.gnb a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 36px; height: 4px;
  transform: translateX(-50%); border-radius: 2px; background: var(--red);
}

.search { position: relative; flex-shrink: 1; margin-left: auto; width: 290px; min-width: 200px; }
.search input {
  width: 100%; height: 50px; padding: 0 56px 0 24px; border: 0; border-radius: 25px;
  font: inherit; font-size: 1rem; color: var(--text); background: #fff;
}
.search input::placeholder { color: #6d7486; }
.search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 8px; color: var(--navy); }
.search button svg { width: 26px; height: 26px; }

.header-actions { display: flex; align-items: center; gap: 28px; }
.btn-search-toggle { display: none; }
.btn-fontsize {
  height: 50px; padding: 0 24px; border: 2px solid #fff; border-radius: 25px;
  font-size: 22px; font-weight: 700; white-space: nowrap;
}
.btn-fontsize[aria-pressed="true"] { background: #fff; color: var(--navy); }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; min-height: 330px; background: #f3efe8; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    url("/images/hero.jpg") right center / cover no-repeat,
    radial-gradient(circle at 62% 45%, #f7e6d3 0 12%, transparent 30%),
    linear-gradient(100deg, #fbfaf7 0%, #f4f1eb 45%, #e9e2d6 100%);
}
.hero-inner { position: relative; min-height: 330px; display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 1; padding: 30px 0 36px; }
.hero h1 { font-size: 3.9rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; color: var(--navy-deep); }
.hero-copy > p { margin-top: 10px; font-size: 1.95rem; font-weight: 500; letter-spacing: -0.03em; color: #1f2940; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 26px;
  height: 64px; padding: 0 30px 0 16px; border-radius: 32px;
  background: var(--red); color: #fff; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em;
  box-shadow: 0 6px 18px rgba(239, 65, 54, 0.3); transition: transform .15s, background .15s;
}
.btn-hero:hover { background: #e2342a; transform: translateY(-1px); }
.btn-hero .ico-play { width: 36px; height: 36px; color: #fff; --play-fg: var(--red); }
.btn-hero .ico-arrow { width: 26px; height: 26px; }

.hand { font-family: var(--font-hand); color: #1d2a44; line-height: 1.05; }
.hero-hand { position: absolute; left: 67%; top: 50px; font-size: 2.6rem; transform: rotate(-12deg); }
.hero-note { position: absolute; right: 100px; top: 96px; font-size: 1rem; line-height: 1.7; color: #1d2a44; }
.hero-note::after { content: ""; display: block; width: 62px; height: 2px; margin-top: 10px; background: var(--red); }

/* ---------- 카테고리 ---------- */
.categories { padding-top: 16px; }
.cat-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat {
  display: flex; align-items: center; gap: 18px; height: 96px; padding: 0 20px 0 26px;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.cat:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(19, 39, 90, 0.1); }
.cat svg { width: 60px; height: 60px; flex-shrink: 0; }
.cat span { display: flex; flex-direction: column; min-width: 0; }
.cat strong { white-space: nowrap; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; color: var(--navy-deep); }
.cat small { margin-top: 4px; font-size: 0.95rem; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat--music { background: #fff7f7; }
.cat--news { background: #f3f7fd; }
.cat--history { background: #fffafa; }
.cat--health { background: #fffaf7; }
.cat--drama { background: #f9f7fe; }
.cat--stock { background: #f6f8fe; }

/* ---------- 인기 TOP 10 ---------- */
.popular { padding-top: 28px; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.95rem; font-weight: 800; letter-spacing: -0.04em; color: var(--navy-deep); }
.section-desc { font-size: 1rem; color: var(--text-sub); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 1.1rem; font-weight: 500; }
.more svg { width: 22px; height: 22px; }

.video-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.video {
  display: grid; grid-template-columns: 48% 1fr; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
}
.video-thumb {
  position: relative; display: block; min-height: 162px; border-radius: var(--radius) 0 0 var(--radius);
  background-size: cover; background-position: center;
}
/* 썸네일 기본 배경 (이미지가 없거나 로드 실패 시) */
.video-thumb, .vcard-thumb, .player-empty { background-image: var(--thumb-bg); background-color: #cfd6e4; }
.thumb--music { --thumb-bg: radial-gradient(circle at 55% 45%, #f6c56c 0 8%, transparent 30%), linear-gradient(135deg, #3b2412, #9a6326 45%, #1d1a26); }
.thumb--news { --thumb-bg: linear-gradient(135deg, #1c3f7a 0%, #2b7de9 55%, #9cc3f5 100%); }
.thumb--history { --thumb-bg: linear-gradient(135deg, #5a1d1b 0%, #b8423a 50%, #e9c7a0 100%); }
.thumb--health { --thumb-bg: linear-gradient(135deg, #cfe6b8 0%, #9cc98a 40%, #f2a9bf 75%, #e98aa8 100%); }
.thumb--stock { --thumb-bg: linear-gradient(135deg, #0f1f45 0%, #1f3f8f 50%, #ef4136 100%); }
.thumb--drama { --thumb-bg: linear-gradient(135deg, #2a1f4d 0%, #6b4fd0 50%, #d9a7e8 100%); }
.rank {
  position: absolute; left: 0; top: 0; width: 52px; height: 46px; display: grid; place-items: center;
  border-radius: var(--radius) 0 var(--radius) 0; background: var(--red); color: #fff;
  font-size: 1.9rem; font-weight: 700;
}
.duration {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 1.15rem; font-weight: 600;
}
.video-body { display: flex; flex-direction: column; min-width: 0; padding: 16px 16px 14px 18px; }
.video-body h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.35; text-wrap: balance; color: var(--navy-deep); }
.video-body h3 a:hover { text-decoration: underline; }
.views { margin-top: 6px; font-size: 1.1rem; color: var(--text-sub); }
.btn-watch {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: auto;
  height: 46px; border-radius: 23px; background: var(--red-soft); color: var(--red);
  font-size: 1.2rem; font-weight: 700; transition: background .15s;
}
.btn-watch:hover { background: #fbd9d5; }
.btn-watch svg { width: 28px; height: 28px; color: var(--red); }

/* ---------- 광고 배너 ---------- */
.ad-wrap { padding-top: 24px; }
.ad-banner {
  position: relative; display: flex; align-items: center; gap: 60px; min-height: 150px; padding: 26px 50px;
  overflow: hidden; border-radius: var(--radius);
  background:
    url("/images/ad-senior.jpg") right center / auto 100% no-repeat,
    linear-gradient(90deg, #f7f0e3 0%, #f5ecdb 40%, #d7c89a 65%, #8aa1b8 100%);
}
.ad-badge {
  position: absolute; left: 14px; top: 10px; padding: 2px 12px; border-radius: 6px;
  background: #5d5f66; color: #fff; font-size: 0.95rem; font-weight: 600;
}
.ad-copy { display: flex; flex-direction: column; margin-top: 12px; }
.ad-copy strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: #111a33; }
.ad-copy span { margin-top: 4px; font-size: 1.45rem; color: #273046; }
.btn-ad {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 40px;
  border-radius: 27px; background: var(--navy); color: #fff; font-size: 1.4rem; font-weight: 600;
}
.btn-ad svg { width: 24px; height: 24px; }
.ad-hand { position: absolute; right: 13%; top: 22px; font-size: 2.3rem; transform: rotate(-10deg); }

/* ---------- 푸터 ---------- */
.site-footer { margin-top: 12px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; font-size: 0.9rem; color: #444b5c; }
.logo--dark .logo-mark { width: 24px; height: 30px; }
.logo--dark .logo-text { font-size: 1.5rem; color: var(--navy-deep); }
.footer-slogan { padding-right: 28px; border-right: 1px solid #d6d9e0; }
.footer-links { display: flex; }
.footer-links a { padding: 0 12px; }
.footer-links a + a { border-left: 1px solid #b9bdc7; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.sns { display: flex; gap: 16px; margin-left: auto; color: #5a5f6b; }
.sns svg { width: 26px; height: 26px; }
.copyright { margin-left: 16px; }

.tabbar { display: none; }

/* =========================================================
   태블릿
   ========================================================= */
@media (max-width: 1440px) {
  .header-inner { gap: 20px; }
  .gnb { margin-left: 0; }
  .gnb a { padding: 10px 10px; font-size: 16px; }
  .logo-text { font-size: 29px; }
  .search { width: 220px; }
  .header-actions { gap: 16px; }
  .btn-fontsize { font-size: 18px; padding: 0 18px; }
}

@media (max-width: 1280px) {
  .hero h1 { font-size: 3.2rem; }
  .hero-copy { padding-left: 0; }
  .hero-note { display: none; }
  .cat { gap: 12px; padding: 0 12px 0 16px; }
  .cat svg { width: 44px; height: 44px; }
  .cat strong { font-size: 1.25rem; }
  .cat small { font-size: 0.85rem; }
  .video { grid-template-columns: 1fr; }
  .video-thumb { aspect-ratio: 16 / 10; border-radius: var(--radius) var(--radius) 0 0; }
  .btn-watch { margin-top: 12px; }
  .footer-inner { flex-wrap: wrap; justify-content: center; padding-top: 16px; padding-bottom: 16px; }
  .sns { margin-left: 0; }
}

@media (max-width: 1024px) {
  .gnb { display: none; }
  .search { margin-left: auto; }
  .ad-hand { display: none; }
}

/* =========================================================
   모바일 (시안 기준)
   ========================================================= */
@media (max-width: 768px) {
  :root { --gutter: 14px; }
  .m-only { display: inline; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

  /* 헤더 */
  .header-inner { height: 72px; gap: 10px; }
  .logo-mark { width: 30px; height: 36px; }
  .logo-text { font-size: 25px; }
  .header-actions { margin-left: auto; gap: 10px; }
  .btn-search-toggle {
    display: grid; place-items: center; width: 50px; height: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 50%;
  }
  .btn-search-toggle svg { width: 24px; height: 24px; }
  .btn-fontsize { height: 50px; padding: 0 20px; border-width: 1.5px; border-color: rgba(255, 255, 255, 0.6); font-size: 19px; font-weight: 600; }

  /* 검색창: 돋보기 버튼으로 헤더 아래 펼침 */
  .search {
    display: none; position: absolute; left: 0; right: 0; top: 100%; width: auto; margin: 0;
    padding: 10px var(--gutter) 12px; background: var(--navy);
  }
  .site-header.is-search-open .search { display: block; }
  .search button { right: calc(var(--gutter) + 6px); }

  /* 히어로 */
  .hero, .hero-inner { min-height: 410px; }
  .hero-bg {
    background:
      linear-gradient(90deg, rgba(250, 248, 244, 0.85) 0%, rgba(250, 248, 244, 0.5) 42%, rgba(250, 248, 244, 0) 60%),
      url("/images/hero.jpg") 70% center / cover no-repeat,
      radial-gradient(circle at 72% 45%, #f7e6d3 0 12%, transparent 32%),
      linear-gradient(100deg, #fbfaf7 0%, #f4f1eb 45%, #e9e2d6 100%);
  }
  .hero-inner { align-items: flex-start; }
  .hero-copy { padding: 74px 0 30px 10px; }
  .hero h1 { font-size: 2.55rem; line-height: 1.25; }
  .hero-copy > p { margin-top: 12px; font-size: 1.3rem; line-height: 1.4; }
  .btn-hero { height: 52px; margin-top: 22px; padding: 0 24px; font-size: 1.15rem; gap: 8px; }
  .btn-hero .ico-play { display: none; }
  .btn-hero .ico-arrow { width: 20px; height: 20px; }
  .hero-hand { left: auto; right: 14px; top: 70px; font-size: 1.75rem; }

  /* 카테고리: 아이콘 + 이름만 */
  .categories { padding-top: 12px; }
  .cat-list { gap: 8px; }
  .cat { flex-direction: column; justify-content: center; gap: 10px; height: 118px; padding: 0 4px; }
  .cat span { align-items: center; }
  .cat svg { width: 46px; height: 46px; }
  .cat small { display: none; }
  .cat strong { font-size: 1rem; letter-spacing: -0.05em; text-align: center; }

  /* 인기 TOP */
  .popular { padding-top: 26px; }
  .section-head { margin-bottom: 10px; }
  .section-head h2 { font-size: 1.75rem; }
  .section-desc { display: none; }
  .more { font-size: 1.05rem; }
  .video-list { gap: 10px; }
  .video { border: 0; box-shadow: none; overflow: visible; }
  .video-thumb { aspect-ratio: 1 / 0.85; min-height: 0; border-radius: 8px; }
  .rank { width: 38px; height: 38px; border-radius: 8px 0 8px 0; font-size: 1.45rem; }
  .duration { right: 5px; bottom: 5px; padding: 1px 6px; font-size: 0.95rem; }
  .video-body { padding: 10px 2px 0; }
  .video-body h3 { font-size: 1.05rem; line-height: 1.35; }
  .views { margin-top: 4px; font-size: 0.9rem; }
  .btn-watch { height: 40px; margin-top: 12px; gap: 6px; font-size: 0.95rem; }
  .btn-watch svg { width: 20px; height: 20px; }

  /* 광고 */
  .ad-wrap { padding-top: 22px; }
  .ad-banner {
    flex-direction: column; align-items: flex-start; gap: 12px; min-height: 0; padding: 36px 20px 18px;
    background:
      url("/images/ad-senior.jpg") 75% center / cover no-repeat,
      linear-gradient(90deg, #f7f0e3 0%, #f5ecdb 45%, #cfc39a 70%, #8aa1b8 100%);
  }
  .ad-badge { left: 10px; top: 8px; font-size: 0.8rem; padding: 1px 9px; }
  .ad-copy { margin-top: 0; }
  .ad-copy strong { font-size: 1.7rem; }
  .ad-copy span { font-size: 0.95rem; }
  .btn-ad { height: 42px; padding: 0 22px; font-size: 1rem; }
  .btn-ad svg { width: 18px; height: 18px; }
  .ad-hand { display: block; right: 14px; top: 20px; font-size: 1.35rem; }

  /* 푸터: 탭바가 있으므로 간소화 */
  .site-footer { margin-top: 20px; }
  .footer-inner { gap: 8px 12px; font-size: 0.8rem; }
  .footer-slogan, .site-footer .logo { display: none; }
  .copyright { margin-left: 0; width: 100%; text-align: center; }

  /* 하단 탭바 */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-size: 13.5px; white-space: nowrap; font-weight: 500; color: #3a4153; letter-spacing: -0.03em;
  }
  .tabbar svg { width: 30px; height: 30px; color: #6b7080; }
  .tabbar .is-active { color: var(--navy); font-weight: 700; }
  .tabbar .is-active svg { color: var(--navy); }
  .tab-font { height: 30px; display: flex; align-items: flex-end; font-size: 17px; font-weight: 700; line-height: 1; color: #3a4153; }
  .tab-font b { font-size: 28px; }
  .tabbar button[aria-pressed="true"] { color: var(--red); }
  .tabbar button[aria-pressed="true"] .tab-font { color: var(--red); }
}

@media (max-width: 400px) {
  .logo-mark { width: 24px; height: 30px; }
  .logo-text { font-size: 21px; }
  .btn-search-toggle { width: 44px; height: 44px; }
  .btn-fontsize { height: 44px; padding: 0 14px; font-size: 17px; }
  .hero h1 { font-size: 2.2rem; }
  .cat { height: 100px; }
  .cat svg { width: 38px; height: 38px; }
  .cat strong { font-size: 0.85rem; }
  .video-body h3 { font-size: 0.95rem; }
  .btn-watch { font-size: 0.85rem; }
  .btn-watch svg { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =========================================================
   문서 페이지 (이용약관, 개인정보처리방침, 고객센터, 광고문의)
   ========================================================= */
.footer-links a.is-active { color: var(--navy-deep); font-weight: 700; }

.doc { max-width: 920px; padding-top: 48px; padding-bottom: 72px; }
.doc--wide { max-width: 1080px; }
.doc a:not([class]) { color: #1d5bd6; text-decoration: underline; text-underline-offset: 2px; }

.doc-head { padding-bottom: 28px; margin-bottom: 32px; border-bottom: 2px solid var(--navy-deep); }
.doc-eyebrow { font-size: 1rem; font-weight: 700; color: var(--red); }
.doc-head h1 { margin-top: 6px; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.25; color: var(--navy-deep); }
.doc-meta { margin-top: 12px; font-size: 1.15rem; line-height: 1.65; color: var(--text-sub); }
.doc-lead { margin-bottom: 28px; font-size: 1.15rem; line-height: 1.8; }

.doc-toc { margin-bottom: 40px; padding: 22px 28px; border-radius: var(--radius); background: #f5f7fb; }
.doc-toc-title { margin-bottom: 10px; font-size: 1.05rem; font-weight: 700; color: var(--navy-deep); }
.doc-toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; }
.doc .doc-toc a { font-size: 1.05rem; color: var(--text); text-decoration: none; }
.doc .doc-toc a:hover { color: var(--red); text-decoration: underline; }

.doc-body section { padding: 8px 0 28px; scroll-margin-top: 110px; }
.doc-body h2 { margin-bottom: 12px; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; color: var(--navy-deep); }
.doc-body p, .doc-section > p { font-size: 1.1rem; line-height: 1.85; }
.doc-body p + p, .doc-body p + .doc-list, .doc-list + p, .table-wrap + p { margin-top: 10px; }

.doc-list { list-style: decimal; padding-left: 1.6em; font-size: 1.1rem; line-height: 1.85; }
ul.doc-list { list-style: disc; }
.doc-list li + li { margin-top: 4px; }
.doc-list ul { list-style: disc; margin-top: 4px; padding-left: 1.3em; color: #394257; }

.doc-addendum { margin-top: 12px; padding-top: 24px !important; border-top: 1px solid var(--line); }

.table-wrap { overflow-x: auto; margin: 6px 0; -webkit-overflow-scrolling: touch; }
.doc-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1.05rem; line-height: 1.6; }
.doc-table th, .doc-table td { padding: 12px 14px; border: 1px solid #dfe3eb; text-align: left; vertical-align: top; }
.doc-table th { background: #f5f7fb; font-weight: 700; color: var(--navy-deep); white-space: nowrap; }

.doc-dl { display: grid; gap: 8px; margin-top: 12px; padding: 18px 22px; border-radius: var(--radius); background: #f5f7fb; font-size: 1.1rem; }
.doc-dl div { display: flex; gap: 16px; }
.doc-dl dt { width: 80px; flex-shrink: 0; font-weight: 700; }
.doc-dl dd { margin: 0; }
.doc-note { margin-top: 12px; font-size: 1rem !important; color: var(--text-sub); }

.doc-section { margin-top: 48px; scroll-margin-top: 110px; }
.doc-section-title { margin-bottom: 18px; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.04em; color: var(--navy-deep); }

/* 안내 카드 */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.info-label { font-size: 1rem; font-weight: 700; color: var(--red); }
.info-value { margin-top: 8px; font-size: 1.1rem; line-height: 1.6; }
.info-cards--feature .info-label { font-size: 1.2rem; color: var(--navy-deep); }

/* FAQ */
.faq { border-top: 2px solid var(--navy-deep); }
.faq details { border-bottom: 1px solid #dfe3eb; }
.faq summary {
  position: relative; display: block; padding: 20px 56px 20px 44px; cursor: pointer; list-style: none;
  font-size: 1.2rem; font-weight: 600; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 8px; top: 18px; font-size: 1.35rem; font-weight: 800; color: var(--red); }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2.5px solid #6b7080; border-bottom: 2.5px solid #6b7080; transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--navy); background: #fafbfd; }
.faq-answer { padding: 0 24px 22px 44px; font-size: 1.1rem; line-height: 1.85; color: #2c3448; }
.faq-answer ol { list-style: decimal; padding-left: 1.4em; margin: 6px 0; }
.faq-answer p + p { margin-top: 8px; }

/* 문의 양식 */
.inquiry-form { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-size: 1.1rem; font-weight: 700; }
.req, .opt { margin-left: 4px; font-size: 0.85rem; font-weight: 600; }
.req { color: var(--red); }
.opt { color: #8a90a0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0 16px; border: 1.5px solid #cfd4de; border-radius: 10px;
  font: inherit; font-size: 1.1rem; color: var(--text); background: #fff;
}
.field input, .field select { height: 56px; }
.field textarea { padding: 14px 16px; line-height: 1.6; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19, 39, 90, 0.15); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { min-height: 0; margin-top: 6px; font-size: 0.98rem; color: #d42a20; }
.field-error:empty { display: none; }

.agree-box { margin-top: 28px; padding: 20px 22px; border-radius: 10px; background: #f5f7fb; font-size: 1rem; line-height: 1.7; }
.agree-title { font-weight: 700; color: var(--navy-deep); }
.agree-box ul { list-style: disc; margin-top: 4px; padding-left: 1.3em; }
.agree-note { margin-top: 8px; color: var(--text-sub); }
.check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--red); }

.form-status { margin-top: 20px; font-size: 1.1rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 14px 18px; border-radius: 10px; background: #e8f6ee; color: #146c3c; }
.form-status.is-error { color: #d42a20; }

.btn-submit {
  display: flex; align-items: center; justify-content: center; width: 100%; max-width: 360px; height: 60px;
  margin: 24px auto 0; border-radius: 30px; background: var(--red); color: #fff;
  font-size: 1.3rem; font-weight: 700; transition: background .15s;
}
.btn-submit:hover { background: #e2342a; }
.btn-submit:disabled { opacity: 0.6; cursor: wait; }

/* 광고 진행 절차 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: none; }
.steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; border-radius: var(--radius); background: #f5f7fb; }
.step-no { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.steps strong { font-size: 1.2rem; color: var(--navy-deep); }
.steps li > span:last-child { font-size: 1rem; line-height: 1.55; color: var(--text-sub); }

/* 404 */
.not-found { text-align: center; padding-top: 80px; padding-bottom: 100px; }
.not-found-code { font-size: 5rem; font-weight: 800; line-height: 1; color: var(--red); }
.not-found h1 { margin-top: 12px; font-size: 2rem; font-weight: 800; color: var(--navy-deep); }

@media (max-width: 768px) {
  .doc { padding-top: 28px; padding-bottom: 40px; }
  .doc-head { padding-bottom: 20px; margin-bottom: 24px; }
  .doc-head h1 { font-size: 1.9rem; }
  .doc-meta, .doc-lead { font-size: 1.05rem; }
  .doc-toc { padding: 18px 20px; margin-bottom: 28px; }
  .doc-toc ol { grid-template-columns: 1fr; }
  .doc-body h2 { font-size: 1.3rem; }
  .doc-body p, .doc-section > p, .doc-list { font-size: 1.05rem; }
  .doc-section { margin-top: 36px; }
  .doc-section-title { font-size: 1.45rem; }
  .info-cards { grid-template-columns: 1fr; gap: 10px; }
  .info-card { padding: 18px 20px; }
  .faq summary { padding: 18px 44px 18px 36px; font-size: 1.1rem; }
  .faq summary::before { left: 4px; top: 16px; }
  .faq summary::after { right: 14px; }
  .faq-answer { padding: 0 8px 20px 36px; font-size: 1.05rem; }
  .inquiry-form { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .steps li { padding: 16px; }
  .doc-dl div { flex-direction: column; gap: 2px; }
}

/* =========================================================
   목록 / 영상 / 회원 페이지
   ========================================================= */
.page { padding-top: 36px; padding-bottom: 64px; }
.page-head { margin-bottom: 28px; }
.page-eyebrow { font-size: 1rem; font-weight: 700; color: var(--red); }
.page-head h1 { margin-top: 4px; font-size: 2.3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.3; color: var(--navy-deep); }
.page-desc { margin-top: 8px; font-size: 1.15rem; line-height: 1.6; color: var(--text-sub); }
.page-head--cat { display: flex; align-items: center; gap: 22px; padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.page-head-icon { width: 72px; height: 72px; flex-shrink: 0; }
.page-head--cat h1 { margin-top: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 1rem; color: var(--text-sub); }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }

.list-section { margin-top: 44px; }
.list-toolbar { display: flex; align-items: center; margin-bottom: 18px; }
.list-toolbar--end { justify-content: flex-end; margin-top: -12px; }
.sort-tabs { display: flex; gap: 8px; }
.sort-tabs a { padding: 10px 22px; border: 1.5px solid #d6dae3; border-radius: 24px; font-size: 1.1rem; font-weight: 600; color: #3a4153; }
.sort-tabs a.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }

.cat-list--page { margin-bottom: 8px; }

.video-list--page { grid-template-columns: repeat(2, 1fr); }

/* 일반 영상 카드 */
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
.vcard { min-width: 0; }
.vcard-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius);
  background-size: cover; background-position: center; transition: transform .15s, box-shadow .15s;
}
.vcard-thumb:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(19, 39, 90, 0.15); }
.vcard-body { padding-top: 12px; }
.vcard-body h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.4; color: var(--navy-deep); }
.vcard-body h3 a:hover { text-decoration: underline; }
.vcard-meta { margin-top: 6px; font-size: 1rem; color: var(--text-sub); }
.vcard-meta a:hover { color: var(--text); text-decoration: underline; }

/* 광고 카드 (영상 카드와 같은 크기) */
.vcard-thumb--ad { overflow: hidden; background: #eef1f6; }
.vcard-thumb--ad img { width: 100%; height: 100%; object-fit: cover; }
.vcard-thumb--empty { display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; color: #8a93a6; }
.rank-row-thumb.vcard-thumb--ad { overflow: hidden; background: #eef1f6; }
.rank-row-thumb.vcard-thumb--empty { font-size: 1rem; }
.rank-row-no--ad { font-size: 0.95rem; color: var(--text-sub); }

/* 홈 메인 배너 - 광고 이미지 */
.ad-banner--image { display: block; min-height: 0; height: 150px; padding: 0; background: #eef1f6; }
.ad-banner--image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .ad-banner--image { height: auto; aspect-ratio: 10 / 3; padding: 0; }
}
.ad-mark {
  position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.62); font-size: 0.82rem; font-weight: 700; color: #fff;
}

/* 빈 상태 */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 20px; border-radius: var(--radius); background: #f5f7fb; text-align: center; }
.empty-title { font-size: 1.35rem; font-weight: 700; color: var(--navy-deep); }
.empty-desc { font-size: 1.1rem; line-height: 1.6; color: var(--text-sub); }
.empty .btn-primary, .empty .btn-secondary { margin-top: 10px; }
.empty .btn-primary + .btn-secondary { margin-top: 0; }
.loading { padding: 40px 0; font-size: 1.1rem; color: var(--text-sub); text-align: center; }

/* 공통 버튼 */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 26px; font-size: 1.15rem; font-weight: 700; transition: background .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #e2342a; }
.btn-secondary { border: 2px solid var(--navy); color: var(--navy); background: #fff; }
.btn-secondary:hover { background: #f1f4fa; }
.btn-text { padding: 8px 4px; font-size: 1.05rem; color: var(--text-sub); text-decoration: underline; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* 검색 페이지 */
.page-search { display: flex; gap: 10px; max-width: 640px; margin-bottom: 32px; }
.page-search input { flex: 1; min-width: 0; height: 56px; padding: 0 20px; border: 1.5px solid #cfd4de; border-radius: 28px; font: inherit; font-size: 1.1rem; }
.page-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19, 39, 90, 0.15); }
.page-search button { display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 26px; border-radius: 28px; background: var(--navy); color: #fff; font-size: 1.15rem; font-weight: 700; }
.page-search button svg { width: 22px; height: 22px; }

/* 영상 보기 */
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.player { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; }
.player-empty::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.player-empty svg, .player-empty p { position: relative; }
.player-empty svg { width: 80px; height: 80px; color: rgba(255, 255, 255, 0.92); --play-fg: #333; }
.player-empty p { font-size: 1.25rem; font-weight: 600; }
.video-title { margin-top: 20px; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.35; color: var(--navy-deep); }
.video-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 1.1rem; color: var(--text-sub); }
.video-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-action {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px;
  border: 1.5px solid #d6dae3; border-radius: 26px; font-size: 1.15rem; font-weight: 600; background: #fff;
}
.btn-action svg { width: 24px; height: 24px; }
.btn-action:hover { background: #f5f7fb; }
.btn-action[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.btn-action[aria-pressed="true"] svg path { fill: currentColor; }
.action-status { min-height: 1.6em; margin-top: 8px; font-size: 1.05rem; font-weight: 600; color: #146c3c; }
.video-desc { margin-top: 10px; padding: 20px 22px; border-radius: var(--radius); background: #f5f7fb; font-size: 1.1rem; line-height: 1.8; white-space: pre-line; }
.video-related h2 { margin-bottom: 16px; font-size: 1.4rem; font-weight: 800; color: var(--navy-deep); }
.video-related .vgrid { grid-template-columns: 1fr; gap: 16px; }
.video-related .vcard { display: grid; grid-template-columns: 160px 1fr; gap: 14px; }
.video-related .vcard-body { padding-top: 0; }
.video-related .vcard-body h3 { font-size: 1.05rem; }
.video-related .vcard-meta { font-size: 0.92rem; }
.video-related .duration { font-size: 0.9rem; }

/* 시니어 생활혜택 */
.benefit-hero { position: relative; overflow: hidden; background: linear-gradient(90deg, #f7f0e3 0%, #f5ecdb 45%, #d7c89a 75%, #8aa1b8 100%); }
.benefit-hero-inner { position: relative; padding-top: 56px; padding-bottom: 60px; }
.benefit-hero .ad-badge { position: static; display: inline-block; margin-bottom: 14px; }
.benefit-hero h1 { margin-top: 6px; font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.25; color: #111a33; }
.benefit-hero .page-desc { color: #273046; }
.benefit-hand { position: absolute; right: 8%; top: 60px; font-size: 2.6rem; transform: rotate(-10deg); }
.benefit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.benefit-card { display: flex; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.benefit-card svg { width: 52px; height: 52px; flex-shrink: 0; }
.benefit-card h3 { font-size: 1.35rem; font-weight: 800; color: var(--navy-deep); }
.benefit-card p { margin-top: 6px; font-size: 1.05rem; line-height: 1.6; color: #394257; }
.badge-soon { display: inline-block; margin-top: 12px; padding: 3px 12px; border-radius: 12px; background: #eef1f6; font-size: 0.9rem; font-weight: 700; color: var(--text-sub); }
.notice-box { margin-top: 36px; padding: 24px 28px; border-left: 5px solid var(--red); border-radius: var(--radius); background: #fff7f6; }
.notice-box h2 { margin-bottom: 8px; font-size: 1.3rem; font-weight: 800; color: var(--navy-deep); }
.notice-box a { color: #1d5bd6; text-decoration: underline; }

@media (max-width: 1280px) {
  .vgrid { grid-template-columns: repeat(3, 1fr); }
  .video-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .video-related .vcard { grid-template-columns: 130px 1fr; }
}

@media (max-width: 1024px) {
  .video-layout { grid-template-columns: 1fr; }
  .video-related .vgrid { grid-template-columns: repeat(2, 1fr); }
  .video-related .vcard { display: block; }
  .video-related .vcard-body { padding-top: 10px; }
  .benefit-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .page { padding-top: 22px; padding-bottom: 40px; }
  .page-head { margin-bottom: 20px; }
  .page-head h1 { font-size: 1.8rem; }
  .page-desc { font-size: 1.05rem; }
  .page-head--cat { gap: 14px; padding: 18px; }
  .page-head-icon { width: 52px; height: 52px; }
  .list-section { margin-top: 32px; }
  .video-list--page { grid-template-columns: repeat(2, 1fr); }
  .vgrid, .video-related .vgrid { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }
  .vcard-thumb { border-radius: 8px; }
  .vcard-body { padding-top: 8px; }
  .vcard-body h3, .video-related .vcard-body h3 { font-size: 1.02rem; }
  .vcard-meta { font-size: 0.88rem; }
  .sort-tabs a { padding: 8px 18px; font-size: 1rem; }
  .page-search button { padding: 0 18px; }
  .page-search button svg { display: none; }
  .video-page { padding-top: 12px; }
  .video-page .player { margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .video-title { margin-top: 16px; font-size: 1.45rem; }
  .video-meta { font-size: 1rem; }
  .btn-action { flex: 1; justify-content: center; height: 50px; padding: 0 14px; font-size: 1.05rem; }
  .benefit-hero-inner { padding-top: 36px; padding-bottom: 110px; }
  .benefit-hero h1 { font-size: 2.1rem; }
  .benefit-hand { right: 16px; top: auto; bottom: 22px; font-size: 1.7rem; }
  .benefit-card { padding: 20px; }
  .cta-row a { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .video-list--page { grid-template-columns: 1fr; }
}

/* =========================================================
   모바일 UX 보정 (1차)
   ========================================================= */
@media (max-width: 768px) {
  /* 히어로: 내용 높이에 맞춰 빈 공간 줄이기, 손글씨와 제목 겹침 방지 */
  .hero, .hero-inner { min-height: 0; }
  .hero-copy { padding: 44px 0 40px 4px; }
  .hero h1 { font-size: 2.3rem; }
  .hero-hand { top: 30px; right: 10px; font-size: 1.45rem; }

  /* 카테고리: 긴 이름은 '·' 뒤에서 줄바꿈 */
  .cat { height: auto; min-height: 104px; padding: 14px 4px; }
  .cat strong { white-space: normal; line-height: 1.25; }

  /* 인기 TOP: 3칸 폭·썸네일 높이·버튼 위치 통일 */
  .video-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .video-list--page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .video { display: flex; flex-direction: column; min-width: 0; }
  .video-thumb { width: 100%; }
  .video-body { flex: 1; padding: 10px 0 0; }
  .video-body h3 {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
    overflow-wrap: anywhere; text-wrap: pretty;
  }
  .views { margin-bottom: 10px; }
  .btn-watch { margin-top: auto; height: 42px; }
  .rank { width: 34px; height: 34px; font-size: 1.3rem; }

  /* 광고 배너: 손글씨를 오른쪽 아래로 옮겨 제목과 겹치지 않게 */
  .ad-banner { padding: 38px 18px 20px; }
  .ad-banner--image { padding: 0; }
  .ad-copy strong { font-size: 1.6rem; }
  .ad-hand { top: auto; bottom: 18px; right: 14px; font-size: 1.15rem; text-align: right; }

  /* 글씨 크게 모드: 인기 TOP 을 한 줄에 하나씩 (썸네일 왼쪽, 글 오른쪽) */
  html.is-large .video-list { grid-template-columns: 1fr; gap: 14px; }
  html.is-large .video { flex-direction: row; gap: 14px; }
  html.is-large .video-thumb { width: 42%; flex-shrink: 0; aspect-ratio: 16 / 11; }
  html.is-large .video-body { padding: 2px 0; }
  html.is-large .video-body h3 { -webkit-line-clamp: 2; }
  html.is-large .views { margin-bottom: 8px; }
  html.is-large .cat strong { font-size: 0.9rem; }
  html.is-large .hero-hand, html.is-large .ad-hand { display: none; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 2.05rem; }
  .hero-copy > p { font-size: 1.15rem; }
  .btn-hero { padding: 0 20px; font-size: 1.05rem; }
  .cat { min-height: 92px; }
  .video-list { gap: 6px; }
  .btn-watch { height: 38px; gap: 4px; }
}

@media (max-width: 389px) {
  .hero-hand, .ad-hand { display: none; }
}

/* =========================================================
   카테고리별 인기 TOP 10
   ========================================================= */
.rank-tabs { position: sticky; top: 88px; z-index: 20; display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 8px; padding: 12px var(--gutter); overflow-x: auto; background: rgba(255, 255, 255, 0.96); scrollbar-width: none; }
.rank-tabs::-webkit-scrollbar { display: none; }
.rank-tabs a { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 48px; padding: 0 20px; border: 1.5px solid #d6dae3; border-radius: 24px; background: #fff; font-size: 1.1rem; font-weight: 700; color: var(--navy-deep); white-space: nowrap; }
.rank-tabs a:hover { border-color: var(--navy); }
.rank-tabs svg { width: 24px; height: 24px; }

.rank-section { margin-top: 36px; scroll-margin-top: 170px; }
.rank-section .section-head h2 { display: flex; align-items: center; gap: 10px; }
.rank-section-icon { width: 34px; height: 34px; }

.rank-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 2px solid var(--navy-deep); }
.rank-row { display: grid; grid-template-columns: 40px 168px minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rank-row-no { font-size: 1.6rem; font-weight: 800; text-align: center; color: #8a90a0; font-variant-numeric: tabular-nums; }
.rank-row-no.is-top { color: var(--red); }
.rank-row-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; background-size: cover; background-position: center; }
.rank-row-thumb .duration { right: 5px; bottom: 5px; padding: 1px 6px; font-size: 0.85rem; }
.rank-row-body h3 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.4; color: var(--navy-deep); overflow-wrap: anywhere;
}
.rank-row-body h3 a:hover { text-decoration: underline; }
.rank-row-body .vcard-meta { margin-top: 4px; }

@media (max-width: 1024px) {
  .rank-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .rank-tabs { top: 72px; padding: 10px var(--gutter); }
  .rank-tabs a { height: 44px; padding: 0 16px; font-size: 1rem; }
  .rank-tabs svg { width: 20px; height: 20px; }
  .rank-section { margin-top: 28px; scroll-margin-top: 140px; }
  .rank-section-icon { width: 28px; height: 28px; }
  .rank-row { grid-template-columns: 30px 128px minmax(0, 1fr); gap: 10px; padding: 12px 0; }
  .rank-row-no { font-size: 1.35rem; }
  .rank-row-body h3 { font-size: 1.02rem; }
  .rank-row-body .vcard-meta { font-size: 0.88rem; }
  html.is-large .rank-row { grid-template-columns: 28px 108px minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .rank-row { grid-template-columns: 26px 108px minmax(0, 1fr); gap: 8px; }
}

/* 홈: 인기 4~10위 목록 */
.rank-list--home { margin-top: 18px; border-top-width: 1px; border-top-color: var(--line); }
.rank-list--home .rank-row { grid-template-columns: 40px 140px minmax(0, 1fr); padding: 12px 0; }
@media (max-width: 768px) {
  .rank-list--home { margin-top: 16px; }
  .rank-list--home .rank-row { grid-template-columns: 30px 120px minmax(0, 1fr); }
}

/* 카테고리 6개 배치 */
.cat-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cat { gap: 14px; padding: 0 14px 0 18px; }
.cat svg { width: 50px; height: 50px; }
.cat strong { font-size: 1.3rem; }
.cat small { font-size: 0.9rem; }
.notice-inline { margin: -8px 0 18px; padding: 12px 16px; border-radius: 10px; background: #fff7e6; font-size: 1rem; line-height: 1.6; color: #6b4a00; }
@media (max-width: 1280px) {
  .cat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat { height: 88px; }
}
@media (max-width: 768px) {
  .cat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat { flex-direction: row; justify-content: flex-start; height: auto; min-height: 64px; gap: 10px; padding: 10px 12px; }
  .cat svg { width: 32px; height: 32px; }
  .cat span { align-items: flex-start; }
  .cat strong { font-size: 1rem; text-align: left; }
  html.is-large .cat strong { font-size: 0.92rem; }
  .notice-inline { margin-top: -4px; font-size: 0.95rem; }
}
@media (max-width: 400px) {
  .cat { min-height: 58px; gap: 6px; padding: 8px 8px; }
  .cat svg { width: 26px; height: 26px; }
  .cat strong { font-size: 0.9rem; }
}

/* =========================================================
   즐겨찾기 재생목록
   ========================================================= */
.playlist-page .player { max-width: 900px; margin: 0 auto; }
.playlist-page .player div { position: absolute; inset: 0; width: 100%; height: 100%; }
.play-bar { max-width: 900px; margin: 16px auto 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.play-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.play-now-label { flex-shrink: 0; padding: 3px 10px; border-radius: 12px; background: var(--red-soft); font-size: 0.95rem; font-weight: 700; color: var(--red); }
.play-now strong { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; color: var(--navy-deep); }
.play-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.play-controls .btn-action { flex: 1; min-width: 130px; justify-content: center; }
.js-mode-btn { font-weight: 700; }
.js-mode { color: var(--red); }

.play-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; max-width: 900px; margin: 32px auto 10px; }
.play-list-head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy-deep); }
.play-list-head span { margin-left: 8px; font-size: 1rem; font-weight: 500; color: var(--text-sub); }
.play-list { max-width: 900px; margin: 0 auto; border-top: 2px solid var(--navy-deep); }
.play-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.play-row.is-playing { background: #fff6f5; }
.play-row-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; padding: 12px 4px; text-align: left; }
.play-row-main:hover { background: #fafbfd; }
.play-row-no { width: 30px; flex-shrink: 0; font-size: 1.2rem; font-weight: 800; text-align: center; color: #8a90a0; }
.play-row.is-playing .play-row-no { color: var(--red); }
.play-row-thumb { position: relative; width: 140px; flex-shrink: 0; aspect-ratio: 16 / 9; border-radius: 8px; background-size: cover; background-position: center; }
.play-row-thumb .duration { right: 5px; bottom: 5px; padding: 1px 6px; font-size: 0.85rem; }
.play-row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.play-row-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 1.15rem; font-weight: 700; line-height: 1.4; color: var(--navy-deep); overflow-wrap: anywhere; }
.btn-row-remove { flex-shrink: 0; padding: 10px 14px; border-radius: 8px; font-size: 1rem; font-weight: 600; color: var(--text-sub); }
.btn-row-remove:hover { background: #f1f3f7; color: #c62f25; }
.action-hint { margin-top: 6px; font-size: 1rem; color: var(--text-sub); }
.action-hint a { color: #1d5bd6; font-weight: 700; text-decoration: underline; }

@media (max-width: 768px) {
  .play-bar { margin-top: 12px; padding: 14px 16px; border-radius: 10px; }
  .play-now strong { font-size: 1.1rem; }
  .play-controls .btn-action { min-width: 0; height: 48px; padding: 0 10px; font-size: 1rem; }
  .play-list-head { margin-top: 24px; }
  .play-list-head h2 { font-size: 1.3rem; }
  .play-row-main { gap: 10px; padding: 10px 2px; }
  .play-row-no { width: 22px; font-size: 1.05rem; }
  .play-row-thumb { width: 116px; }
  .play-row-title { font-size: 1rem; }
  .btn-row-remove { padding: 8px 10px; font-size: 0.9rem; }
}

/* =========================================================
   첫 화면 배너 (지금 가장 많이 보는 영상 / 지난번 보시던 영상)
   ========================================================= */
.hero--video .hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); align-items: center; gap: 48px;
  min-height: 330px; padding-top: 30px; padding-bottom: 30px;
}
.hero--video .hero-copy { padding: 0; min-width: 0; }
.hero-greeting { font-size: 1.15rem; font-weight: 600; color: #5b6477; }
.hero-label {
  display: inline-block; margin-top: 14px; padding: 4px 14px; border-radius: 16px;
  background: var(--red); color: #fff; font-size: 1.05rem; font-weight: 700;
}
.hero--video .hero-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-top: 12px; font-size: 2.6rem; line-height: 1.25; overflow-wrap: anywhere;
}
.hero--video .hero-title a:hover { text-decoration: underline; text-underline-offset: 6px; }
.hero-meta { margin-top: 10px; font-size: 1.2rem; color: #394257; }
.hero-meta strong { color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.hero-actions .btn-hero { margin-top: 0; }
.hero-more { display: inline-flex; align-items: center; gap: 4px; font-size: 1.15rem; font-weight: 700; color: var(--navy-deep); }
.hero-more svg { width: 20px; height: 20px; }
.hero-more:hover { text-decoration: underline; }
.hero-sub { margin-top: 16px; font-size: 1.05rem; color: #5b6477; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-sub a { font-weight: 700; color: var(--navy-deep); text-decoration: underline; }

.hero-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px;
  background-size: cover; background-position: center; background-color: #cfd6e4;
  box-shadow: 0 14px 34px rgba(19, 39, 90, 0.22); transition: transform .15s;
}
.hero-thumb:hover { transform: translateY(-3px); }
.hero-thumb-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  color: var(--red); --play-fg: #fff; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.hero-badge {
  position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 8px;
  background: rgba(14, 31, 75, 0.88); color: #fff; font-size: 1rem; font-weight: 700;
}

/* 카드의 '하루 +N' 표시 */
.gain { font-size: 0.9em; font-weight: 700; color: var(--red); white-space: nowrap; }

@media (max-width: 1280px) {
  .hero--video .hero-inner { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; }
  .hero--video .hero-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .hero--video .hero-inner { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; padding-bottom: 26px; }
  .hero-greeting { font-size: 1rem; }
  .hero-label { margin-top: 10px; font-size: 0.95rem; }
  .hero--video .hero-title { font-size: 1.7rem; }
  .hero-meta { font-size: 1rem; }
  .hero-actions { gap: 10px 16px; margin-top: 18px; }
  .hero-more { font-size: 1rem; }
  .hero-thumb { border-radius: 12px; }
  .hero-thumb-play { width: 60px; height: 60px; }
  .hero-badge { font-size: 0.9rem; }
  .hero--video .btn-hero .ico-play { display: block; width: 28px; height: 28px; }
}

/* ---------- 첫 화면 배너: 유튜브 실시간 인기 1~10위 ---------- */
.hero--trend .hero-inner { display: block; min-height: 0; padding-top: 26px; padding-bottom: 22px; }
.hero--trend .hero-greeting { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.hero-updated { font-size: 0.95rem; font-weight: 500; color: #7a8294; }
.hero-slide {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 500px); align-items: center; gap: 48px;
  margin-top: 10px; animation: heroFade .35s ease;
}
.hero-slide[hidden] { display: none; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero--trend .hero-copy { padding: 0; min-width: 0; }
.hero-label b { margin-left: 2px; font-weight: 800; }
.hero--trend .hero-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-top: 12px; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.25; color: var(--navy-deep); overflow-wrap: anywhere;
}
.hero--trend .hero-title a:hover { text-decoration: underline; text-underline-offset: 6px; }

.hero-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.hero-nav-btn {
  width: 40px; height: 40px; border: 1.5px solid #cfd4de; border-radius: 50%; background: #fff;
  font-size: 1.6rem; line-height: 1; color: var(--navy-deep);
}
.hero-dots { display: flex; gap: 6px; }
.hero-dots button {
  width: 36px; height: 36px; border: 1.5px solid #cfd4de; border-radius: 50%; background: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem; font-weight: 700; color: #5b6477;
}
.hero-dots button.is-active { border-color: var(--red); background: var(--red); color: #fff; }
.hero-pause { height: 36px; margin-left: 6px; padding: 0 16px; border: 1.5px solid #cfd4de; border-radius: 18px; background: #fff; font-size: 0.95rem; font-weight: 700; color: #3a4153; }
.hero-nav-btn:hover, .hero-dots button:hover, .hero-pause:hover { border-color: var(--navy); }

.rank-list--side { grid-template-columns: 1fr; }

@media (max-width: 1280px) {
  .hero-slide { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; }
  .hero--trend .hero-title { font-size: 2.1rem; }
}
@media (max-width: 768px) {
  .hero--trend .hero-inner { padding-top: 18px; padding-bottom: 18px; }
  .hero-updated { font-size: 0.85rem; }
  .hero-slide { grid-template-columns: 1fr; gap: 16px; }
  .hero--trend .hero-title { font-size: 1.6rem; }
  .hero-dots { gap: 4px; }
  .hero-dots button { width: 30px; height: 30px; font-size: 0.85rem; }
  .hero-nav { gap: 6px; }
  .hero-nav-btn { width: 34px; height: 34px; }
}
@media (max-width: 400px) {
  .hero-dots button { width: 26px; height: 26px; font-size: 0.8rem; }
  .hero-nav-btn { display: none; }
}

/* ---------- 유튜브 인기 재생 화면: 영상 아래 이어 보기 ---------- */
.trend-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.trend-step {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.trend-step:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(19, 39, 90, 0.12); }
.trend-step--next { grid-column: 2; }
.trend-step-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 8px; background-size: cover; background-position: center; background-color: #cfd6e4; }
.trend-step-body { min-width: 0; }
.trend-step-body small { display: block; font-size: 0.95rem; font-weight: 700; color: var(--red); }
.trend-step-body strong {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-top: 4px; font-size: 1.1rem; line-height: 1.4; color: var(--navy-deep); overflow-wrap: anywhere;
}
.trend-more { margin-top: 40px; }
.cat-list--trend { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .trend-steps { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
  .trend-step--next { grid-column: auto; }
  .trend-step { grid-template-columns: 120px minmax(0, 1fr); }
  .trend-step-body strong { font-size: 1rem; }
  .trend-more { margin-top: 30px; }
  .cat-list--trend { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 공유 버튼 (카카오톡 · 밴드 · 주소 복사) ---------- */
.share-box { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); background: #fff8e1; border: 1px solid #f5e3a8; }
.share-title { font-size: 1.15rem; font-weight: 800; color: var(--navy-deep); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn-share {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 26px;
  font-size: 1.1rem; font-weight: 800; border: 2px solid transparent; transition: filter .15s, transform .15s;
}
.btn-share:hover { filter: brightness(0.96); transform: translateY(-1px); }
.btn-share--kakao { background: #fee500; color: #191919; }
.btn-share--band { background: #06c755; color: #fff; }
.btn-share--band .share-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: #fff; color: #06c755; font-size: 0.95rem; font-weight: 900; }
.btn-share--copy { background: #fff; border-color: #cfd4de; color: var(--navy-deep); }
.share-ico { font-size: 1.2rem; line-height: 1; }
@media (max-width: 768px) {
  .share-box { padding: 14px; }
  .share-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .btn-share { justify-content: center; min-height: 50px; padding: 0 12px; font-size: 1rem; }
  .btn-share--kakao { grid-column: 1 / -1; }
}

/* =========================================================
   시니어 맞춤 디자인: 빨간 상단 + 밝은 바탕
   (주제 칩, 인사 카드, 이어보기, 지금 방송 중, 이런 영상은 어떠세요?)
   ========================================================= */
:root {
  --brand: #c8232c;
  --brand-deep: #a51c24;
  --brand-soft: #fdecec;
  --ink: #1b1b1f;
  --cream: #fdf6ea;
}

/* 상단 */
.site-header { background: linear-gradient(180deg, #d0262f 0%, #b01e26 100%); box-shadow: 0 2px 8px rgba(120, 20, 25, 0.25); }
.site-header .logo-mark { filter: brightness(0) invert(1); }
.site-header .logo-text em { color: #ffe08a; }
.gnb a.is-active::after { background: #ffe08a; }
.search button { color: var(--brand); }
.btn-fontsize[aria-pressed="true"] { color: var(--brand); }
.sort-tabs a.is-active { border-color: var(--brand); background: var(--brand); }
.section-head h2 { color: var(--ink); }
.tabbar .is-active, .tabbar .is-active svg { color: var(--brand); }

/* 주제 칩 */
.chips { position: sticky; top: 88px; z-index: 40; background: #fff; border-bottom: 1px solid #eee8e0; }
.chips-inner { display: flex; gap: 10px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.chips-inner::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px;
  border: 1.5px solid #e3ddd4; border-radius: 25px; background: #fff;
  font-size: 1.15rem; font-weight: 800; color: var(--ink); white-space: nowrap;
}
.chip svg { width: 24px; height: 24px; }
.chip:hover { border-color: var(--brand); }
.chip.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.chip.is-active svg { filter: brightness(0) invert(1); }

/* 인사 카드 */
.greet { padding-top: 18px; }
.greet-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 440px; align-items: center; gap: 40px;
  min-height: 300px; padding: 36px 44px; border: 1px solid #f0e2c8; border-radius: 20px; background: var(--cream);
}
.greet-deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.greet-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(253, 246, 234, 0.96) 0%, rgba(253, 246, 234, 0.85) 42%, rgba(253, 246, 234, 0) 70%);
}
.greet-copy, .greet-pick { position: relative; z-index: 1; }
.greet-copy { min-width: 0; }
.greet-hello { font-size: 1.35rem; font-weight: 800; color: var(--brand); }
.greet-hello span { font-weight: 600; color: #6b6259; }
.greet-title { margin-top: 6px; font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; color: var(--ink); }
.greet-sub { margin-top: 8px; font-size: 1.35rem; color: #4a4038; }
.greet-quote {
  display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-hand); font-size: 1.9rem; line-height: 1.2; color: #5a3b28;
}
.greet-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-greet {
  display: inline-flex; align-items: center; gap: 10px; height: 64px; padding: 0 30px; border-radius: 32px;
  background: var(--brand); color: #fff; font-size: 1.4rem; font-weight: 800; box-shadow: 0 6px 16px rgba(200, 35, 44, 0.3);
  transition: background .15s, transform .15s;
}
.btn-greet:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-greet svg { width: 32px; height: 32px; color: #fff; --play-fg: var(--brand); }
.btn-greet-share {
  display: inline-flex; align-items: center; gap: 8px; height: 64px; padding: 0 26px; border-radius: 32px;
  background: #fee500; color: #191919; font-size: 1.25rem; font-weight: 800;
}
.btn-greet-share:hover { filter: brightness(0.96); }
.greet-pick { display: block; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(60, 40, 20, 0.18); transition: transform .15s; }
.greet-pick:hover { transform: translateY(-3px); }
.greet-pick-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; background-size: cover; background-position: center; }
.greet-pick-badge { position: absolute; left: 10px; top: 10px; padding: 4px 12px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 1rem; font-weight: 800; }
.greet-pick-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); color: var(--brand); --play-fg: #fff; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35)); }
.greet-pick-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 10px; font-size: 1.2rem; font-weight: 800; line-height: 1.35; color: var(--ink); }
.greet-pick-meta { display: block; margin-top: 4px; font-size: 1rem; color: var(--text-sub); }

/* 이어보기 · 지금 방송 중 · 이런 영상은 어떠세요? */
.home-main { margin-top: 28px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 430px; grid-template-areas: "picks side"; align-items: start; gap: 32px; }
.home-side { grid-area: side; display: flex; flex-direction: column; gap: 24px; }
.home-picks { grid-area: picks; }
.home-grid--no-side { grid-template-columns: 1fr; grid-template-areas: "picks"; }
.home-grid--no-side .home-side { display: none; }
.home-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.home-block-title { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.resume .home-block-title { margin-bottom: 12px; }
.dot { flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); }
.dot--live { background: #e31b23; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 7px rgba(227, 27, 35, 0.18); } }

.resume-card {
  display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px;
  border: 1px solid #eee8e0; border-radius: 16px; background: #fff; box-shadow: var(--shadow);
}
.resume-card:hover { border-color: var(--brand); }
.resume-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 10px; background: #ddd center / cover; }
.resume-thumb svg { width: 46px; height: 46px; color: rgba(0, 0, 0, 0.55); --play-fg: #fff; }
.resume-body { min-width: 0; }
.resume-body strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 1.2rem; font-weight: 800; line-height: 1.35; color: var(--ink); }
.resume-bar { display: block; height: 8px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: #e9e4dc; }
.resume-bar i { display: block; height: 100%; background: var(--brand); }
.resume-body small { display: block; margin-top: 6px; font-size: 0.95rem; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.btn-resume {
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 22px; border-radius: 14px;
  background: var(--brand); color: #fff; font-size: 1.25rem; font-weight: 800; white-space: nowrap;
}
.btn-resume svg { width: 26px; height: 26px; color: #fff; --play-fg: var(--brand); }

.live-list { display: flex; flex-direction: column; gap: 12px; }
.live-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px; border: 1px solid #eee8e0; border-radius: 14px; background: #fff; }
.live-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; background: #222 center / cover; }
.live-badge { position: absolute; left: 8px; top: 8px; padding: 2px 10px; border-radius: 6px; background: #e31b23; color: #fff; font-size: 0.9rem; font-weight: 800; letter-spacing: 0.03em; }
.live-body { min-width: 0; }
.live-body h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 1.15rem; font-weight: 800; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.live-body h3 a:hover, .pick-body h3 a:hover { text-decoration: underline; }
.live-meta { margin-top: 4px; font-size: 0.95rem; color: var(--text-sub); }
.live-meta strong { color: #e31b23; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: #f1eee9; font-size: 0.9rem; font-weight: 700; color: #4a4038; white-space: nowrap; }
a.tag:hover { background: #e8e3dc; }
.tag--live { background: #e31b23; color: #fff; }
.tag--new { background: #fff1c9; color: #8a5a00; }
.tag--hot { background: var(--brand-soft); color: var(--brand); }

.pick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.pick-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: start; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid #eee8e0; }
.pick-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; background-size: cover; background-position: center; }
.pick-thumb .duration { right: 6px; bottom: 6px; padding: 1px 7px; font-size: 0.9rem; }
.pick-body { min-width: 0; }
.pick-body h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 1.2rem; font-weight: 800; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.pick-meta { margin-top: 6px; font-size: 0.95rem; color: var(--text-sub); }

/* 유튜브 인기 바로가기 */
.trend-teaser { padding-top: 26px; }
.trend-teaser-link { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid #eee8e0; border-radius: 14px; background: #fff; }
.trend-teaser-link:hover { border-color: var(--brand); }
.trend-teaser-badge { flex-shrink: 0; padding: 4px 12px; border-radius: 8px; background: #ff0000; color: #fff; font-size: 0.95rem; font-weight: 800; }
.trend-teaser-link strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.trend-teaser-link small { display: block; margin-top: 2px; font-size: 0.95rem; color: var(--text-sub); }
.trend-teaser-link svg { flex-shrink: 0; width: 24px; height: 24px; margin-left: auto; color: var(--text-sub); }

/* 오늘의 인사 화면 */
.today-page { padding-top: 12px; }
.today-pick { margin-top: 30px; }
.today-pick .player { margin-top: 12px; }
.today-pick-title { margin-top: 10px; font-size: 1.3rem; font-weight: 800; }
.today-pick-title a:hover { text-decoration: underline; }
.today-page .home-picks { margin-top: 34px; }
.today-more { margin-top: 32px; text-align: center; }

@media (max-width: 1280px) {
  .greet-card { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding: 30px 32px; }
  .greet-title { font-size: 2.9rem; }
  .home-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .pick-list { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .home-grid, .home-grid--no-side { grid-template-columns: 1fr; grid-template-areas: "side" "picks"; }
  .pick-list { grid-template-columns: 1fr 1fr; }
  .live-row:nth-child(n+3) { display: none; }
}

@media (max-width: 768px) {
  .site-header .search { background: var(--brand-deep); }
  .chips { top: 72px; }
  .chips-inner { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .chip { height: 44px; padding: 0 16px; font-size: 1.05rem; gap: 6px; }
  .chip svg { width: 20px; height: 20px; }

  .greet { padding-top: 12px; }
  .greet-card { grid-template-columns: 1fr; min-height: 0; padding: 22px 18px; border-radius: 16px; }
  .greet-card::before { background: linear-gradient(90deg, rgba(253, 246, 234, 0.97) 0%, rgba(253, 246, 234, 0.9) 55%, rgba(253, 246, 234, 0.3) 100%); }
  .greet-pick { display: none; }
  .greet-hello { font-size: 1.05rem; }
  .greet-title { font-size: 2.2rem; }
  .greet-sub { font-size: 1.05rem; }
  .greet-quote { margin-top: 10px; font-size: 1.4rem; padding: 6px 12px; }
  .greet-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .greet-actions > a { justify-content: center; width: 100%; }
  .btn-greet { height: 54px; padding: 0 20px; font-size: 1.15rem; }
  .btn-greet svg { width: 26px; height: 26px; }
  .btn-greet-share { height: 54px; padding: 0 16px; font-size: 1.02rem; }

  .home-main { margin-top: 20px; }
  .home-side { gap: 20px; }
  .home-block-title { font-size: 1.35rem; }
  .resume-card { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .resume-body strong { font-size: 1.05rem; }
  .btn-resume { grid-column: 1 / -1; justify-content: center; height: 52px; font-size: 1.15rem; }
  .live-row { grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .live-body h3 { font-size: 1.02rem; }
  .pick-list { grid-template-columns: 1fr; gap: 14px; }
  .pick-row { grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; }
  .pick-row:nth-child(n+7) { display: none; }
  .pick-body h3 { font-size: 1.05rem; }
  .pick-meta { font-size: 0.88rem; }
  .tag { height: 26px; padding: 0 10px; font-size: 0.85rem; }
  .trend-teaser-link strong { font-size: 1rem; }
}

/* 큰 화면 오른쪽 칸 안의 이어보기: 버튼을 아래로 */
@media (min-width: 1025px) {
  .home-side .resume-card { grid-template-columns: 150px minmax(0, 1fr); }
  .home-side .btn-resume { grid-column: 1 / -1; justify-content: center; }
}

/* 모바일: 주제 칩 7개가 한눈에 보이도록 2줄(4+3), 계절 그림은 카드 아래쪽에만 */
@media (max-width: 768px) {
  .chips { position: static; }
  .chips-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; }
  .chip { justify-content: center; min-width: 0; height: 52px; padding: 0 6px; gap: 6px; font-size: 1.15rem; }
  .chip svg { width: 22px; height: 22px; flex-shrink: 0; }
  /* 햄버거 메뉴: 스크립트가 켜지면 버튼만 보이고, 누르면 칩 목록이 펼쳐짐 */
  .chips-bar { padding-top: 10px; padding-bottom: 10px; }
  .chips-toggle {
    display: flex; align-items: center; gap: 12px; width: 100%; height: 54px; padding: 0 16px;
    border: 1.5px solid #e3ddd4; border-radius: 14px; background: #fff; font-size: 1.15rem; font-weight: 800; color: var(--ink);
  }
  .chips-burger { display: flex; flex-direction: column; justify-content: space-between; width: 22px; height: 16px; }
  .chips-burger i { display: block; height: 3px; border-radius: 2px; background: var(--brand); transition: transform .2s, opacity .2s; }
  .chips.is-open .chips-burger i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .chips.is-open .chips-burger i:nth-child(2) { opacity: 0; }
  .chips.is-open .chips-burger i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .chips-toggle-now { margin-left: auto; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 1rem; }
  .chips-toggle-arrow { width: 20px; height: 20px; color: var(--text-sub); transform: rotate(90deg); transition: transform .2s; }
  .chips.is-open .chips-toggle-arrow { transform: rotate(-90deg); }
  .chips:not(.is-js) .chips-bar { display: none; }
  .chips.is-js .chips-inner { display: none; padding-top: 0; }
  .chips.is-js.is-open .chips-inner { display: grid; }
  .greet-deco { top: auto; height: 150px; }
  .greet-card::before { background: linear-gradient(180deg, rgba(253, 246, 234, 1) 0%, rgba(253, 246, 234, 0.92) 70%, rgba(253, 246, 234, 0.2) 100%); }
}
@media (min-width: 769px) {
  .chips-bar { display: none; }
}

/* 인사 카드 맨 위: 가입도 필요 없고 평생 무료! */
.greet-free {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 14px; padding: 8px 18px 8px 10px;
  border: 2px solid #f2c230; border-radius: 30px; background: #fff6cf; box-shadow: 0 3px 10px rgba(180, 130, 0, 0.15);
}
.greet-free-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 1.1rem; font-weight: 900;
}
.greet-free strong { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.03em; color: #7a2a00; }
.greet-free-sub { font-size: 1rem; font-weight: 600; color: #8a6a2a; }

@media (max-width: 768px) {
  .greet-free { display: flex; width: 100%; margin-bottom: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; }
  .greet-free-ico { width: 28px; height: 28px; font-size: 1rem; }
  .greet-free strong { font-size: 1.2rem; }
  .greet-free-sub { flex-basis: 100%; padding-left: 38px; font-size: 0.9rem; }
}

/* 광고 이미지: 정사각형 광고(텐핑 등)도 잘리지 않게 */
.vcard-thumb--ad { position: relative; }
.ad-img-bg { position: absolute; inset: -12px; background-size: cover; background-position: center; filter: blur(14px) brightness(0.92); }
.vcard-thumb--ad img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.vcard-thumb--ad .ad-mark { z-index: 2; }

/* 홈 메인 배너 광고: 이미지(비율 그대로) + 제목 */
.ad-banner--image { display: flex; align-items: center; gap: 24px; overflow: hidden; }
.ad-banner--image .ad-img-bg { filter: blur(18px) brightness(0.55); }
.ad-banner--image img { position: relative; z-index: 1; flex-shrink: 0; width: auto; max-width: 45%; height: 100%; object-fit: contain; }
.ad-banner-title {
  position: relative; z-index: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  padding-right: 24px; font-size: 1.7rem; font-weight: 800; line-height: 1.3; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.ad-banner--image .ad-badge { z-index: 2; }
@media (max-width: 768px) {
  .ad-banner--image { gap: 12px; aspect-ratio: auto; height: 120px; }
  .ad-banner-title { padding-right: 12px; font-size: 1.1rem; }
}

/* iframe 광고 (쿠팡 파트너스 등): 가로 폭에 맞춰 비율 유지 */
.ad-embed { position: relative; width: 100%; aspect-ratio: var(--ad-w) / var(--ad-h); margin: 0 auto; overflow: hidden; border-radius: 8px; background: #fff; }
.ad-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ad-disclosure { margin-top: 6px; font-size: 0.8rem; line-height: 1.4; color: #8a8f99; text-align: center; }
.vcard--embed { position: relative; }
.ad-mark--static { position: absolute; left: 8px; top: 8px; z-index: 2; }
.ad-banner--embed { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding: 14px; background: #fff; border: 1px solid var(--line); }
.ad-banner--embed .ad-embed { max-width: min(100%, calc(var(--ad-w) * 1px)); }
.rank-row--embed { grid-template-columns: 40px minmax(0, 1fr); }
.rank-row-embed { min-width: 0; }
@media (max-width: 768px) {
  .rank-row--embed { grid-template-columns: 30px minmax(0, 1fr); }
  .ad-banner--embed { padding: 30px 8px 10px; }
}

/* =========================================================
   오늘의 즐길거리 (홈 카드 + 운세·좋은 글·오늘의 역사·추억 퀴즈·로또)
   ========================================================= */
.fun { margin-top: 18px; }
.fun-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fun-card { position: relative; border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgba(60, 40, 20, 0.1); transition: transform .15s, box-shadow .15s; }
.fun-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(60, 40, 20, 0.16); }
.fun-card-link { display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 16px 48px 16px 16px; border-radius: inherit; }
.fun-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fun-card-body strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; color: var(--ink); }
.fun-card-body small { font-size: 1rem; color: var(--text-sub); }
.fun-ico { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 64px; height: 64px; }
.fun-emoji { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #fff4e6; font-size: 40px; line-height: 1; }
.fun-card--words .fun-emoji { background: #fdecef; }
.fun-q { display: flex; align-items: center; justify-content: center; width: 58px; height: 54px; border-radius: 50% 50% 50% 12%; background: #ef4136; color: #fff; font-size: 38px; font-weight: 900; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); }
.fun-cal { display: flex; flex-direction: column; width: 58px; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); text-align: center; }
.fun-cal-m { padding: 3px 0; background: #d94a2b; color: #fff; font-size: 0.85rem; font-weight: 800; }
.fun-cal-d { padding: 2px 0 4px; font-size: 1.6rem; font-weight: 900; line-height: 1.1; color: #2a2a2a; }
.fun-cal-d small { font-size: 0.75rem; font-weight: 700; }
.fun-balls { position: relative; width: 64px; height: 60px; }
.fun-balls .ball { position: absolute; width: 32px; height: 32px; font-size: 0.95rem; }
.fun-balls .ball:nth-child(1) { left: 0; top: 4px; }
.fun-balls .ball:nth-child(2) { left: 28px; top: 0; }
.fun-balls .ball:nth-child(3) { left: 14px; top: 26px; }
.fun-share {
  position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: #fdecec; color: var(--brand);
}
.fun-share svg { width: 18px; height: 18px; }
.fun-share:hover { background: var(--brand); color: #fff; }
.fun-deco { display: none; }

/* 로또 공 (동행복권 구간별 색) */
.ball {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  color: #fff; font-size: 1.05rem; font-weight: 800; text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
  box-shadow: inset -3px -4px 6px rgba(0, 0, 0, .18), inset 3px 3px 5px rgba(255, 255, 255, .35);
}
.ball--y { background: #fbc400; }
.ball--b { background: #69c8f2; }
.ball--r { background: #ff7272; }
.ball--g { background: #aaa; }
.ball--n { background: #b0d840; }
.ball--lg { width: 56px; height: 56px; font-size: 1.45rem; }

/* 페이지 공통 */
.fun-page { max-width: 960px; }
.fun-head .page-desc { margin-top: 8px; }
.fun-page .share-box { margin-top: 32px; }
.fun-others { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.fun-others a { display: inline-flex; align-items: center; gap: 4px; height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 1.1rem; font-weight: 700; }
.fun-others a:hover { border-color: var(--brand); color: var(--brand); }
.fun-others svg { width: 18px; height: 18px; }

/* 오늘·내일 운세 */
.fortune { font-size: 1.15rem; }
.ftabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ftab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 72px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: center;
}
.ftab b { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.ftab small { font-size: 1rem; color: var(--text-sub); }
.ftab:hover { border-color: #cfd6e4; }
.ftab--today.is-active { border-color: var(--brand); background: var(--brand); }
.ftab--tomorrow.is-active { border-color: #13275a; background: #13275a; }
.ftab.is-active b, .ftab.is-active small { color: #fff; }
.ftab--tomorrow.is-active small { color: #ffd76a; }

.fpick { margin-top: 26px; }
.fpick-title { font-size: 1.45rem; font-weight: 800; color: var(--ink); text-align: center; }
.zgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.zbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 118px; padding: 12px 8px; border: 2px solid var(--line); border-radius: 16px; background: #fff; text-align: center;
}
.zbtn-emoji { font-size: 40px; line-height: 1.1; }
.zbtn b { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.zbtn small { font-size: 0.95rem; color: var(--text-sub); }
.zbtn:hover, .zbtn.is-active { border-color: var(--brand); background: var(--brand-soft); }

.fres { margin-top: 26px; padding: 26px; border: 2px solid var(--brand-soft); border-radius: 18px; background: #fffdfa; }
.fres-head { display: flex; align-items: center; gap: 16px; }
.fres-emoji { font-size: 56px; line-height: 1; }
.fres-head h2 { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.fres-date { margin-top: 2px; font-size: 1.1rem; color: var(--text-sub); }
.fres-overall { margin-top: 18px; font-size: 1.35rem; font-weight: 700; line-height: 1.7; color: #2b2b2b; }
.fres-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.fres-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.fres-label { flex-shrink: 0; width: 74px; font-size: 1.15rem; font-weight: 800; color: var(--brand); }
.fres-row p { font-size: 1.2rem; line-height: 1.65; }
.fres-lucky { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fres-lucky li { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff7e6; font-size: 1.15rem; color: #6b5a3a; }
.fres-lucky b { font-size: 1.25rem; color: #8a4b00; }
.fres-word { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--brand-soft); font-size: 1.35rem; font-weight: 800; line-height: 1.6; color: var(--brand-deep); text-align: center; }
.fres-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-ghost, .btn-kakao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 24px;
  border-radius: 999px; font-size: 1.2rem; font-weight: 800;
}
.btn-ghost { border: 2px solid var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-kakao { background: #fee500; color: #191919; }
.btn-kakao:hover { filter: brightness(0.96); }
.btn-kakao svg { width: 20px; height: 20px; }
.fres-note { margin-top: 14px; font-size: 0.95rem; color: var(--text-sub); text-align: center; }

@media (max-width: 768px) {
  .ftab { min-height: 66px; }
  .ftab b { font-size: 1.2rem; }
  .zgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .zbtn { min-height: 104px; padding: 10px 4px; border-radius: 14px; }
  .zbtn-emoji { font-size: 34px; }
  .zbtn b { font-size: 1.15rem; }
  .zbtn small { font-size: 0.85rem; }
  .fres { padding: 18px 14px; }
  .fres-emoji { font-size: 44px; }
  .fres-head h2 { font-size: 1.35rem; }
  .fres-overall { font-size: 1.25rem; }
  .fres-row { flex-direction: column; gap: 4px; padding: 12px 14px; }
  .fres-label { width: auto; }
  .fres-actions { display: grid; grid-template-columns: 1fr; }
}

/* 좋은 글 */
.words-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.words-card { display: flex; flex-direction: column; padding: 24px; border-radius: 16px; background: #fdf6ec; }
.words-card--good { background: #f1f6fd; }
.words-type { font-size: 0.95rem; font-weight: 800; color: var(--brand); }
.words-card--good .words-type { color: #2b62b8; }
.words-card h2 { margin-top: 4px; font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.words-text { flex: 1; margin-top: 12px; font-family: var(--font-hand); font-size: 1.75rem; line-height: 1.5; white-space: pre-line; color: #3a3129; }
.btn-words-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start; height: 48px; margin-top: 16px; padding: 0 20px;
  border-radius: 999px; background: #fee500; color: #3a1d1d; font-size: 1.1rem; font-weight: 800;
}
.btn-words-send svg { width: 18px; height: 18px; }

/* 오늘의 역사 */
.history-list { display: flex; flex-direction: column; }
.history-item { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.history-item:first-child { padding-top: 0; }
.history-year b { display: block; font-size: 1.6rem; font-weight: 900; color: var(--brand); }
.history-year span { font-size: 1rem; color: var(--text-sub); }
.history-body h2 { font-size: 1.35rem; font-weight: 800; line-height: 1.4; color: var(--ink); }
.history-body p { margin-top: 8px; font-size: 1.2rem; line-height: 1.7; }
.history-source { display: inline-block; margin-top: 8px; font-size: 0.95rem; color: var(--text-sub); text-decoration: underline; }

/* 추억 퀴즈 */
.quiz-list { display: flex; flex-direction: column; gap: 18px; }
.quiz { padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.quiz h2 { display: flex; gap: 12px; font-size: 1.35rem; font-weight: 800; line-height: 1.45; color: var(--ink); }
.quiz-no { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.1rem; }
.quiz-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.quiz-choice {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 1.2rem; font-weight: 600; text-align: left;
}
.quiz-choice:hover:not(:disabled) { border-color: var(--brand); }
.quiz-choice:disabled { cursor: default; opacity: 0.6; }
.quiz-choice.is-answer { opacity: 1; border-color: #1f9d55; background: #e8f7ee; color: #146b3a; }
.quiz-choice.is-picked { opacity: 1; border-color: #d33; background: #fdecec; color: #a11; }
.quiz-mark { font-size: 1.3rem; }
.quiz-answer { margin-top: 14px; font-size: 1.15rem; line-height: 1.6; }
.quiz-answer summary { cursor: pointer; font-weight: 800; color: var(--brand); }
.quiz-answer p { margin-top: 6px; }
.quiz.is-right .quiz-answer summary { color: #1f9d55; }
.quiz-list.is-js .quiz:not(.is-done) .quiz-answer { display: none; }
.quiz-score { margin-top: 20px; padding: 20px; border-radius: 16px; background: #fff7e6; font-size: 1.3rem; text-align: center; }

/* 로또 */
.lotto-latest { padding: 26px; border-radius: 16px; background: #fdf6ec; text-align: center; }
.lotto-latest h2 { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.lotto-latest h2 b { color: var(--brand); }
.lotto-latest h2 small { display: block; margin-top: 4px; font-size: 1rem; font-weight: 600; color: var(--text-sub); }
.lotto-balls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.lotto-latest .lotto-balls { margin-top: 18px; }
.lotto-plus { font-size: 1.6rem; font-weight: 800; color: var(--text-sub); }
.lotto-prize { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 18px 0 0; font-size: 1.1rem; }
.lotto-prize div { display: flex; gap: 8px; }
.lotto-prize dt { font-weight: 800; color: var(--brand); }
.lotto-prize dd { margin: 0; }
.lotto-pick { margin-top: 24px; padding: 24px; border: 2px solid var(--brand-soft); border-radius: 16px; }
.lotto-pick h2, .lotto-past h2 { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.lotto-pick h2 small { margin-left: 6px; font-size: 1rem; font-weight: 600; color: var(--text-sub); }
.lotto-pick-desc { margin-top: 4px; font-size: 1.05rem; color: var(--text-sub); }
.lotto-games { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.lotto-games li { display: flex; align-items: center; gap: 12px; }
.lotto-games .lotto-balls { justify-content: flex-start; }
.lotto-game-no { width: 24px; font-size: 1.2rem; font-weight: 800; color: var(--text-sub); }
.lotto-games-wait { color: var(--text-sub); }
.lotto-games.is-new { animation: lotto-pop .35s ease-out; }
@keyframes lotto-pop { from { opacity: .2; transform: scale(.97); } to { opacity: 1; transform: none; } }
.btn-lotto-new { display: inline-flex; align-items: center; height: 52px; margin-top: 18px; padding: 0 24px; border-radius: 999px; font-size: 1.15rem; font-weight: 800; }
.lotto-past { margin-top: 24px; }
.lotto-past ul { margin-top: 10px; }
.lotto-past li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.lotto-past small { color: var(--text-sub); }
.lotto-balls--sm .ball { width: 34px; height: 34px; font-size: 0.95rem; }

@media (max-width: 1280px) {
  .fun-card-link { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .fun-card-body strong { font-size: 1.2rem; }
}
@media (max-width: 768px) {
  .fun { margin-top: 12px; }
  .fun-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fun-card-link { flex-direction: row; align-items: center; gap: 10px; min-height: 88px; padding: 12px 12px 34px; }
  .fun-card-body strong { font-size: 1.1rem; }
  .fun-card-body small { font-size: 0.9rem; }
  .fun-ico, .fun-emoji { width: 50px; height: 50px; }
  .fun-emoji { font-size: 32px; }
  .fun-q { width: 46px; height: 44px; font-size: 30px; }
  .fun-cal { width: 48px; }
  .fun-cal-d { font-size: 1.3rem; }
  .fun-balls { width: 52px; height: 50px; transform: scale(.85); }
  .fun-share { right: 8px; bottom: 8px; width: 32px; height: 32px; }
  .fun-deco {
    display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: 16px; background: #fdf3e7;
    font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.3; color: #8a4b2b; text-align: center;
  }
  .zodiac-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zodiac-chips a { height: 48px; font-size: 1rem; }
  .fortune { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .fortune-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; text-align: left; }
  .fortune-emoji { font-size: 40px; }
  .fortune-who h2 { margin-top: 0; }
  .fortune-years { flex-basis: 100%; margin-top: 0; }
  .words-list { grid-template-columns: 1fr; }
  .words-card { padding: 20px; }
  .history-item { grid-template-columns: 1fr; gap: 6px; }
  .history-year b { display: inline; margin-right: 8px; }
  .quiz { padding: 18px; }
  .quiz-choices { grid-template-columns: 1fr; }
  .lotto-latest { padding: 20px 12px; }
  .ball--lg { width: 42px; height: 42px; font-size: 1.15rem; }
  .lotto-latest .lotto-balls { gap: 5px; }
  .lotto-pick { padding: 18px 14px; }
  .lotto-games .ball { width: 36px; height: 36px; font-size: 1rem; }
  .lotto-games li { gap: 6px; }
  .lotto-games .lotto-balls { gap: 5px; }
}
@media (max-width: 389px) {
  .fun-card-link { flex-direction: column; align-items: flex-start; }
  .lotto-games .ball, .ball--lg { width: 32px; height: 32px; font-size: 0.9rem; }
}
.fun-daynav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.fun-daynav a { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 1.1rem; font-weight: 700; }
.fun-daynav a:hover { border-color: var(--brand); color: var(--brand); }
.lotto-past a:hover b { text-decoration: underline; }

/* 오늘의 추천 5개: 첫 번째는 크게, 나머지는 작은 카드 */
.today-picks { margin-top: 30px; }
.tpick-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.tpick-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background-size: cover; background-position: center; background-color: #eee;
}
.tpick-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); color: var(--brand); --play-fg: #fff; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35)); }
.tpick-badge { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 5px 12px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 1rem; font-weight: 800; }
.tpick-body { margin-top: 10px; }
.tpick-body h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 1.2rem; font-weight: 800; line-height: 1.4; color: var(--ink); }
.tpick-meta { margin-top: 6px; font-size: 1rem; color: var(--text-sub); }
.tpick--first { grid-row: span 2; grid-column: span 2; }
.tpick--first .tpick-play { width: 84px; height: 84px; }
.tpick--first .tpick-body h3 { font-size: 1.6rem; }
.tpick:hover .tpick-body h3 { color: var(--brand); }
@media (max-width: 1024px) {
  .tpick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tpick--first { grid-column: span 2; grid-row: auto; }
  .tpick--first .tpick-body h3 { font-size: 1.4rem; }
}
@media (max-width: 768px) {
  .today-picks { margin-top: 22px; }
  .tpick-list { gap: 12px; }
  .tpick-body h3 { font-size: 1.05rem; }
  .tpick-meta { font-size: 0.9rem; }
  .tpick-play { width: 44px; height: 44px; }
  .tpick--first .tpick-play { width: 64px; height: 64px; }
  .tpick--first .tpick-body h3 { font-size: 1.25rem; }
}

/* 인사 카드 안의 오늘의 즐길거리: PC는 오른쪽에 세로 5줄, 모바일은 2칸 격자 */
.fun--greet { position: relative; z-index: 1; margin: 0; }
.fun--greet .fun-grid { grid-template-columns: 1fr; gap: 8px; }
.fun--greet .fun-card { border: 1px solid #f0e2c8; box-shadow: 0 2px 10px rgba(60, 40, 20, 0.08); }
.fun--greet .fun-card-link { flex-direction: row; align-items: center; gap: 12px; min-height: 0; padding: 10px 52px 10px 12px; }
.fun--greet .fun-ico, .fun--greet .fun-emoji { width: 46px; height: 46px; }
.fun--greet .fun-emoji { font-size: 28px; }
.fun--greet .fun-q { width: 42px; height: 40px; font-size: 27px; }
.fun--greet .fun-cal { width: 44px; }
.fun--greet .fun-cal-m { font-size: 0.75rem; }
.fun--greet .fun-cal-d { font-size: 1.2rem; }
.fun--greet .fun-balls { width: 46px; height: 44px; }
.fun--greet .fun-balls .ball { width: 26px; height: 26px; font-size: 0.85rem; }
.fun--greet .fun-balls .ball:nth-child(2) { left: 22px; }
.fun--greet .fun-balls .ball:nth-child(3) { left: 11px; top: 20px; }
.fun--greet .fun-card-body strong { font-size: 1.15rem; }
.fun--greet .fun-card-body small { font-size: 0.95rem; }
.fun--greet .fun-share { right: 8px; bottom: 50%; transform: translateY(50%); width: 34px; height: 34px; }
.fun--greet .fun-deco { display: none; }
.greet-card--solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1280px) {
  .fun--greet .fun-card-link { flex-direction: row; }
}
@media (max-width: 768px) {
  /* 휴대폰: 한 줄에 카드 하나 - 아이콘 · 제목/설명 · 공유 버튼을 가로로 나란히 */
  .fun--greet { margin-top: 18px; }
  .fun--greet .fun-grid { grid-template-columns: 1fr; gap: 8px; }
  .fun--greet .fun-card { border-radius: 14px; }
  .fun--greet .fun-card-link { flex-direction: row; align-items: center; gap: 12px; min-height: 66px; padding: 8px 54px 8px 12px; }
  .fun--greet .fun-card-body { gap: 2px; }
  .fun--greet .fun-card-body strong { font-size: 1.2rem; white-space: nowrap; }
  .fun--greet .fun-card-body small { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fun--greet .fun-ico, .fun--greet .fun-emoji { width: 44px; height: 44px; }
  .fun--greet .fun-emoji { font-size: 26px; }
  .fun--greet .fun-q { width: 40px; height: 38px; font-size: 26px; }
  .fun--greet .fun-cal { width: 42px; }
  .fun--greet .fun-balls { width: 44px; height: 42px; transform: none; }
  .fun--greet .fun-share { right: 10px; bottom: 50%; transform: translateY(50%); width: 38px; height: 38px; }
  .fun--greet .fun-share svg { width: 19px; height: 19px; }
  .fun--greet .fun-deco { display: none; }
}

/* 첫 화면 즐길거리 아이콘 한 줄 (인사 카드 아래) */
.funstrip { margin-top: 12px; }
.funstrip ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.funstrip-item {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 68px; padding: 8px 10px;
  border: 1px solid #f0e2c8; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(60, 40, 20, 0.07);
  font-size: 1.2rem; font-weight: 800; color: var(--ink); text-align: center; transition: transform .15s, box-shadow .15s;
}
.funstrip-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60, 40, 20, 0.14); color: var(--brand); }
.funstrip-ico { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 46px; height: 46px; }
.funstrip .fun-emoji { width: 46px; height: 46px; font-size: 28px; }
.funstrip .fun-q { width: 40px; height: 38px; font-size: 26px; }
.funstrip .fun-cal { width: 42px; }
.funstrip .fun-balls { width: 46px; height: 44px; }
.funstrip .fun-balls .ball { width: 26px; height: 26px; font-size: 0.85rem; }
.funstrip .fun-balls .ball:nth-child(2) { left: 22px; }
.funstrip .fun-balls .ball:nth-child(3) { left: 11px; top: 20px; }

/* 첫 화면에 영상이 바로 보이도록 인사 카드 여백·글자 줄이기 */
@media (max-width: 1280px) {
  .funstrip-item { flex-direction: column; gap: 4px; min-height: 92px; font-size: 1.05rem; }
}
@media (max-width: 768px) {
  .greet-card { padding: 16px 14px; }
  .greet-free { margin-bottom: 8px; padding: 6px 12px 6px 8px; font-size: 0.9rem; }
  .greet-title { font-size: 1.9rem; }
  .greet-sub { display: none; }
  .greet-quote { margin-top: 8px; font-size: 1.25rem; }
  .greet-actions { margin-top: 12px; }
  .btn-greet, .btn-greet-share { height: 50px; }
  /* 휴대폰에서도 오늘의 추천 영상이 첫 화면에 보이게 */
  .greet-pick { display: block; margin-top: 14px; padding: 10px; }
  .greet-pick-title { font-size: 1.15rem; }
  .funstrip { margin-top: 10px; }
  .funstrip ul { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .funstrip-item { min-height: 84px; padding: 8px 2px; border-radius: 12px; font-size: 0.95rem; gap: 4px; }
  .funstrip-ico, .funstrip .fun-emoji { width: 38px; height: 38px; }
  .funstrip .fun-emoji { font-size: 24px; }
  .funstrip .fun-q { width: 34px; height: 32px; font-size: 22px; }
  .funstrip .fun-cal { width: 36px; }
  .funstrip .fun-cal-m { font-size: 0.65rem; }
  .funstrip .fun-cal-d { font-size: 1rem; }
  .funstrip .fun-balls { width: 38px; height: 36px; transform: scale(.8); }
}
@media (max-width: 389px) {
  .funstrip-item { font-size: 0.85rem; }
}

/* 휴대폰 첫 화면: 영상이 맨 위에 보이도록 순서를 바꿈 (인사 → 제목 → 영상 → 버튼 → 한마디 → 무료 안내) */
@media (max-width: 768px) {
  .greet-card { display: flex; flex-direction: column; }
  .greet-copy { display: contents; }
  .greet-hello { order: 1; }
  .greet-title { order: 2; margin-top: 2px; font-size: 1.75rem; }
  .greet-pick { order: 3; margin-top: 12px; }
  .greet-actions { order: 4; }
  .greet-quote { order: 5; margin-top: 12px; }
  .greet-free { order: 6; margin: 12px 0 0; padding: 6px 10px; font-size: 0.85rem; }
  .greet-deco { height: 100%; opacity: .5; }
  .greet-card::before { background: linear-gradient(180deg, rgba(253, 246, 234, 0.96) 0%, rgba(253, 246, 234, 0.9) 60%, rgba(253, 246, 234, 0.85) 100%); }
  .greet-pick-thumb { border-radius: 12px; }
  .greet { padding-top: 8px; }
  .chips { margin-top: 4px; }
}

/* PC: 주제 줄은 헤더 바로 아래 (HTML 순서는 휴대폰 기준이라 화면에서만 자리를 올림) */
@media (min-width: 769px) {
  main.home { display: flex; flex-direction: column; }
  main.home > .chips { order: -2; }
  main.home > .greet { order: -1; }
}

/* 날짜 바꾸기 줄 (매일 글 페이지) */
.datebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 22px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.datebar-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: 10px; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.datebar-btn:hover { background: var(--brand-soft); color: var(--brand); }
.datebar-btn.is-off { color: #c9c9c9; }
.datebar-now { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.datebar-now b { padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.9rem; }
.fun-page .datebar + .life-list, .fun-page .datebar + .meal-list { margin-top: 0; }
@media (max-width: 768px) {
  .datebar { margin-bottom: 16px; }
  .datebar-btn { padding: 0 10px; font-size: 1rem; }
  .datebar-btn span { display: none; }
  .datebar-now { font-size: 1.1rem; }
}

/* 생활정보 페이지 */
.life-list { display: flex; flex-direction: column; gap: 14px; }
.lifecard { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.lifecard h2 { font-size: 1.4rem; font-weight: 800; line-height: 1.4; color: var(--ink); }
.lifecard-text { margin-top: 10px; font-size: 1.2rem; line-height: 1.7; }
.lifecard-row { margin-top: 8px; font-size: 1.15rem; line-height: 1.6; }
.lifecard-row span { display: inline-block; min-width: 68px; font-weight: 800; color: var(--brand); }
.lifecard-todo { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #f1f7ec; font-size: 1.15rem; line-height: 1.6; }
.lifecard-todo b { margin-right: 8px; color: #3d7a2a; }

/* 오늘의 식탁 */
.meal-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.meal-card { padding: 20px; border-radius: 16px; background: #fdf6ec; }
.meal-when { font-size: 1rem; font-weight: 800; color: var(--brand); }
.meal-card h2 { margin-top: 6px; font-size: 1.35rem; font-weight: 800; line-height: 1.4; color: var(--ink); }
.meal-why { margin-top: 8px; font-size: 1.1rem; line-height: 1.6; color: #5b5147; }
.recipe { margin-top: 20px; padding: 24px; border: 2px solid var(--brand-soft); border-radius: 18px; }
.recipe h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.recipe-badge { padding: 4px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 1rem; }
.recipe-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; margin-top: 16px; }
.recipe h3 { font-size: 1.2rem; font-weight: 800; color: var(--brand); }
.recipe-ing { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-ing li { padding: 8px 14px; border-radius: 999px; background: #f6f2ea; font-size: 1.1rem; }
.recipe-steps { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.recipe-steps li { position: relative; padding-left: 38px; font-size: 1.15rem; line-height: 1.65; }
.recipe-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 2px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.95rem; font-weight: 800; }
.recipe-tip { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #fff7e6; font-size: 1.15rem; }
.recipe-tip b { margin-right: 8px; color: #8a4b00; }
@media (max-width: 768px) {
  .meal-list { grid-template-columns: 1fr; }
  .recipe { padding: 18px 14px; }
  .recipe-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* 맨 아래 광고 배너 */
.ad-wrap--footer { margin: 32px auto 20px; }

/* 즐길거리·생활정보 메뉴 안쪽 광고 */
.ad-wrap--fun { margin: 26px 0 0; }

/* 맨 아래 사업자 정보 */
.biz-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 14px; font-style: normal; font-size: 0.92rem; line-height: 1.7; color: #7b8192; }
.biz-info strong { color: #5b6477; font-weight: 700; }
.biz-info a { text-decoration: underline; }
@media (max-width: 768px) {
  .biz-info { gap: 2px 10px; font-size: 0.85rem; text-align: center; }
}

/* ===== 인기영상 모바일 정리 (2026-09-21): 고정 칩 줄 비침 + 제목 줄바꿈 ===== */
.rank-tabs { background: #fffdfa; box-shadow: 0 6px 12px -8px rgba(80, 50, 20, 0.35); }
.section-head { align-items: center; justify-content: space-between; }
.section-head .more { flex-shrink: 0; white-space: nowrap; }
.rank-section .section-head h2 { min-width: 0; }
.rank-section .section-head h2 svg { flex-shrink: 0; }

@media (max-width: 768px) {
  /* 칩 줄 위아래로 내용이 비쳐 보이지 않도록 완전히 불투명하게 + 여백 확보 */
  .rank-tabs { margin-bottom: 4px; padding: 12px var(--gutter) 12px; }
  .rank-tabs a { height: 42px; padding: 0 14px; font-size: 0.98rem; }
  .rank-tabs svg { width: 19px; height: 19px; }

  /* 제목이 두 줄로 쪼개지지 않게 */
  .section-head { gap: 10px; }
  .rank-section .section-head h2 { font-size: 1.32rem; gap: 7px; line-height: 1.25; }
  .rank-section-icon { width: 24px; height: 24px; }
  .section-head .more { font-size: 0.98rem; }
  .rank-section { margin-top: 24px; scroll-margin-top: 132px; }
}

@media (max-width: 390px) {
  .rank-section .section-head h2 { font-size: 1.2rem; }
  .rank-tabs a { font-size: 0.92rem; padding: 0 12px; }
}

/* ===== 주제 카드 높이 통일 (2026-09-21) ===== */
.cat-list li { display: flex; }
.cat-list .cat { width: 100%; height: 100%; }
.cat-list--page .cat small {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

/* ===== 운세: 기억된 띠에서 바로 바꾸기 (2026-09-21) ===== */
.fres-head { justify-content: space-between; }
.btn-change {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px; border: 2px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 1.05rem; font-weight: 800; color: var(--ink);
}
.btn-change:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 768px) {
  .btn-change { min-height: 42px; padding: 0 14px; font-size: 0.95rem; }
}

/* ===== 날짜 이동 줄이 윗 내용에 붙던 것 (2026-09-21) ===== */
* + .datebar { margin-top: 26px; }
@media (max-width: 768px) { * + .datebar { margin-top: 18px; } }
