/* "Nadanthathu Enna" series (nadanthathu app) and its front-page banner. Uses the portal's colour variables. */
.nd-kicker, .nd-cover-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Front-page / index banner */
.nd-banner { max-width: 1100px; margin: 0 auto 2rem; padding: 0 1.25rem; }
.nd-banner-grid { display: grid; gap: 1.5rem; align-items: center; padding: 1.5rem; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--accent); box-shadow: var(--shadow); }
.nd-banner-grid.has-poster { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
.nd-poster { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.nd-poster img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; background: var(--bg); }
.nd-kicker { color: var(--accent); }
.nd-banner h2 { margin: .5rem 0; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; letter-spacing: -.01em; }
.nd-topic { margin: 0 0 .8rem; color: var(--muted); }
.nd-when { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin: 0 0 1.1rem; padding: 0; }
.nd-when span { padding: .25rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .88rem; font-weight: 600; }
.nd-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 640px) { .nd-banner-grid.has-poster { grid-template-columns: 1fr; } .nd-poster { max-width: 300px; } }

/* Index */
.nd-cover { text-align: center; padding: 3rem 1.25rem; border-radius: 20px; margin-bottom: 2rem; color: #fff;
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2) 60%, var(--hero-3)); box-shadow: 0 20px 50px rgba(30, 58, 138, .2); }
.nd-cover-kicker { margin: 0 0 .6rem; color: rgba(255, 255, 255, .85); }
.nd-cover h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.nd-cover-tag { max-width: 36rem; margin: 1rem auto 1.5rem; opacity: .92; }
.nd-cover .btn { background: #fff; color: var(--hero-1); }
.nd-h { margin: 0 0 1rem; }
.nd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.nd-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.nd-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.nd-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.nd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-play, .nd-playbtn { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(220, 38, 38, .92); color: #fff; font-size: 1.2rem; padding-left: 4px; box-sizing: border-box; }
.nd-card-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem 1.3rem; }
.nd-meta { font-size: .8rem; color: var(--muted); }
.nd-meta b { color: var(--accent); letter-spacing: .04em; }
.nd-card-title { font-size: 1.15rem; line-height: 1.35; }
.nd-card-sum { font-size: .93rem; color: var(--muted); }
.nd-more { text-align: center; margin-top: 2rem; }

/* Episode page */
.nd-episode { max-width: 800px; margin: 0 auto; }
.nd-back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.nd-back:hover { color: var(--accent); }
.nd-head { margin: 1rem 0 1.5rem; }
.nd-head h1 { margin: .4rem 0 .8rem; font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.nd-lead { margin: 0 0 1rem; font-size: 1.1rem; color: var(--muted); }
.nd-jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.nd-jump a { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg);
  text-decoration: none; font-size: .9rem; font-weight: 500; }
.nd-jump a:hover { border-color: var(--accent); color: var(--accent); }
.nd-video { margin-bottom: 2.5rem; scroll-margin-top: 5rem; }
.nd-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.nd-frame iframe, .nd-facade, .nd-facade img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.nd-facade img { object-fit: cover; }
.nd-playbtn { width: 76px; height: 76px; font-size: 1.8rem; padding-left: 6px; transition: transform .15s; }
.nd-facade:hover .nd-playbtn { transform: scale(1.08); }
.nd-yt { margin: .6rem 0 0; font-size: .85rem; }

.nd-article { font-size: 1.07rem; line-height: 1.8; overflow-wrap: anywhere; scroll-margin-top: 5rem; }
.nd-article h2 { margin: 2.4rem 0 .7rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: 1.45rem; line-height: 1.3; scroll-margin-top: 5rem; }
.nd-article h3 { margin: 1.6rem 0 .5rem; color: var(--accent); }
.nd-article pre { overflow-x: auto; padding: 1rem 1.1rem; border-radius: 12px; background: #0f172a; color: #e2e8f0; font-size: .88rem; line-height: 1.6; }
.nd-article code { font-size: .92em; }
.nd-article :not(pre) > code { padding: .1rem .35rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.nd-article ol, .nd-article ul { padding-left: 1.4rem; }
.nd-article li { margin: .35rem 0; }

.nd-resources { margin: 3rem 0 2rem; padding: 1.4rem 1.5rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); scroll-margin-top: 5rem; }
.nd-resources h2 { margin: 0 0 .4rem; }
.nd-resources h3 { margin: 1.1rem 0 .4rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nd-resources ul { margin: 0; padding-left: 1.2rem; }
.nd-resources li { margin: .5rem 0; }
.nd-pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 2rem; }
.nd-pager a { display: grid; gap: .2rem; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--fg); text-decoration: none; }
.nd-pager a:hover { border-color: var(--accent); }
.nd-pager span { font-size: .8rem; color: var(--muted); }
