/* 基礎設定 */
:root {
  --bg-dark: #000000;
  --purple-glow: #9233ea;
  --green-glow: #18bb20;
  --purple-border: #7c3aed;
  --marvel-red: #c0141b;
  --text-light: #ffffff;
  --text-muted: #d1d5db;
}

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* KV */
header{ position:relative; padding-bottom: 17.4%; }
picture img{ width: 100%; transition: transform ease .5s; transform-origin: center center; }
header:hover picture.kv img{
    transform: scale(1.1);
}
.slogan{
    width: calc(100% * 1086/1920);
    top: calc(100% * 272/974);
    left: calc(100% * 464/1920);
    position: absolute;
    font-size: 0;
}
@media (max-width: 768px) {
    header{ padding-bottom: 33.9%; }
    .slogan{
        width: 100%;
        top: calc(100% * 406/857);
        left: initial;
    }
}

/* 搶票傳送門 */
.portal-section{
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 669; 
    background-image: url('img/cinema-bg.png?v=0928');
    background-size: cover;
    background-position: 50% 0;
    /* min-height: calc(100vw * 637 / 1920); */
    padding-top: calc(100% * 200 / 1920);
    padding-bottom: calc(100% * 80 / 1920);
}
.portal-section .container { 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
@media (max-width: 768px) {
    .portal-section{
        width: 100%;
        box-sizing: border-box;
        aspect-ratio: 640 / 872;
        background-image: url('img/cinema-bg-m.png?v=0928');
        background-position: 50% 0;
        /* min-height: calc(100vw * 640 / 1037); */
        padding-top: calc(100% * 200 / 768);
        padding-bottom: calc(100% * 80 / 768);
    }
}

/* 影城 Logo Grid */
.cinema-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
    width: 100%;
    max-width: 880px;
    height: 80%;
}
.cinema-item{
    flex: 0 0 calc((100% - 60px) / 3);
    
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all linear .3s; 
    transform-origin: center bottom;
}

.cinema-item:hover{
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--green-glow));
}

.cinema-item img{
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .cinema-item{
        scale: 0.85;
    }
}
@media (max-width: 900px) {
    .cinema-grid {
        gap: 20px;
    }
    .cinema-item{
        scale: 0.8;
    }
}
@media (max-width: 768px) {
    .cinema-grid {
        gap: 30px;
    }
    .cinema-item{
        scale: unset;
    }
}


@media (min-width: 768px) {
    .cinema-grid { row-gap: 0; }
    .cinema-item { flex: 0 0 calc((100% - 120px) / 5); }
}


@media (max-width: 576px) {
    .cinema-item{
        scale: 0.85;
    }
}
@media (max-width: 480px) {
    .cinema-grid {
        gap: 20px;
    }
    .cinema-item{
        scale: 0.8;
    }
}


.event-info,.notice-box{
    font-size: 0;
}
.event-section{
    position: relative;
    width: 100%;
    
}
.infinity-feature{
    margin-bottom: 5%;
}

.feature-group{
    background-image: url('img/gf.png?v=0928');
    background-size: 100% auto;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-top: calc(100% * 49/1920);
}
@media (max-width: 768px){
    .feature-group{
        background-image: url('img/gf-m.png?v=0928');
        background-position: 0 100%;
        padding-top: calc(100% * 15/640);
    }
}

.notice-section{
    margin: 5% auto;
}
@media (min-width: 769px){
    .feature-group{ padding-bottom: calc(100% * 75/1920); }
    .notice-section{ margin-top: calc(100% * 21/1920); }
}

/* 全版本預售卡片 Grid (左右 vs 上下) */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* 預告片自適應 16:9 容器 */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  /* max-width: 760px; */
  /* margin: 20px auto; */
  margin: 50px auto;
  aspect-ratio: 16 / 9;
}
.video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* 漫威紅社群橫幅 */
.social-banner {
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: 50%;
    background-image: url('img/sns-bg.png');
    padding: 2rem;
    text-align: center;
}

.social-banner>.container>img{
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.social-icons{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.social-icons a img{
    transition: transform linear .3s;
}

.social-icons a:hover img{
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .social-banner>.container>img{
        margin-bottom: 1rem;
    }
}

.trailer-section{
    /* padding-bottom: 2rem; */
    padding-top: calc(100px - 50px);
    padding-bottom: calc(70px - 50px);
    background-image: url('img/gf2.png?v=0928');
    background-size: contain; 
    /* background-size: calc(100% * 1573/1920) auto; */
    background-position: 0% 100%; 
    background-repeat: no-repeat;
}
@media (max-width: 768px) {
    .trailer-section{
        padding-bottom: calc(150px - 50px);
        background-image: url('img/gf2-m.png');
        background-size: contain; 
    }
}
@media (max-width: 639px) {
    .trailer-section{
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
}