﻿@import url('/design/live-premium.css');

body {
  --theme-a: #0b6dff;
  --theme-b: #00a3ff;
  --theme-c: #a9dfff;
}

.hero-search .hero-grid {
  align-items: stretch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn-soft {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 29, 49, 0.1);
  color: var(--text-0);
}

.btn-soft:hover {
  transform: translateY(-2px);
}

.info-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 29, 49, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.info-card::before {
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.info-card.discord::before {
  background: linear-gradient(120deg, #5865f2, #8592ff);
}

.info-card.android::before {
  background: linear-gradient(120deg, #0ea76d, #18d59a);
}

.info-card.ios::before {
  background: linear-gradient(120deg, #111827, #4b5563);
}

.info-card h3 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.info-card p {
  color: var(--text-1);
  margin-top: 10px;
}

.info-card .btn {
  margin-top: 16px;
}

.search-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.search-limit-card,
.search-panel {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 29, 49, 0.1);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 26px;
}

.search-panel {
  order: 3;
}

.promoted-streamer-card {
  backdrop-filter: blur(14px);
  background: #ffffff;
  border: 1px solid rgba(17, 29, 49, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(12, 28, 60, 0.16);
  display: grid;
  gap: 16px;
  order: 2;
  padding: 22px;
  transition: transform 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard), border-color 220ms ease;
}

.promoted-streamer-card:hover {
  border-color: rgba(11, 109, 255, 0.28);
  box-shadow: 0 22px 40px rgba(11, 109, 255, 0.2);
  transform: translateY(-2px);
}

.promoted-streamer-header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(17, 29, 49, 0.09);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
}

.promoted-badge {
  background: linear-gradient(130deg, var(--theme-a), var(--theme-b));
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  min-height: 26px;
  padding: 5px 10px;
  text-transform: uppercase;
}

.promoted-title {
  color: var(--text-0);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.promoted-description {
  color: var(--text-1);
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0;
}

.promoted-streamer-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 170px));
  justify-content: flex-start;
}

.promoted-streamer-body {
  align-items: center;
  background: linear-gradient(170deg, rgba(243, 248, 255, 0.95), rgba(236, 245, 255, 0.85));
  border: 1px solid rgba(11, 109, 255, 0.16);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  padding: 12px;
}

