:root {
  color-scheme: light;
  --mag-page: #f6f8fb;
  --mag-card: #ffffff;
  --mag-panel: #ffffff;
  --mag-tint: rgba(58, 86, 216, 0.06);
  --mag-line: rgba(28, 37, 64, 0.1);
  --mag-line-strong: rgba(28, 37, 64, 0.18);
  --mag-ink: #1c2540;
  --mag-body: #3d4a66;
  --mag-sub: #6b7893;
  --mag-muted: #97a1b6;
  --mag-accent: #3a56d8;
  --mag-accent-hover: #5a73e6;
  --mag-accent-deep: #2b41b0;
  --mag-chip: #eef2fa;
  --mag-chip-hover: #e2e9f7;
  --mag-accent-ink: #ffffff;
  --snow-ice: #0e9db8;
  --snow-ice-deep: #0b7c93;
  --mag-serif: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --mag-sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

body {
  font-family: var(--mag-sans);
  background: #f6f8fb;
  min-height: 100vh;
  color: var(--mag-body);
  overflow-x: hidden;
}

::selection {
  background: #3a56d8;
  color: #ffffff;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef1f7; }
::-webkit-scrollbar-thumb {
  background: #c3ccdd;
  border-radius: 999px;
  border: 2px solid #eef1f7;
}
::-webkit-scrollbar-thumb:hover { background: #aab6cf; }

.bg-dark-bg { background-color: rgb(246 248 251 / var(--tw-bg-opacity, 1)); }
.bg-card-bg {
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  box-shadow: inset 0 0 0 1px rgba(28, 37, 64, 0.08);
}

.bg-primary { background-color: rgb(58 86 216 / var(--tw-bg-opacity, 1)); }
.bg-primary-dark { background-color: rgb(43 65 176 / var(--tw-bg-opacity, 1)); }
.text-primary { color: rgb(58 86 216 / var(--tw-text-opacity, 1)); }
.focus\:ring-primary:focus { --tw-ring-color: rgb(58 86 216 / var(--tw-ring-opacity, 1)); }

.text-secondary { color: rgb(107 120 147 / var(--tw-text-opacity, 1)); }
.text-slate-600 { color: rgb(107 120 147 / var(--tw-text-opacity, 1)); }

.bg-gray-800 {
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  box-shadow: inset 0 0 0 1px rgba(28, 37, 64, 0.1);
}
.bg-slate-700 {
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  box-shadow: inset 0 0 0 1px rgba(28, 37, 64, 0.12);
}
.bg-slate-800 {
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
  box-shadow: inset 0 0 0 1px rgba(28, 37, 64, 0.1);
}

.bg-gray-600 { background-color: rgb(226 233 247 / var(--tw-bg-opacity, 1)); }
.bg-gray-700 { background-color: rgb(226 233 247 / var(--tw-bg-opacity, 1)); }
.bg-slate-600 { background-color: rgb(226 233 247 / var(--tw-bg-opacity, 1)); }

.bg-rose-600 { background-color: rgb(58 86 216 / var(--tw-bg-opacity, 1)); }
.bg-cyan-600 { background-color: rgb(58 86 216 / var(--tw-bg-opacity, 1)); }

.bg-blue-500 { background-color: rgb(58 86 216 / var(--tw-bg-opacity, 1)); }
.bg-blue-600 { background-color: rgb(43 65 176 / var(--tw-bg-opacity, 1)); }

.border-gray-700 { border-color: rgb(28 37 64 / 0.12); }
.border-slate-700 { border-color: rgb(28 37 64 / 0.12); }

.text-gray-200 { color: rgb(46 58 87 / var(--tw-text-opacity, 1)); }
.text-gray-300 { color: rgb(61 74 102 / var(--tw-text-opacity, 1)); }
.text-gray-400 { color: rgb(107 120 147 / var(--tw-text-opacity, 1)); }
.text-gray-500 { color: rgb(151 161 182 / var(--tw-text-opacity, 1)); }
.text-slate-400 { color: rgb(107 120 147 / var(--tw-text-opacity, 1)); }

h1.text-white:not(.truncate),
h2.text-white:not(.truncate),
h3.text-white:not(.truncate),
h4.text-white:not(.truncate) { color: rgb(28 37 64 / var(--tw-text-opacity, 1)); }

.bg-gray-800.text-white,
.bg-slate-800.text-white,
.bg-slate-700.text-white {
  background-color: var(--mag-chip);
  color: var(--mag-ink);
}

.bg-card-bg.text-white {
  color: rgb(28 37 64 / var(--tw-text-opacity, 1));
  box-shadow: inset 0 0 0 1px rgba(28, 37, 64, 0.14);
}

.bg-gray-600.text-white,
.bg-gray-700.text-white,
.bg-cyan-600.text-white {
  background-color: var(--mag-chip);
  color: var(--mag-ink);
}

.bg-primary.text-white,
.bg-rose-600.text-white {
  background-color: #3a56d8;
  color: #ffffff;
}

.hover\:bg-primary:hover { background-color: rgb(90 115 230 / var(--tw-bg-opacity, 1)); }
.hover\:bg-primary-dark:hover { background-color: rgb(58 86 216 / var(--tw-bg-opacity, 1)); }
.hover\:bg-rose-500:hover { background-color: rgb(90 115 230 / var(--tw-bg-opacity, 1)); }
.hover\:bg-red-600:hover { background-color: rgb(90 115 230 / var(--tw-bg-opacity, 1)); }
.hover\:bg-blue-600:hover { background-color: rgb(43 65 176 / var(--tw-bg-opacity, 1)); }
.hover\:bg-rose-700:hover { background-color: rgb(90 115 230 / var(--tw-bg-opacity, 1)); }
.hover\:bg-cyan-700:hover { background-color: rgb(90 115 230 / var(--tw-bg-opacity, 1)); }
.hover\:bg-gray-700:hover { background-color: rgb(214 224 244 / var(--tw-bg-opacity, 1)); }
.hover\:bg-slate-600:hover { background-color: rgb(214 224 244 / var(--tw-bg-opacity, 1)); }
.hover\:text-primary:hover { color: rgb(43 65 176 / var(--tw-text-opacity, 1)); }
.hover\:text-gray-200:hover { color: rgb(28 37 64 / var(--tw-text-opacity, 1)); }
.hover\:text-white:hover { color: rgb(255 255 255 / var(--tw-text-opacity, 1)); }

.from-slate-800 {
  --tw-gradient-from: rgba(246, 248, 251, 0.96) var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(246, 248, 251, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-slate-900 { --tw-gradient-to: rgba(246, 248, 251, 0.6) var(--tw-gradient-to-position); }


.navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 2px solid #3a56d8;
  box-shadow: 0 8px 24px -14px rgba(23, 32, 58, 0.22);
  padding: 0.2rem max(1rem, calc((100% - 1152px) / 2 + 1rem));
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (min-width: 768px) {
  .navbar { padding: 0.2rem max(1.5rem, calc((100% - 1152px) / 2 + 1.5rem)); }
}

.navbar::before,
.navbar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(28, 37, 64, 0.14);
}

.navbar::before { left: max(1rem, calc(50% - 576px)); }
.navbar::after { right: max(1rem, calc(50% - 576px)); }

@media (min-width: 768px) {
  .navbar::before { left: max(1.5rem, calc(50% - 576px)); }
  .navbar::after { right: max(1.5rem, calc(50% - 576px)); }
}

.navbar-brand { display: flex; align-items: center; }
.navbar-brand a { text-decoration: none; color: inherit; }

.navbar-title {
  font-family: var(--mag-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--mag-ink);
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .navbar-title { font-size: 1.25rem; }
}

.magazine-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0.625rem;
  border-radius: 9999px;
  background: rgba(14, 157, 184, 0.08);
  border: 1px solid rgba(14, 157, 184, 0.35);
  color: var(--snow-ice-deep);
  font-size: 1rem;
}

.navbar-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1152px;
  margin: 0.75rem auto 0;
  padding: 0;
  background: #eef2fa;
  border: 2px solid rgba(28, 37, 64, 0.35);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px -3px rgba(23, 32, 58, 0.15);
}

@media (min-width: 768px) {
  .navbar-nav { display: flex; align-items: stretch; }
}

.navbar-nav a {
  color: var(--mag-body);
  background-color: transparent;
  border: none;
  padding: 0.55rem 0.25rem;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

@media (max-width: 767.98px) {
  .navbar-nav a {
    border-left: 1px solid rgba(28, 37, 64, 0.25);
    border-top: 1px solid rgba(28, 37, 64, 0.25);
  }

  .navbar-nav a:nth-child(4n+1) { border-left: none; }
  .navbar-nav a:nth-child(-n+4) { border-top: none; }
}

@media (min-width: 768px) {
  .navbar-nav a { flex: 1 1 0; padding: 0.6rem 0.5rem; font-size: 0.875rem; }
  .navbar-nav a + a { border-left: 1px solid rgba(28, 37, 64, 0.25); }
}

.navbar-nav a:not(.active):hover {
  color: var(--mag-ink);
  background-color: #ffffff;
}

.navbar-nav a.active {
  color: #ffffff;
  background-color: #3a56d8;
  font-weight: 700;
}

.navbar-nav a.active:hover {
  background-color: #5a73e6;
}

.navbar-actions { display: flex; align-items: center; gap: 0.5rem; }

@media (min-width: 768px) {
  .navbar-actions { gap: 1rem; }
}

.navbar-search {
  display: none;
  align-items: center;
  color: var(--mag-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar-search:hover { color: var(--mag-accent-hover); }

@media (min-width: 768px) {
  .navbar-search { display: flex; }
}

.navbar-search i { margin-right: 0.25rem; }

.dropdown { position: relative; display: none; }

@media (min-width: 768px) {
  .dropdown { display: block; }
}

.dropdown-toggle {
  background-color: #ffffff;
  border: 1px solid rgba(28, 37, 64, 0.14);
  color: var(--mag-body);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.dropdown-toggle:hover { border-color: var(--mag-accent); color: var(--mag-accent-hover); }

.dropdown-toggle i:first-child { margin-right: 0.5rem; }
.dropdown-toggle i:last-child { margin-left: 0.25rem; font-size: 0.75rem; }

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 16rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(28, 37, 64, 0.12);
  border-radius: 0.75rem;
  box-shadow: 0 20px 44px -18px rgba(23, 32, 58, 0.3);
  z-index: 50;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header { padding: 0.5rem 1rem; border-bottom: 1px solid rgba(28, 37, 64, 0.1); }
.dropdown-header h3 { font-weight: 700; margin: 0; color: var(--mag-ink); }

.dropdown-content { max-height: 20rem; overflow-y: auto; }

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--mag-body);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover { background-color: var(--mag-chip); }

.dropdown-item-content { display: flex; }

.dropdown-item-thumb {
  width: 4rem;
  height: 2.5rem;
  background-color: var(--mag-chip);
  border-radius: 0.5rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.dropdown-item-info { flex: 1; min-width: 0; }

.dropdown-item-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mag-ink);
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.dropdown-item-progress { font-size: 0.75rem; color: var(--mag-sub); margin: 0; }

.dropdown-footer { padding: 0.5rem 1rem; border-top: 1px solid rgba(28, 37, 64, 0.1); }
.dropdown-footer a { color: var(--mag-accent); font-size: 0.875rem; text-decoration: none; }
.dropdown-footer a:hover { text-decoration: underline; }

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--mag-ink);
  padding: 0.5rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn i { font-size: 1.25rem; }

.mobile-nav {
  display: block;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(58, 86, 216, 0.35);
  box-shadow: 0 14px 32px -16px rgba(23, 32, 58, 0.25);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 40;
  max-height: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .mobile-nav { display: none; }
}

.mobile-nav.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  max-height: 500px;
}

.mobile-nav-content { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }

.mobile-nav-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }

.mobile-nav-links a {
  background-color: #ffffff;
  border: 1px solid rgba(28, 37, 64, 0.14);
  color: var(--mag-body);
  padding: 0.45rem 0.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(23, 32, 58, 0.06);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-links a:hover {
  background-color: var(--mag-chip);
  border-color: rgba(58, 86, 216, 0.55);
  color: var(--mag-accent);
}

.mobile-nav-links a.active {
  background-color: #3a56d8;
  border-color: #2b41b0;
  color: #ffffff;
  font-weight: 700;
}
.mobile-nav-links a.active:hover {
  background-color: #5a73e6;
}

.mobile-search { position: relative; }

.mobile-search input {
  width: 100%;
  background-color: #ffffff;
  color: var(--mag-ink);
  padding: 0.5rem 1rem;
  padding-right: 2.5rem;
  border-radius: 8px;
  border: 2px solid rgba(28, 37, 64, 0.35);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-search input:focus {
  border-color: var(--mag-accent);
  box-shadow: 0 0 0 3px rgba(58, 86, 216, 0.15);
}

.mobile-search button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--mag-sub);
  cursor: pointer;
}

.mobile-search button:hover { color: var(--snow-ice-deep); }

.mobile-history { color: var(--mag-ink); }

.mobile-history h3 {
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
}

.mobile-history h3 i { margin-right: 0.5rem; color: var(--snow-ice-deep); }

.mobile-history-list { display: flex; flex-direction: column; gap: 0.5rem; }

.mobile-history-item {
  display: block;
  padding: 0.5rem;
  background-color: #ffffff;
  border: 1px solid rgba(28, 37, 64, 0.12);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--mag-ink);
  transition: background-color 0.2s ease;
}

.mobile-history-item:hover { background-color: var(--mag-chip); }

.mobile-history-item-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.mobile-history-item-progress { font-size: 0.75rem; color: var(--mag-sub); margin: 0; }

.domain-banner {
  background: transparent;
  padding: 10px 20px;
  text-align: center;
  font-size: 16px;
  position: sticky;
  top: 56px;
  z-index: 49;
  display: block;
  text-decoration: none;
}

.domain-banner .domain-label { color: var(--mag-body); font-weight: 600; }

.domain-banner .domain-url {
  color: var(--snow-ice-deep);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.domain-banner .domain-btn {
  background: transparent;
  border: 1px solid rgba(58, 86, 216, 0.6);
  color: var(--mag-accent);
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.domain-banner .domain-btn:hover {
  background: #3a56d8;
  border-color: transparent;
  color: #ffffff;
}

.domain-banner:hover .domain-url { text-decoration: underline; }

.btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.mobile-text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.mobile-text-2xl { font-size: 1.5rem; line-height: 2rem; }

@media (max-width: 768px) {
  .mobile-padding { padding-left: 1rem; padding-right: 1rem; }
  .mobile-mb-4 { margin-bottom: 1rem; }
  .mobile-mb-6 { margin-bottom: 1.5rem; }
  .mobile-py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .mobile-gap-3 { gap: 0.75rem; }
}

.magazine-ink-text { color: var(--mag-ink); }
.magazine-serif { font-family: var(--mag-serif); }

.magazine-footer-title {
  font-family: var(--mag-serif);
  color: var(--mag-ink);
  letter-spacing: 0.02em;
}

.magazine-page-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(28, 37, 64, 0.1);
}

.hero-bg {
  background: #f0f4fc;
}

.magazine-section-title {
  font-family: var(--mag-serif);
  color: var(--mag-ink);
  font-weight: 700;
  border-top: 2px solid #3a56d8;
  padding-top: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.magazine-kicker {
  color: var(--snow-ice-deep);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.magazine-card {
  background: var(--mag-card);
  border: 1px solid rgba(28, 37, 64, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px -12px rgba(23, 32, 58, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.magazine-card:hover {
  transform: translateY(-3px);
  border-color: rgba(58, 86, 216, 0.45);
  box-shadow: 0 16px 32px -16px rgba(23, 32, 58, 0.24);
}

.content-card {
  background: var(--mag-card);
  border: 1px solid rgba(28, 37, 64, 0.1);
  border-radius: 0.75rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px -14px rgba(23, 32, 58, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 86, 216, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px -16px rgba(23, 32, 58, 0.22);
}

.content-card .p-3 {
  padding: 0.25rem 0.5rem;
}

.content-card h3 {
  font-size: 0.75rem;
  line-height: 1rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .content-card h3 {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

.magazine-search-input {
  box-shadow: inset 0 0 0 1px rgba(28, 37, 64, 0.16);
}

.magazine-panel {
  background: var(--mag-panel);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(28, 37, 64, 0.12);
  border-radius: 0.75rem;
  box-shadow: 0 16px 36px -22px rgba(23, 32, 58, 0.25);
}

.magazine-topstrip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin: 0.5rem auto 0;
  background: transparent;
  color: var(--mag-sub);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-align: center;
  padding: 0.375rem 1rem;
  white-space: nowrap;
  overflow: hidden;
}

.magazine-topstrip::before,
.magazine-topstrip::after {
  content: '';
  flex-shrink: 0;
  width: 12rem;
  height: 2px;
}

.magazine-topstrip::before {
  background: rgba(58, 86, 216, 0.28);
}

.magazine-topstrip::after {
  background: rgba(58, 86, 216, 0.28);
}

@media (max-width: 767.98px) {
  .magazine-topstrip::before,
  .magazine-topstrip::after { display: none; }
}

.magazine-rec-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.magazine-rec-header::before,
.magazine-rec-header::after {
  content: "";
  flex: 1;
  height: 8px;
}

.magazine-rec-header::before {
  background: rgba(58, 86, 216, 0.1);
}

.magazine-rec-header::after {
  background: rgba(58, 86, 216, 0.1);
}

@media (min-width: 768px) {
  .magazine-topstrip { display: flex; }
}

.magazine-nav-divider {
  width: 2px;
  height: 1.25rem;
  border-radius: 9999px;
  background: rgba(28, 37, 64, 0.16);
  margin: 0 0.875rem 0 0.25rem;
  display: none;
}

@media (min-width: 768px) {
  .magazine-nav-divider { display: block; }
}

.magazine-topstrip .domain-link {
  color: var(--mag-ink);
  font-weight: 600;
  text-decoration: none;
}

.magazine-topstrip .domain-link:hover { color: var(--snow-ice-deep); }

.magazine-topstrip .visit-btn {
  background: #3a56d8;
  color: #ffffff;
  padding: 2px 12px;
  margin-left: 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-decoration: none;
}

.magazine-topstrip .visit-btn:hover {
  background: #5a73e6;
}

.search-strip {
  position: sticky;
  top: 56px;
  z-index: 30;
  padding: 1rem 1rem 0.75rem;
  max-width: 1152px;
  margin: 0 auto;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.search-strip form { position: relative; }

.search-strip button { right: 0.75rem; }

@media (min-width: 768px) {
  .search-strip { padding: 1.5rem 1.5rem 0.75rem; }
}

.navbar .navbar-brand { flex-shrink: 0; }

.navbar .navbar-search-box {
  flex: 0 0 50%;
  max-width: 360px;
  margin-left: auto;
}

@media (min-width: 768px) {
  .navbar .navbar-search-box { flex: 0 1 360px; }
}

.navbar .navbar-search-box input {
  background-color: #ffffff;
  color: var(--mag-ink);
}

.navbar .navbar-search-box input::placeholder { color: var(--mag-sub); }

.navbar .navbar-search-box button { color: var(--mag-sub); }

.navbar .navbar-search-box button:hover { color: var(--snow-ice-deep); }

#friendLinksContainer a {
  background: #3a56d8;
  color: #ffffff;
  font-weight: 600;
  border-radius: 4px;
  padding: 0.125rem 0.75rem;
  box-shadow: 0 3px 10px -4px rgba(58, 86, 216, 0.4);
}

@media (min-width: 768px) {
  #friendLinksContainer a { padding: 0.25rem 1rem; }
}

#friendLinksContainer a:hover {
  background: #5a73e6;
  color: #ffffff;
  box-shadow: 0 5px 14px -4px rgba(58, 86, 216, 0.5);
}

.friend-links-label {
  color: var(--mag-ink);
  font-weight: 600;
  font-size: 0.875rem;
}

.magazine-section-inline {
  border-top: none;
  padding-top: 0;
}

.magazine-section-rule {
  flex: 1;
  height: 4px;
  min-height: 4px;
  align-self: center;
  width: 100%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 45%),
    linear-gradient(90deg, #3a56d8, #0e9db8);
  background-size: 45% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: rule-sweep 3.2s linear infinite;
  box-shadow: 0 0 12px -3px rgba(58, 86, 216, 0.5);
  margin-left: 0.75rem;
  margin-right: 0;
}

@keyframes rule-sweep {
  0% { background-position: -60% 0, 0 0; }
  100% { background-position: 160% 0, 0 0; }
}

.magazine-section-arrow {
  flex: 0 0 auto;
  margin-left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #3a56d8;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.15s ease, transform 0.15s ease;
}

.magazine-section-arrow:hover {
  color: #5a73e6;
  transform: translateX(2px);
}

.magazine-grid-tail {
  height: 18px;
  margin-top: 0.875rem;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 18'%3E%3Cpath d='M0 9 Q10 1 20 9 T40 9 T60 9 T80 9' fill='none' stroke='%233a56d8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18'%3E%3Cpath d='M0 12 Q15 4 30 12 T60 12 T90 12 T120 12' fill='none' stroke='%230e9db8' stroke-width='1.5' stroke-linecap='round' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 80px 18px, 120px 18px;
  background-position: 0 100%, 0 100%;
  background-repeat: repeat-x;
  animation: tail-drift 7s linear infinite;
}

@keyframes tail-drift {
  to { background-position: 80px 100%, 120px 100%; }
}

.neon-title-row {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.magazine-section-title:hover + .magazine-section-rule {
  animation-duration: 1.1s;
  box-shadow: 0 0 14px -2px rgba(14, 157, 184, 0.6);
}

.magazine-section-title a {
  color: inherit;
  text-decoration: none;
}

.magazine-section-title a:hover {
  color: var(--mag-accent-hover);
}

#friendLinksContainer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#backToTop,
#topSearchBtn {
  background: #c8862a;
  border: 1px solid rgba(160, 106, 28, 0.6);
  border-radius: 0.75rem;
  color: #ffffff;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -10px rgba(200, 134, 42, 0.55);
}

#backToTop:hover,
#topSearchBtn:hover {
  background: #a86d1c;
  box-shadow: 0 10px 28px -8px rgba(200, 134, 42, 0.65);
}

#topSearchBtn {
  position: fixed;
  right: 1.5rem;
  bottom: 4.5rem;
  cursor: pointer;
}

.magazine-tag-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(14, 157, 184, 0.08);
  border: 1px solid rgba(14, 157, 184, 0.35);
  border-radius: 9999px;
  color: var(--snow-ice-deep);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.magazine-tag-pill:hover {
  background: rgba(14, 157, 184, 0.16);
  color: #075e6e;
}

@media (max-width: 767.98px) {
  .magazine-tag-pill {
    font-size: 0.75rem;
    padding: 0.1875rem 0.625rem;
  }
}

.magazine-node-btn {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(28, 37, 64, 0.16);
  border-radius: 6px;
  color: var(--mag-body);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  box-shadow: 0 1px 2px rgba(23, 32, 58, 0.06);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.magazine-node-btn:hover {
  background: var(--mag-chip);
  border-color: rgba(58, 86, 216, 0.5);
  color: var(--mag-accent);
}

.magazine-node-btn.active {
  background: #3a56d8;
  border-color: #2b41b0;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 3px 10px -4px rgba(58, 86, 216, 0.4);
}

.magazine-node-btn.active:hover {
  background: #5a73e6;
}

.magazine-btn-share {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.35);
  border-radius: 9999px;
  color: #15803d;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  transition: background-color 0.2s ease;
}

.magazine-btn-share:hover {
  background: rgba(22, 163, 74, 0.16);
}

.magazine-btn-report {
  display: inline-flex;
  align-items: center;
  background: rgba(190, 18, 60, 0.07);
  border: 1px solid rgba(190, 18, 60, 0.32);
  border-radius: 9999px;
  color: #be123c;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  transition: background-color 0.2s ease;
}

.magazine-btn-report:hover {
  background: rgba(190, 18, 60, 0.15);
}

.magazine-empty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background: rgba(14, 157, 184, 0.08);
  border: 1px solid rgba(14, 157, 184, 0.35);
  color: var(--snow-ice-deep);
  font-size: 1.75rem;
}

.flex.items-center > .magazine-empty-badge {
  margin-bottom: 0;
  margin-right: 0.75rem;
}

.navbar-domain {
  display: none;
}

@media (min-width: 768px) {
  .magazine-topstrip { display: none; }

  .navbar-domain {
    display: flex;
    align-items: center;
    margin-left: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    white-space: nowrap;
  }

  .navbar-domain .domain-link {
    color: var(--mag-sub);
    font-weight: 600;
    text-decoration: none;
  }

  .navbar-domain .domain-link:hover { color: var(--snow-ice-deep); }
}

.neon-screen {
  position: relative;
  background: #c3d1f4;
  border: 1px solid rgba(28, 37, 64, 0.12);
  border-top: 3px solid #3a56d8;
  border-radius: 0.875rem;
  padding: 1rem 0.25rem 1.25rem;
  box-shadow: 0 18px 40px -24px rgba(23, 32, 58, 0.25);
}

.neon-screen::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(58, 86, 216, 0.14);
  border-radius: 0.625rem;
  pointer-events: none;
}

.neon-screen::after {
  content: '';
  position: absolute;
  top: 0.875rem;
  right: 1.125rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #3a56d8;
  animation: neon-sig 2.4s ease-in-out infinite;
}

@keyframes neon-sig {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.neon-board {
  background: #c3d1f4;
  border: 1px solid rgba(28, 37, 64, 0.12);
  border-top: 2px solid #3a56d8;
  border-radius: 0.75rem;
  padding: 0.25rem 0.25rem 0.5rem;
  box-shadow: 0 16px 36px -22px rgba(23, 32, 58, 0.22);
}

main > section.neon-board:nth-of-type(6n+2) { background: #aadfe9; border-top-color: #0e9db8; }
main > section.neon-board:nth-of-type(6n+3) { background: #cbc0f2; border-top-color: #7c5cd8; }
main > section.neon-board:nth-of-type(6n+4) { background: #f5bcd0; border-top-color: #d84a72; }
main > section.neon-board:nth-of-type(6n+5) { background: #f5d8a3; border-top-color: #c8862a; }
main > section.neon-board:nth-of-type(6n+6) { background: #b6dfc5; border-top-color: #1f9d5b; }
main > section.neon-board:nth-of-type(6n+7) { background: #c3d1f4; border-top-color: #3a56d8; }

.neon-screen .magazine-section-title,
.neon-board .magazine-section-title {
  border-top: none;
  padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .neon-screen::after { animation: none; }
  .magazine-section-rule { animation: none; }
  .magazine-grid-tail { animation: none; }
}

.neon-booth {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(28, 37, 64, 0.12);
  border-top: 2px solid #3a56d8;
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px -24px rgba(23, 32, 58, 0.22);
}

.neon-key-tray {
  background: #ffffff;
  border: 1px solid rgba(28, 37, 64, 0.12);
  border-radius: 9999px;
  box-shadow: 0 18px 40px -24px rgba(23, 32, 58, 0.32);
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.5rem;
}

.neon-key-tray .pagination-btn {
  border-radius: 0.625rem;
  background: transparent;
  border: none;
  color: var(--mag-body);
  box-shadow: none;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.neon-key-tray .pagination-btn:hover:not(.disabled) {
  background: var(--mag-chip);
  color: var(--mag-accent);
  transform: translateY(-1px);
}

.neon-key-tray .pagination-btn.disabled {
  opacity: 0.4;
  background: transparent;
  color: var(--mag-sub);
}

.neon-key-tray .pagination-btn.active {
  background: #3a56d8;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(58, 86, 216, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.neon-key-tray .pagination-btn.active:hover {
  background: #5a73e6;
}

body .pagination-btn:hover:not(.disabled):not(.active) {
  background-color: var(--mag-chip);
  color: var(--mag-accent);
}

body .pagination-btn.active {
  background-color: #3a56d8;
  color: #ffffff;
}

body .pagination-btn.active:hover {
  background-color: #5a73e6;
  color: #ffffff;
}

.play-mega {
  background: #000;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(23, 32, 58, 0.45);
}

.play-mega .video-player {
  object-fit: contain;
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}

.video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.play-island {
  position: relative;
  z-index: 5;
  margin-top: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(28, 37, 64, 0.12);
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px -26px rgba(23, 32, 58, 0.38);
  padding: 1.125rem 1.25rem 1.25rem;
}

.play-island .magazine-node-btn {
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 0.625rem;
}

.play-crumb {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(28, 37, 64, 0.1);
  margin-bottom: 0.875rem;
}

.play-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .play-split {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

.play-rail {
  padding: 1rem 1rem 1.125rem;
}

.play-rail-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.play-rail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid rgba(28, 37, 64, 0.1);
  border-radius: 0.625rem;
  padding: 0.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.play-rail-item:hover {
  border-color: rgba(58, 86, 216, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px rgba(23, 32, 58, 0.35);
}

.play-rail-thumb {
  flex: 0 0 6.5rem;
  border-radius: 0.375rem;
  overflow: hidden;
  background: #e8edf7;
  aspect-ratio: 16 / 9;
}

.play-rail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-rail-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1c2540;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.play-rail-item:hover .play-rail-name {
  color: #3a56d8;
}

@media (max-width: 1023px) {
  .play-rail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .play-rail-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .play-rail-thumb {
    flex: 0 0 auto;
    width: 100%;
  }
}

.play-console-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.play-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.play-console-main .play-views,
.play-console-main .play-tool {
  border-left: 1px solid rgba(28, 37, 64, 0.14);
  padding-left: 1rem;
}

.play-views {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--mag-sub);
  font-weight: 600;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.play-console-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(28, 37, 64, 0.1);
  margin-top: 0.875rem;
  padding-top: 0.875rem;
}

.play-links {
  border-top: 1px solid rgba(28, 37, 64, 0.1);
  padding: 1rem 1.25rem 1.25rem;
}

#playFriendLinksBox a {
  background: #ffffff;
  border: 1px solid rgba(58, 86, 216, 0.35);
  color: #3a56d8;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#playFriendLinksBox a:hover {
  background: #3a56d8;
  border-color: #2b41b0;
  color: #ffffff;
  box-shadow: 0 8px 18px -8px rgba(58, 86, 216, 0.55);
}

@media (max-width: 767px) {
  #playFriendLinksBox {
    display: grid;
    grid-template-columns: repeat(var(--play-cols, 4), 1fr);
    gap: 0.75rem;
  }

  #playFriendLinksBox a {
    white-space: normal;
    padding: 0.375rem 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
    border-radius: 0.75rem;
  }
}

body .filter-btn.active {
  background-color: #3a56d8;
  color: #ffffff;
}
