:root {
  --ink: #111111;
  --muted: #6b6f76;
  --line: #dddddd;
  --paper: #f2f3f5;
  --brand: #cf1728;
  --brand-dark: #8c101b;
  --green: #0b7a69;
  --soft: #f8f8f8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans Bengali", "SolaimanLipi", "Vrinda", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #e4e4e4;
}

.utility-bar {
  color: #4d4d4d;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.utility-inner,
.masthead,
.nav,
.breaking,
.container,
.footer-inner {
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.utility-inner div {
  display: flex;
  gap: 14px;
  font-weight: 700;
}

.masthead {
  display: grid;
  grid-template-columns: 44px 1fr minmax(260px, 360px);
  align-items: center;
  gap: 18px;
  padding: 20px 0 16px;
  background: var(--white);
}

.menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 22px;
  cursor: pointer;
}

.brand {
  justify-self: center;
  text-align: center;
}

.brand span {
  display: block;
  color: var(--brand);
  font-family: Georgia, "Noto Serif Bengali", serif;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0;
}

.search {
  display: flex;
  border: 1px solid var(--line);
  background: var(--white);
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 11px 12px;
  font-size: 15px;
}

.search button,
.admin-form button,
.login-card button,
.button {
  border: 0;
  padding: 11px 15px;
  color: var(--white);
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.search button:hover,
.admin-form button:hover,
.login-card button:hover,
.button:hover {
  background: var(--brand-dark);
}

.ad-strip {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto 12px;
  padding: 17px;
  color: #7a7a7a;
  background: #e6e6e6;
  border: 1px solid #d3d3d3;
  text-align: center;
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  background: var(--white);
  border-top: 2px solid var(--brand);
  border-bottom: 1px solid var(--line);
}

.nav a {
  flex: 0 0 auto;
  padding: 13px 14px;
  color: #1d1d1d;
  background: var(--white);
  font-size: 15px;
  font-weight: 800;
}

.nav a:hover {
  color: var(--white);
  background: var(--brand);
}

.breaking {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.breaking strong {
  display: block;
  padding: 10px 14px;
  color: var(--white);
  background: var(--brand);
}

.breaking marquee {
  color: #202020;
  font-size: 15px;
}

.container {
  margin-top: 14px;
  margin-bottom: 56px;
}

.front-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.lead-column,
.side-panel,
.compact-list,
.article,
.news-card,
.story-row article {
  background: var(--white);
  border: 1px solid var(--line);
}

.lead-story {
  border-bottom: 1px solid var(--line);
}

.lead-story a {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  padding: 14px;
}

.lead-story img {
  height: 366px;
}

.lead-story span,
.news-card span {
  display: inline-block;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.lead-story h1 {
  margin: 10px 0 12px;
  font-size: 34px;
  line-height: 1.18;
}

.lead-story p,
.news-card p {
  margin: 0;
  color: #555b63;
  line-height: 1.65;
}

.story-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.story-row article {
  border-width: 0 1px 0 0;
}

.story-row article:last-child {
  border-right: 0;
}

.story-row a {
  display: block;
  padding: 12px;
}

.story-row img {
  aspect-ratio: 16 / 10;
  margin-bottom: 9px;
}

.story-row h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tabs button {
  border: 0;
  border-bottom: 2px solid var(--brand);
  padding: 12px;
  color: var(--white);
  background: var(--brand);
  font: inherit;
  font-weight: 900;
}

.tabs button + button {
  color: var(--ink);
  background: #efefef;
  border-bottom-color: #c7c7c7;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li + li {
  border-top: 1px solid var(--line);
}

.rank-list a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 13px;
  align-items: start;
}

.rank-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--white);
  background: var(--brand);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.rank-list strong {
  line-height: 1.38;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 14px;
  border-bottom: 2px solid var(--brand);
}

.section-head h2 {
  margin: 0;
  padding: 10px 14px;
  color: var(--white);
  background: var(--brand);
  font-size: 22px;
}

.section-head a {
  color: var(--brand);
  font-weight: 800;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.news-card a {
  display: block;
  height: 100%;
}

.news-card img {
  aspect-ratio: 16 / 10;
}

.news-card div {
  padding: 12px;
}

.news-card h3 {
  margin: 7px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.news-card time {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.compact-list {
  align-self: start;
}

.compact-list h2 {
  margin: 0;
  padding: 12px 14px;
  color: var(--white);
  background: var(--green);
  font-size: 21px;
}

.compact-list a {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.compact-list img {
  aspect-ratio: 4 / 3;
}

.compact-list strong {
  display: block;
  line-height: 1.35;
}

.compact-list small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.video-band {
  margin-top: 28px;
  padding: 16px;
  color: var(--white);
  background: #181818;
}

.section-head.invert {
  margin-top: 0;
  border-bottom-color: #494949;
}

.section-head.invert h2 {
  background: var(--brand);
}

.section-head.invert a {
  color: #ffffff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.video-thumb {
  position: relative;
}

.video-thumb img {
  aspect-ratio: 16 / 10;
}

.video-thumb span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--brand);
  background: var(--white);
  border-radius: 50%;
  font-size: 15px;
}

.video-grid h3 {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.article {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px;
}

.crumb {
  color: var(--muted);
  font-size: 14px;
}

.article h1 {
  margin: 10px 0;
  font-size: 42px;
  line-height: 1.16;
}

.article-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}

.article-meta span {
  color: var(--brand);
  font-weight: 900;
}

.article img {
  max-height: 520px;
}

.article-body {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.8;
}

.footer {
  padding: 32px 0;
  color: var(--white);
  background: #202020;
}

.footer-inner strong {
  display: block;
  color: var(--white);
  font-size: 28px;
}

.footer-inner p {
  margin-bottom: 0;
  color: #d4d4d4;
}

.empty {
  grid-column: 1 / -1;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.admin-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-card,
.admin-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
}

.login-card {
  max-width: 420px;
}

.login-card h1,
.admin-head h1 {
  margin-top: 0;
}

.login-card label,
.admin-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

.login-card input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px;
  font: inherit;
}

.error {
  padding: 12px;
  color: #8a1620;
  background: #ffe9eb;
  border: 1px solid #ffccd2;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.button {
  display: inline-block;
}

.button.ghost {
  color: var(--ink);
  background: #eef0f2;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #eef0f2;
}

.danger {
  color: var(--brand);
  margin-left: 10px;
  font-weight: 700;
}

.narrow {
  max-width: 760px;
}

.check {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.check input {
  width: auto;
}

@media (max-width: 980px) {
  .masthead {
    grid-template-columns: 44px 1fr;
  }

  .search {
    grid-column: 1 / -1;
  }

  .front-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .utility-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
  }

  .masthead {
    gap: 10px;
    padding-top: 14px;
  }

  .brand span {
    font-size: 32px;
  }

  .lead-story a,
  .story-row,
  .news-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .lead-story img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .lead-story h1,
  .article h1 {
    font-size: 28px;
  }

  .compact-list a {
    grid-template-columns: 86px 1fr;
  }

  .admin-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}
