:root {
  --bg-primary: #121316;
  --bg-secondary: #1a1c22;
  --bg-card: #20222a;
  --border-color: #323644;
  --border-accent: #ff4757;
  --border-subtle: #2d303b;
  --text-main: #f1f2f6;
  --text-muted: #a4b0be;
  --accent-primary: #ff4757;
  --accent-hover: #ff6b81;
  --accent-alt: #2ed573;
  --halftone-dot: rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(var(--halftone-dot) 15%, transparent 16%),
    radial-gradient(var(--halftone-dot) 15%, transparent 16%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.manga-header {
  border-bottom: 3px solid var(--border-color);
  background: var(--bg-secondary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-badge {
  background: var(--accent-primary);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: skew(-10deg);
  border: 2px solid #000;
  box-shadow: 3px 3px 0px #000;
}

.title-group h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
}

.title-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.main-content {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 2rem;
  flex: 1;
  width: 100%;
}

.grid-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.manga-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 1.75rem;
  position: relative;
  box-shadow: 6px 6px 0px #0a0a0c;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}

.manga-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px #0a0a0c;
  border-color: var(--accent-primary);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px dashed var(--border-subtle);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.status-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.4);
}

.status-success {
  background: #2ed573;
  color: #0b2e17;
}

.status-info {
  background: #70a1ff;
  color: #0b1c38;
}

.card-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.card-footer-info {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.manga-btn {
  background: #2f3542;
  color: #fff;
  border: 2px solid #000;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 3px 3px 0px #000;
  transition: all 0.1s ease;
  display: inline-block;
}

.manga-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000;
}

.footer {
  border-top: 2px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
