:root {
  --bg: #0f1014;
  --surface: #171920;
  --surface-elevated: #1c1f28;
  --surface-hover: #222632;
  --border: #282d3a;
  --text: #ece7df;
  --text-muted: #9b978f;
  --accent: #e09f5a;
  --accent-soft: rgba(224, 159, 90, 0.14);
  --danger-bg: rgba(217, 83, 79, 0.16);
  --font-ui: "Noto Sans Bengali", system-ui, -apple-system, sans-serif;
  --font-story: "Noto Serif Bengali", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 16, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: max(0.65rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.65rem max(1rem, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.site-header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.brand {
  font-family: var(--font-story);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem max(1rem, env(safe-area-inset-right)) 1.5rem max(1rem, env(safe-area-inset-left));
  min-width: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem max(1rem, env(safe-area-inset-right)) max(1.1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.chip-rating-D {
  color: #f08a86;
  border-color: rgba(217, 83, 79, 0.4);
  background: var(--danger-bg);
}

.badge-18 {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #b92b27;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  letter-spacing: 0.03em;
}

.nav-btn {
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-elevated);
}

.nav-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
