/* 컨티시니 CSS - 색상 2개 */

/* Google Fonts Jua 폰트 (둥근체) */
@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

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

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #1a0a0a;
  color: #f5e6d3;
  line-height: 1.8;
  font-size: 18px;
}

.header {
  text-align: center;
  padding: 4rem 1rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header > * {
  position: relative;
  z-index: 1;
}

.header::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 700px;
  background: linear-gradient(
    180deg,
    rgba(212, 196, 168, 0.35) 0%,
    rgba(212, 196, 168, 0.15) 30%,
    rgba(212, 196, 168, 0.05) 60%,
    transparent 100%
  );
  clip-path: polygon(40% 0%, 60% 0%, 100% 100%, 0% 100%);
  filter: blur(10px);
  animation: spotlight 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.header::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(212, 196, 168, 0.6) 0%, rgba(212, 196, 168, 0.2) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(15px);
  animation: spotlightGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
}

@keyframes spotlight {
  0% {
    opacity: 0.4;
    transform: translateX(-50%) skewX(2deg) scaleY(0.95);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) skewX(-1deg) scaleY(1.05);
  }
  100% {
    opacity: 0.5;
    transform: translateX(-50%) skewX(-2deg) scaleY(1);
  }
}

@keyframes spotlightGlow {
  0% {
    opacity: 0.6;
    transform: translateX(-50%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

.app-title {
  font-size: 5rem;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
  color: #f5e6d3;
  font-family: 'Jua', sans-serif;
  text-align: center;
  padding: 0;
}

.app-title .letter {
  display: inline-block;
  transform: rotate(calc(var(--i) * 25deg));
  transform-origin: center 350px;
}

.mascot {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border: 3px solid #5c1010;
  border-radius: 50%;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  flex-wrap: wrap;
}

.tab {
  padding: 1rem 2.5rem;
  border: 2px solid #5c1010;
  border-radius: 50px;
  background: transparent;
  color: #f5e6d3;
  font-size: 1.3rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab:hover {
  border-color: #5c1010;
  transform: translateY(-3px);
}

.tab.active {
  background: #5c1010;
  color: #f5e6d3;
}

.search-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  padding: 1rem 2rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  align-items: center;
}

.section-title {
  font-size: 1.8rem;
  color: #f5e6d3;
  text-align: center;
  margin-bottom: 0.5rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid #5c1010;
  border-radius: 12px;
  background: #0d0505;
  color: #f5e6d3;
  font-size: 1.2rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #d4c4a8;
  box-shadow: 0 0 10px rgba(212, 196, 168, 0.3);
}

.search-input::placeholder {
  color: rgba(245, 230, 211, 0.4);
}

.search-btn {
  padding: 1rem 2.5rem;
  border: 2px solid #5c1010;
  border-radius: 50px;
  background: #5c1010;
  color: #f5e6d3;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  margin-top: 0.5rem;
}

.search-input::placeholder {
  color: rgba(245, 230, 211, 0.4);
}

.search-btn {
  padding: 1.2rem 3rem;
  border: 2px solid #5c1010;
  border-radius: 15px;
  background: #5c1010;
  color: #f5e6d3;
  font-size: 1.3rem;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-3px);
}


.results-section {
  padding: 0 3rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

.results-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.card {
  background: #0d0505;
  border: 2px solid #5c1010;
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: #5c1010;
}

.card-category {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: #5c1010;
  color: #f5e6d3;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
}

.card-title {
  font-size: 1.8rem;
  margin: 1.2rem 0 0.8rem;
  color: #f5e6d3;
}

.card-desc {
  font-size: 1.1rem;
  color: rgba(245, 230, 211, 0.7);
  margin-bottom: 1.2rem;
}

.card-platform {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.platform-tag {
  padding: 0.4rem 1rem;
  background: rgba(92, 16, 16, 0.5);
  border: 1px solid #5c1010;
  border-radius: 20px;
  font-size: 0.95rem;
}

.detail-btn {
  width: 100%;
  padding: 1rem;
  border: 2px solid #5c1010;
  border-radius: 12px;
  background: transparent;
  color: #5c1010;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.detail-btn:hover {
  background: #5c1010;
  color: #f5e6d3;
}

.detail-section {
  padding: 2rem 3rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.detail-placeholder {
  text-align: center;
  padding: 4rem;
  font-size: 1.3rem;
  color: rgba(245, 230, 211, 0.4);
}

.detail-card {
  background: #0d0505;
  border: 2px solid #5c1010;
  border-radius: 25px;
  padding: 3rem;
}

.detail-title {
  font-size: 2.5rem;
  color: #f5e6d3;
  margin-bottom: 1rem;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.close-btn {
  padding: 0.8rem 1.2rem;
  border: 2px solid #5c1010;
  border-radius: 50%;
  background: transparent;
  color: #f5e6d3;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.close-btn:hover {
  background: #5c1010;
  color: #f5e6d3;
  transform: scale(1.1);
}

.detail-badge {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #5c1010;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.detail-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-info p {
  padding: 1.2rem;
  background: #0d0505;
  border-left: 4px solid #5c1010;
  border-radius: 12px;
  font-size: 1.2rem;
}

.detail-info strong {
  color: #5c1010;
}

.detail-synopsis,
.detail-cast,
.detail-platform {
  margin-bottom: 2rem;
}

.detail-synopsis h4,
.detail-cast h4,
.detail-platform h4 {
  font-size: 1.5rem;
  color: #f5e6d3;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #5c1010;
  padding-bottom: 0.8rem;
}

.detail-synopsis p,
.detail-cast p,
.detail-platform p {
  font-size: 1.2rem;
  color: rgba(245, 230, 211, 0.8);
  line-height: 1.8;
}

.detail-cast p {
  padding: 0.8rem 0;
  border-left: none;
  background: none;
}

.cast-role {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #0d0505;
  border-radius: 8px;
  border-left: 3px solid #5c1010;
}

.cast-role ul {
  list-style: none;
  padding: 0.5rem 0 0 1rem;
  margin: 0;
}

.cast-role ul li {
  padding: 0.3rem 0;
  font-size: 1.1rem;
  color: rgba(245, 230, 211, 0.7);
}

.fav-btn {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid #5c1010;
  border-radius: 12px;
  background: transparent;
  color: #5c1010;
  font-size: 1.3rem;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fav-btn:hover {
  background: #5c1010;
  color: #f5e6d3;
}

.fav-section {
  padding: 2rem 3rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.fav-title {
  font-size: 2rem;
  color: #f5e6d3;
  margin-bottom: 2rem;
  text-align: center;
}

.fav-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fav-placeholder {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: rgba(245, 230, 211, 0.4);
}

.fav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #0d0505;
  border: 2px solid #5c1010;
  border-radius: 15px;
}

.fav-item span {
  font-size: 1.3rem;
  color: #f5e6d3;
}

.fav-item-title {
  font-weight: bold;
  font-size: 1.4rem;
  color: #f5e6d3;
}

.fav-item-meta {
  font-size: 1rem;
  color: rgba(245, 230, 211, 0.6);
  margin-left: 1rem;
}

.remove-fav {
  padding: 0.8rem 1.5rem;
  border: 2px solid #5c1010;
  border-radius: 10px;
  background: transparent;
  color: #5c1010;
  font-size: 1.1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-fav:hover {
  background: #5c1010;
  color: #f5e6d3;
}

.init-section {
  padding: 2rem 3rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.init-btn {
  padding: 1rem 2.5rem;
  border: 2px solid #5c1010;
  border-radius: 12px;
  background: transparent;
  color: #f5e6d3;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.init-btn:hover {
  background: #5c1010;
  color: #f5e6d3;
  transform: translateY(-2px);
}

.init-note {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(245, 230, 211, 0.5);
}

.footer {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 2px solid #5c1010;
}

.footer p {
  font-size: 1.1rem;
  color: rgba(245, 230, 211, 0.5);
}

@media (max-width: 1024px) {
  .results-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .app-title {
    font-size: 2.2rem;
  }
  .tab {
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
  }
  .search-section {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input {
    max-width: 100%;
  }
  .results-list {
    grid-template-columns: 1fr;
  }
  .detail-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .app-title {
    font-size: 1.8rem;
  }
  .tab {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
  .card {
    padding: 1.5rem;
  }
  .card-title {
    font-size: 1.5rem;
  }
  .detail-card {
    padding: 2rem;
  }
}