body.yxd{
    background-color: #141414;
    color: white;
}


div.chart-dashboard-yxd {
    background-color: #000000;
    border-radius: 10px;
    color: white;
    padding: 10px
}


.opacity-yxd {
    opacity: 0.8;
}

.opacity-yxd:hover {
    opacity: 1.0;
}

div.white-card-yxd {
    background-color: white;
    opacity: 0.5;
    color: white;
    border-radius: 50px;
}

.button-view-yxd {
    background-color: #ff3250;
    border-radius: 10px;
}

.button-view-yxd:hover {
    opacity: 0.8;
}


a.remove-underline {
    text-decoration:none;
    color: rgb(255, 255, 255);
    
}



p.number-rank-yxd {
    margin-top: 25px;
}


div.inside-chart-yxd {
    margin: 10px;
}

/* === 1. ตั้งค่าเริ่มต้นสำหรับหน้าจอใหญ่ (PC / Desktop) === */
.show-on-mobile {
  display: none;  /* ซ่อนของมือถือไว้ก่อน */
}

.show-on-pc {
  display: block; /* แสดงของ PC เป็นค่าเริ่มต้น */
}


/* === 2. ตั้งค่าสำหรับหน้าจอมือถือ (ขนาดไม่เกิน 768px) === */
@media screen and (max-width: 768px) {
  .show-on-mobile {
    display: block; /* เปิดการแสดงผลของมือถือ */
    
  }
  
  .show-on-pc {
    display: none;  /* สั่งซ่อนของ PC ไปแทน */
  }
}

      /**-- OPEN MENU **/

        div.yxd-menu-top {
            padding-left: 20px;
            padding-right: 20px;
            padding-bottom: 20px;
            padding-top: 20px;
            background-color: rgb(0, 0, 0);
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
        }



        div.yxd-menu-bottom {
            padding-left: 20px;
            padding-right: 20px;
            padding-bottom: 20px;
            padding-top: 20px;
            background-color: rgb(0, 0, 0);


        }

        div.margin-bottom-10px {
            margin-bottom: 10px;
        }

        div.yxd-menu-white {
            padding-left: 20px;
            padding-right: 20px;
            padding-bottom: 20px;
            padding-top: 20px;
            background-color: rgb(255, 255, 255);
        }

        div.margin-content-yxd {
            margin-top: 100px;
        }


        div.margin-content-add-yxd {
            margin-top: 50px;
        }

        a.yxd-text {
            color: rgb(161, 161, 161);
            text-decoration: none;
            margin-left: 10px;
            margin-right: 10px;
        }
        a.yxd-text:hover {
            color: rgb(255, 255, 255);
            text-decoration: none;
        }

        div.search-yxd {
            background-color: #141414;
            border-radius: 20px;
            padding-left: 5px;
            padding-right: 5px;
            padding-top: 5px;
            padding-bottom: 5px;
            border: 2px solid transparent; 
            transition: border-color 0.3s ease;
        }

        div.search-yxd:focus-within {
            border-color: #ffffff; /* เปลี่ยนขอบเป็นสีขาว */
        }



        input.search-yxd {
            background-color: #141414;
            color: white;
            border: none;   /* Removes the default box border */
        }
        input.search-yxd:focus {
            outline: none; /* Removes the active stroke ring */
            border: none;   /* Removes the default box border */
        }

        div.sticky-bottom {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        z-index: 999; /* เพื่อให้ลอยทับคอนเทนต์อื่น */
        }



      /**-- END MENU **/


/**-- OPEN FOOTER **/


