/* Periyar Vision — styles */
:root {
  --bg: #0D0D0D;
  --surface: #161616;
  --surface-2: #1A1A1A;
  --line: #262626;
  --line-2: #3A3A3A;
  --text: #F4F1EA;
  --soft: #C9C4BC;
  --muted: #A8A29E;
  --accent: #D21F17;
  --live: #FF4A3D;
  --amber: #F2A65A;
  --radius: 12px;
  --head: 'Catamaran', 'Noto Sans Tamil', system-ui, sans-serif;
  --body: 'Noto Sans Tamil', 'Catamaran', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #FF6B60; }
h1, h2, h3 { font-family: var(--head); line-height: 1.25; margin: 0; }
button { font: inherit; }
svg { width: 1em; height: 1em; flex: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid #FF6B60; outline-offset: 3px; }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--muted); font-size: 14px; }
.soft { color: var(--soft); }
.center { display: flex; justify-content: center; margin-top: 32px; }
.sec { padding-top: 56px; }
.sec-tight { padding-top: 24px; padding-bottom: 32px; }
.empty { border: 1px dashed var(--line-2); border-radius: 14px; padding: 22px 24px; color: var(--muted); }
.empty a { color: #FF6B60; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(13,13,13,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--head); font-weight: 900; font-size: 22px; letter-spacing: .06em; }
.brand-name b { color: var(--accent); font-weight: 900; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .08em; margin-top: 4px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; flex: 1 1 460px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--soft); padding: 6px 0; display: inline-flex; align-items: center; gap: 7px; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; border-bottom-color: var(--accent); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); align-items: center; justify-content: center; font-size: 22px; cursor: pointer; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid #2E2E2E; border-radius: 999px; padding: 0 14px; height: 44px; }
.search-icon { color: var(--muted); display: flex; font-size: 18px; }
.search input { background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 14px; width: 150px; }

/* Dots & badges */
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6B6661; display: inline-block; flex: none; }
.dot.is-live { background: var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,74,61,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,74,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,74,61,0); } }
@media (prefers-reduced-motion: reduce) { .dot.is-live { animation: none; } html { scroll-behavior: auto; } .card img { transition: none !important; } }
.dot-w { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 6px; color: #fff; }
.badge.inline { position: static; vertical-align: middle; margin-left: 6px; }
.badge-new { background: var(--accent); }
.badge-live { background: #E0261C; }
.badge-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.badge-soon { background: #1D4ED8; }
.badge-amber { background: var(--amber); color: #1A120B; font-weight: 800; }
.dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 5px; }
.pill { background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 14px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { color: #fff; filter: brightness(1.1); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: #5a5a5a; color: #fff; }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { color: var(--bg); background: #fff; }

/* Sections */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-bottom: 22px; }
.sec-head h2 { font-weight: 800; font-size: 30px; }
.more { font-size: 15px; font-weight: 600; color: #FF6B60; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: #FF6B60; }
.eyebrow.amber, .more.amber { color: var(--amber); }
.sec-title-ch { display: flex; align-items: center; gap: 14px; }
.sec-title-ch img { width: 40px; height: 40px; border-radius: 50%; }
.sec-title-ch h2 { font-size: 26px; }

/* Grids & cards */
.grid { display: grid; gap: 28px 22px; }
.grid-260 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-shorts { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.card img { transition: transform .25s ease; }
.card:hover img { transform: scale(1.04); }
.thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.thumb > img { width: 100%; height: 100%; object-fit: cover; }
.vcard { display: flex; flex-direction: column; gap: 10px; }
.vmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.vch { color: var(--soft); font-weight: 600; }
.av-sm { width: 22px; height: 22px; border-radius: 50%; }
.sep { opacity: .6; }

.hscroll { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.hscroll .scard { flex: 0 0 190px; scroll-snap-align: start; }
.scard { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 9 / 16; background: var(--surface-2); }
.scard > img { width: 100%; height: 100%; object-fit: cover; }
.scard-foot { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.av-ring { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; }

.pcard { display: flex; flex-direction: column; gap: 10px; }
.thumb.stack { box-shadow: 8px -8px 0 -2px #2A2A2A; overflow: hidden; }
.thumb.is-square { background: #201B17; }
.thumb.is-square > img { width: 56.25%; object-fit: cover; }
.pcount { position: absolute; right: 0; top: 0; bottom: 0; width: 34%; background: rgba(10,10,10,.82); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 20px; }
.pcount svg { font-size: 22px; }
.ptitle { font-size: 16px; font-weight: 600; line-height: 1.5; }
.pmeta { font-size: 13px; color: var(--muted); }

.chcard { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.chcard:hover { border-color: var(--line-2); color: var(--text); }
.chcard.is-live { border-color: rgba(255,74,61,.5); }
.chcard img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.chcard-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chname { font-weight: 700; font-size: 17px; }
.chcard .soft { font-size: 13px; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.chcard.is-live .state { color: #FF6B60; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 40px; }
.hero-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-weight: 900; font-size: clamp(36px, 5vw, 52px); line-height: 1.2; }
.lead { margin: 0; font-size: 17px; line-height: 1.75; color: var(--soft); max-width: 520px; }
.hero-media { flex: 1.5 1 520px; min-width: 0; position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.play-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }

/* Live strip */
.live-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; background: #1A0E0D; border: 1px solid rgba(255,74,61,.45); border-radius: 18px; padding: 16px; }
.live-thumb { position: relative; flex: 0 0 220px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.live-thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-info { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.live-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #FF6B60; letter-spacing: .06em; }
.live-ch { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.live-ch img { width: 32px; height: 32px; border-radius: 50%; }
.live-off { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; background: #151515; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; color: var(--soft); font-size: 15px; }
.live-off:hover { color: var(--soft); border-color: var(--line-2); }

/* Podcasts */
.podband { margin-top: 56px; background: #151210; border-top: 1px solid #2A2420; border-bottom: 1px solid #2A2420; padding: 56px 0; }
.podband .sec-head { align-items: flex-end; }
.podband .sec-head > span { display: flex; flex-direction: column; gap: 6px; }
.pod-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.pod-feature { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; background: #1E1916; border: 1px solid #332A24; border-radius: 18px; overflow: hidden; }
.pod-feature .thumb { border-radius: 0; }
.pod-feature .badge { left: 14px; top: 14px; }
.pod-feature-foot { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.pod-feature-foot > img { width: 64px; height: 64px; border-radius: 10px; flex: none; }
.pf-title { display: block; font-weight: 700; font-size: 18px; }
.pod-feature .pmeta { color: #B8AFA6; }
.play-amber { width: 52px; height: 52px; border-radius: 50%; background: var(--amber); color: #1A120B; display: flex; align-items: center; justify-content: center; flex: none; font-size: 22px; }
.pod-grid { flex: 1.4 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 18px; }
.pod-grid.wide { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.podcard { display: flex; flex-direction: column; gap: 10px; }
.square { display: block; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: #1E1916; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.square img { width: 100%; height: 100%; object-fit: cover; }
.podcard .ptitle { font-size: 15px; line-height: 1.45; }
.podcard .pmeta { font-size: 12px; color: #B8AFA6; }

/* Tabs & chips */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 8px; border-radius: 999px; border: 0; cursor: pointer; font-size: 14px; font-weight: 600; background: transparent; color: var(--soft); }
.tabs button img { width: 28px; height: 28px; border-radius: 50%; }
.tabs button small { font-size: 12px; opacity: .85; }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--soft); font-size: 13px; cursor: pointer; }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }

/* Manifesto & footer */
.manifesto { margin-top: 64px; background: var(--accent); padding: 72px 0; }
.manifesto-big { margin: 0; font-family: var(--head); font-weight: 900; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.3; color: #fff; }
.manifesto-sub { margin: 18px 0 0; font-size: 17px; line-height: 1.7; color: #fff; max-width: 640px; }
.footer { background: #0A0A0A; padding: 36px 0 28px; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 50%; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--soft); }
.footer-note { font-size: 12px; color: #7E7973; margin: 18px auto 0; }

/* Watch & live */
.watch { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 28px; padding-bottom: 56px; }
.watch-main, .live-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.who { display: flex; align-items: center; gap: 12px; }
.who img { width: 44px; height: 44px; border-radius: 50%; }
.who > span { display: flex; flex-direction: column; gap: 2px; }
.desc { background: #171717; border: 1px solid #242424; border-radius: 14px; padding: 14px 20px; }
.desc summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.desc-body { margin-top: 10px; font-size: 15px; line-height: 1.75; color: #D6D1C9; overflow-wrap: anywhere; }
.desc-body a { color: #FF8A80; }
.upnext { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.upnext h2 { font-size: 20px; font-weight: 800; }
.upnext-item { display: flex; gap: 12px; align-items: flex-start; }
.upnext-item .thumb { flex: 0 0 168px; border-radius: 10px; }
.upnext-meta { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; min-width: 0; }
.chname-sm { font-size: 14px; font-weight: 600; }
.upnext .muted { font-size: 12px; }

.live-page { padding-top: 28px; padding-bottom: 56px; }
.live-now { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.chat { flex: 1 1 320px; min-width: 0; min-height: 460px; display: flex; flex-direction: column; background: #151515; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.chat iframe { flex: 1; width: 100%; border: 0; min-height: 420px; }
.offline { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; background: #151515; border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.offline h1 { font-size: 28px; font-weight: 800; }
.offline p { margin: 6px 0 0; }
.offline-icon { width: 72px; height: 72px; border-radius: 50%; background: #222; color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 34px; }

/* Channel & playlist headers */
.ch-head, .pl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 36px; }
.ch-head > img { width: 96px; height: 96px; border-radius: 50%; }
.ch-head h1, .pl-head h1 { font-size: 34px; font-weight: 800; }
.ch-head p, .pl-head p { margin: 6px 0 0; }
.ch-desc { max-width: 720px; font-size: 15px; }
.pl-head > img.sq { width: 180px; height: 180px; border-radius: 14px; object-fit: cover; }
.pl-head > img.wide { width: 320px; aspect-ratio: 16/9; border-radius: 14px; object-fit: cover; }
.pl-head .btn-row { margin-top: 14px; }
.pl-head a { color: var(--soft); }
.pl-head .btn-accent { color: #fff; }
.subtabs { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 28px; border-bottom: 1px solid var(--line); }
.subtabs a { padding: 10px 0; color: var(--soft); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a.is-active { color: #fff; border-bottom-color: var(--accent); }
.page-title { font-size: 28px; font-weight: 800; margin: 12px 0 24px; }
.sub-title { font-size: 20px; font-weight: 800; margin: 24px 0 16px; }

/* Phone */
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .brand-sub { display: none; }
  .hero { padding-top: 28px; gap: 28px; }
  .hero-media { order: -1; flex-basis: 100%; }
  .sec-head h2 { font-size: 24px; }
  .grid-260 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .rail { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 10px; scroll-snap-type: x proximity; }
  .rail > * { flex: 0 0 78%; scroll-snap-align: start; }
  .rail-2 { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 70%; grid-template-columns: none; }
  .hscroll .scard { flex-basis: 150px; }
  .live-thumb { flex-basis: 100%; }
  .upnext-item .thumb { flex-basis: 140px; }
  .pl-head > img.sq, .pl-head > img.wide { width: 140px; }
  .offline { padding: 24px; }
  .chat { min-height: 380px; }
}

/* Visible horizontal scroll bars (Shorts row, phone rails) */
.hscroll, .rail { padding-bottom: 18px; }
.hscroll::-webkit-scrollbar, .rail::-webkit-scrollbar { height: 12px; }
.hscroll::-webkit-scrollbar-track, .rail::-webkit-scrollbar-track { background: #2A2A2A; border-radius: 999px; }
.hscroll::-webkit-scrollbar-thumb, .rail::-webkit-scrollbar-thumb { background: #B5AFA8; border-radius: 999px; border: 2px solid #2A2A2A; }
.hscroll::-webkit-scrollbar-thumb:hover, .rail::-webkit-scrollbar-thumb:hover { background: var(--accent); }
@supports not selector(::-webkit-scrollbar) {
  .hscroll, .rail { scrollbar-width: auto; scrollbar-color: #B5AFA8 #2A2A2A; }
}

/* Playlists: featured tiles + list */
.art { position: relative; display: block; overflow: hidden; background: #1A1A1A; }
.art-bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(18px) brightness(.55); }
.art-fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art.is-sq .art-fg { object-fit: contain; }
.card:hover .art-bg { transform: none; }
.pl-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.pl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pl-tile { position: relative; display: block; border-radius: 16px; overflow: hidden; }
.pl-tile:first-child { grid-column: 1 / -1; }
.pl-tile .art { aspect-ratio: 16 / 9; }
.pl-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.92) 100%); }
.pl-cap { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; flex-direction: column; gap: 4px; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.pl-cap b { font-family: var(--head); font-size: 24px; font-weight: 800; line-height: 1.3; }
.pl-tile:not(:first-child) .pl-cap { left: 14px; right: 14px; bottom: 10px; }
.pl-tile:not(:first-child) .pl-cap b { font-size: 16px; }
.pl-cap span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #E7E2DA; }
.pl-tile:hover { color: var(--text); }
.pl-list { display: flex; flex-direction: column; gap: 2px; background: #141414; border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.pl-row { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 10px; }
.pl-row[hidden] { display: none; }
.pl-row:hover { background: #1E1E1E; color: var(--text); }
.pl-row .art { flex: 0 0 112px; aspect-ratio: 16 / 9; border-radius: 8px; }
.pl-row-title { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; line-height: 1.4; }
.pl-row-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pl-chev { color: #6B6661; font-size: 20px; }
.pl-more { display: flex; justify-content: center; padding: 12px; color: #FF6B60; font-weight: 600; border-radius: 10px; }
.pl-more:hover { background: #1E1E1E; }
@media (max-width: 960px) {
  .pl-feature { grid-template-columns: 1fr; }
}
.pl-row.phone-only { display: none; }
@media (max-width: 560px) {
  .pl-cap b { font-size: 20px; }
  .pl-tile:not(:first-child) { display: none; }
  .pl-row.phone-only { display: flex; }
  .tabs { width: 100%; flex-wrap: nowrap; }
  .tabs button { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 10px 0 6px; font-size: 13px; white-space: nowrap; overflow: hidden; }
  .tabs button img { width: 24px; height: 24px; }
  .tabs button small { display: none; }
  .pl-row .art { flex-basis: 96px; }
  .pl-row-title { font-size: 14px; }
}

/* Periyar Books section */
.books { margin-top: 56px; background: #13120F; border-top: 1px solid #2B2820; border-bottom: 1px solid #2B2820; padding: 56px 0; }
.books-in { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.books-intro { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.books-cover { width: 180px; height: 180px; border-radius: 14px; object-fit: cover; box-shadow: 0 18px 40px rgba(0,0,0,.55); margin-bottom: 6px; }
.books-intro h2 { font-size: 34px; font-weight: 900; }
.books-intro p { margin: 0; line-height: 1.7; }
.books-count { color: #CFC3A6; font-size: 14px; font-weight: 600; }
.eyebrow.cream { color: #E8D9B5; }
.btn-cream { background: #E8D9B5; color: #1A160C; }
.btn-cream:hover { background: #F3E7C9; color: #1A160C; }
.books-grid { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
@media (max-width: 1100px) { .books-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .books-intro { max-width: none; }
  .books-cover { width: 120px; height: 120px; }
  .books-intro h2 { font-size: 28px; }
  .books-grid { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 18px; scroll-snap-type: x proximity; }
  .books-grid > * { flex: 0 0 62%; scroll-snap-align: start; }
}
.books-grid::-webkit-scrollbar { height: 12px; }
.books-grid::-webkit-scrollbar-track { background: #2A2A2A; border-radius: 999px; }
.books-grid::-webkit-scrollbar-thumb { background: #B5AFA8; border-radius: 999px; border: 2px solid #2A2A2A; }
/* Square cover art (Periyar Books): YouTube stores it with side bars; a square box shows exactly the artwork */
.thumb.t11 { aspect-ratio: 1 / 1; }
.thumb.t11 > img { object-fit: cover; }
.thumb.t11 > img.t11-bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); filter: blur(16px) brightness(.5); }
.thumb.t11 > img.t11-fit { position: absolute; inset: 0; object-fit: contain; }
.card:hover .thumb.t11 > img.t11-bg { transform: none; }

/* Books landing page */
.bk-hero { background: #13120F; border-bottom: 1px solid #2B2820; padding: 44px 0 52px; }
.bk-hero-in { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.bk-hero-cover { width: 240px; height: 240px; border-radius: 18px; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,.6); flex: none; }
.bk-hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bk-hero-text h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; }
.bk-lead { margin: 0; font-size: 18px; line-height: 1.75; color: var(--soft); max-width: 640px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.crumbs a { color: var(--soft); }
.bk-stats { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bk-stats li { background: #1F1C16; border: 1px solid #332E24; border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #CFC3A6; }
.bk-stats b { color: #F4F1EA; font-size: 16px; margin-right: 4px; }
.bk-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 20px; }
.bk-card { display: flex; flex-direction: column; gap: 8px; }
.bk-card .thumb { border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.bk-card-name { font-weight: 700; font-size: 15px; line-height: 1.45; }
.bk-card-author { font-size: 13px; color: #E8D9B5; }
.bk-card:hover { color: var(--text); }
.bk-list { padding-top: 24px; }
.bk-book { display: flex; flex-wrap: wrap; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.bk-book-side { flex: 0 0 220px; }
.bk-book-side .thumb { border-radius: 14px; box-shadow: 0 16px 36px rgba(0,0,0,.5); }
.bk-book-main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.bk-book-main h2 { font-size: 30px; font-weight: 800; }
.bk-book-meta { margin: 0; color: var(--muted); font-size: 14px; }
.bk-book-meta span { color: #E8D9B5; font-weight: 600; }
.bk-about { margin: 0; max-width: 720px; line-height: 1.75; }
.bk-parts { list-style: none; margin: 8px 0 0; padding: 6px; width: 100%; background: #141414; border: 1px solid var(--line); border-radius: 14px; }
.bk-part { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; min-height: 52px; }
.bk-part:hover { background: #1E1E1E; color: var(--text); }
.bk-num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #23201A; color: #E8D9B5; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bk-part-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bk-part-label { font-weight: 600; font-size: 15px; }
.bk-part-chapter { font-size: 14px; color: var(--soft); }
.bk-part-dur { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #3A3A3A; color: #E8D9B5; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.bk-part:hover .bk-play { background: #E8D9B5; color: #1A160C; border-color: #E8D9B5; }
.bk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.bk-foot p { margin: 0; }
@media (max-width: 760px) {
  .bk-hero { padding: 28px 0 36px; }
  .bk-hero-in { gap: 24px; }
  .bk-hero-cover { width: 140px; height: 140px; }
  .bk-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .bk-book { gap: 18px; padding: 28px 0; }
  .bk-book-side { flex-basis: 120px; }
  .bk-book-main { flex-basis: 100%; }
  .bk-book-main h2 { font-size: 24px; }
  .bk-part { gap: 10px; padding: 10px 6px; }
  .bk-play { display: none; }
}
