:root {
  --bg: #0a0a0a;
  --panel: #151515;
  --line: #333333;
  --text: #f0f0f0;
  --muted: #888888;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.8);
  --radius: 24px;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 250px;
  grid-template-rows: 110px 1fr;
}

.topbar {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 4px solid var(--line);
  background: var(--panel);
  padding: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.5vw, 2.2rem);
}

.main {
  padding: 28px;
}

.content-shell {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 26px;
  height: 100%;
}

.novel-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-card {
  min-height: 340px;
  background: var(--panel);
  border: 4px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
}

.cover {
  border-right: 3px solid var(--line);
  background:
    linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.1)),
    url('https://images.unsplash.com/photo-1512820790803-83ca734da794?auto=format&fit=crop&w=1200&q=80') center/cover;
  min-height: 100%;
}

.hero-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.hero-info h2 {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-info p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.meta-card:hover,
.chapter-card:hover,
.side-card:hover,
.action-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.lower-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.meta-card,
.chapter-card,
.side-card,
.action-box {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.meta-card {
  padding: 24px;
}

.meta-card h3,
.chapter-card h3,
.side-card h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.meta-list {
  display: grid;
  gap: 16px;
}

.meta-item {
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--line);
}

.meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meta-item span {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.meta-item strong {
  font-size: 1.05rem;
  line-height: 1.4;
}

.chapter-card {
  padding: 24px;
}

.chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.chapter-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

.chapters {
  display: grid;
  gap: 14px;
}

.chapter {
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.chapter strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.chapter span {
  color: var(--muted);
  font-size: 0.92rem;
}

.chapter a {
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--panel);
  white-space: nowrap;
}

.sidebar {
  border-left: 4px solid var(--line);
  padding: 28px 20px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.action-box {
  padding: 20px 14px;
  text-align: center;
  display: grid;
  gap: 12px;
}

.icon {
  font-size: 3rem;
  line-height: 1;
}

.action-box strong {
  display: block;
  font-size: 1.5rem;
}

.action-box span {
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.side-card {
  padding: 20px;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-item {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--bg);
}

.mini-item strong {
  display: block;
  margin-bottom: 4px;
}

.mini-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: 100px auto auto;
  }

  .topbar {
    grid-column: 1;
  }

  .sidebar {
    border-left: none;
    border-top: 4px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .cover {
    min-height: 280px;
    border-right: none;
    border-bottom: 3px solid var(--line);
  }

  .lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .novel-title {
    font-size: 2.2rem;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .chapter {
    flex-direction: column;
    align-items: flex-start;
  }

  .chapter a {
    width: 100%;
    text-align: center;
  }
}