:root { --ink:#061a24; --paper:#f4f7f5; --line:#d8e1df; --muted:#61747a; --sea:#006d77; --acid:#dff44a; --orange:#f5831f; --blue:#1a93b8; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.topbar { height: 78px; padding: 0 max(24px, calc((100vw - 1480px) / 2)); display: flex; align-items: center; gap: 22px; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(244,247,245,.93); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #d9e2e3; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand b { display: block; font-size: 16px; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; text-transform: uppercase; letter-spacing: .12em; }
.main-menu { display: flex; align-items: center; gap: 6px; margin-right: auto; }
.auth-actions { display: flex; align-items: center; gap: 6px; }
.main-menu a, .bottom-menu a, .auth-link { color: #31545a; text-decoration: none; border: 1px solid #bfd0cd; background: #fff; padding: 9px 12px; font-size: 11px; font-weight: 800; }
.main-menu a.active, .bottom-menu a.active, .auth-link:hover { border-color: var(--ink); background: var(--ink); color: var(--acid); }
.main-menu { position: relative; display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid rgba(6,26,36,.12); border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 30px rgba(5,32,43,.08); backdrop-filter: blur(14px); }
.auth-actions { gap: 5px; padding: 5px; border: 1px solid rgba(6,26,36,.12); border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 30px rgba(5,32,43,.08); backdrop-filter: blur(14px); }
.main-menu a, .auth-link { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent !important; border-radius: 999px; background: transparent !important; color: #31545a !important; padding: 9px 14px !important; line-height: 1; white-space: nowrap; }
.main-menu a:hover, .auth-link:hover { border-color: rgba(6,26,36,.1) !important; background: rgba(6,26,36,.06) !important; color: var(--ink) !important; }
.main-menu a.active, .auth-link.active { border-color: rgba(6,26,36,.92) !important; background: var(--ink) !important; color: var(--acid) !important; box-shadow: 0 8px 22px rgba(6,26,36,.18); }
.auth-actions .auth-link[href="/logout.php"] { color: #7a3f38 !important; }
.auth-actions .auth-link[href="/logout.php"]:hover { background: #fff1ef !important; border-color: #efc2bc !important; color: #8f2f25 !important; }
.live-chip { display: flex; align-items: center; gap: 8px; border: 1px solid #bfd0cd; border-radius: 999px; padding: 8px 12px; font-size: 11px; font-weight: 700; color: #31545a; background: #fff; }
.live-chip i { width: 8px; height: 8px; border-radius: 50%; background: #24a66b; }
.fish-page { width: min(1480px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 44px; }
.fish-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 12px; color: var(--sea); font-size: 10px; letter-spacing: .18em; font-weight: 800; }
.fish-hero h1 { margin: 0; font-size: clamp(38px, 6vw, 76px); letter-spacing: -.06em; line-height: .9; }
.fish-search { min-width: min(390px, 100%); display: flex; flex-direction: column; gap: 7px; }
.fish-search span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.fish-search input { width: 100%; border: 1px solid #bfd0cd; background: #fff; padding: 13px 14px; color: var(--ink); font-size: 14px; }
.fish-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; margin-bottom: 18px; }
.fish-summary article { padding: 20px 22px; min-height: 112px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.fish-summary article:last-child { border-right: 0; }
.fish-summary span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.fish-summary b { font-size: 34px; letter-spacing: -.05em; margin-top: 8px; }
.fish-summary small { color: #8a9b9f; font-size: 10px; margin-top: 4px; }
.fish-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.fish-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.fish-tabs button { border: 1px solid #31525e; background: #fff; color: var(--ink); padding: 11px 13px; font-size: 11px; font-weight: 900; cursor: pointer; }
.fish-tabs button.active { background: var(--acid); border-color: var(--acid); }
.source-time { color: #61747a; text-align: right; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.fish-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fish-card { display: flex; flex-direction: column; min-height: 430px; border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 44px rgba(5,32,43,.08); overflow: hidden; }
.fish-image { position: relative; height: 170px; background: radial-gradient(circle at 64% 40%, rgba(223,244,74,.28), transparent 34%), linear-gradient(135deg, #062334, #0b5966); overflow: hidden; }
.fish-image:before { content: ""; position: absolute; left: 18%; right: 18%; top: 39%; height: 28%; border-radius: 55% 45% 45% 55%; background: rgba(255,255,255,.18); box-shadow: inset -28px 0 0 rgba(223,244,74,.28); }
.fish-image:after { content: ""; position: absolute; right: 13%; top: 41%; border-left: 38px solid rgba(255,255,255,.18); border-top: 24px solid transparent; border-bottom: 24px solid transparent; }
.fish-image img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.fish-card.image-failed .fish-image img { display: none; }
.fish-card-head { padding: 20px 20px 16px; border-bottom: 1px solid var(--line); background: #061a24; color: #fff; }
.fish-card.bait .fish-card-head { background: linear-gradient(135deg, #123440, #686f12); }
.fish-card-head span { display: inline-flex; margin-bottom: 16px; padding: 6px 8px; background: rgba(255,255,255,.14); color: var(--acid); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.fish-card-head b { display: block; font-size: 24px; line-height: .98; letter-spacing: -.045em; }
.fish-card-head i { display: block; margin-top: 8px; color: #bdd1d7; font-size: 12px; }
.fish-card dl { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; padding: 16px 20px 0; }
.fish-card dt { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.fish-card dd { margin: 4px 0 0; color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.35; }
.fish-card p { margin: 0; padding: 14px 20px 0; color: #4f646a; font-size: 12px; line-height: 1.55; }
.fish-card p:last-child { padding-bottom: 20px; }
.empty-state { grid-column: 1 / -1; padding: 42px 24px; border: 1px solid var(--line); background: #fff; color: var(--muted); text-align: center; font-weight: 800; }
.bottom-menu { display: none; }
@media (max-width: 1180px) { .fish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .main-menu, .auth-link, .auth-actions { display: none; }
  .fish-page { padding-bottom: 12px; }
  .fish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-menu { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; background: rgba(244,247,245,.94); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(5,32,43,.2); }
  .bottom-menu a { text-align: center; }
}
@media (max-width: 620px) {
  .topbar { height: 67px; padding: 0 16px; }
  .live-chip { display: none; }
  .fish-page { width: calc(100% - 24px); padding-top: 34px; }
  .fish-hero { align-items: flex-start; flex-direction: column; }
  .fish-search { width: 100%; }
  .fish-summary { grid-template-columns: 1fr; }
  .fish-summary article { border-right: 0; border-bottom: 1px solid var(--line); min-height: 92px; }
  .fish-summary article:last-child { border-bottom: 0; }
  .fish-tools { align-items: flex-start; flex-direction: column; }
  .fish-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .fish-tabs button { padding: 10px 6px; }
  .source-time { text-align: left; }
  .fish-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .topbar { height: 64px; min-height: 64px; display: flex !important; justify-content: center; padding: 0 14px !important; }
  .topbar .brand { margin: 0 auto; }
  .topbar .brand-mark { width: 38px; height: 38px; }
  .topbar .brand b { font-size: 16px; }
  .topbar .brand small { font-size: 9px; }
  .topbar .main-menu, .topbar .auth-actions { display: none !important; }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .bottom-menu { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 1200; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 7px; border: 1px solid rgba(6,26,36,.14); border-radius: 18px; background: rgba(248,251,250,.94); box-shadow: 0 18px 54px rgba(5,32,43,.24); }
  .bottom-menu a { min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 7px 4px 6px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: #61747a; font-size: 10px; line-height: 1; font-weight: 900; text-align: center; text-decoration: none; letter-spacing: 0; }
  .bottom-menu a::before { content: ""; width: 22px; height: 22px; display: block; background: currentColor; mask: var(--menu-icon) center / 22px 22px no-repeat; -webkit-mask: var(--menu-icon) center / 22px 22px no-repeat; }
  .bottom-menu a[href="/"] { --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 16c3.5-4.5 8.5-6.5 15-6'/%3E%3Cpath d='M15 7l5 3-5 3'/%3E%3Cpath d='M4 18h16'/%3E%3Cpath d='M7 14l2 4'/%3E%3C/svg%3E"); }
  .bottom-menu a[href="/buoys.html"] { --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M8 7h8'/%3E%3Cpath d='M7 11h10'/%3E%3Cpath d='M9 15h6'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E"); }
  .bottom-menu a[href="/fish.html"] { --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 7c2.6 0 4.6 1.8 6 5-1.4 3.2-3.4 5-6 5H8l-5 3 2-5-2-3 2-3-2-5 5 3h8Z'/%3E%3Ccircle cx='17' cy='12' r='1'/%3E%3C/svg%3E"); }
  .bottom-menu a[href="/profile.php"] { --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 21c1.4-4 4-6 7-6s5.6 2 7 6'/%3E%3C/svg%3E"); }
  .bottom-menu a.active { border-color: rgba(6,26,36,.9); background: #061a24; color: #dff44a; box-shadow: 0 8px 20px rgba(6,26,36,.22); }
}
