:root {
  --bg: #f5f7fa;
  --bg-elevated: #ffffff;
  --bg-elevated-soft: #f8f9fa;
  --accent: #2c3e50;
  --accent-soft: rgba(44, 62, 80, 0.08);
  --accent-strong: #1a252f;
  --text: #333333;
  --text-soft: #666666;
  --border-subtle: #dcdcdc;
  --chip-bg: #e9ecef;
  --danger: #dc3545;
  --radius-lg: 4px;
  --radius-md: 2px;
  --radius-pill: 4px; /* Reduced radius for a more technical look */
  --shadow-soft: none;
  --shadow-subtle: none;
}
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
    color: var(--text);
  }
  
  body {
    min-height: 100vh;
  }
  
  .page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
/* Header */
.header {
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--accent);
  box-shadow: none;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}
  
  .header-left {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .logo-img {
    height: 40px;
    width: auto;
    display: block;
  }
  
  .logo-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 18px;
    color: var(--accent-strong);
    text-transform: uppercase;
  }
  
  .nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    margin-left: 20px;
  }
  
  .nav a {
    color: var(--text);
    text-decoration: underline;
    padding: 6px 12px;
  border-radius: 2px;
    font-weight: 500;
    transition: background 0.2s ease;
  }
  
  .nav a:hover {
    color: var(--accent-strong);
    background: var(--bg-elevated-soft);
    transform: none;
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Buttons */
  .btn {
  border-radius: 2px;
    padding: 8px 20px;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: none; /* Removed transition for flat feel */
    white-space: nowrap;
    font-weight: 500;
  }
  
  .btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: none;
    border: 1px solid var(--accent-strong);
  }
  
  .btn-primary:hover {
    background: var(--accent-strong);
    transform: none;
    box-shadow: none;
  }
  
  .btn-ghost {
    background: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border-subtle);
  }
  
  .btn-ghost:hover {
    color: var(--text);
    border-color: var(--text);
    background: var(--bg-elevated-soft);
  }
  
  .btn-outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text);
  }
  
  .btn-outline:hover {
    color: var(--text);
    border-color: var(--text);
    background: var(--bg-elevated-soft);
  }
  
  .btn-small {
    padding-inline: 12px;
    font-size: 12px;
  }
  
  /* Main */
  .main {}
  
  /* Hero */
  .hero {
    display: flex;
    flex-direction: column; /* Stack title and content */
    gap: 20px;
    padding: 30px;
    border-radius: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    box-shadow: none;
  }
  
  .hero-header {
    width: 100%;
    margin-bottom: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 20px;
  }

  .hero-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
  }

  .hero-text h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0;
    font-weight: 700;
    color: var(--accent-strong);
  }

  .hero-text p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-body {
    display: flex;
    gap: 30px;
    align-items: stretch;
    width: 100%;
  }

  .hero-content {
    flex: 1.2;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
  }

  .hero-visual {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
  }
  
  /* NS 头号玩家 顶部 KPI & 快捷入口 */
  .hero-kpis {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    width: 100%; /* Ensure full width */
  }

  .kpi-item {
    flex: 1; /* Distribute evenly */
    min-width: 0; /* Allow shrinking below content size if needed */
    padding: 10px 12px;
    border-radius: 4px;
    background: #f3f4f6;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .kpi-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .kpi-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-strong);
  }

  .kpi-ok {
    color: #16a34a;
  }

  .hero-urls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto; /* Push to bottom if there is space */
  }

  .hero-url-card {
    background: #f9fafb;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    padding: 14px 16px;
  }

  .hero-url-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
  }

  .hero-url-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-strong);
  }

  .hero-url-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
  }

  .hero-url-status-ok {
    border-color: #16a34a;
    color: #15803d;
    background: #dcfce7;
  }

  .hero-url-status-backup {
    border-color: #f97316;
    color: #c2410c;
    background: #ffedd5;
  }

  .hero-url-desc {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-soft);
  }

  .hero-url-link-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
  }

  .hero-url-link {
    color: #2563eb;
    text-decoration: underline;
    word-break: break-all;
    font-weight: 500;
  }

  .hero-url-link:hover {
    text-decoration: none;
  }
  
  .hero-url-tips {
    font-size: 12px;
    color: var(--text-soft);
    padding: 10px 12px;
    border-radius: 4px;
    background: #fefce8;
    border: 1px dashed #eab308;
    line-height: 1.4;
  }
  
  .hero-btn {
    height: 46px;
    border-radius: 0;
    border: none;
    padding: 0 25px;
    background: var(--accent);
    font-size: 15px;
  }
  
  .search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    border-radius: 0;
  background: #ffffff;
  border: none;
  box-shadow: none;
  height: 46px;
  }
  
  .search-icon {
    font-size: 18px;
    color: var(--text-soft);
  }
  
  .search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    height: 100%;
  }
  
  .search-box input::placeholder {
  color: #999;
  }
  
  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
  }

  .tag-label {
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 500;
  }
  
  .tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 2px;
  background: #f1f3f5;
  border: 1px solid #dee2e6;
  color: #495057;
  font-weight: 500;
  text-decoration: underline;
  transition: all 0.2s ease;
  }

  .tag:hover {
    background: #e9ecef;
    color: var(--accent);
    border-color: var(--accent);
  }
  
  .hero-visual {
    display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

/* 右侧“系统运行概览”面板 */
.status-panel {
  width: 100%;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.status-header h2 {
  margin: 0;
  font-size: 16px;
  color: var(--accent-strong);
}

.status-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  color: #6b7280;
}

.panel-notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 291px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.panel-notice-list::-webkit-scrollbar {
  width: 4px;
}

.panel-notice-list::-webkit-scrollbar-track {
  background: transparent;
}

.panel-notice-list::-webkit-scrollbar-thumb {
  background-color: var(--border-subtle);
  border-radius: 4px;
}

.panel-notice-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-soft);
}

