/* livinkerala.com — the LK Desk look: white cards, LIVINKERALA red, the yellow category pill. */
:root { --red: #E1232B; --red-dark: #B9161D; --yellow: #FFD23F; --bg: #F4F4F6; --card: #FFFFFF; --ink: #1D1D1F; --body: #2C2C30;
  --muted: #6E6E73; --line: #E3E3E8; --soft: #EDEDF1; --dark: #111113; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, "Anek Malayalam", "Noto Sans Malayalam", system-ui, sans-serif; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-dark); }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.ml, .lead-head, .row-head, .card-head, .story-head, .story-text, .lead-deck, .ticker-run { font-family: "Anek Malayalam", "Noto Sans Malayalam", Inter, sans-serif; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #FF4D55; display: inline-block; animation: pulse 1.6s ease-in-out infinite; }

/* top bar + header */
.topbar { background: var(--dark); color: #E4E4E8; font-size: 13px; }
.topbar-in { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.live-note { display: flex; align-items: center; gap: 8px; }
.top-links { display: flex; gap: 16px; }
.top-links a { color: #E4E4E8; } .top-links .app-link { color: var(--yellow); font-weight: 700; }
.head { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-in { display: flex; align-items: center; gap: 12px 26px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { flex: none; }
.brand img { height: 52px; width: auto; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
.nav a { height: 44px; padding: 0 14px; border-radius: 22px; font-weight: 700; font-size: 15px; display: flex; align-items: center; }
.nav a.on { background: var(--red); color: #fff; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--bg); align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 22px; background: var(--bg); min-width: 220px; color: var(--muted); }
.search input { border: none; background: transparent; outline: none; font: inherit; font-size: 15px; width: 100%; color: var(--ink); }
.search.big { max-width: 640px; height: 54px; padding: 0 6px 0 18px; margin: 0 0 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 27px; }
.search.big .btn { height: 42px; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--red); }

/* breaking */
.ticker { background: var(--red); color: #fff; overflow: hidden; }
.ticker-in { display: flex; align-items: center; gap: 16px; height: 46px; }
.tag { flex: none; background: #fff; color: var(--red-dark); font-weight: 800; font-size: 12px; letter-spacing: .08em; padding: 5px 10px; border-radius: 4px; }
.ticker-win { overflow: hidden; flex: 1; white-space: nowrap; }
.ticker-run { display: inline-flex; gap: 48px; font-weight: 600; font-size: 16px; animation: tick 45s linear infinite; }
.ticker-run a { color: #fff; } .ticker-run a:hover { text-decoration: underline; }
.ticker-win:hover .ticker-run { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-run { animation: none; } .dot { animation: none; } }

/* main */
.main { padding-top: 28px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 44px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--muted); }
.meta b { color: var(--red-dark); }
.pill { background: var(--yellow); color: var(--red-dark); font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.poster { width: 100%; height: 100%; object-fit: cover; background: #2a2b31; }
.hero { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.lead { flex: 999 1 560px; min-width: 0; background: var(--card); border-radius: 22px; overflow: hidden; display: flex; flex-wrap: wrap; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.lead-img { flex: 1 1 340px; max-width: 480px; aspect-ratio: 4 / 5; align-self: flex-start; }
.lead-img .poster { object-fit: contain; }  /* the whole poster, never cut at the sides */
.lead-body { flex: 1 1 300px; padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.lead-head { font-weight: 800; font-size: clamp(26px, 3vw, 40px); line-height: 1.22; color: var(--ink); }
.lead-deck { font-size: 17px; line-height: 1.6; color: #4A4A50; }
.more { font-weight: 700; color: var(--red-dark); font-size: 15px; }
.latest { flex: 1 1 320px; min-width: 0; background: var(--card); border-radius: 22px; padding: 20px 20px 14px; display: flex; flex-direction: column; }
.latest-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.latest-top h2 { margin: 0; font-size: 18px; font-weight: 800; }
.live-tag { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--red-dark); }
.live-tag .dot { background: var(--red); width: 7px; height: 7px; }
.row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--soft); align-items: flex-start; }
.row.fresh { animation: fresh 2.4s ease; }
@keyframes fresh { from { background: #FFF6D6; } to { background: transparent; } }
.row-img { width: 64px; height: 80px; flex: none; border-radius: 8px; overflow: hidden; }
.row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-head { font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.all { margin-top: 8px; font-weight: 700; color: var(--red-dark); font-size: 14px; }
.new-pill { position: fixed; top: 92px; left: 50%; transform: translateX(-50%); z-index: 30; border: none; background: var(--red); color: #fff; font: inherit;
  font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.25); cursor: pointer; }

.sec { display: flex; flex-direction: column; gap: 16px; }
.sec-top { display: flex; align-items: center; gap: 14px; }
.sec-top h1, .sec-top h2 { margin: 0; font-size: 24px; font-weight: 800; }
.sec-top .bar { width: 6px; height: 26px; border-radius: 3px; background: var(--red); flex: none; }
.sec-top .line { flex: 1; height: 1px; background: var(--line); }
.sec-top a { font-weight: 700; font-size: 14px; color: var(--red-dark); white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 6px rgba(0,0,0,.05); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.10); }
.card-img { aspect-ratio: 4 / 5; display: block; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.card-head { font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.load-more { align-self: center; height: 50px; padding: 0 26px; border-radius: 25px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; display: flex; align-items: center; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 15px; }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 22px; border-radius: 14px; background: var(--red); color: #fff; font: inherit; font-weight: 700; border: none; cursor: pointer; }
.btn:hover { color: #fff; background: var(--red-dark); }

.app-band { background: var(--dark); color: #fff; border-radius: 26px; padding: 36px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.app-txt { flex: 999 1 420px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.app-txt h2 { margin: 0; font-size: 30px; font-weight: 800; }
.app-txt p { margin: 0 0 6px; font-size: 17px; line-height: 1.6; color: #C9CAD1; }
.app-phone { flex: 1 1 180px; display: flex; justify-content: center; }
.app-phone span { width: 170px; height: 310px; border-radius: 30px; background: var(--bg); border: 6px solid #2E2E33; display: block;
  background-image: linear-gradient(var(--red), var(--red)), linear-gradient(#2a2b31, #2a2b31); background-size: 70px 10px, 130px 170px; background-position: 18px 20px, center 46px; background-repeat: no-repeat; }

.slider { position: relative; }
.sl-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 8px; }
.sl-track::-webkit-scrollbar { display: none; }
.sl-track .card { flex: 0 0 calc((100% - 4 * 18px) / 5); scroll-snap-align: start; }
.sl-track .card:hover { transform: none; }
.sl-btn { position: absolute; top: 38%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--card); color: var(--ink);
  font-size: 26px; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sl-btn:hover { color: var(--red-dark); }
.sl-prev { left: -14px; } .sl-next { right: -14px; }
.sl-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 1000px) { .sl-track .card { flex-basis: calc((100% - 2 * 18px) / 3); } }

/* story */
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; margin-bottom: -24px; }
.crumbs a { color: var(--muted); } .crumbs a:last-of-type { color: var(--red-dark); font-weight: 600; }
.story { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.story-side { flex: 1 1 380px; max-width: 520px; display: flex; flex-direction: column; gap: 10px; }
.story-img { aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; }
.story-img .poster { object-fit: contain; }
.share { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sh { height: 50px; border-radius: 14px; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; color: #fff; border: none; font-family: inherit; cursor: pointer; }
.sh:hover { color: #fff; filter: brightness(1.08); }
.sh.wa { background: #1f8f4e; } .sh.fb { background: #2f5fd0; }
.sh.sv, .sh.copy { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sh.sv:hover, .sh.copy:hover { color: var(--red-dark); }
.story-main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.story-head { margin: 0; font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.22; }
.story-text { font-size: 19px; line-height: 1.85; color: var(--body); max-width: 720px; }
.story-text p { margin: 0 0 14px; }
.tags { margin: 0; color: #2F5FD0; font-weight: 600; font-size: 15px; }
.byline { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--card); border-radius: 16px; max-width: 720px; font-size: 14px; color: #4A4A50; }
.byline img { height: 36px; width: auto; flex: none; object-fit: contain; }
.byline a { color: var(--red-dark); font-weight: 700; }

/* info pages */
.info { background: var(--card); border-radius: 22px; padding: 32px; max-width: 820px; font-size: 17px; line-height: 1.7; }
.info h1 { margin: 0 0 14px; font-size: 30px; }
.info a { color: var(--red-dark); font-weight: 600; }
.info .btn { color: #fff; }
.info-logo { height: 64px; width: auto; margin-bottom: 12px; object-fit: contain; }
.info ul { padding-left: 20px; }

/* footer */
.foot { background: var(--card); border-top: 1px solid var(--line); margin-top: 20px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 28px 56px; padding-top: 36px; padding-bottom: 36px; }
.foot-in nav { flex: 1 1 160px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.foot-brand img { height: 87px; width: auto; max-width: 100%; align-self: flex-start; object-fit: contain; }
.foot-brand p { margin: 0; font-size: 14px; color: var(--muted); }
.copy { border-top: 1px solid var(--soft); text-align: center; font-size: 13px; color: var(--muted); padding: 16px; }

/* phones */
@media (max-width: 760px) {
  .wrap { padding: 0 14px; }
  .topbar .live-note, .topbar > .wrap > span:first-child { display: none; }
  .topbar-in { justify-content: center; }
  .head-in { gap: 10px; }
  .brand img { height: 40px; }
  .menu-btn { display: flex; }
  .nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; height: 38px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }
  .nav a.on { box-shadow: none; }
  .head.open .nav { flex-wrap: wrap; overflow: visible; }
  .search { order: 4; flex-basis: 100%; min-width: 0; height: 42px; }
  .head:not(.open) .search { display: none; }
  .ticker-in { height: 40px; } .ticker-run { font-size: 14px; }
  .main { padding-top: 16px; gap: 30px; }
  .lead-img { max-width: none; flex-basis: 100%; }
  .lead-body { padding: 16px 16px 18px; }
  .latest { padding: 14px 14px 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 9px 10px 11px; }
  .card-head { font-size: 14px; }
  .sl-track { gap: 12px; }
  .sl-track .card { flex-basis: 44%; }
  .sl-btn { display: none; }
  .sec-top h1, .sec-top h2 { font-size: 20px; }
  .app-band { padding: 22px; } .app-txt h2 { font-size: 22px; } .app-phone { display: none; }
  .story-side { max-width: none; }
  .story-text { font-size: 18px; }
  .info { padding: 20px; }
  .new-pill { top: 120px; }
  .crumbs { margin-bottom: -14px; }
}
