:root {
  --bg: #f4f5f9;
  --surface: #fff;
  --fg: #14141c;
  --muted: #6b6b7e;
  --line: #e4e5ee;
  --accent: #ff2d6f;
  --amber: #ff9f1c;
  --on: #fff;
  --media: #111114;
  --header: rgb(244 245 249 / 0.9);
  --sans: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", "Kalpurush", sans-serif;
  --display: "Anek Bangla", "Hind Siliguri", "Noto Sans Bengali", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c12;
    --surface: #16161f;
    --fg: #f2f2f7;
    --muted: #9696aa;
    --line: #262633;
    --header: rgb(12 12 18 / 0.9);
  }
}
* { box-sizing: border-box; }
html { font-family: var(--sans); background: var(--bg); color: var(--fg); }
body { margin: 0; min-height: 100dvh; }
button, a { cursor: pointer; }
img { max-width: 100%; }
.dc-wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.dc-top { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.dc-top-row { display: flex; align-items: center; gap: 0.8rem; height: 4rem; }
.dc-brand { display: flex; align-items: center; gap: 0.55rem; min-width: 0; color: inherit; text-decoration: none; font-family: var(--display); }
.dc-brand b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-mark { width: 2.4rem; height: 2.4rem; border-radius: 0.8rem; display: grid; place-items: center; object-fit: cover; background: linear-gradient(120deg, var(--accent), var(--amber)); color: white; flex: none; }
.dc-mark svg { width: 0.8rem; height: 0.95rem; fill: currentColor; margin-left: 0.1rem; }
.dc-search { flex: 1; min-width: 0; }
.dc-search input, .dc-field, .dc-area {
  width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  border-radius: 999px; height: 2.6rem; padding: 0 1rem; font: inherit;
}
.dc-area { border-radius: 0.9rem; height: auto; min-height: 6rem; padding: 0.7rem 0.9rem; resize: vertical; }
.dc-menu { display: flex; gap: 0.4rem; overflow: auto; padding: 0.9rem 0 0.2rem; }
.dc-menu a, .dc-chip {
  flex: none; text-decoration: none; color: inherit; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.86rem; font-weight: 650;
}
.dc-menu a.is-on, .dc-chip.is-on { background: var(--accent); color: var(--on); border-color: transparent; }
.dc-sec { margin-top: 1.4rem; }
.dc-sec h2 { font-family: var(--display); font-size: 1.45rem; margin: 0 0 0.7rem; }
.dc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
@media (min-width: 700px) { .dc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .dc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dc-card { color: inherit; text-decoration: none; min-width: 0; display: block; }
.dc-card h3 { margin: 0.45rem 0 0; font-size: 0.92rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-card p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.75rem; }
.dc-thumb { position: relative; aspect-ratio: 3/4; border-radius: 1rem; overflow: hidden; background: var(--media); }
.dc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-fallback { height: 100%; display: flex; align-items: flex-end; padding: 0.8rem; color: white; font-weight: 700;
  background: radial-gradient(circle at 18% 12%, #ffb347, transparent 36%), linear-gradient(165deg, #ff2d6f, #3a1424 72%); }
.dc-play { position: absolute; left: 50%; top: 50%; width: 2.7rem; height: 2.7rem; margin: -1.35rem; display: grid; place-items: center; border-radius: 999px; color: white; background: rgb(255 255 255 / 22%); border: 1px solid rgb(255 255 255 / 40%); }
.dc-play svg { width: 0.75rem; height: 0.9rem; fill: currentColor; margin-left: 0.1rem; }
.dc-cat { position: absolute; left: 0.45rem; top: 0.45rem; background: rgb(0 0 0 / 62%); color: white; border-radius: 999px; font-size: 0.68rem; padding: 0.12rem 0.45rem; }
.dc-more { margin: 1rem 0 2rem; height: 2.7rem; border: 0; border-radius: 999px; padding: 0 1.1rem; background: var(--surface); color: var(--fg); font: inherit; font-weight: 700; border: 1px solid var(--line); }
.dc-watch { margin-top: 1rem; }
.dc-player { position: relative; overflow: hidden; border-radius: 1.15rem; background: #111; aspect-ratio: 16/9; width: 100%; touch-action: manipulation; }
.dc-player.short { width: min(100%, 26rem); margin-inline: auto; aspect-ratio: 9/16; max-height: 78dvh; }
.dc-player video { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #111; pointer-events: none; }
.dc-end img, .dc-end a, .dc-end button { pointer-events: auto; }
.dc-stage-play {
  position: absolute; z-index: 8; left: 50%; top: 50%; width: 4.6rem; height: 4.6rem;
  transform: translate3d(-50%, -50%, 0); border-radius: 999px; border: 1px solid rgb(255 255 255 / 55%);
  background: rgb(0 0 0 / 45%); color: white; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgb(0 0 0 / 35%);
}
.dc-stage-play svg { width: 1.15rem; height: 1.3rem; fill: white; margin-left: 0.14rem; }
.dc-stage-play.is-hidden { opacity: 0; pointer-events: none; }
.dc-flash {
  position: absolute; z-index: 7; top: 42%; padding: 0.35rem 0.7rem; border-radius: 999px;
  background: rgb(0 0 0 / 55%); color: white; font-weight: 700; font-size: 0.85rem; pointer-events: none;
}
.dc-flash.left { left: 12%; }
.dc-flash.right { right: 12%; }
.dc-bar {
  position: absolute; z-index: 8; left: 0.45rem; right: 0.45rem; bottom: 0.45rem;
  display: flex; gap: 0.25rem; align-items: center; padding: 0.3rem 0.4rem;
  border-radius: 0.85rem; background: rgb(0 0 0 / 68%); color: white;
}
.dc-ico { width: auto; min-width: 2rem; height: 2rem; padding: 0 0.35rem; border: 0; border-radius: 999px; background: transparent; color: white; font: inherit; font-size: 0.72rem; font-weight: 700; flex: none; }
.dc-time { font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dc-scrub { flex: 1; min-width: 0; display: flex; align-items: center; }
.dc-scrub input { width: 100%; height: 1.7rem; margin: 0; accent-color: var(--accent); }
.dc-dl { margin: 0.85rem auto 0; display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: min(100%, 16rem); height: 2.8rem; padding: 0 1.1rem; border-radius: 999px; background: var(--accent); color: white; text-decoration: none; font-weight: 700; }
.dc-end { position: absolute; z-index: 6; left: 0; right: 0; bottom: 3.2rem; top: auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.45rem; padding: 0.7rem; background: linear-gradient(to top, rgb(0 0 0 / 82%), rgb(0 0 0 / 0%)); color: white; }
.dc-end[hidden], .dc-flash[hidden] { display: none !important; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.dc-actions button { height: 2.6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; font-weight: 700; padding: 0 0.95rem; }
.dc-actions button.is-on { background: var(--accent); color: white; border-color: transparent; }
.dc-end-top { display: flex; justify-content: space-between; align-items: center; }
.dc-end-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.dc-player.short .dc-end-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dc-end a { color: inherit; text-decoration: none; min-width: 0; }
.dc-end img, .dc-end i { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0.45rem; background: rgb(255 255 255 / 12%); }
.dc-end b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.72rem; }
.dc-replay { height: 2rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / 40%); background: rgb(255 255 255 / 14%); color: white; }
.dc-banner { width: min(1120px, calc(100% - 2rem)); margin: 1rem auto 2rem; text-align: center; }
.dc-maintain { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.dc-admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100dvh; }
@media (max-width: 800px) { .dc-admin { grid-template-columns: 1fr; } .dc-side { display: flex; gap: 0.4rem; overflow: auto; } }
.dc-side { background: var(--surface); border-right: 1px solid var(--line); padding: 1rem; }
.dc-side a { display: block; text-decoration: none; color: inherit; padding: 0.55rem 0.7rem; border-radius: 0.7rem; font-weight: 650; }
.dc-side a.is-on { background: var(--accent); color: white; }
.dc-main { padding: 1.1rem; }
.dc-box { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; margin-bottom: 1rem; }
.dc-row { display: grid; gap: 0.7rem; }
.dc-btn { height: 2.7rem; border: 0; border-radius: 999px; background: var(--accent); color: white; font: inherit; font-weight: 700; padding: 0 1rem; }
.dc-btn.alt { background: transparent; color: inherit; border: 1px solid var(--line); }
.dc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dc-table td, .dc-table th { text-align: left; padding: 0.55rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.dc-note { color: var(--muted); font-size: 0.86rem; }
.dc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 0.8rem 0; }
.dc-stat { background: var(--bg); border-radius: 0.85rem; padding: 0.8rem; }
.dc-stat b { display: block; font-family: var(--display); font-size: 1.45rem; }
@media (max-width: 720px) { .dc-stats { grid-template-columns: 1fr; } }
.dc-error { background: #ffd7e2; color: #6d1030; padding: 0.7rem 0.9rem; border-radius: 0.8rem; }
.dc-ok { background: #d9f5e5; color: #0d5a32; padding: 0.7rem 0.9rem; border-radius: 0.8rem; }
.dc-login { min-height: 100dvh; display: grid; place-items: center; padding: 1rem; }
.dc-login form { width: min(400px, 100%); }
.dc-progress { height: 0.45rem; background: var(--line); border-radius: 999px; overflow: hidden; }
.dc-progress span { display: block; height: 100%; background: var(--accent); width: 0; }
@media (max-width: 720px) {
  .dc-wrap { width: min(1120px, calc(100% - 1rem)); }
  .dc-top-row { height: auto; flex-wrap: wrap; padding: 0.55rem 0 0.7rem; gap: 0.55rem; }
  .dc-brand { max-width: 100%; }
  .dc-search { flex: 1 1 100%; }
  .dc-grid { gap: 0.65rem; }
  .dc-card h3 { font-size: 0.82rem; }
  .dc-player { border-radius: 0.85rem; }
  .dc-stage-play { width: 3.8rem; height: 3.8rem; }
  .dc-bar { left: 0.3rem; right: 0.3rem; bottom: 0.3rem; }
  .dc-time { font-size: 0.64rem; }
  .dc-ico { min-width: 1.7rem; padding: 0 0.2rem; font-size: 0.68rem; }
  .dc-dl { width: 100%; }
  .dc-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .dc-actions button { width: 100%; }
  .dc-end-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-watch h1 { font-size: 1.25rem; overflow-wrap: anywhere; }
  .dc-side a { padding: 0.45rem 0.65rem; }
}

