:root{
  --ink: #f3eef2;
  --ink-dim: #cfc7d6;
  --accent: #c99bd8;
  --panel: rgba(18, 16, 26, 0.55);
  --panel-border: rgba(255, 255, 255, 0.14);
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: #0c0a12;
  color: var(--ink);
  font-family: 'Cinzel', serif;
}

a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }

.stage-canvas{
  position: relative;
  width: 100%;
  aspect-ratio: 1366 / 768;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8,7,14,0.5) 0%, rgba(10,8,16,0.1) 18%, rgba(10,8,16,0.3) 100%),
    url('../assets/background.png') center 20% / cover no-repeat;
}

.nav{
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10.16%;
  display: flex;
  align-items: center;
  gap: 2.56vw;
  padding-left: 5.34vw;
  z-index: 5;
}

.nav__home{
  font-family: 'Cinzel', serif;
  font-size: 1.76vw;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.4vw;
  white-space: nowrap;
  transform: translateY(0.9vw);
}
.nav__home::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav__links{
  display: flex;
  gap: 2.1vw;
  font-family: 'Cinzel', serif;
  font-size: 1.05vw;
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  white-space: nowrap;
  transform: translateY(0.9vw);
}
.nav__links a{ transition: color .2s ease, opacity .2s ease; opacity: 0.85; }
.nav__links a:hover{ color: var(--ink); opacity: 1; }
.nav__links a.is-active{ color: var(--accent); opacity: 1; }

.hero__left{
  position: absolute;
  left: 8.06%;
  top: 16.67%;
  width: 38.36%;
  z-index: 2;
}

.player{
  position: relative;
  width: 100%;
  aspect-ratio: 524 / 313;
  border-radius: 1.2vw;
  background: linear-gradient(160deg, rgba(40,34,52,0.55), rgba(20,17,28,0.65));
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(3px);
  box-shadow: 0 1.4vw 3.6vw rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.player__glow{
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(232,201,178,0.14), transparent 60%);
}
.player__play{
  position: relative;
  width: 4.2vw;
  height: 4.2vw;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.player__play:hover{ transform: scale(1.08); background: rgba(255,255,255,0.18); }
.player__play svg{ margin-left: 3px; width: 1.9vw; height: 1.9vw; min-width: 18px; min-height: 18px; }

.socials{
  list-style: none;
  display: flex;
  gap: 1.46vw;
  margin: 1.61vw 0 0;
  padding: 0;
}
.socials a{
  width: 2.5vw;
  height: 2.5vw;
  min-width: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background .2s ease, transform .2s ease;
}
.socials a svg{ width: 1.46vw; height: 1.46vw; min-width: 16px; min-height: 16px; }
.socials a:hover{ background: rgba(255,255,255,0.16); transform: translateY(-2px); }

.stage-status{
  margin-top: 3.51vw;
  border: 1px solid var(--panel-border);
  border-radius: 1vw;
  padding: 1.2vw 1.3vw;
  background: var(--panel);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 1.2vw;
  flex-wrap: wrap;
}
.stage-status__label{
  display: flex;
  align-items: center;
  gap: 0.7vw;
  font-family: 'Cinzel', serif;
  font-size: 1.05vw;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.stage-status__arrow{
  width: 3vw;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--ink-dim) 0 5px, transparent 5px 9px);
  position: relative;
}
.stage-status__arrow::after{
  content:"";
  position:absolute;
  right:-1px; top:-3px;
  border: 3px solid transparent;
  border-left-color: var(--ink-dim);
}
.stage-status__pill{
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 0.9vw 1.3vw;
  border-radius: 0.7vw;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1vw;
  color: var(--ink-dim);
}
.stage-status__pill.is-live{
  color: #ffe9e9;
  border-color: rgba(255,120,120,0.4);
  background: rgba(120, 20, 30, 0.35);
}

