/*
 * Bass Rotary Club — dark glossy theme
 * Visual language: graphite surfaces, lifted square controls and restrained neon accents.
 */

html { background: #121215; }

body.bass-theme {
  --deep: #2a2a2f;
  --deep-2: #efeff1;
  --teal: #ff3b30;
  --accent: #ff3b30;
  --orange: #ff3b30;
  --bg: #18181b;
  --card: #26262a;
  --text: #efeff1;
  --muted: #a0a0ab;
  --border: rgba(255, 255, 255, 0.09);
  --soft-teal: rgba(255, 59, 48, 0.09);
  --soft-orange: rgba(255, 59, 48, 0.09);
  --danger: #ff3b30;
  --neon-cyan: #ff3b30;
  --neon-blue: #8e8e96;
  --neon-pink: #ff3b30;
  --neon-purple: #8e8e96;
  --neon-lime: #5faf7a;
  --neon-yellow: #ff3b30;
  --control-accent: var(--neon-cyan);
  --surface: linear-gradient(145deg, #2d2d32 0%, #242428 48%, #1e1e22 100%);
  --surface-soft: linear-gradient(145deg, #2f2f36, #222226);
  --surface-inset: linear-gradient(145deg, #1d1d21, #29292e);
  --content-card-radius: 12px;
  --content-card-border: rgba(255, 255, 255, 0.1);
  --content-card-surface: linear-gradient(145deg, #2d2d32 0%, #242428 52%, #1f1f23 100%);
  --content-card-shadow:
    inset 1px 1px rgba(255, 255, 255, 0.075),
    inset -1px -1px rgba(0, 0, 0, 0.36),
    0 9px 18px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.32);
  --lifted-shadow:
    inset 1px 1px rgba(255, 255, 255, 0.08),
    inset -1px -1px rgba(0, 0, 0, 0.36),
    0 10px 20px rgba(0, 0, 0, 0.34),
    0 2px 5px rgba(0, 0, 0, 0.34);
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 105% -5%, rgba(255, 59, 48, 0.12), transparent 28rem),
    radial-gradient(circle at -12% 38%, rgba(255, 59, 48, 0.085), transparent 25rem),
    linear-gradient(155deg, #212125 0%, #18181b 52%, #121215 100%);
  background-attachment: fixed;
  color: var(--text);
  color-scheme: dark;
}

body.theme-ranking { --control-accent: #ff3b30; }
body.theme-history { --control-accent: #8e8e96; }
body.theme-users { --control-accent: #ff3b30; }
body.theme-info { --control-accent: #8e8e96; }
body.theme-videos { --control-accent: #ff3b30; }
body.theme-rigs { --control-accent: #ff3b30; }
body.theme-ounce { --control-accent: #ff3b30; }
body.theme-equipment { --control-accent: #5faf7a; }
body.theme-spots { --control-accent: #8e8e96; }
body.theme-map,
body.theme-game { --control-accent: #ff3b30; }

body.bass-theme::selection { background: rgba(255, 59, 48, 0.36); color: #efeff1; }
body.bass-theme * { scrollbar-color: #4f4f5a #1b1b1e; }
body.bass-theme h1,
body.bass-theme h2,
body.bass-theme h3,
body.bass-theme strong { color: var(--text); }

body.bass-theme .card h1,
body.bass-theme .card h2,
body.bass-theme .card h3,
body.bass-theme .card strong,
body.bass-theme .video-card h1,
body.bass-theme .video-card h2,
body.bass-theme .video-card h3,
body.bass-theme .video-card strong,
body.bass-theme .rig-card h1,
body.bass-theme .rig-card h2,
body.bass-theme .rig-card h3,
body.bass-theme .rig-card strong,
body.bass-theme .equipment-table-wrap strong,
body.bass-theme .body-card h1,
body.bass-theme .body-card h2,
body.bass-theme .body-card h3,
body.bass-theme .body-card strong,
body.bass-theme .ach-card strong,
body.bass-theme .season-summary strong,
body.bass-theme .miss-summary strong,
body.bass-theme .champion-item strong { color: #efeff1; }

/* Brand bar */
body.bass-theme > header.topbar,
body.bass-theme > header.nav:first-of-type {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background:
    radial-gradient(circle at 18% -130%, rgba(142, 142, 150, 0.2), transparent 46%),
    linear-gradient(145deg, #2a2a2f 0%, #1c1c20 58%, #151517 100%) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.25) !important;
}
body.bass-theme > header.topbar::after {
  position: absolute;
  right: 20px;
  bottom: 0;
  left: 20px;
  width: auto;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple) 48%, var(--neon-pink), transparent 92%);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.38);
  content: "";
  opacity: .9;
}
body.bass-theme > header.topbar a,
body.bass-theme > header.topbar .brand {
  position: relative;
  z-index: 1;
  color: #efeff1 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.52);
}
body.bass-theme > header.topbar .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.bass-theme > header.brand-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}
body.bass-theme > header.brand-topbar .topbar-page-title {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}
body.bass-theme > header.brand-topbar .topbar-page-title small {
  display: block;
  overflow: hidden;
  color: var(--control-accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-shadow: 0 0 8px color-mix(in srgb, var(--control-accent) 30%, transparent);
}
body.bass-theme > header.brand-topbar .topbar-page-title strong {
  display: block;
  margin-top: 2px;
  color: #efeff1;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}
body.bass-theme > header.topbar .brand-icon {
  display: block;
  flex: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  object-fit: contain;
  transform: none;
}

/* Raised controls */
body.bass-theme button,
body.bass-theme select,
body.bass-theme input,
body.bass-theme textarea { font-family: inherit; }

body.bass-theme input:not([type="range"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]),
body.bass-theme select,
body.bass-theme textarea,
body.bass-theme .input-title,
body.bass-theme .input-cat {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: var(--surface-inset) !important;
  box-shadow:
    inset 2px 2px 6px rgba(0, 0, 0, 0.46),
    inset -1px -1px rgba(255, 255, 255, 0.045) !important;
  color: #efeff1 !important;
}
body.bass-theme input::placeholder,
body.bass-theme textarea::placeholder { color: #71717f; }
body.bass-theme input:focus,
body.bass-theme select:focus,
body.bass-theme textarea:focus {
  border-color: rgba(255, 59, 48, 0.7) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.11), inset 2px 2px 6px rgba(0, 0, 0, 0.42) !important;
}

body.bass-theme .btn,
body.bass-theme .add-button,
body.bass-theme .save-button,
body.bass-theme .manual-load,
body.bass-theme .spot-sort-button,
body.bass-theme .spot-location-refresh,
body.bass-theme .filter-pill,
body.bass-theme .video-filters button,
body.bass-theme .categories button,
body.bass-theme .catch-tab-btn,
body.bass-theme .cancel-button,
body.bass-theme .direct-actions button {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: var(--surface-soft) !important;
  box-shadow:
    inset 1px 1px rgba(255, 255, 255, 0.08),
    inset -1px -1px rgba(0, 0, 0, 0.32),
    0 5px 10px rgba(0, 0, 0, 0.24) !important;
  color: #c3c3c9 !important;
}
body.bass-theme .btn:active,
body.bass-theme .add-button:active,
body.bass-theme .save-button:active,
body.bass-theme .spot-sort-button:active,
body.bass-theme .spot-location-refresh:active,
body.bass-theme .filter-pill:active,
body.bass-theme .video-filters button:active,
body.bass-theme .categories button:active,
body.bass-theme .catch-tab-btn:active,
body.bass-theme .cancel-button:active,
body.bass-theme .direct-actions button:active {
  box-shadow: inset 3px 3px 7px rgba(0, 0, 0, 0.5), inset -1px -1px rgba(255, 255, 255, 0.04) !important;
  transform: translateY(1px);
}
body.bass-theme .btn-primary,
body.bass-theme .btn.accent,
body.bass-theme .add-button,
body.bass-theme .save-button,
body.bass-theme .filter-pill.active,
body.bass-theme .video-filters button.active,
body.bass-theme .categories button.active,
body.bass-theme .spot-sort-button.active,
body.bass-theme .catch-tab-btn.active {
  border-width: 1px !important;
  border-color: color-mix(in srgb, var(--control-accent) 30%, rgba(255, 255, 255, 0.08)) !important;
  background: linear-gradient(145deg, color-mix(in srgb, var(--control-accent) 7%, #33333a), #212125 72%) !important;
  box-shadow:
    inset 1px 1px rgba(255, 255, 255, 0.08),
    inset -1px -1px rgba(0, 0, 0, 0.42),
    0 6px 12px rgba(0, 0, 0, 0.28) !important;
  color: color-mix(in srgb, var(--control-accent) 35%, #efeff1) !important;
  text-shadow: none;
}
body.bass-theme .btn-primary,
body.bass-theme .btn.accent {
  border-width: 1px !important;
  border-color: color-mix(in srgb, var(--control-accent) 42%, rgba(255, 255, 255, 0.08)) !important;
  background: linear-gradient(145deg, color-mix(in srgb, var(--control-accent) 11%, #35353b), #1e1e22 74%) !important;
  box-shadow:
    inset 1px 1px rgba(255, 255, 255, 0.1),
    inset -1px -1px rgba(0, 0, 0, 0.44),
    0 7px 14px rgba(0, 0, 0, 0.3) !important;
  color: color-mix(in srgb, var(--control-accent) 28%, #efeff1) !important;
}

body.bass-theme .btn-danger,
.theme-map .map-action-danger,
.theme-spots .btn[aria-label="삭제"] {
  border-width: 1px !important;
  border-color: rgba(255, 59, 48, 0.38) !important;
  background: linear-gradient(145deg, #29292e, #1e1e21 72%) !important;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.06), 0 5px 10px rgba(0, 0, 0, 0.25) !important;
  color: #ffb1ac !important;
  text-shadow: none;
}

/* Shared cards */
body.bass-theme .card,
body.bass-theme .video-card,
body.bass-theme .rig-card,
body.bass-theme .equipment-table-wrap,
body.bass-theme .body-card,
body.bass-theme .ach-card,
body.bass-theme .champion-item,
body.bass-theme .season-summary,
body.bass-theme .miss-summary,
body.bass-theme .spot-distance-toolbar,
body.bass-theme .page-status {
  border-color: var(--content-card-border) !important;
  border-radius: var(--content-card-radius) !important;
  background: var(--content-card-surface) !important;
  box-shadow: var(--content-card-shadow) !important;
  color: #efeff1;
}

/* App dock — every item behaves like a compact raised app tile. */
body.bass-theme nav.bottom {
  gap: 3px;
  padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: rgba(22, 22, 25, 0.94) !important;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(18px) saturate(1.2);
}
body.bass-theme nav.bottom a {
  --nav-accent: var(--neon-cyan);
  min-width: 0;
  margin: 0 !important;
  padding: 9px 0 !important;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #838391 !important;
  font-size: 10.5px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.bass-theme nav.bottom a:nth-child(1) { --nav-accent: #ff3b30; }
body.bass-theme nav.bottom a:nth-child(2) { --nav-accent: #8e8e96; }
body.bass-theme nav.bottom a:nth-child(3) { --nav-accent: #8e8e96; }
body.bass-theme nav.bottom a:nth-child(4) { --nav-accent: #ff3b30; }
body.bass-theme nav.bottom a:nth-child(5) { --nav-accent: var(--neon-cyan); }
body.bass-theme nav.bottom a:nth-child(6) { --nav-accent: var(--neon-blue); }
body.bass-theme nav.bottom a:nth-child(7) { --nav-accent: #ff3b30; }
body.bass-theme nav.bottom a.active {
  border-color: color-mix(in srgb, var(--nav-accent) 44%, transparent);
  background:
    radial-gradient(circle at 50% 0, color-mix(in srgb, var(--nav-accent) 25%, transparent), transparent 72%),
    linear-gradient(145deg, #303036, #202025) !important;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.1), inset -1px -1px rgba(0, 0, 0, 0.42), 0 0 12px color-mix(in srgb, var(--nav-accent) 16%, transparent) !important;
  color: var(--nav-accent) !important;
  font-weight: 900 !important;
}

/* Combined tackle section tabs */
body.bass-theme .tackle-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  width: min(270px, 100%);
  margin: 0 auto 9px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: #1f1f23;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.04), 0 4px 10px rgba(0, 0, 0, 0.18);
}
body.bass-theme .tackle-tabs.tackle-tabs-guide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(180px, 100%);
  margin-right: 0;
  margin-left: auto;
}
body.bass-theme .tackle-tabs a {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #8d8d99;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
body.bass-theme .tackle-tabs a.active {
  border-color: rgba(255, 59, 48, 0.34);
  background: linear-gradient(145deg, #313137, #26262a);
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.09), 0 0 12px rgba(255, 59, 48, 0.1);
  color: var(--neon-cyan);
}

/* Ranking and fishing spots */
.theme-ranking .season-heading small { color: var(--neon-yellow); text-shadow: 0 0 9px rgba(255, 59, 48, 0.25); }
.theme-ranking .season-heading h1 { color: var(--text); }
.theme-spots .card .point-name { color: #efeff1; }
.theme-ranking .season-selector select { border-radius: 12px; }
.theme-ranking .season-summary-live {
  isolation: isolate;
  border-color: var(--content-card-border) !important;
  background: var(--content-card-surface) !important;
}
.theme-ranking .season-summary-live::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 58%, rgba(255, 255, 255, 0.02)) !important;
}
.theme-ranking .season-summary-live::after { opacity: .28; }
.theme-ranking .season-summary-live .season-summary-label,
.theme-ranking .season-summary-live p { color: #c0c0c7; }
.theme-ranking .season-summary:not(.season-summary-live) p { color: #a3a3ad; }
.theme-ranking .season-live-dot { background: var(--neon-lime); box-shadow: 0 0 11px var(--neon-lime); }
.theme-ranking .season-live-badge {
  border-color: rgba(255, 59, 48, 0.48);
  background: rgba(255, 59, 48, 0.1);
  color: var(--neon-lime);
}
.theme-ranking .season-summary-live .season-record-count { color: var(--neon-yellow); }
.theme-ranking .miss-summary {
  border-color: var(--content-card-border) !important;
  background: var(--content-card-surface) !important;
}
.theme-ranking .miss-wanted-badge { border-color: var(--neon-pink); background: rgba(255, 59, 48, 0.12); color: #ff3b30; }
.theme-ranking .miss-summary-count { color: #ff3b30; }
.theme-ranking .podium-wrap {
  border: 1px solid var(--content-card-border);
  border-radius: var(--content-card-radius);
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.055), transparent 32%),
    var(--content-card-surface) !important;
  box-shadow: var(--content-card-shadow) !important;
}
.theme-ranking .rank-table {
  overflow: hidden;
  border-color: var(--content-card-border);
  border-radius: var(--content-card-radius);
  background: var(--content-card-surface);
  box-shadow: var(--content-card-shadow);
}
.theme-ranking .rank-table thead th { border-color: var(--border); background: #29292e; color: #a6a6b1; }
.theme-ranking .rank-table tbody td { border-color: var(--border); color: #e7e7e9; }
.theme-ranking .rank-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.theme-ranking .rank-table td.rt-rank { color: var(--neon-cyan); }
.theme-ranking .rank-table td.rt-score { color: var(--neon-yellow); }
.theme-ranking .champion-year { color: var(--neon-yellow); }
.theme-ranking .champion-score { color: var(--neon-cyan); }
.theme-ranking #catch-modal > div,
.theme-ranking #catch-modal .point-name { color: #efeff1; }

.theme-spots .spot-distance-toolbar { background: var(--surface-inset) !important; }
.theme-spots .card .point-cnt,
.theme-users .card .point-cnt { color: #a0a0aa; }
.theme-spots .spot-location-refresh { color: var(--neon-blue) !important; }
.theme-spots .spot-distance { background: rgba(142, 142, 150, 0.1); color: #8e8e96; }
.theme-spots .spot-distance.unavailable { background: rgba(255, 255, 255, 0.05); color: #838391; }
.theme-spots .point-cnt { color: var(--muted); }
.theme-spots .spot-edit-overlay { background: rgba(10, 10, 11, 0.76); backdrop-filter: blur(8px); }
.theme-spots .spot-edit-dialog {
  border: 1px solid var(--border);
  background: var(--surface) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), inset 1px 1px rgba(255, 255, 255, 0.07);
}
.theme-spots .spot-edit-heading { border-color: var(--border); }
.theme-spots .spot-edit-heading h2 { color: #efeff1; }
.theme-spots .spot-edit-dialog label span { color: #a0a0aa; }
.theme-spots .spot-edit-close { background: #303036; color: #e0e0e3; }
.theme-spots .btn[aria-label="네이버지도"] {
  border-color: #ff3b30 !important;
  background: #ff3b30 !important;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.22), 0 5px 10px rgba(0, 0, 0, 0.24) !important;
  color: #efeff1 !important;
}
.theme-spots .btn[aria-label="T맵 길안내"] {
  border-color: #ff3b30 !important;
  background: #ff3b30 !important;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.2), 0 5px 10px rgba(0, 0, 0, 0.24) !important;
  color: #efeff1 !important;
}

/* Information library */
.theme-info header.nav {
  border-color: var(--border);
  background: rgba(28, 28, 31, 0.91);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}
.theme-info .nav-inner > div:first-of-type { width: 100%; min-width: 0; gap: 8px !important; flex-shrink: 1 !important; }
.theme-info .nav-search { min-width: 0; max-width: none; }
.theme-info .nav-search input { background: var(--surface-inset) !important; }
.theme-info .filter-pill.active { border-color: rgba(255, 59, 48, 0.62) !important; color: #efeff1 !important; }
.theme-info .cat-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-soft);
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.07), 0 4px 9px rgba(0, 0, 0, 0.2);
  color: #b8b8c0;
}
.theme-info .cat-chip:hover { border-color: rgba(255, 59, 48, 0.58); color: #ff3b30; }
.theme-info .grid .card {
  border-radius: var(--content-card-radius);
  box-shadow: var(--content-card-shadow) !important;
}
.theme-info .card-thumb { background: #1e1e22; }
.theme-info .card-body { border-top: 1px solid rgba(255, 255, 255, 0.055); }
.theme-info .card-title { color: #efeff1; }
.theme-info .card-caption { color: #a0a0aa; }
.theme-info .body-card,
.theme-info .ach-card { border-radius: var(--content-card-radius); }
.theme-info .ach-card { border-color: var(--content-card-border) !important; }
.theme-info .section-label::before { background: linear-gradient(90deg,var(--neon-pink),var(--neon-purple)); box-shadow: 0 0 8px rgba(255, 59, 48, 0.3); }
.theme-info .content code,
.theme-info .content blockquote,
.theme-info .content table th { background: #1d1d21; }
.theme-info .content table td,
.theme-info .content table th { border-color: var(--border); }
.theme-info .editor-host,
.theme-info .ql-toolbar.ql-snow,
.theme-info .ql-container.ql-snow,
.theme-info .ql-editor { border-color: var(--border); background: #202024; color: #efeff1; }
.theme-info .ql-snow .ql-stroke { stroke: #c7c7cd; }
.theme-info .ql-snow .ql-fill { fill: #c7c7cd; }
.theme-info .ql-snow .ql-picker { color: #c7c7cd; }
.theme-info .ql-snow .ql-picker-options { border-color: var(--border); background: #29292e; }
.theme-info .thumb-zone { border-color: #52525c; background: #202024; color: var(--muted); }
.theme-info #confirm-overlay { background: rgba(10, 10, 11, 0.78) !important; backdrop-filter: blur(8px); }
.theme-info #confirm-overlay > div,
.theme-info #image-action-menu { border-color: var(--border) !important; background: #25252a !important; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.58) !important; }
.theme-info #confirm-overlay > div,
.theme-info #image-action-menu { color: #efeff1; }
.theme-info #toast-box { background: rgba(36, 36, 41, 0.96) !important; border: 1px solid var(--border); }

/* Video library */
.theme-videos .library-heading small { color: var(--neon-pink); text-shadow: 0 0 9px rgba(255, 59, 48, 0.24); }
.theme-videos .video-sort-select { color: var(--neon-cyan); }
body.bass-theme.theme-videos .video-filters button {
  border-color: color-mix(in srgb, var(--category-accent) 38%, rgba(255, 255, 255, 0.08)) !important;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--category-accent) 14%, #303036),
    #222226 72%
  ) !important;
  color: color-mix(in srgb, var(--category-accent) 62%, #efeff1) !important;
}
body.bass-theme.theme-videos .video-filters button.active {
  border-color: var(--category-accent) !important;
  background: linear-gradient(135deg, var(--category-accent), var(--category-accent-end)) !important;
  box-shadow:
    inset 1px 1px rgba(255, 255, 255, 0.16),
    inset -1px -1px rgba(0, 0, 0, 0.2),
    0 5px 13px var(--category-shadow) !important;
  color: #efeff1 !important;
}
.theme-videos .video-card {
  overflow: hidden;
  border-radius: var(--content-card-radius);
}
.theme-videos .video-title,
.theme-videos .video-card:hover .video-title {
  border-bottom-color: rgba(255, 255, 255, 0.07);
  background: linear-gradient(145deg, #2c2c31, #242428 64%, #202024) !important;
  color: #efeff1;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.07), inset 0 -1px rgba(0, 0, 0, 0.4);
}
.theme-videos .video-title::before { background: var(--category-accent); box-shadow: none; }
.theme-videos .video-thumbnail { background: #1b1b1f; }
.theme-videos .feed-spinner { border-color: #3e3e45; border-top-color: var(--neon-pink); }

/* Rig guide */
.theme-rigs .eyebrow { color: var(--neon-cyan); text-shadow: 0 0 9px rgba(255, 59, 48, 0.24); }
.theme-rigs .intro { color: var(--muted); }
body.bass-theme.theme-rigs .categories button {
  border-color: color-mix(in srgb, var(--category-accent) 38%, rgba(255, 255, 255, 0.08)) !important;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--category-accent) 14%, #303036),
    #222226 72%
  ) !important;
  color: color-mix(in srgb, var(--category-accent) 62%, #efeff1) !important;
}
body.bass-theme.theme-rigs .categories button.active {
  border-color: var(--category-accent) !important;
  background: linear-gradient(135deg, var(--category-accent), var(--category-accent-end)) !important;
  box-shadow:
    inset 1px 1px rgba(255, 255, 255, 0.16),
    inset -1px -1px rgba(0, 0, 0, 0.2),
    0 5px 13px var(--category-shadow) !important;
  color: #efeff1 !important;
}
.theme-rigs .rig-card { border-radius: var(--content-card-radius); }
.theme-rigs .rig-thumb-frame { border-color: rgba(255, 255, 255, 0.07); }
.theme-rigs .rig-thumb-type {
  border-color: color-mix(in srgb, var(--category-accent) 74%, rgba(255, 255, 255, 0.24));
  background: linear-gradient(135deg, var(--category-accent), var(--category-accent-end));
  box-shadow: 0 3px 9px var(--category-shadow);
  color: #efeff1;
}
.theme-rigs .rig-thumb-terrain { background: rgba(24, 24, 28, 0.9); color: #d5d5d9; backdrop-filter: blur(7px); }
.theme-rigs .rig-thumb-terrain b { color: var(--neon-pink); }
.theme-rigs .rig-card-copy { border-top: 1px solid rgba(255, 255, 255, 0.06); background: linear-gradient(145deg,#28282d,#222226); }
.theme-rigs .rig-label { color: #efeff1; }
.theme-rigs .rig-card-arrow { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(255, 59, 48, 0.34); }
.theme-rigs .rig-card-badge {
  border: 1px solid color-mix(in srgb, var(--category-accent) 42%, transparent);
  background: color-mix(in srgb, var(--category-accent) 13%, #242429);
  color: color-mix(in srgb, var(--category-accent) 68%, #efeff1);
}
.theme-rigs .rig-modal-backdrop { background: rgba(10, 10, 11, 0.8); backdrop-filter: blur(10px); }
.theme-rigs .rig-modal-dialog {
  border: 1px solid var(--border);
  background: #1b1b1e;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6), inset 1px 1px rgba(255, 255, 255, 0.05);
}
.theme-rigs .rig-modal-bar { border-color: var(--border); background: #25252a; }
.theme-rigs .rig-modal-bar strong { color: #efeff1; }
.theme-rigs .rig-modal-bar button { background: #303036; color: #cfcfd5; box-shadow: inset 1px 1px rgba(255, 255, 255, 0.08), 0 5px 10px rgba(0, 0, 0, 0.28); }
.theme-rigs .viewer h2,
.theme-rigs .viewer strong,
.theme-rigs .explain strong { color: #efeff1; }
.theme-rigs .viewer-head p { color: #9595a1; }
.theme-rigs .viewer,
.theme-rigs .explain > div { border-color: var(--border); background: var(--surface); box-shadow: var(--lifted-shadow); }
.theme-rigs .viewer-head span { background: rgba(255, 59, 48, 0.11); color: #ff3b30; }
.theme-rigs .timeline button { background: #2c2c31; color: #9797a3; }
.theme-rigs .timeline button.done { background: rgba(255, 59, 48, 0.09); color: var(--neon-cyan); }
.theme-rigs .timeline button.active {
  border: 1px solid color-mix(in srgb,var(--control-accent) 30%,rgba(255, 255, 255, 0.08));
  background: linear-gradient(145deg,color-mix(in srgb,var(--control-accent) 7%,#33333a),#212125);
  color: color-mix(in srgb,var(--control-accent) 35%,#efeff1);
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.08),0 5px 10px rgba(0, 0, 0, 0.25);
}
.theme-rigs .explain p { color: #c5c5cc; }
.theme-rigs .instruction-copy small,
.theme-rigs .explain small { color: #9595a1; }
body.bass-theme .menu-download-btn {
  border: 1px solid color-mix(in srgb,var(--control-accent) 42%,rgba(255, 255, 255, 0.08)) !important;
  background: linear-gradient(145deg,color-mix(in srgb,var(--control-accent) 11%,#35353b),#1e1e22) !important;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.08),0 6px 12px rgba(0, 0, 0, 0.28) !important;
  color: color-mix(in srgb,var(--control-accent) 28%,#efeff1) !important;
}

/* Equipment */
.theme-equipment .page-heading h1 { color: var(--text); }
.theme-equipment #setup-count { color: var(--neon-lime); }
.theme-equipment .equipment-table { color: #e6e6e8; }
.theme-equipment .equipment-table th { border-color: var(--border); background: #2c2c31; color: #9d9da9; }
.theme-equipment .equipment-table td { border-color: var(--border); }
.theme-equipment .equipment-table tbody tr.user-tone-1 td { background: #26262b; }
.theme-equipment .equipment-table tbody tr.user-tone-2 td { background: #28282d; }
.theme-equipment .equipment-table tbody tr.user-tone-3 td { background: #27272b; }
.theme-equipment .equipment-table tbody tr.user-tone-4 td { background: #27272d; }
.theme-equipment .equipment-table tbody tr.user-tone-1 td.eq-user { box-shadow: inset 4px 0 var(--neon-lime); color: #5faf7a; }
.theme-equipment .equipment-table tbody tr.user-tone-2 td.eq-user { box-shadow: inset 4px 0 var(--neon-blue); color: #c5d1dc; }
.theme-equipment .equipment-table tbody tr.user-tone-3 td.eq-user { box-shadow: inset 4px 0 var(--neon-yellow); color: #ff3b30; }
.theme-equipment .equipment-table tbody tr.user-tone-4 td.eq-user { box-shadow: inset 4px 0 var(--neon-purple); color: #d1cae7; }
.theme-equipment .equipment-table td.eq-lure strong,
.theme-equipment .equipment-table td.eq-line strong { color: #efeff1; }
.theme-equipment .equipment-table small { color: #9595a1; }
.theme-equipment .equipment-detail { background: #1e1e22; }
.theme-equipment .equipment-detail-source { color: #5faf7a; }
.theme-equipment .modal-backdrop { background: rgba(10, 10, 11, 0.8); backdrop-filter: blur(9px); }
.theme-equipment .modal-panel { border: 1px solid var(--border); background: #1b1b1f; box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.6), inset 1px 1px rgba(255, 255, 255, 0.05); }
.theme-equipment .modal-heading { border-color: var(--border); }
.theme-equipment .modal-heading h2,
.theme-equipment #equipment-form > label,
.theme-equipment #rod-fields > label,
.theme-equipment #reel-fields > label { color: #efeff1; }
.theme-equipment .modal-close { background: #303036; color: #d5d5d9; }
.theme-equipment .model-results { border-color: var(--border); background: #25252a; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.52); }
.theme-equipment .model-result {
  background: #25252a;
  color: #efeff1;
}
.theme-equipment .model-result + .model-result { border-color: var(--border); }
.theme-equipment .model-result strong,
.theme-equipment .direct-result strong { color: #efeff1; }
.theme-equipment .model-result small,
.theme-equipment .model-result .match-label { color: #5faf7a; }
.theme-equipment .catalog-selection {
  border-color: rgba(255, 59, 48, 0.24);
  background: #212126;
}
.theme-equipment .catalog-selection strong { color: #efeff1; }
.theme-equipment .catalog-selection p,
.theme-equipment .catalog-summary,
.theme-equipment .catalog-result-summary { color: #b7b7c0; }
.theme-equipment #equipment-form select option {
  background: #25252a;
  color: #efeff1;
}
.theme-equipment .model-result:active,
.theme-equipment .direct-result { background: #202024; }
.theme-equipment .direct-range-field { border-color: var(--border); background: #202024; }
.theme-equipment .cancel-button { border-color: var(--border); background: #29292e; color: #a9a9b2; }

/* Full-screen map */
.theme-map.map-body { background: #121215; }
.theme-map .map-app { background: #161619; }
.theme-map #map.fishing-map { filter: none; }
.theme-map .map-search,
.theme-map .map-filter,
.theme-map .map-controls button,
.theme-map .map-help,
.theme-map .map-point-label {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(36, 36, 41, 0.94);
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.07), 0 8px 18px rgba(0, 0, 0, 0.35);
  color: #efeff1;
  backdrop-filter: blur(12px);
}
.theme-map .map-search-wrap { border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.theme-map .map-search { border-radius: 999px; }
.theme-map .map-search input { box-shadow: none !important; background: transparent !important; }
.theme-map .map-search button { border-color: var(--border); background: #2c2c31; color: var(--neon-cyan); }
.theme-map .map-filter.active {
  border-width: 1px;
  border-color: color-mix(in srgb,var(--control-accent) 30%,rgba(255, 255, 255, 0.08));
  background: linear-gradient(145deg,color-mix(in srgb,var(--control-accent) 7%,#33333a),#212125);
  color: color-mix(in srgb,var(--control-accent) 35%,#efeff1);
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.08),0 6px 12px rgba(0, 0, 0, 0.28);
}
.theme-map .map-search-results { border-color: var(--border); background: #222226; box-shadow: 0 18px 38px rgba(0, 0, 0, 0.56); }
.theme-map .map-search-result { border-color: var(--border); color: #efeff1; }
.theme-map .map-search-result:focus-visible { background: #303036; }
.theme-map .map-search-attribution,
.theme-map .map-search-empty { color: #a0a0aa; }
.theme-map .map-sheet { border-color: var(--border); background: #1c1c20; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6); }
.theme-map .map-sheet h2,
.theme-map .map-sheet strong { color: #efeff1; }
.theme-map .map-sheet strong.reservoir-metric-value { color: #8e8e96; }
.theme-map .map-sheet-handle { background: #54545e; }
.theme-map .map-sheet-close { background: #303036; color: #d5d5da; }
.theme-map .map-category-badge { background: rgba(142, 142, 150, 0.11); color: #8e8e96; }
.theme-map .map-sheet-coordinates,
.theme-map .map-sheet-memo,
.theme-map .map-public-details,
.theme-map .map-conditions,
.theme-map .map-water-level,
.theme-map .map-layer-option { border-color: var(--border); background: #25252a; color: #dadadf; }
.theme-map .map-action { border-color: var(--border); background: #2b2b30; color: #d6d6db; }
.theme-map .map-action-primary,
.theme-map #point-favorite.active {
  border-width: 1px !important;
  border-color: color-mix(in srgb,var(--control-accent) 42%,rgba(255, 255, 255, 0.08)) !important;
  background: linear-gradient(145deg,color-mix(in srgb,var(--control-accent) 11%,#35353b),#1e1e22) !important;
  color: color-mix(in srgb,var(--control-accent) 28%,#efeff1) !important;
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.08),0 6px 12px rgba(0, 0, 0, 0.28) !important;
}

/* Fishing game: preserve the scene, align HUD and controls with the shared graphite tiles. */
body.theme-game { background: #0a0a0b; }
.theme-game h1,
.theme-game h2,
.theme-game h3,
.theme-game strong { color: #efeff1; }
.theme-game .scene-grade {
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.3), transparent 34%, rgba(10, 10, 11, 0.76)),
    radial-gradient(circle at 70% 30%, rgba(255, 59, 48, 0.08), transparent 35%);
}
.theme-game .back-button,
.theme-game .sound-button,
.theme-game .wallet,
.theme-game .quest-card,
.theme-game .fight-hud,
.theme-game .technique-panel,
.theme-game .how-to-play > span,
.theme-game .record-row > div,
.theme-game .rod-option {
  border-color: rgba(255, 255, 255, 0.13);
  background: linear-gradient(145deg,rgba(49, 49, 55, 0.88),rgba(24, 24, 28, 0.9));
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.09), inset -1px -1px rgba(0, 0, 0, 0.42), 0 9px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}
.theme-game .location-chip i { background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); }
.theme-game .eyebrow i { background: var(--neon-pink); box-shadow: 0 0 10px rgba(255, 59, 48, 0.55); }
.theme-game .intro-copy h1 em { color: var(--neon-yellow); text-shadow: 0 0 14px rgba(255, 59, 48, 0.2); }
.theme-game .sound-button[aria-pressed="true"] { border-color: rgba(255, 59, 48, 0.62); color: var(--neon-cyan); }
.theme-game .rod-option.selected { border: 1px solid rgba(255, 59, 48, 0.42); background: linear-gradient(145deg,rgba(48, 48, 54, 0.96),rgba(26, 26, 29, 0.96)); box-shadow: inset 1px 1px rgba(255, 255, 255, 0.08),0 6px 12px rgba(0, 0, 0, 0.25); }
.theme-game .primary-button { border: 1px solid rgba(255, 59, 48, 0.42); background: linear-gradient(145deg,#34343b,#282e37 74%); color: #ffb1ac; box-shadow: inset 1px 1px rgba(255, 255, 255, 0.08),0 8px 0 rgba(0, 0, 0, 0.36); text-shadow: none; }
.theme-game .cast-button { border: 1px solid rgba(255, 59, 48, 0.42); background: linear-gradient(145deg,#34343b,#282e37 74%); color: #ffb1ac; box-shadow: inset 0 -6px 0 rgba(72, 29, 28, 0.55),0 8px 0 rgba(72, 29, 28, 0.7); }
.theme-game .cast-button small { color: #ff3b30; }
.theme-game .cast-button.strike { border: 1px solid rgba(255, 59, 48, 0.62); background: radial-gradient(circle at 50% -20%,rgba(255, 59, 48, 0.24),transparent 66%),linear-gradient(145deg,#323239,#3e1b1c 74%); color: #ffb3ad; box-shadow: inset 0 -6px 0 rgba(62, 27, 28, 0.58),0 0 14px rgba(255, 59, 48, 0.14),0 8px 0 rgba(72, 29, 28, 0.7); }
.theme-game .reel-button { border: 1px solid rgba(255, 59, 48, 0.42); background: radial-gradient(circle at 45% 16%,rgba(255, 59, 48, 0.1),transparent 45%),radial-gradient(circle at 50% 50%,#323239,#481d1c 72%); color: #ffb1ac; box-shadow: inset 0 -10px 0 rgba(72, 29, 28, 0.45),0 9px 0 rgba(72, 29, 28, 0.72); text-shadow: none; }

@media (hover: hover) {
  body.bass-theme .card:hover,
  body.bass-theme .video-card:hover,
  body.bass-theme .rig-card:hover,
  body.bass-theme .champion-item:hover {
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: var(--content-card-shadow) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bass-theme *,
  body.bass-theme *::before,
  body.bass-theme *::after { transition-duration: .001ms !important; }
}

/* Ultron theme: near-black canvas, graphite cards, red signal, sharp sans titles. */
html { background: #0b0b0d; }
body.bass-theme { --control-accent: #ff3b30; --accent: #ff3b30; --orange: #ff3b30; --teal: #ff3b30;
  background: radial-gradient(circle at 100% -10%, rgba(255, 59, 48, .10), transparent 26rem), linear-gradient(160deg, #141417 0%, #0b0b0d 60%); background-attachment: fixed; }
body.bass-theme.theme-ranking, body.bass-theme.theme-history, body.bass-theme.theme-users, body.bass-theme.theme-info, body.bass-theme.theme-videos { --control-accent: #ff3b30; }
body.bass-theme h1, body.bass-theme h2 { font-weight: 800; letter-spacing: -.02em; }
