:root {
  --bg: #07152d;
  --panel: #11233f;
  --panel-2: #1b3154;
  --border: #2b476d;
  --text: #eef4ff;
  --sub: #9fb8de;
  --accent: #7fb3ff;
  --button: #173154;
  --button-hover: #21406c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

.page {
  padding: 16px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 6px 0 0;
  color: var(--sub);
  font-size: 14px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--sub);
}

select,
button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--button);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}

button {
  cursor: pointer;
}

button:hover,
select:hover {
  background: var(--button-hover);
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: linear-gradient(180deg, #223a60, #1d3356);
  border-bottom: 1px solid var(--border);
}

.card-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.ticker {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.company-name {
  color: var(--sub);
  font-size: 12px;
  line-height: 1.2;
}
.label {
  color: var(--sub);
  font-size: 12px;
}

.badge {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frame {
  width: 100%;
  height: 190px;
  border: 0;
  display: block;
  background: #091628;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--sub);
  text-align: center;
}

@media (max-width: 640px) {
  .page {
    padding: 12px;
  }

  .title {
    font-size: 24px;
  }

  .frame {
    height: 170px;
  }
}