.promoted-streamer-image {
  border: 2px solid rgba(11, 109, 255, 0.28);
  border-radius: 50%;
  clip-path: circle(50%);
  box-shadow: 0 10px 22px rgba(11, 109, 255, 0.2);
  display: block;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.promoted-streamer-meta {
  display: grid;
  justify-items: center;
}

.promoted-username {
  color: var(--text-0);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.search-limit-card {
  order: 1;
}

.search-limit-card h3 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.26rem;
  letter-spacing: -0.02em;
}

.limit-count {
  align-items: baseline;
  color: var(--text-1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.limit-value {
  color: var(--theme-a);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
}

.limit-label {
  font-size: 0.92rem;
  font-weight: 600;
}

.search-limit-card p {
  color: var(--text-1);
  margin-top: 8px;
}

.limit-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: #b91c1c;
  font-weight: 650;
  margin-top: 10px;
  padding: 10px 12px;
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-input {
  background: rgba(244, 248, 255, 0.82);
  border: 2px solid rgba(17, 29, 49, 0.12);
  border-radius: 999px;
  flex: 1;
  font-family: inherit;
  font-size: 1rem;
  min-height: 52px;
  padding: 0 20px;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.search-input:focus {
  border-color: var(--theme-a);
  box-shadow: 0 0 0 3px rgba(11, 109, 255, 0.16);
  outline: none;
}

.search-button {
  align-items: center;
  background: linear-gradient(140deg, var(--theme-a), var(--theme-b));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(11, 109, 255, 0.28);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 52px;
  min-width: 130px;
  padding: 0 22px;
  transition: transform 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard), opacity 220ms ease;
}

.search-button:not(:disabled):hover {
  transform: translateY(-2px);
}

.search-button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.loading-spinner {
  animation: spin 1s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  display: inline-block;
  height: 17px;
  width: 17px;
}

.results-section {
  display: none;
  order: 4;
}

.results-section.active {
  display: block;
}

.results-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.result-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 29, 49, 0.1);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.result-card::before {
  background: linear-gradient(100deg, var(--theme-a), var(--theme-b));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.result-username {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
}

.result-stat {
  align-items: center;
  color: var(--text-1);
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.result-viewers {
  background: rgba(243, 247, 255, 0.9);
  border: 1px solid rgba(17, 29, 49, 0.08);
  border-radius: 14px;
  margin-top: 14px;
  padding: 12px;
}

.result-viewers-title {
  color: var(--text-0);
  font-size: 0.86rem;
  font-weight: 700;
}

.result-viewers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.viewer-tag {
  background: linear-gradient(140deg, var(--theme-a), var(--theme-b));
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 650;
  min-height: 26px;
  padding: 5px 10px;
}

.app-store-popup {
  align-items: center;
  background: rgba(17, 20, 45, 0.72);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1600;
}

.app-store-popup.active {
  display: flex;
}

.app-store-popup-content {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  max-height: 92vh;
  max-width: min(92vw, 760px);
  overflow-y: auto;
  padding: 24px;
  position: relative;
  text-align: center;
  width: 100%;
}

.app-store-popup-close {
  background: rgba(17, 20, 45, 0.08);
  border: 0;
  border-radius: 50%;
  color: var(--text-0);
  cursor: pointer;
  font-size: 1.24rem;
  height: 36px;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
}

.app-store-popup-close:disabled,
.app-store-popup-close.is-locked {
  cursor: not-allowed;
  opacity: 0.52;
}

.app-store-popup-badge {
  align-items: center;
  background: rgba(11, 109, 255, 0.1);
  border-radius: 999px;
  color: var(--theme-a);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 650;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 30px;
  padding: 0 12px;
}

.app-store-popup-content h2 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.app-store-popup-content p {
  color: var(--text-1);
  margin-top: 10px;
}

.app-store-popup-video {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  display: block;
  height: auto;
  margin: 16px auto 0;
  max-height: 58vh;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.app-store-popup-timer {
  color: var(--theme-a);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 10px;
  min-height: 1.2em;
}

.app-store-popup-button {
  align-items: center;
  background: #111827;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 14px;
  min-height: 52px;
  padding: 8px 14px;
  width: 100%;
}

.app-store-popup-button-instagram {
  background: linear-gradient(120deg, #f58529, #dd2a7b, #8134af);
}

.app-store-popup-button-tiktok {
  background: #0f1116;
}

.app-store-popup-button .social-icon {
  display: inline-block;
  flex: 0 0 16px;
  height: 16px;
  max-height: 16px;
  max-width: 16px;
  width: 16px;
}

.social-icon-wrap {
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.instagram-icon-wrap {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.tiktok-icon-wrap {
  background: #ffffff;
}

.app-store-popup-button-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
  text-align: left;
}

.app-store-popup-button-label strong {
  color: #ffffff;
  font-size: 0.95rem;
}

.app-store-popup-button-label small {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.76rem;
  font-weight: 600;
}

.app-store-popup-note {
  color: var(--text-1);
  font-size: 0.92rem;
  margin-top: 8px;
}

.confetti-canvas {
  height: 100vh;
  inset: 0;
  pointer-events: none;
  position: fixed;
  width: 100vw;
  z-index: 1650;
}

@media (max-width: 1130px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    flex-direction: column;
  }

  .search-button,
  .search-input {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .search-limit-card,
  .search-panel,
  .info-card,
  .promoted-streamer-card {
    padding: 20px;
  }

  .promoted-streamer-body {
    align-items: flex-start;
  }

  .app-store-popup {
    padding: 14px;
  }

  .app-store-popup-content {
    max-height: 92vh;
    max-width: 94vw;
    padding: 18px;
  }

  .app-store-popup-video {
    aspect-ratio: 16 / 9;
    max-height: 38vh;
    width: 100%;
  }
}