/**-- END FOOTER **/


        img.img-home-yxd {
            border-radius: 10px;
            margin-bottom: 10px;
            margin-top: 5px;
        }


        img.img-artist-home-yxd {
            border-radius: 100px;
            margin-bottom: 10px;
            margin-top: 5px;
        }

        img.img-chart-yxd {
            border-radius: 10px;
        }

        div.card-home-yxd-song {
            background-color: #141414;
            transition: 0.5s;
            color: white;
        }

        div.card-home-yxd-song:hover {
            background-color: #000000;
            border-radius: 10px;
            opacity: 0.8;
            cursor: pointer;
            color: white;
        }

        div.card-title-white-yxd {
            background-color: white;
            color: black;
        }

        a.viewall-yxd {
            color: rgb(255, 255, 255);
            text-decoration: none;
        }

        a.viewall-yxd:hover {
            color: rgb(255, 255, 255);
            text-decoration: underline;
        }

            .kanit-thin {
            font-family: "Kanit", sans-serif;
            font-weight: 100;
            font-style: normal;
            }

            .kanit-extralight {
            font-family: "Kanit", sans-serif;
            font-weight: 200;
            font-style: normal;
            }

            .kanit-light {
            font-family: "Kanit", sans-serif;
            font-weight: 300;
            font-style: normal;
            }

            .kanit-regular {
            font-family: "Kanit", sans-serif;
            font-weight: 400;
            font-style: normal;
            }

            .kanit-medium {
            font-family: "Kanit", sans-serif;
            font-weight: 500;
            font-style: normal;
            }

            .kanit-semibold {
            font-family: "Kanit", sans-serif;
            font-weight: 600;
            font-style: normal;
            }

            .kanit-bold {
            font-family: "Kanit", sans-serif;
            font-weight: 700;
            font-style: normal;
            }

            .kanit-extrabold {
            font-family: "Kanit", sans-serif;
            font-weight: 800;
            font-style: normal;
            }

            .kanit-black {
            font-family: "Kanit", sans-serif;
            font-weight: 900;
            font-style: normal;
            }

            .kanit-thin-italic {
            font-family: "Kanit", sans-serif;
            font-weight: 100;
            font-style: italic;
            }

            .kanit-extralight-italic {
            font-family: "Kanit", sans-serif;
            font-weight: 200;
            font-style: italic;
            }

            .kanit-light-italic {
            font-family: "Kanit", sans-serif;
            font-weight: 300;
            font-style: italic;
            }

            .kanit-regular-italic {
            font-family: "Kanit", sans-serif;
            font-weight: 400;
            font-style: italic;
            }

            .kanit-medium-italic {
            font-family: "Kanit", sans-serif;
            font-weight: 500;
            font-style: italic;
            }

            .kanit-semibold-italic {
            font-family: "Kanit", sans-serif;
            font-weight: 600;
            font-style: italic;
            }

            .kanit-bold-italic {
            font-family: "Kanit", sans-serif;
            font-weight: 700;
            font-style: italic;
            }

            .kanit-extrabold-italic {
            font-family: "Kanit", sans-serif;
            font-weight: 800;
            font-style: italic;
            }

            .kanit-black-italic {
            font-family: "Kanit", sans-serif;
            font-weight: 900;
            font-style: italic;
            }


            /* 1. กำหนดความกว้างของแถบเลื่อน */
::-webkit-scrollbar {
  width: 10px; /* ความกว้างแนวตั้ง */
  height: 10px; /* ความสูงแนวนอน (ถ้ามี) */
}

/* 2. ปรับแต่งพื้นหลัง (Track) */
::-webkit-scrollbar-track {
  background: #000000; 
  border-radius: 10px; /* ทำให้ขอบมน */
}
 
/* 3. ปรับแต่งตัวเลื่อน (Thumb) */
::-webkit-scrollbar-thumb {
  background: #979797; 
}

/* 4. เอฟเฟกต์ตอนที่เมาส์ชี้ (Hover) */
::-webkit-scrollbar-thumb:hover {
  background: #555; /* เปลี่ยนสีให้เข้มขึ้นเวลา hover */
}


/* Open Footer */

div.footer-yxd {
    background-color: #000000;
    color: white;
    margin-top: 60px;
    padding-top: 10px;
}

img.icon-social-yxd {
    margin-right: 10px;
}

/* END Footer */



/* OPEN INPUT FILE */
.upload-container-yxd {
  width: 100%;           /* ยืดหยุ่นเต็มหน้าจอเมื่ออยู่ในจอที่เล็กกว่า 400px */
  max-width: 400px;      /* จำกัดความกว้างสูงสุดไว้ที่ 400px เท่าเดิมเมื่ออยู่บนจอคอม */
  aspect-ratio: 1 / 1;   /* บังคับให้กล่องเป็นสี่เหลี่ยมจัตุรัสเสมอ (กว้างเท่าไหร่ สูงเท่านั้น) */
  box-sizing: border-box;/* ป้องกันไม่ให้ Padding หรือ Border ดันกล่องจนล้น */
  padding: 0 15px;       /* แถม: ใส่เว้นระยะขอบข้างนิดหน่อย ไม่ให้กล่องติดขอบจอมือถือเกินไป */
  margin: 0 auto;        /* แถม: จัดกล่องให้อยู่ตรงกลางหน้าจอ */
}

.file-input-yxd {
  display: none;
}

.drop-zone-yxd {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  border: 2px dashed #333333;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  position: relative; /* เพื่อให้จัดตำแหน่งรูปพรีวิวทับด้านบนได้ */
  overflow: hidden;   /* ป้องกันไม่ให้รูปเลยขอบมน */
}