.hero__right{
  position: absolute;
  top: 25.52%;
  right: 7.91%;
  width: 44%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.title{ margin: 0; line-height: 0.85; }
.title__main{
  display: block;
  font-family: 'Pirata One', 'Cinzel', serif;
  font-size: 10.98vw;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-shadow: 0 0 2vw rgba(255,255,255,0.15);
}
.title__sub{
  display: block;
  font-family: 'Pirata One', 'Cinzel', serif;
  font-size: 6.2vw;
  color: var(--ink);
  margin-top: 0.3vw;
  opacity: 0.95;
}

.divider{
  display: flex;
  align-items: center;
  gap: 0.9vw;
  width: 100%;
  margin-top: 2.6vw;
}
.divider__line{
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.7));
}
.divider__line:last-child{
  background: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,0.7));
}
.divider__mark{
  font-size: 0.75vw;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  white-space: nowrap;
}

.present{
  font-family: 'Cinzel', serif;
  font-size: 1.05vw;
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  margin: 0.75vw 0 0;
  white-space: nowrap;
}

.cta{
  margin-top: 3.3vw;
  padding: 1.15vw 2.15vw;
  border-radius: 0.9vw;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(30, 26, 38, 0.65);
  color: var(--ink);
  font-size: 1.05vw;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.cta:hover{
  background: rgba(50, 42, 62, 0.85);
  border-color: var(--accent);
  transform: translateY(-2px);
}


.nav__home{
  color: var(--ink);
}
.nav__home::after{
  display: none;
}

.page-title{
  position: absolute;
  left: 6.88%;
  top: 19.79%;
  width: 24vw;
  z-index: 2;
}

.page-title__word{
  margin: 0;
  font-family: 'Pirata One', 'Cinzel', serif;
  font-size: 7vw;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 0.9;
  text-shadow: 0 0 2vw rgba(255,255,255,0.15);
}

.content-panel{
  position: absolute;
  left: 18.52%;
  top: 40.49%;
  width: 62.96%;
  height: 42.06%;
  border: 1px solid var(--panel-border);
  border-radius: 1.2vw;
  background: var(--panel);
  backdrop-filter: blur(6px);
  box-shadow: 0 1.4vw 3.6vw rgba(0,0,0,0.35);
  padding: 2.4vw 3.2vw;
  overflow-y: auto;
  z-index: 2;
}

.content-panel p{
  margin: 0;
  font-family: 'Noto Serif Thai', 'Cinzel', serif;
  font-weight: 300;
  font-size: 1.05vw;
  line-height: 2.1;
  text-align: center;
  color: var(--ink-dim);
  white-space: pre-line;
}

@media (max-width: 760px){
  .stage-canvas{
    aspect-ratio: auto;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 0 0 40px;
    background: #0c0a12;
  }

  .stage-canvas::before{
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
      linear-gradient(180deg, rgba(8,7,14,0.5) 0%, rgba(10,8,16,0.1) 18%, rgba(10,8,16,0.3) 100%),
      url('../assets/background.png') center 20% / cover no-repeat;
  }

  .nav{
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 20px 16px;
  }
  .nav__home{ font-size: 22px; transform: none; }
  .nav__links{
    width: 100%;
    font-size: 14px;
    row-gap: 10px;
    column-gap: 18px;
    flex-wrap: wrap;
    transform: none;
  }

  .page-title{
    position: static;
    width: auto;
    max-width: 480px;
    margin: 8px auto 0;
    padding: 0 24px;
    text-align: center;
  }
  .page-title__word{ font-size: clamp(44px, 15vw, 64px); }
  .divider{ margin-top: 18px; }
  .divider__mark{ font-size: 11px; }

  .content-panel{
    position: static;
    width: auto;
    height: auto;
    max-width: 560px;
    margin: 28px auto 0;
    padding: 24px 22px;
  }
  .content-panel p{ font-size: 15px; line-height: 1.85; }
}

@media (max-width: 400px){
  .nav__links{ font-size: 13px; column-gap: 14px; }
  .page-title__word{ font-size: clamp(38px, 15vw, 52px); }
}
@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(2.4vw); }
  to{ opacity: 1; transform: translateY(0); }
}

.nav,
.page-title,
.content-panel{
  animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.page-title{ animation-delay: 0.25s; }
.content-panel{ animation-delay: 0.5s; }

@media (max-width: 760px){
  @keyframes fadeUp{
    from{ opacity: 0; transform: translateY(24px); }
    to{ opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}