* {
  box-sizing: border-box;
}

:root {
  --bg: #07111f;
  --bg2: #0d1b2a;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --line: rgba(255,255,255,0.1);
  --text: #eef6ff;
  --muted: #9fb4ca;
  --primary: #00d2ff;
  --secondary: #7c4dff;
  --danger: #ff4d6d;
  --success: #00c27a;
  --shadow: 0 20px 50px rgba(0,0,0,.35);
  --radius: 18px;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: black;
  color: var(--text);
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(4, 12, 22, .75);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a,
.ghost-btn,
button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: .2s ease;
}

.nav a:hover,
.ghost-btn:hover,
button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}

.page-section {
  padding: 30px 0 60px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 26px;
  border-radius: 24px;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 48px);
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.search-box {
  min-width: 320px;
}

.search-box input,
input,
textarea,
select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.manga-card,
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.manga-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.manga-card-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.manga-card h3 {
  margin: 7px 7px 12px 10px;
  font-size: 14px;
  display: flex;
  flex-direction: row-reverse;
}

.meta-line {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-end;
}

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

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  font-size: 12px;
  color: #d8eaff;
}

.badge:hover{
background: #333;

}

.manga-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.cover-box img {
  border-radius: 18px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.info-box {
  padding: 20px;
}

.info-box h1 {
  margin-top: 0;
  font-size: 38px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.info-item {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}


.comment-item {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.chapter-actions,
.comment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 12, 22, .75);
}

.footer-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}


.reply-box {
  margin-top: 10px;
  margin-right: 24px;
  border-right: 2px solid rgba(255,255,255,.12);
  padding-right: 12px;
}

.rating-stars {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.star-btn {
  font-size: 22px;
  padding: 10px 14px;
}

.empty-state {
  color: var(--muted);
  font-family: 'Lalezar';
  text-align: center;
  padding: 30px;
}

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

  .search-box {
    min-width: auto;
  }
}