.panel-notice-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-subtle);
  margin-right: 6px;
}

.panel-notice-item:last-child {
  border-bottom: none;
}

.panel-notice-time {
  font-size: 12px;
  color: #6b7280;
}

.panel-notice-content {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.latest-panel {
  width: 100%;
  /* Removed max-width to allow filling the column */
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  padding: 15px;
  height: 100%; /* Fill height */
  display: flex;
  flex-direction: column;
}

.latest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.latest-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-strong);
}

.latest-more {
  font-size: 12px;
  color: var(--text-soft);
  text-decoration: none;
}

.latest-more:hover {
  color: var(--accent);
  text-decoration: underline;
}

.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0; /* Control gap manually or via border */
  flex: 1;
  justify-content: space-between; /* Distribute items */
}

.latest-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.latest-list li:last-child {
  border-bottom: none;
}

.latest-item-link {
  text-decoration: none;
  display: block;
}

.latest-item-link:hover .latest-title {
  color: var(--accent);
}

.latest-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.latest-meta {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.latest-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--bg-elevated-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
  font-size: 11px;
}
  
  /* Filters */
  .filters {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  padding: 20px;
  border-radius: 4px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
  }
  
  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .chip {
    padding: 6px 14px;
    border-radius: 2px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-elevated-soft);
  }
  
  .chip-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  }
  
  /* Sections */
  .section {
    margin-top: 20px;
  padding: 25px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  }

.section-catalog {
  margin-top: 25px;
}
  
  .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
  }
  
  .section-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--accent-strong);
  }
  
  .section-header p {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: var(--text-soft);
  }

/* 官方渠道区域 */
.section-channels .section-header {
  margin-bottom: 18px;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.channel-card {
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  padding: 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  position: relative;
}

.channel-card:hover .qr-popup {
  display: block;
}

.channel-qr {
  flex-shrink: 0;
}

.qr-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.qr-popup {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  z-index: 100;
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid var(--border-subtle);
}

.qr-popup img {
  width: 200px;
  height: 200px;
  display: block;
}

.qrcode-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  border: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-soft);
  background: #f9fafb;
  text-align: center;
}

.channel-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.channel-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-strong);
}

.channel-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.4;
}

/* 品牌介绍区域 */
.brand-intro {
  margin-top: 30px;
  padding: 24px;
  background: var(--bg-elevated-soft);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.brand-intro-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-intro-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 16px;
  background-color: var(--accent);
  border-radius: 2px;
}

.brand-intro-content {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.brand-intro-content p {
  margin: 0 0 12px 0;
  text-align: justify;
}

.brand-intro-content p:last-child {
  margin-bottom: 0;
}

.intro-timeline {
  margin: 10px 0 16px 0;
  padding-left: 20px;
  list-style-type: disc;
  color: var(--text-soft);
}

.intro-timeline li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.intro-timeline li:last-child {
  margin-bottom: 0;
}

.brand-intro-content strong {
  color: var(--accent-strong);
  font-weight: 600;
}

/* 网址发布区域 */
.urls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.url-card {
  background: #f9fafb;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
}

.url-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.url-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
}

.url-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.url-status-ok {
  border-color: #16a34a;
  color: #15803d;
  background: #dcfce7;
}

.url-status-backup {
  border-color: #f97316;
  color: #c2410c;
  background: #ffedd5;
}

.url-desc {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.url-link-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.url-prefix {
  color: #6b7280;
}

.url-link {
  color: #2563eb;
  text-decoration: underline;
  word-break: break-all;
}

.url-link:hover {
  text-decoration: underline;
}

.url-tips {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-soft);
  padding: 10px 12px;
  border-radius: 4px;
  background: #fefce8;
  border: 1px dashed #eab308;
}

