* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0e1a10;
  color: #d4f0d8;
  font-family: system-ui, sans-serif;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid #1e3a22;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #1d9e75;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

header h1 {
  gap: 4px;
  font-size: 22px;
  font-weight: 700;
  color: #dff2e7;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.hub-badge {
  background: #129649;
  color: #0a1209;
  border-radius: 5px;
  padding: 1px 5px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.3px;
}

.offline-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #181818;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #666;
  margin-left: auto;
  letter-spacing: 0.5px;
}

.offline-dot {
  width: 8px;
  height: 8px;
  background: #555;
  border-radius: 50%;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.stream-wrapper {
  background: #060d07;
  border-radius: 14px;
  border: 1px solid #1e3a22;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}

#stream-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #060d07;
  transition: opacity 0.4s;
}

.loading-overlay.hidden { opacity: 0; pointer-events: none; }

.frogs-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
  align-items: start;
}

.frog-card {
  background: #111f13;
  border: 1px solid #1e3a22;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
}

.frog-card.open .frog-details-inner {
  display: flex;
}

.frog-card:hover { border-color: #2d5c35; }
.frog-card.open { border-color: #1d9e75; }

.frog-card-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}

.frog-avatar {
  width: 42px;
  height: 42px;
  background: #1e3a22;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.frog-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.frog-info .fname {
  font-size: 15px;
  font-weight: 600;
  color: #dff2e7;
}

.frog-info .fspecies {
  font-size: 12px;
  color: #4a7a55;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s;
  opacity: 0.35;
}

.frog-card.open .chevron { transform: rotate(180deg); opacity: 0.7; }

.frog-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.frog-card.open .frog-details { max-height: 500px; }

.frog-details-inner {
  border-top: 1px solid #1a2e1c;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.dl { color: #4a7a55; flex-shrink: 0; font-size: 12px; }
.dv { color: #a3e6b4; text-align: right; }

.tag-section { display: flex; flex-direction: column; gap: 5px; }
.tag-label { font-size: 12px; color: #4a7a55; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }

.tag {
  background: #1a2e1c;
  border: 1px solid #2d5c35;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  color: #7ec491;
}

.tag.dislike {
  background: #231414;
  border-color: #4a2020;
  color: #c47c7c;
}

.personality {
  font-size: 12px;
  color: #5a8a68;
  font-style: italic;
  line-height: 1.6;
  border-top: 1px solid #1a2e1c;
  padding-top: 10px;
}

footer {
  text-align: center;
  margin-top: 36px;
  font-size: 12px;
  color: #2d5c35;
  line-height: 2;
}

.heart {
  display: inline-block;
  color: #c0415a;
  animation: heartbeat 1.2s ease infinite;
  font-size: 14px;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.2); }
  56% { transform: scale(1); }
}

@media (max-width: 640px) {
  .frogs-bar { grid-template-columns: 1fr; }
  header h1 { gap: 4px; font-size: 18px; }
  header { padding: 14px 16px; }
}

.cursor-shimmer {
  position: fixed;
  width: 240px;
  height: 240px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(111, 207, 138, 0.35) 0%, rgba(111, 207, 138, 0.12) 30%, transparent 65%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 1.5s ease;
  z-index: 9999;
  mix-blend-mode: screen;
  filter: blur(8px);
  animation: shimmerPulse 3s ease-in-out infinite;
}

.cursor-shimmer.visible {
  opacity: 1;
}

@keyframes shimmerPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}
