:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1e2430;
  --text: #f3f5f7;
  --muted: #a9b1bc;
  --line: #2b3240;
  --accent: #ff4d6d;
  --accent-2: #ff6b86;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.search-wrap {
  position: relative;
  width: min(100%, 420px);
}

.search-input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  font-size: 0.98rem;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  border-color: var(--accent);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-results.is-open {
  display: block;
}

.search-item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.search-item:last-child {
  border-bottom: 0;
}

.search-item:hover {
  background: var(--panel-2);
}

.search-item-title {
  display: block;
  font-weight: 700;
  color: #fff;
}

.search-item-url {
  display: block;
  margin-top: 3px;
  font-size: 0.86rem;
  color: var(--muted);
}

.search-empty {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: 26px 0 28px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
}

/* Main */
main.container {
  padding: 28px 0 40px;
}

.entries-section h2,
.detail-box h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.entry-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 77, 109, 0.4);
}

.entry-card-image {
  aspect-ratio: 16 / 9;
  background: #0b0d12;
}

.entry-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-card-body {
  padding: 14px;
}

.entry-card-type {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-2);
}

.entry-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.entry-card-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.entry-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.entry-card-date {
  font-size: 0.84rem;
  color: var(--muted);
}

.entry-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.entry-card-link:hover {
  background: var(--accent-2);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  color: #fff;
}

/* Detail */
.detail-page {
  display: grid;
  gap: 18px;
}

.detail-hero,
.detail-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  padding: 18px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.entry-type {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-content h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1.15;
}

.entry-date {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.entry-description {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.detail-box {
  padding: 18px;
}

.detail-box p {
  margin: 0;
  color: var(--muted);
}

/* Platforms */
.platforms-list,
.related-list {
  display: grid;
  gap: 12px;
}

.platform-link,
.related-link {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.platform-link:hover,
.related-link:hover {
  border-color: rgba(255, 77, 109, 0.4);
}

.platform-name,
.related-title {
  display: block;
  font-weight: 700;
  color: #fff;
}

.platform-url,
.related-url {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

.site-footer .container {
  padding: 20px 0 30px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 980px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    width: 100%;
  }

  .hero {
    padding-top: 16px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    max-width: 280px;
  }
}