:root {
  --ink: #101116;
  --muted: #6f717b;
  --line: #dedfe4;
  --paper: #f7f7f4;
  --card: #ffffff;
  --acid: #d3f36b;
  --acid-dark: #b6dc4a;
  --violet: #7656f5;
  --orange: #f07d3d;
  --cyan: #3dcbd1;
  --danger: #cc4242;
  --shadow: 0 20px 60px rgba(16, 17, 22, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell { overflow: hidden; }
.topbar {
  min-height: 78px;
  padding: 18px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(247, 247, 244, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; background: var(--ink); color: var(--acid);
  font-size: 12px; font-weight: 800; letter-spacing: 1px; transform: rotate(-6deg);
}
.brand strong { display: block; font-size: 16px; letter-spacing: .02em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.topnav { display: flex; gap: 26px; align-items: center; margin-left: auto; }
.topnav a { padding: 10px 0; color: var(--muted); font-size: 13px; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a.active { color: var(--ink); border-bottom-color: var(--violet); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .button { border: 0; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.icon-button:hover, .button:hover { transform: translateY(-1px); }
.icon-button { padding: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.button { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 800; }
.button-ghost { border: 1px solid var(--line); background: var(--card); }
.button-dark { background: var(--ink); color: white; }
.button-lime { background: var(--acid); color: var(--ink); }
.button-outline { border: 1px solid rgba(16,17,22,.22); background: transparent; color: var(--ink); }

main { max-width: 1600px; margin: 0 auto; }
.hero-section {
  min-height: 460px; padding: 82px clamp(20px, 7vw, 112px) 70px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr); gap: 10vw; align-items: center;
  background: var(--paper); position: relative;
}
.hero-section::before {
  content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(118, 86, 245, .18); border-radius: 50%; right: 12%; top: 22%; pointer-events: none;
}
.hero-section::after { content: ""; position: absolute; width: 1px; height: 100%; background: rgba(16,17,22,.08); left: 65%; top: 0; }
.hero-copy, .hero-signal { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 15px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--acid-dark); box-shadow: 0 0 0 3px rgba(182,220,74,.18); vertical-align: 1px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(46px, 7vw, 92px); line-height: .93; letter-spacing: -.055em; font-weight: 850; }
h1 em, h2 em { color: var(--violet); font-style: normal; }
.hero-description { max-width: 460px; margin-bottom: 30px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-search { width: min(560px, 100%); padding: 0 14px; min-height: 56px; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); box-shadow: 8px 8px 0 rgba(211,243,107,.85); }
.search-icon { color: var(--violet); font-size: 24px; line-height: 1; transform: rotate(-18deg); }
.hero-search input, .filter-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.hero-search input::placeholder, .filter-search input::placeholder { color: #9a9ba2; }
kbd { padding: 3px 7px; color: var(--muted); border: 1px solid var(--line); font-size: 10px; }
.quick-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: 11px; }
.quick-tags button { padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 11px; }
.quick-tags button:hover { color: var(--ink); border-color: var(--violet); }
.hero-signal { max-width: 460px; padding: 20px; border: 1px solid var(--ink); background: var(--card); box-shadow: 15px 15px 0 var(--ink); transform: rotate(1.5deg); }
.signal-header, .signal-foot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.signal-live { color: var(--ink); }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 18px; }
.signal-grid div { padding: 20px 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signal-grid strong { display: block; font-size: 28px; letter-spacing: -.05em; }
.signal-grid span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.signal-foot { margin-top: 18px; letter-spacing: .04em; }
.pulse-line { width: 78px; height: 9px; display: inline-block; border-top: 1px solid var(--cyan); border-bottom: 1px solid var(--cyan); transform: skewX(-35deg); }

.content-section, .lower-grid { padding: 52px clamp(20px, 5vw, 72px); }
.content-section { background: var(--card); border-top: 1px solid var(--line); }
.section-heading, .panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
h2 { margin-bottom: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1; letter-spacing: -.045em; }
h2 span { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; vertical-align: top; }
.view-toggle { display: flex; gap: 4px; }
.view-button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); color: var(--muted); background: var(--card); font-size: 11px; }
.view-button.active { color: var(--ink); border-color: var(--ink); background: var(--acid); }
.filter-bar { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(125px, .7fr)) auto; gap: 8px; margin: 30px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.filter-search, .select-field { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); background: var(--paper); }
.filter-search .search-icon { font-size: 18px; }
.select-field { position: relative; }
.select-field span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.select-field select { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.filter-reset { border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.filter-reset:hover { color: var(--danger); }
.directory-table-wrap { overflow-x: auto; }
.directory-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.directory-table th { padding: 12px 13px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: left; letter-spacing: .08em; text-transform: uppercase; }
.directory-table td { padding: 18px 13px; border-top: 1px solid var(--line); vertical-align: middle; font-size: 12px; }
.directory-table tr:hover td { background: #fcfcf9; }
.station-cell { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.station-logo { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; background: var(--ink); color: white; font-size: 10px; font-weight: 850; }
.station-logo.lime { background: var(--acid); color: var(--ink); }
.station-logo.violet { background: var(--violet); }
.station-logo.orange { background: var(--orange); }
.station-name { font-weight: 850; }
.station-meta { display: flex; gap: 6px; margin-top: 5px; color: var(--muted); font-size: 10px; }
.verified { color: var(--violet); font-size: 11px; font-weight: 900; }
.model-tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 170px; }
.model-tag { padding: 4px 6px; color: var(--ink); background: #eef0f3; font-size: 10px; }
.price { font-weight: 750; }
.subtle { color: var(--muted); font-size: 10px; }
.metric { display: flex; align-items: center; gap: 7px; min-width: 90px; }
.metric-bar { width: 48px; height: 5px; background: #e8e8e9; }
.metric-bar i { display: block; height: 100%; background: var(--acid-dark); }
.metric-bar.violet i { background: var(--violet); }
.rating-cell { min-width: 155px; }
.rating-label { display: flex; align-items: center; gap: 7px; }
.rating-pill { display: inline-flex; min-width: 58px; padding: 5px 7px; justify-content: center; color: var(--ink); background: var(--acid); font-size: 10px; font-weight: 850; }
.rating-pill.violet { color: white; background: var(--violet); }
.rating-pill.orange { color: white; background: var(--orange); }
.rating-count { color: var(--muted); font-size: 10px; }
.row-action { padding: 8px; border: 0; color: var(--violet); background: transparent; font-weight: 850; font-size: 11px; white-space: nowrap; }
.row-action:hover { text-decoration: underline; }
.directory-cards { display: none; }
.force-compact .directory-table-wrap { display: none; }
.force-compact .directory-cards { display: grid; gap: 10px; }
.force-compact .station-card { padding: 17px; border: 1px solid var(--line); background: var(--card); }
.force-compact .station-card-top { display: flex; justify-content: space-between; gap: 12px; }
.force-compact .station-card .station-cell { min-width: 0; }
.force-compact .station-card .station-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.force-compact .station-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.force-compact .station-card-grid span { display: block; color: var(--muted); font-size: 10px; }
.force-compact .station-card-grid strong { display: block; margin-top: 5px; font-size: 12px; }
.force-compact .station-card-footer { display: flex; justify-content: space-between; align-items: center; }
.force-compact .station-card .row-action { padding: 0; }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-mark { display: block; color: var(--violet); font-size: 38px; }
.empty-state h3 { margin: 10px 0 7px; font-size: 20px; }
.empty-state p { color: var(--muted); font-size: 13px; }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr); gap: 20px; background: var(--paper); }
.panel { padding: 26px; border: 1px solid var(--line); background: var(--card); }
.latest-panel { min-width: 0; }
.live-label { color: var(--muted); font-size: 10px; font-weight: 800; }
.review-feed { margin-top: 20px; }
.review-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; padding: 17px 0; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--violet); font-size: 11px; font-weight: 850; }
.avatar.orange { background: var(--orange); }
.avatar.cyan { background: var(--cyan); color: var(--ink); }
.review-topline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review-user { font-size: 12px; font-weight: 850; }
.review-badge { padding: 3px 5px; color: var(--muted); background: #f1f1ef; font-size: 9px; }
.review-time { color: var(--muted); font-size: 10px; }
.review-copy { margin-top: 8px; font-size: 13px; line-height: 1.65; }
.review-site { margin-top: 7px; color: var(--violet); font-size: 11px; font-weight: 800; }
.review-rating { align-self: start; padding: 5px 7px; background: var(--acid); font-size: 10px; font-weight: 850; white-space: nowrap; }
.action-panel { min-height: 310px; display: flex; flex-direction: column; justify-content: space-between; border-color: var(--ink); background: var(--ink); color: white; }
.action-panel .eyebrow, .action-panel p { color: #a6a7af; }
.action-panel h2 { color: white; font-size: clamp(28px, 3vw, 42px); }
.action-stack { display: grid; gap: 8px; margin-top: 28px; }
.action-panel .button-outline { color: white; border-color: #464852; }
.trust-note { display: flex; align-items: start; gap: 8px; margin-top: 25px; color: #858791; font-size: 10px; line-height: 1.5; }
.shield { color: var(--acid); font-size: 17px; line-height: 1; }
.footer-band { display: flex; justify-content: space-between; gap: 24px; padding: 28px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); background: var(--paper); }
.footer-band strong { font-size: 14px; }
.footer-band span { margin-left: 12px; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 11px; }
.footer-links a:hover { color: var(--ink); }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(16,17,22,.62); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(620px, 100%); max-height: min(760px, 90vh); overflow-y: auto; padding: 30px; position: relative; background: var(--card); box-shadow: 18px 18px 0 var(--acid); }
.modal-close { position: absolute; top: 13px; right: 17px; border: 0; color: var(--muted); background: transparent; font-size: 28px; line-height: 1; }
.modal h2 { margin-bottom: 10px; font-size: 32px; }
.modal-lead { color: var(--muted); font-size: 13px; line-height: 1.6; }
.modal-form { display: grid; gap: 15px; margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 6px; }
.form-field label { color: var(--muted); font-size: 11px; font-weight: 750; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line); padding: 11px 12px; outline: 0; color: var(--ink); background: var(--paper); font-size: 13px; }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(118,86,245,.12); }
.form-hint { color: var(--muted); font-size: 10px; line-height: 1.55; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.detail-top { display: flex; align-items: start; gap: 14px; padding-right: 28px; }
.detail-top .station-logo { width: 48px; height: 48px; font-size: 12px; }
.detail-top h2 { margin: 0 0 5px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 24px 0; border: 1px solid var(--line); background: var(--line); }
.detail-stat { padding: 14px; background: var(--card); }
.detail-stat span { display: block; color: var(--muted); font-size: 10px; }
.detail-stat strong { display: block; margin-top: 7px; font-size: 18px; }
.detail-section { padding-top: 18px; border-top: 1px solid var(--line); }
.detail-section h3 { margin-bottom: 10px; font-size: 13px; }
.detail-link { color: var(--violet); font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.detail-link:hover { text-decoration: underline; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.vote-box { margin-top: 12px; padding: 15px; background: var(--paper); }
.vote-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.vote-option { padding: 7px 9px; border: 1px solid var(--line); background: var(--card); font-size: 10px; font-weight: 800; }
.vote-option:hover, .vote-option.selected { border-color: var(--ink); background: var(--acid); }
.success-note { margin-top: 16px; padding: 12px; color: #30420e; background: #eff9cb; font-size: 12px; line-height: 1.55; }
.admin-tabs { display: flex; gap: 4px; margin: 24px 0; border-bottom: 1px solid var(--line); }
.admin-tab { padding: 9px 10px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 11px; }
.admin-tab.active { color: var(--ink); border-bottom-color: var(--violet); }
.admin-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.admin-stat { padding: 14px; background: var(--paper); }
.admin-stat strong { display: block; font-size: 22px; }
.admin-stat span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.admin-list { margin-top: 17px; border-top: 1px solid var(--line); }
.admin-list-item { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.admin-list-item strong { display: block; font-size: 12px; }
.admin-list-item span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.admin-list-actions { display: flex; gap: 5px; align-items: start; }
.mini-button { padding: 6px 8px; border: 1px solid var(--line); color: var(--ink); background: var(--card); font-size: 10px; }
.mini-button:hover { border-color: var(--violet); }
.mini-button.danger:hover { border-color: var(--danger); color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); padding: 12px 16px; color: white; background: var(--ink); box-shadow: 5px 5px 0 var(--violet); font-size: 12px; }

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; }
  .topnav { order: 3; width: 100%; justify-content: space-between; gap: 8px; overflow-x: auto; }
  .topnav a { white-space: nowrap; }
  .hero-section { grid-template-columns: 1fr; gap: 48px; padding-top: 62px; }
  .hero-section::after { display: none; }
  .hero-signal { width: min(460px, 100%); margin-left: auto; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-search { grid-column: span 2; }
  .sort-field { grid-column: span 2; }
  .lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { padding: 14px 16px; gap: 16px; }
  .brand small { display: none; }
  .top-actions { margin-left: auto; }
  .top-actions .button { padding: 0 10px; font-size: 11px; }
  .hero-section { padding: 46px 16px 56px; }
  h1 { font-size: clamp(44px, 15vw, 66px); }
  .hero-signal { box-shadow: 8px 8px 0 var(--ink); }
  .content-section, .lower-grid { padding: 38px 16px; }
  .section-heading { align-items: start; flex-direction: column; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-search, .sort-field { grid-column: auto; }
  .select-field { min-height: 42px; }
  .directory-table-wrap { display: none; }
  .directory-cards { display: grid; gap: 10px; }
  .station-card { padding: 17px; border: 1px solid var(--line); background: var(--card); }
  .station-card-top { display: flex; justify-content: space-between; gap: 12px; }
  .station-card .station-cell { min-width: 0; }
  .station-card .station-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .station-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .station-card-grid span { display: block; color: var(--muted); font-size: 10px; }
  .station-card-grid strong { display: block; margin-top: 5px; font-size: 12px; }
  .station-card-footer { display: flex; justify-content: space-between; align-items: center; }
  .station-card .row-action { padding: 0; }
  .review-item { grid-template-columns: 32px minmax(0, 1fr); }
  .review-rating { grid-column: 2; justify-self: start; }
  .panel { padding: 20px; }
  .footer-band { display: grid; padding: 25px 16px; }
  .footer-band span { display: block; margin: 6px 0 0; }
  .form-row, .detail-grid, .admin-stat-grid { grid-template-columns: 1fr; }
  .modal { padding: 24px 19px; box-shadow: 8px 8px 0 var(--acid); }
}
