

:root {
  --bg: #ffffff;
  --text: #111;
  --card: #f2f2f2;
  --border: #ddd;
}

[data-theme="dark"] {
  --bg: #0f0f14;
  --text: #f5f5f5;
  --card: #1c1c24;
  --border: #2f2f3a;
}

* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  padding: 2rem 1rem 1rem;
  text-align: center;
  position: relative;
}

header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0;
}

header p {
  opacity: 0.7;
  margin-top: 0.5rem;
}

.theme-toggle {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  cursor: pointer;
  font-size: 1.3rem;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.icon-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
}

.icon-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 160px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.icon-card svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.add-card {
  font-size: 3rem;
  font-weight: 300;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

.poster-section {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem 1rem;
}

.poster-frame {
  width: min(995px, 90%);
  aspect-ratio: 1600 / 608;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: 0.2s ease;
}

.poster-frame canvas,
.poster-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.poster-frame:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}

.icon-caption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}
.icon-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