/* 公告通知列表 */
.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-time {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.notice-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* 游戏需求提交表单 */
.request-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.form-field label {
  color: var(--text-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 8px 10px;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-family: inherit;
  background: #ffffff;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-footer {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-tip {
  font-size: 12px;
  color: var(--text-soft);
}
  
.update-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  table-layout: fixed;
}

.update-table th,
.update-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.update-table th:nth-child(2),
.update-table td:nth-child(2),
.update-table th:nth-child(3),
.update-table td:nth-child(3),
.update-table th:nth-child(4),
.update-table td:nth-child(4) {
  width: 104px;
  padding: 10px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.update-table th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--accent-strong);
}

.update-table tr:hover td {
  background: var(--bg-elevated-soft);
}

.update-table td {
  color: var(--text);
}

/* 移动端隐藏游戏大小、游戏版本列和游戏类型标签 */
@media (max-width: 768px) {
  .update-table th:nth-child(2),
  .update-table td:nth-child(2),
  .update-table th:nth-child(3),
  .update-table td:nth-child(3) {
    display: none;
  }
  
  .update-table th:nth-child(4),
  .update-table td:nth-child(4) {
    width: auto;
    text-align: right;
  }

  .alias-tag {
    display: none !important;
  }
}

.alias-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}

/* Dynamic Filter Styles */
.filter-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.filter-select-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  flex: 1;
}

.filter-select {
  padding: 8px 30px 8px 12px;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
  color: var(--text);
  font-size: 14px;
  min-width: 140px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s ease;
}

.filter-select:hover, .filter-select:focus {
  border-color: var(--accent);
  outline: none;
}

/* Book Grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  min-height: 200px;
}

.book-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-color: var(--accent);
}

.book-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f1f3f5;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(44, 62, 80, 0.9);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 500;
}

.book-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-meta {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.book-city {
  margin-top: auto;
  font-size: 12px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Popular Books Section specific styles */
.popular-books-section {
  margin-top: 30px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.popular-header {
  margin-bottom: 15px;
}

.popular-header h2 {
  font-size: 18px;
  color: var(--accent-strong);
  margin: 0;
}

.popular-books-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

/* Adjust book card for popular section if needed */
.popular-books-grid .book-card {
  min-width: 0; /* Allow shrinking */
}

.popular-books-grid .book-title {
  font-size: 13px; /* Slightly smaller title */
}

.popular-books-grid .book-info {
  padding: 10px;
}

/* States */
.loading-state, .empty-state, .error-state {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: var(--text-soft);
  background: #f8f9fa;
  border-radius: 2px;
  border: 1px dashed var(--border-subtle);
}

/* Responsive adjustments for filter */
@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-select {
    flex: 1;
    min-width: calc(50% - 8px);
  }
}

@media (max-width: 480px) {
  .filter-select {
    min-width: 100%;
  }
  
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .popular-books-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cols on mobile */
  }
}

  
  /* Empty state */
  .empty {
    grid-column: 1 / -1;
    padding: 30px;
    border-radius: 2px;
    background: #f8f9fa;
    border: 1px dashed var(--border-subtle);
    color: var(--text-soft);
    font-size: 14px;
    text-align: center;
  }
  
  /* Footer */
  .footer {
    border-top: 1px solid var(--border-subtle);
    background: #ffffff;
    width: 100%;
  }

  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-left p {
    margin: 0;
    font-size: 13px;
    color: var(--text-soft);
  }

  .footer-right {
    font-size: 13px;
    color: var(--text-soft);
  }
  
  /* Responsive */
  @media (max-width: 960px) {
    .hero-body {
      flex-direction: column;
      gap: 24px;
    }

    .hero-content,
    .hero-visual {
      flex: auto;
      width: 100%;
    }
  
    .channels-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .header-inner {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }
  
    .header-left {
      width: 100%;
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }
  
    .nav {
      margin-left: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .nav a {
      font-size: 13px;
      padding: 6px 10px;
      background: #f1f3f5;
      border-radius: 4px;
      text-decoration: none;
    }
  
    .hero {
      padding: 20px 15px;
    }

    .hero-header h1 {
      font-size: 22px;
    }
    
    .hero-kpis {
      display: none;
    }

    .channels-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .channel-card {
      flex-direction: row;
      align-items: center;
    }
  
    .form-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
      flex-direction: column;
      align-items: flex-start;
      padding: 20px;
    }
  }
  
  @media (max-width: 480px) {
    .page {
      padding: 10px;
    }

    .kpi-item {
      flex-basis: 100%; /* 1 per row */
    }

    .hero-url-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 5px;
    }
  }
