/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-vigmint-200: #00ffdd;
  --color-gray-300: #b3b3b3;
  --color-gray-400: #999999;
  --color-black-opacity-30: rgba(0, 0, 0, 0.3);
  --color-black-opacity-50: rgba(0, 0, 0, 0.5);
  --color-black-opacity-60: rgba(0, 0, 0, 0.6);
  --color-black-opacity-80: rgba(0, 0, 0, 0.8);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-black);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--color-white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ContentLayout */
.content-layout {
  width: 100%;
  display: flex;
  justify-content: center;
  height: fit-content;
}

.content-container {
  max-width: 576px;
  width: 100%;
}

/* Content Wrapper */
.content-wrapper {
  cursor: pointer;
  position: relative;
  min-height: 100vh;
}

/* Background Thumbnail */
.background-thumbnail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  z-index: 0;
  display: none;
}

.background-thumbnail.active {
  display: block;
}

.background-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(40px) brightness(0.3);
  transform: scale(1.2);
}

.background-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--color-black-opacity-60),
    var(--color-black-opacity-40),
    var(--color-black-opacity-80)
  );
}

/* Content Area */
.content-area {
  position: relative;
  z-index: 10;
}

/* ContentInfo.Header */
.content-header {
  position: absolute;
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: linear-gradient(var(--color-black), transparent);
  z-index: 20;
  width: 100%;
}

@media (min-width: 640px) {
  .content-header {
    height: 80px;
    padding: 0 30px;
  }
}

.header-logo {
  font-size: 1px;
  margin: 0;
}

.logo-image {
  width: 76px;
  height: 16px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .logo-image {
    width: 116px;
    height: 24px;
  }
}

.header-button {
  background-color: var(--color-vigmint-200);
  color: var(--color-black);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.header-button:active {
  opacity: 0.8;
}

/* ContentInfo.Thumbnail */
.thumbnail-container {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 60px;
}

@media (min-width: 640px) {
  .thumbnail-container {
    padding-top: 90px;
  }
}

.thumbnail-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  width: auto;
  height: 300px;
  max-width: 450px;
  max-height: 100%;
}

@media (min-width: 640px) {
  .thumbnail-wrapper {
    border-radius: 16px;
  }
}

.thumbnail-image {
  margin: 0 auto;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  width: auto;
  border-radius: 13px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color-black-opacity-50);
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  z-index: 1000;
  padding-left: 2px;
}

@media (min-width: 1024px) {
  .play-button {
    width: 100px;
    height: 100px;
  }
}

.play-icon {
  width: 40px;
  height: 40px;
}

@media (min-width: 1024px) {
  .play-icon {
    width: 50px;
    height: 50px;
  }
}

.thumbnail-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.thumbnail-gradient::after {
  content: '';
  width: 100%;
  height: 33.33%;
  background: linear-gradient(transparent, var(--color-black));
  z-index: 10;
  margin-bottom: -1px;
}

.thumbnail-title-container {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 30;
  padding: 0 20px;
  max-width: 100%;
}

@media (min-width: 640px) {
  .thumbnail-title-container {
    bottom: 40px;
    padding: 0 30px;
  }
}

.thumbnail-title {
  font-size: 24px;
  font-weight: bold;
  line-height: 32px;
  color: var(--color-white);
  text-align: center;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.5);
  display: none;
}

.thumbnail-title.active {
  display: block;
}

@media (min-width: 640px) {
  .thumbnail-title {
    font-size: 32px;
    line-height: 40px;
  }
}

/* ContentInfo.Body */
.content-body {
  min-height: 200px;
  position: relative;
  padding: 0 20px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .content-body {
    padding: 0 30px;
    margin-top: 32px;
  }
}

.body-title-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .body-title-container {
    margin-bottom: 20px;
  }
}

.body-title {
  color: var(--color-white);
  font-weight: bold;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}

@media (min-width: 640px) {
  .body-title {
    font-size: 24px;
    line-height: 32px;
  }
}

/* SynopsisAndCast */
.synopsis-container {
  display: flex;
  flex-direction: column;
  padding-bottom: 144px;
}

@media (min-width: 576px) {
  .synopsis-container {
    padding-bottom: 200px;
  }
}

.synopsis-text {
  color: var(--color-white);
  font-weight: normal;
  white-space: pre-line;
  font-size: 15px;
  line-height: 24px;
}

@media (min-width: 640px) {
  .synopsis-text {
    font-size: 16px;
    line-height: 26px;
  }
}

.casting-container {
  display: none;
}

.casting-container.active {
  display: block;
}

.casting-spacer {
  height: 12px;
}

@media (min-width: 640px) {
  .casting-spacer {
    height: 16px;
  }
}

.casting-text {
  color: var(--color-gray-400);
  width: 100%;
  font-weight: normal;
  font-size: 12px;
  line-height: 17px;
}

@media (min-width: 640px) {
  .casting-text {
    font-size: 14px;
    line-height: 20px;
  }
}

/* ContentInfo.Button */
.button-container {
  width: 100%;
  max-width: 576px;
  background: linear-gradient(
    var(--color-black-opacity-10),
    var(--color-black)
  );
  display: flex;
  justify-content: center;
  align-items: center;
  height: 110px;
  position: fixed;
  bottom: 0;
  z-index: 50;
  padding: 0 40px;
}

@media (min-width: 640px) {
  .button-container {
    height: 168px;
  }
}

.cta-button {
  background-color: var(--color-vigmint-200);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 275px;
  width: calc(100%);
  height: 50px;
  border: none;
  cursor: pointer;
  animation: ctaEmphasis 1s ease-in-out infinite;
}

@media (min-width: 640px) {
  .cta-button {
    border-radius: 15px;
    width: calc(100%);
    height: 76px;
  }
}

.cta-text {
  font-size: 16px;
  line-height: 22px;
  font-weight: bold;
  color: var(--color-black);
}

@media (min-width: 640px) {
  .cta-text {
    font-size: 24px;
    line-height: 33px;
  }
}

/* CTA Emphasis Animation */
@keyframes ctaEmphasis {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(96, 255, 216, 0.7);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 20px 10px rgba(96, 255, 216, 0.4);
  }
}

/* Start Dev Info - 개발 환경 전용 */
#dev-info {
  display: none;
  position: fixed;
  bottom: 100px;
  left: 12px;
  z-index: 1000;
}

#dev-info.visible {
  display: block;
}

#inhouse-token {
  background-color: black;
  color: rgba(96, 255, 216, 0.7);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  pointer-events: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

#inhouse-token:hover {
  opacity: 1;
}

#inhouse-token:active {
  opacity: 0.8;
}

@media (min-width: 640px) {
  #dev-info {
    top: 20px;
    right: 20px;
  }

  #inhouse-token {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
  }
}
/* End Dev Info - 개발 환경 전용 */

/* Hidden utility */
.hidden {
  display: none !important;
}
