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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1f2937;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.header p {
  color: #6b7280;
  max-width: 64rem;
  margin: 0 auto;
  font-size: 1rem;
}

/* SEO 설명 박스 */
.seo-box {
  margin: 20px 0 24px;
  padding: 16px 18px;
  background: #f7f8fa;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
}

.seo-box .seo-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.seo-box .seo-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.search-container {
  max-width: 28rem;
  margin: 0 auto 2rem auto;
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  width: 1.25rem;
  height: 1.25rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.game-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-image-container {
  position: relative;
  overflow: hidden;
}

.game-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.3s;
}

.game-card:hover .game-image {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover .play-overlay {
  opacity: 1;
}

.play-button {
  background: #db2777;
  color: white;
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  transform: scale(1.1);
}

.play-button:hover {
  background: #be185d;
  transform: scale(1.25);
}

.play-icon {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

.provider-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #2563eb;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.game-info {
  padding: 1rem;
}

.game-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.play-free-button {
  width: 100%;
  background: #db2777;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.play-free-button:hover {
  background: #be185d;
}

.no-results {
  text-align: center;
  padding: 3rem 0;
}

.no-results-title {
  color: #6b7280;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.no-results-subtitle {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer {
  text-align: center;
  margin-top: 2rem;
}

.main-button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.main-button:hover {
  background: #1d4ed8;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .header p {
    font-size: 0.875rem;
  }
}
