@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Noto+Sans+Thai:wght@100..900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

html, body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Cal Sans', 'Noto Sans Thai', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    flex-direction: column;
    min-height: 100dvh;
    scroll-behavior: smooth;
    --text-color--:#334155;
    --w-header-color: #fc567b;
    --bs-body-color: #f177c2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

section .niya-name{
    background: #ffd9f0;
}

h1, h2, h3, h4, h5 ,h6{
    font-family: 'Cal Sans';    
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero{    
    overflow: hidden;
    display: grid;
    align-items: end;
    transition: .3s;
    min-height: 600px;
    height: 100vh;
}

.hero .name{
    padding: 100px 50px 60px;;
    background: linear-gradient(to bottom, #0000, #00000040);
    color: #fff;

}

.name .h2{
    font-size: 5em;
    font-weight: 800;
    color: rgb(255, 255, 255);
    line-height: 1em;
    text-transform: uppercase;
}

.name .h3{
    font-size: 2.65rem;
    font-weight: 700;
    color: rgb(255, 255, 255);
    line-height: 1em;
    text-transform: uppercase;
    transition: 0.3s;
}

.name{
    padding: 5rem 2.4rem;
}

.container{
    margin: auto;
    max-width: 1280px;
    padding: 0 24px;
}

.fa-icon{
    gap: 25px;
    padding-left: 8px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-content: flex-start
}

.fa-icon li {
    list-style: none;
}

.fa-icon li a{
    align-items: center;
    justify-content: center;
    width: 3em;
    height: 3em;
    border-radius: 50%;
    transition: background 0.3s, transform 0.1s;
}

.fa-icon li i {
    font-size: 3.5em;  /* ปรับขนาดใหญ่ขึ้นได้ตามต้องการ */
    color: #ffffff;
    transition: 0.3s;
}

.fa-icon li a:hover i {
    transform: scale(1.1);
}

.h-body{
    height: 100%;
}

#event{
    display: flex;
    justify-content: center;
    background-color: #ffffff;
}

#info {
    height: calc(100dvh - 70px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-color: #f9f9f9;
}

.bd-info.container {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 2rem; /* ระยะห่างระหว่าง img กับ text */
    height: 100%;
}

.br-i{
    color: var(--text-color--);
    max-width: 650px;
    display: flex;
    flex-direction: column;
    font-size: 1.16rem;
    font-family: Noto Sans Thai;
    padding: 50px;
    margin-top: 75px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    background: #ffffff;

    h2,p{
        margin: 1rem  ; 
    }
}

.br-i ul li a{
    color: #f177c2;
    text-decoration: none;
}

.pc{
    position: absolute;
    z-index: 1;
}

.p-body{
    max-width: none !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.p-body {
    display: none;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
}

.social{
    padding: 80px 0;
    background-color: #ffffff;
}

.embed-row {
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 0;
    gap: 25px;
    display: flex;
}

.embed   {
    width:50%; 
    margin-bottom: 20px;
}

.iframe-instagram, .iframe-tiktok {
    width: 100%; 
}

.instagram-media{
    border-radius: 10px !important; 
    display: block; 
    margin: 18px auto !important;
    width: 100%; 
    max-height: 494px;
}

.embed-ig, .embed-tiktok{
    width: 100%;
}

.embed-ig iframe{
    min-width: 0 !important;
}

.h-sec{
    margin: 0;
    display: flex;
    justify-content: center;
    font-weight: 800 !important;
    font-size: 3rem;
    color: #f177c2;
    text-align: center;
}

.social .container p{
    display: flex;
    justify-content: center;
    margin: 0;
}

.social .container h2{
    color: var(--bs-body-color);
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 0;
}

.sc-box a{
    display: flex;
    height: 60px;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    font-size: 1.25rem;
    padding: 15px;
}

.sc-box a svg{
    height: 35px;
    width: 35px;
}

.sc-row{
    display: flex;
    gap: 15px;
}

:root {
    --bg: linear-gradient(45deg, rgba(240, 148, 51, .15) 0%, rgba(230, 104, 60, .15) 25%, rgba(220, 39, 67, .15) 50%, rgba(204, 35, 102, .15) 75%, rgba(188, 24, 136, .15) 100%);
    --text: #dc2743;
    --bg-hover: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --text-hover: #fff;
}

.mb-i {
    width: 100%;
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s, fill 0.3s;
}

.mb-i a,
.mb-i svg {
    color: var(--text);
    fill: var(--text);
    transition: color 0.3s, fill 0.3s;
}

.mb-i:hover {
    background: var(--bg-hover);
    color: var(--text-hover);
}

.mb-i:hover a {
    color: var(--text-hover);
}

.mb-i:hover svg {
    fill: var(--text-hover);
}

.mb-f {
    width: 100%;
    border-radius: 12px;
    background: #e4effd;
    color: #0866ff;
    transition: background 0.3s, color 0.3s, fill 0.3s;
}

.mb-f a,
.mb-f svg {
    color: #0866ff;
    fill: #0866ff;
    transition: color 0.3s, fill 0.3s;
}

.mb-f:hover {
    background: #0866ff;
    color: var(--text-hover);
}

.mb-f:hover a {
    color: var(--text-hover);
}

.mb-f:hover svg {
    fill: var(--text-hover);
}

.mb-x, .mb-t{
    width: 100%;
    border-radius: 12px;
    background-color: #eeeeee;
}

.mb-x a, .mb-t a{
    color: #000000;
}

.mb-x svg, .mb-t svg{
    fill: #000000;
}

.mb-x, .mb-t {
    width: 100%;
    border-radius: 12px;
    background: #ebebeb;
    color: #000000;
    transition: background 0.3s, color 0.3s, fill 0.3s;
}

.mb-x a,
.mb-x svg
.mb-t a,
.mb-t svg {
    color: #000000;
    fill: #000000;
    transition: color 0.3s, fill 0.3s;
}

.mb-x:hover, .mb-t:hover {
    background: #000000;
    color: var(--text-hover);
}

.mb-x:hover a, .mb-t:hover a {
    color: var(--text-hover);
}

.mb-x:hover svg, .mb-t:hover svg {
    fill: var(--text-hover);
}

.mb-y {
    width: 100%;
    border-radius: 12px;
    background: #fde4e4;
    color: #cd201f;
    transition: background 0.3s, color 0.3s, fill 0.3s;
}

.mb-y a,
.mb-y svg {
    color: #cd201f;
    fill: #cd201f;
    transition: color 0.3s, fill 0.3s;
}

.mb-y:hover {
    background: #cd201f;
    color: var(--text-hover);
}

.mb-y:hover a {
    color: var(--text-hover);
}

.mb-y:hover svg {
    fill: var(--text-hover);
}

.mb-l {
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(17, 208, 201, 0.15), rgba(17, 215, 123, 0.15), rgba(6, 199, 85, 0.15)); 
    color: #06c755;
    transition: background 0.3s, color 0.3s, fill 0.3s;
}

.mb-l a,
.mb-l svg {
    color: #06c755;
    fill: #06c755;
    transition: color 0.3s, fill 0.3s;
}

.mb-l:hover {
    background: linear-gradient(135deg, #11d0c9, #11d77b, #06c755); 
    color: var(--text-hover);
}

.mb-l:hover a {
    color: var(--text-hover);
}

.mb-l:hover svg {
    fill: var(--text-hover);
}

.gap-video {
    max-width: 1280px;
    gap: 50px;
    width: 100%;
}

.frame-video {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.video {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.t-700 {
    font-weight: 700 !important;
}

.tht {
    font-family: 'Noto Sans Thai';
}

.t-800 {
    font-weight: 800 !important;
    font-size: calc(1rem + 0.7vw);
    margin: 0;
}

.ratio {
    --bs-aspect-ratio: 56.25%;
}

.thumnail-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.thumnail-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0 0 12px 12px;
}

.library{
    display: flex;
    padding: 80px 0;
    background-color: #F9F9F9;
    flex-direction: column;
}

.library .h-sec{
    padding-bottom: 80px;
}

.library .container h2{
    color: var(--bs-body-color);
    display: flex;
    justify-content: center;
    margin: 0;
    padding-bottom: 80px;
}

@media (max-width: 1073px) {
    #info{
        height:100%;
    }
    
    .h-body {
        display: none;
    }

    .p-body {
        display: block;
    }

    .bd-info.container {
        flex-direction: column;
        margin: 0 auto;
        padding: 80px 20px;
        border-radius: 12px;
        text-align: center;
    }

    .br-i{
        padding: 90px 50px 50px;
    }

    .br-i h2 {
        margin-top: 1rem;
        color: #333;
    }

    .br-i p {
        font-size: 1rem;
        line-height: 1.6;
        color: #444;
        margin-top: 0.5rem;
    }

    .br-i ul {
        font-size: 1rem;
        list-style: none;
        padding: 0;
        margin-top: 1rem;
        text-align: left;
    }

    .br-i ul li {
        padding-left: 1.2em;
        position: relative;
        margin-bottom: 0.5rem;
    }

    .br-i ul li::before {
        content: "•";
        position: absolute;
        left: 0;
        color: #666;
    }

    .embed-row{
        flex-direction: column;
        align-items: center;
    }

    .embed{
        max-width: 650px;
        width: 100% !important;
    }

    .sc-row{
        flex-direction: column;
        align-items: center;
    }

    .sc-box{
        max-width: 650px;
    }

    .fc-1{
        max-width: 650px !important;
        padding: 0 !important;
    }

    .fc-row{
        flex-direction: column;
        max-width: 650px !important;
        padding: 50px 0 !important;
    }

    .pc-row{
        max-width: 650px !important;
        padding: 0 !important;
    }

    .img-row{
        flex-direction: column;
    }

    .img-box{
        width: 100% !important;
    }

    .fc-ct{
        max-width: 650px !important;
        grid-template-columns: none !important;
    }

    .fc-btn.fc-btn.primary, .fc-btn.ghost{
        width: 100%;
        text-align: center;
    }
}

@media (max-width:690px) {
    .fc-1, .pc-row{
        padding: 0 24px !important;
    }
    
    .fc-row{
        padding: 50px 24px !important;
    }
}

.fc-1 {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.fc-2 {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

  .un-div {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.tc-1{
    padding: 1.5rem !important;
}

.tc-2 {
    font-size: 1.25rem;
    color: #cb96c2;
    margin: 0;
}

.w-800{
    margin: 0;
    font-size: 2rem;
    font-weight: 800 !important;
}

.tc-2, .w-800, .tc-3{
    margin: 0;
}

.tc-3 {
    margin: 0;
}

.tc-3 a {
    color: #f177c2;
    text-decoration: none;
}

.vc-1 {
    width: 100%;
}

.vw {
    position: relative;
    width:100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
  }

.vw iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.fc-row{
    display: flex;
    margin: auto;
    padding: 50px 24px;
    max-width: 1280px;
    gap: 50px;
    width: 100%;
}

.pc-row {
    margin: auto;
    max-width: 1280px;
    padding: 0 24px;
    box-sizing: border-box; /* เพิ่มบรรทัดนี้ เพื่อให้ padding รวมในความกว้าง */
    overflow-x: hidden; /* ป้องกันล้นขอบ */
}

.img-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: flex-start; /* เปลี่ยนจาก space-evenly เพื่อไม่ให้บีบ */
}

.img-box {
    aspect-ratio: 4/3;
    width: 33.33%;
    overflow: hidden;
    position: relative;
    color: white;
    background-color: white;
    animation: fadeEffect 1s;
    border-radius: 12px;
}
  
.img-box img{
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease, opacity 0.3s ease;
}
  
.caption {
    position: absolute;
    bottom: 5px;
    left: 25px;
    opacity: 0.0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    color: #ffffff;
}

.caption p {
  font-weight: 500;
  color: #fff;
  margin: 0;
}
  
.transparent-box {
  height: 100%;
  width: 100%;
  background-color:rgba(0, 0, 0, 0);
  position: absolute;
  top: 0;
  left: 0;
  transition: background-color 0.3s ease;
}
  
.img-box:hover img { 
  transform: scale(1.1);
}
  
.img-box:hover .transparent-box {
  background-color:rgba(0, 0, 0, 0.5);
}
  
.img-box:hover .caption {
  transform: translateY(-20px);
  opacity: 1.0;
}
  
.img-box:hover {
  cursor: pointer;
  border-radius: 12px;
}
  
.caption > p:nth-child(2) {
  font-size: 0.8em;
}
  
.opacity-low {
  opacity: 0.5;
}   
  
  
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}
  
.tab {
  width: 100%;
  display: flex;
  overflow: hidden;
  overflow-x: auto;
  white-space: nowrap;
  justify-content: space-evenly;
}
  
.tab button {
  color: black;
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 14px;
  transition: 0.3s;
  font-size: 17px;
  border-radius: 12px;
}
  
.tab button:hover {
  background-color: #ddd;
  border-radius: 12px;
}

.event .h-sec{
    padding-bottom: 80px;
}

.nimo-fc{
    padding: 80px 24px;
    background-color: #ffffff;
    max-width: 1280px;
    width: 100%;
    margin: auto;
}

.da-pt{
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    max-width: 289.25px;
    transition: 0.3s;
}

.da-pt:hover{
    transform: scale(1.02);
    transition: 0.3s;
}

.da-pt a{
    text-decoration: none;
}

.da-tx{
    padding: 1rem;
}

.da-pt img{
    border-radius: 12px 12px 0 0;
    max-width: 289.25px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.da-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(289.25px, 1fr));
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 24px;
    justify-content: center;
    min-height: 454.84px;
    color: var(--text-color--);
}

.da-sp{
    display: flex;
    flex-direction: column
}

.da-sp h3{
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--text-color--);
}

.ct-da{
    display: grid;
    grid-template-columns: 24px auto;
}

.ct-da svg{
    fill: var(--text-color--);
    width: 1.1rem;
}

.ct-da p {
    color: var(--text-color--);
    font-size: 0.95rem;
    font-weight: 100;
    margin: 0;
}

.ct-da div {
    gap: 5px;
}

.li-c{
    display: flex;
    justify-content: center;
    margin: 25px;
}

.button-17 {
  align-items: center;
  appearance: none;
  background-color: #fff;
  border-radius: 24px;
  border-style: none;
  color: var(--text-color--);
  box-shadow: rgba(0, 0, 0, .2) 0 3px 5px -1px,rgba(0, 0, 0, .14) 0 6px 10px 0,rgba(0, 0, 0, .12) 0 1px 18px 0;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  height: 48px;
  justify-content: center;
  text-decoration: none;
  max-width: 100%;
  overflow: visible;
  padding: 2px 24px;
  position: relative;
  text-align: center;
  text-transform: none;
  touch-action: manipulation;
  will-change: transform,opacity;
}

.button-17:hover {
  background: #f177c2;
  color: #ffffff;
  transition: 0.3s;
}

.button-17:active {
  box-shadow: 0 4px 4px 0 rgb(60 64 67 / 30%), 0 8px 12px 6px rgb(60 64 67 / 15%);
  outline: none;
}

.button-17:focus {
  outline: none;
  border: 2px solid #4285f4;
}

.button-17:not(:disabled) {
  box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
}

.button-17:not(:disabled):hover {
  box-shadow: rgba(60, 64, 67, .3) 0 2px 3px 0, rgba(60, 64, 67, .15) 0 6px 10px 4px;
}

.button-17:not(:disabled):focus {
  box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
}

.button-17:not(:disabled):active {
  box-shadow: rgba(60, 64, 67, .3) 0 4px 4px 0, rgba(60, 64, 67, .15) 0 8px 12px 6px;
}

.button-17:disabled {
  box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
}

.fc-ct {
      max-width: 1280px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      gap: 60px;
    }

    .fc-tt {
      text-align: left;
      justify-content: flex-start;
      margin-bottom: 16px;
    }

    .fc-sb {
      font-size: 24px;
      font-weight: 400;
      color: #555;
      margin-bottom: 24px;
    }

    .fc-d {
      font-size: 18px;
      line-height: 1.6;
      color: #333;
      margin-bottom: 40px;
      max-width: 500px;
    }

    .fc-ac {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }

    .fc-btn {
      font-size: 16px;
      padding: 14px 32px;
      border-radius: 40px;
      text-decoration: none;
      transition: all 0.3s ease;
      display: inline-block;
    }

    .fc-btn.primary {
      background-color: #000;
      color: #fff;
    }

    .fc-btn.primary:hover {
      background-color: #333;
    }

    .fc-btn.ghost {
      background-color: transparent;
      color: #000;
      border: 2px solid #000;
    }

    .fc-btn.ghost:hover {
      background-color: #f2f2f2;
    }

    .fc-image img {
      width: 100%;
      border-radius: 12px;
      box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
    }

    /* Overlay สำหรับแสดงรายละเอียด */
    #fandom-extra {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      color: #fff;
      padding: 24px;
      box-sizing: border-box;
      z-index: 1000;
      overflow-y: auto;
    }

    .if {
      max-width: 650px;
      margin: auto;
      background: #ffffff;
      padding: 24px;
      border-radius: 12px;
    }

.if .h-sec{
    font-family: 'Noto Sans Thai';
}

.fandom-links {
    display: flex;
    gap: 24px;
    flex-direction: column;
}

.tread-x {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.tread-x:hover {
    background-color: #1d9bf0; /* ข้างในทึบตอน hover */
    border-color: #1d9bf0; /* เปลี่ยนสีขอบด้วย */
    color: #fff; /* ตัวหนังสือเป็นขาว */
    transform: scale(1.05); /* ขยายเบา ๆ */
}