.drop-zone-yxd:hover {
  background-color: #222222;
  border-color: #555555;
}

/* ส่วนคอนเทนต์เริ่มต้น */
.drop-zone-content-yxd {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-icon-yxd {
  width: 64px;
  height: 64px;
  stroke: #ffffff;
  margin-bottom: 16px;
  opacity: 0.9;
}

.upload-text-yxd {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* --- ส่วนของ Preview ที่เพิ่มเข้ามาใหม่ --- */
.preview-container-yxd {
  display: none; /* เริ่มต้นซ่อนไว้ก่อน */
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.preview-image-yxd {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ทำให้รูปขยายเต็มกล่องโดยไม่เสียสัดส่วน */
}

/* ทำ Effect มืดลงเล็กน้อยและขึ้นข้อความตอน Hover รูปภาพ */
.preview-overlay-yxd {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.preview-container-yxd:hover .preview-overlay-yxd {
  opacity: 1;
}

/* คลาสพิเศษสำหรับเปลี่ยนสไตล์เส้นขอบเมื่อมีการอัปโหลดรูปแล้ว */
.drop-zone.has-image-yxd {
  border-style: solid; /* เปลี่ยนจากเส้นประเป็นเส้นทึบ */
  border-color: #333333;
}

/* END INPUT FILE */



/* OPEN INPUT TYPE TEXT ADD */

    /* กล่องครอบอินพุต */
.input-underline-container-yxd {
  width: 100%;
  max-width: 100%; /* จำกัดความกว้างไม่ให้ยาวเกินไป */
  padding: 0 15px;
}

/* ปรับแต่ง Input ให้เหลือแค่เส้นใต้ */
.input-underline-yxd {
  width: 100%;
  background: transparent;      /* ทำพื้นหลังให้โปร่งแสง */
  border: none;                 /* ลบขอบเดิมออกทั้ง 4 ด้าน */
  border-bottom: 2px solid #333333; /* สร้างเส้นใต้ (Underline) สีเทาเข้ม */
  padding: 8px 0;               /* เพิ่มระยะห่างบน-ล่าง ให้พิมพ์ง่ายขึ้น */
  color: #ffffff;               /* สีของตัวอักษรที่พิมพ์ */
  font-size: 16px;
  outline: none;                /* ลบเส้นขอบสีฟ้า/สีดำ ดั้งเดิมของเบราว์เซอร์เวลาคลิก */
  transition: border-color 0.3s ease; /* เพิ่มความสมูทเวลาเปลี่ยนสีเส้น */
}

/* เปลี่ยนสีข้อความ Placeholder (คำแนะนำในช่อง) */
.input-underline-yxd::placeholder {
  color: #666666;
  opacity: 1;
}

/* ⚡ เอฟเฟกต์ตอนที่ผู้ใช้งานคลิกเพื่อพิมพ์ (Focus) */
.input-underline-yxd:focus {
  border-bottom-color: #ffffff; /* เปลี่ยนเส้นใต้เป็นสีขาว (หรือสีไฮไลท์ที่คุณชอบ) */
}


/* END INPUT TYPE TEXT ADD */



/*OPEN INPUT ARTIST */

.autocomplete-container-artist-yxd {
    position: relative;
    width: 100%; /* ปรับเป็น 100% หรือขนาดที่พอดีกับฟอร์มของคุณ */
    max-width: 300px;
}

.dropdown-list-artist-yxd {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e1e1e; /* ปรับพื้นหลังเป็นสีเทาเข้ม ให้เข้ากับเว็บโทนดำ */
    border: 1px solid #333; /* เส้นขอบสีเข้ม */
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* เพิ่มเงาให้ดูมีมิติขึ้น */
    display: none; /* ซ่อนไว้เริ่มต้น */
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown-list-artist-yxd li {
    padding: 10px;
    cursor: pointer;
    color: #ffffff !important; /* บังคับให้ตัวหนังสือในตัวเลือกเป็นสีขาว */
    font-size: 15px;
    transition: background-color 0.2s ease;
}

/* เอฟเฟกต์ตอนเอาเมาส์ไปชี้ (Hover) */
.dropdown-list-artist-yxd li:hover {
    background-color: #333333; /* ไฮไลท์สีเทาเมื่อเอาเมาส์ชี้ */
    color: #ffffff !important;
}

/*END INPUT ARTIST*/





/* SELECT OPEN */

/* สไตล์ภาพรวมให้เข้ากับเว็บโทนดำของคุณ */
.custom-select-wrapper {
  margin-bottom: 20px;
  font-family: sans-serif;
}

.field-label {
  display: block;
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 14px;
}

.select-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px; /* ปรับความกว้างตามต้องการ */
}

.custom-select {
  width: 100%;
  padding: 10px 40px 10px 0px; /* เว้นด้านขวาให้ลูกศร */
  font-size: 16px;
  color: #888; /* สีข้อความ placeholder */
  background-color: transparent; /* พื้นหลังโปร่งใสตามธีมเว็บ */
  border: none;
  border-bottom: 1px solid #444; /* เส้นใต้แบบในรูป */
  appearance: none; /* ซ่อนลูกศรดั้งเดิมของ Browser */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s;
}

/* เมื่อมีการคลิกหรือโฟกัส */
.custom-select:focus {
  border-bottom: 1px solid #ffffff;
  color: #ffffff;
}

/* สร้างลูกศรฝั่งขวามือ */
.select-arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #888; /* สีของลูกศร */
  pointer-events: none; /* ยอมให้คลิกทะลุไปโดน select ได้ */
}


/* เลือกไปที่ตัว select และ option ภายใน */
select.custom-select, 
select.custom-select option {
    background-color: #1a1a1a; /* สีพื้นหลังกล่องตัวเลือก (ปรับให้มืดตามใจชอบ) */
    color: #ffffff;            /* สีตัวหนังสือในกล่องตัวเลือก */
}

/* เพิ่มเติม: แต่งหน้าตาตอนที่เมาส์ชี้ (Hover) บนระบบบางตัวที่รองรับ */
select.custom-select option:hover,
select.custom-select option:focus,
select.custom-select option:active,
select.custom-select option:checked {
    background-color: #333333 !important; /* สีไฮไลต์ตอนเลือก */
    color: #ffffff !important;
}
/* SELECT END */


/*OVERRAY TEXT*/

.truncate-text-yxd {
    white-space: nowrap;     /* บังคับไม่ให้ข้อความขึ้นบรรทัดใหม่ */
    overflow: hidden;        /* ซ่อนข้อความส่วนที่ล้นออกนอกกรอบ */
    text-overflow: ellipsis; /* เปลี่ยนข้อความที่ล้นให้กลายเป็น ... */
    width: 100%;             /* กำหนดความกว้างเป็น 100% ของคอลัมน์ */
    display: block;          /* เปลี่ยนสถานะให้รองรับ overflow */
}

/*END OVERRAY*/



/* OPEN TRACK STYLE */


img.track-header-yxd {
  border-radius: 20px;
}


img.artist-header-yxd {
  border-radius: 200px;
}


div.track-background-header-yxd {
  background-color: #252525;
  padding-top: 50px;
  padding-bottom: 30px;
  border-radius: 20px;
}


div.single-track-background-yxd {
  background-color: #252525;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 20px;
  margin-bottom: 5px;
  transition: 0.5;
}

div.single-track-background-yxd:hover {
  opacity: 0.7;
}

.margin-top-header-yxd {
  margin-top: 20px;
}


a.remove-underline-header-yxd {
    text-decoration:none;
    color: rgb(255, 255, 255);
    
}


a.single-track-yxd {
  background-color: #141414;
  border: none;
  color: white;
  text-decoration: none;
}

img.single-track-yxd {
  margin-left: 10px;
  margin-right: 10px;
  border-radius: 10px;
}


a.remove-underline-header-yxd:hover {
    text-decoration:underline ;
    color: rgb(255, 255, 255);
    
}


/* END TRACK STYLE */





/* Social Media Share*/


.share-buttons-container-yxd {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.share-btn-yxd {
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    border-radius: 4px;
    transition: transform 0.2s;
    border: none !important;
}

.share-btn-yxd:hover {
    transform: scale(1.05); /* ขยายใหญ่ขึ้นเล็กน้อยตอนเอาเมาส์ไปชี้ */
    color: #fff !important;
}

/* สีเฉพาะของแต่ละค่าย */
.fb-color-yxd { background-color: #1877F2 !important; color: white; }
.line-color-yxd { background-color: #06C755 !important; color: white; }
.x-color-yxd { background-color: #000000 !important; color: white; border: 1px solid #333 !important; }
.copy-color-yxd { background-color: #6c757d !important; color: white; }


/* END SOCIAL */



/* OPEN CHART */

div.single-chart-yxd {
  background-color: #161616;
  padding: 10px;
  margin-bottom: 5px;
}


div.single-chart-yxd-list {
  background-color: #222222;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 10px;
}

div.single-chart-yxd-list:hover {
opacity: 0.7;
}

/* END CHART */