/* Pan Yulong Scholarly Archipelago Styling */
:root {
  --bg-dark: #07121b;
  --bg-card: rgba(14, 27, 42, 0.75);
  --bg-card-hover: rgba(20, 38, 59, 0.9);
  --border-color: rgba(64, 155, 255, 0.18);
  --border-highlight: rgba(0, 242, 254, 0.45);
  --primary-cyan: #00f2fe;
  --primary-blue: #4facfe;
  --accent-gold: #fbbf24;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  --text-main: #f0f6fc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Noto Sans TC', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 242, 254, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(79, 172, 254, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 18, 27, 0.82);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, #c8e1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-audio {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-audio:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--primary-cyan);
}

.btn-audio.active {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--primary-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.btn-lighthouse-jump {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-lighthouse-jump:hover {
  background: rgba(251, 191, 36, 0.3);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.35);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero Profile Section */
.hero-profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(14, 27, 42, 0.85) 0%, rgba(9, 21, 34, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.hero-profile::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.profile-avatar-wrap {
  position: relative;
}

.profile-avatar {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0f2b46, #163e63);
  border: 3px solid var(--primary-cyan);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.profile-badge-alt {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.profile-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-name {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 40%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-title-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.2rem;
}

.title-chip {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--primary-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
}

.title-chip.gold {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--accent-gold);
}

.title-chip.emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
}

.profile-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 720px;
  line-height: 1.7;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.topic-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.topic-pill:hover {
  color: #fff;
  border-color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.1);
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-left: 1px solid var(--border-color);
  padding-left: 2rem;
}

.stat-item {
  text-align: right;
}

.stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: linear-gradient(135deg, #ffffff, var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Archipelago Section */
.archipelago-section {
  background: linear-gradient(180deg, rgba(14, 27, 42, 0.8) 0%, rgba(9, 20, 32, 0.9) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
  margin-bottom: 2.5rem;
  position: relative;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-headline {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.section-headline h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-headline p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.map-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-reset-map {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-reset-map:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--primary-cyan);
}

.btn-reset-map.visible {
  display: flex;
}

/* SVG Map Shell */
.map-shell {
  position: relative;
  width: 100%;
  height: 480px;
  background: radial-gradient(circle at 50% 50%, #0d2235 0%, #061320 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 242, 254, 0.15);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.map-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center center;
}

.compass-rose {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  border: 1px dashed rgba(0, 242, 254, 0.35);
  background: rgba(7, 18, 27, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.compass-needle {
  width: 2px;
  height: 40px;
  background: linear-gradient(to top, rgba(255,255,255,0.2) 50%, #ef4444 50%);
  position: relative;
  transform: rotate(-15deg);
}

.compass-north {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 800;
  color: #ef4444;
}

.map-coords {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 0.72rem;
  color: rgba(0, 242, 254, 0.65);
  letter-spacing: 1px;
  background: rgba(7, 18, 27, 0.7);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 242, 254, 0.2);
  pointer-events: none;
}

.island-node {
  cursor: pointer;
  transition: all 0.3s ease;
}

.island-land {
  transition: all 0.35s ease;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.45));
}

.island-node:hover .island-land {
  filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.65));
  transform: scale(1.05);
}

.island-beacon {
  animation: pulse-beacon 2.5s infinite ease-in-out;
}

.island-node.active .island-land {
  filter: drop-shadow(0 0 28px rgba(251, 191, 36, 0.75));
}

@keyframes pulse-beacon {
  0% { r: 5px; opacity: 1; }
  50% { r: 16px; opacity: 0; }
  100% { r: 5px; opacity: 1; }
}

.ocean-wave {
  fill: none;
  stroke: rgba(0, 242, 254, 0.1);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: wave-drift 20s linear infinite;
}

@keyframes wave-drift {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 100; }
}

.sea-route {
  fill: none;
  stroke: rgba(79, 172, 254, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
  animation: route-flow 30s linear infinite;
}

@keyframes route-flow {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

/* Toolbar */
.toolbar-section {
  background: rgba(14, 27, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.8rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.filter-tab:hover {
  background: rgba(0, 242, 254, 0.1);
  color: #fff;
  border-color: var(--primary-cyan);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
  color: #041019;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.4);
}

.filter-tab .badge-count {
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.search-sort-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.search-input-box {
  position: relative;
  flex: 1;
  max-width: 550px;
}

.search-input-box input {
  width: 100%;
  background: rgba(7, 18, 27, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.2rem 0.65rem 2.8rem;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.search-input-box input:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.85rem;
  display: none;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sort-select {
  background: rgba(7, 18, 27, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

/* Catalog Section */
.catalog-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.catalog-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.catalog-counter {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.paper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.paper-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.paper-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-cyan);
  opacity: 0.6;
  transition: var(--transition);
}

.paper-card:hover::before {
  opacity: 1;
  width: 6px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-island-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary-cyan);
}

.card-island-badge.sports {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--accent-gold);
}

.card-island-badge.indigenous {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
}

.card-island-badge.pedagogy {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: var(--accent-purple);
}

.card-badges-right {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.badge-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', monospace;
}

.badge-citation {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.paper-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.paper-source {
  font-size: 0.83rem;
  color: var(--primary-blue);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.paper-authors {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.paper-synopsis {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card-tag {
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-card-action {
  flex: 1;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-card-action:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--primary-cyan);
  color: #fff;
}

.btn-card-action.primary {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 254, 0.2));
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--primary-cyan);
}

.btn-card-action.primary:hover {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.4), rgba(0, 242, 254, 0.4));
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

/* Lighthouse Section */
.lighthouse-section {
  background: linear-gradient(135deg, rgba(14, 27, 42, 0.95), rgba(8, 20, 32, 0.98));
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 35px rgba(251, 191, 36, 0.1);
}

.lighthouse-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.lighthouse-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.lighthouse-lead {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lighthouse-kicker {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lighthouse-lead h2 {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.25;
  background: linear-gradient(135deg, #fff, #fef08a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lighthouse-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.philosophy-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.philosophy-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.philosophy-icon {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.official-card {
  background: rgba(7, 18, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.official-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.info-label {
  width: 80px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.info-val {
  color: var(--text-main);
  font-weight: 500;
}

.info-val a {
  color: var(--primary-cyan);
  text-decoration: none;
}

.info-val a:hover {
  text-decoration: underline;
}

.lighthouse-cta-wrap {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-scholar-big {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
  color: #041019;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-scholar-big:hover {
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 10, 16, 0.75);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: #0b1a29;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.modal-island-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--primary-cyan);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
  font-size: 0.88rem;
}

.modal-meta-item strong {
  color: var(--text-dim);
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.modal-body-section {
  margin-bottom: 1.5rem;
}

.modal-body-section h4 {
  font-size: 0.92rem;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.modal-synopsis-text {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.7;
}

.apa-box {
  background: rgba(7, 18, 27, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.88rem;
  font-family: monospace;
  color: #bae6fd;
  position: relative;
  word-break: break-all;
  margin-top: 0.4rem;
}

.modal-footer-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.btn-modal-copy {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  color: #041019;
  font-weight: 700;
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-modal-copy:hover {
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

.btn-modal-scholar {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-modal-scholar:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  z-index: 3000;
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.toast.show {
  display: flex;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  background: rgba(4, 12, 19, 0.95);
}

footer p {
  margin-bottom: 0.4rem;
}

@media (max-width: 992px) {
  .hero-profile {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .profile-avatar-wrap {
    margin: 0 auto;
  }
  .hero-stats {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 1.5rem;
    flex-direction: row;
    justify-content: space-around;
  }
  .stat-item {
    text-align: center;
  }
  .lighthouse-grid {
    grid-template-columns: 1fr;
  }
  .profile-desc {
    margin: 0 auto;
  }
  .topic-pills {
    justify-content: center;
  }
  .profile-title-bar {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .search-sort-row {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input-box {
    max-width: none;
  }
  .top-nav {
    padding: 0.6rem 1rem;
  }
  .container {
    padding: 1.2rem 1rem;
  }
}
