/*css โครงสร้างและดีไซน์นี้เป็นทรัพย์สินทางปัญญาของ misiry และ shicenter ทางเราขอสงวนสิทธิ์ตามกฎหมาย ห้ามทำซ้ำ ดัดแปลง
หรือลอกเลียนแบบโดยไม่ได้รับอนุญาต การละเมิดจะถูกดำเนินคดีตามกฎหมายสูงสุด*/
/* =========================================
   1. ตัวแปรสีและค่าพื้นฐาน (Light Pastel Pink & White Theme)
========================================= */
:root {
  --text-dark: #6a3645;       /* น้ำตาลชมพู นุ่มนวล อ่านง่าย */
  --text-gray: #b57b8c;       /* ชมพูเทาสำหรับข้อความรอง */
  --accent-orange: #ffb1bf;   /* ชมพูพาสเทลหลัก สดใสละมุน */
  --accent-yellow: #ffd5df;   /* ชมพูอ่อนนุ่ม */
  --amber-light: #fff7f8;     /* ครีมขาวอมชมพูนวลตา */
  --btn-hover: #ffebf1;       /* ชมพูอ่อนมากเมื่อโฮเวอร์ */
  --card-border: rgba(255, 142, 163, 0.22); /* ขอบชมพูพาสเทลบางเบา */
  --star-gold: #f4c464;       /* เหลืองทองสดใสสำหรับดาว */
  --fab-orange: #ffb1bf;      /* ชมพูพาสเทลสำหรับปุ่ม FAB */
}

* { 
  box-sizing: border-box; 
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text-dark);
  font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif;
}

button, input, select, textarea { 
  font: inherit; 
  color: inherit; 
}

/* =========================================
   2. พื้นหลัง Mesh Gradient & ตัวการ์ดหลัก
========================================= */
.app-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: 
    radial-gradient(circle at 15% 20%, rgba(255, 204, 215, 0.45) 0, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255, 224, 232, 0.5) 0, transparent 45%),
    linear-gradient(145deg, #ffffff, #fff3f5);
}

.main-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin-top: 20px;
  padding: 25px 18px 100px;
  background: 
    radial-gradient(ellipse at 85% 10%, rgba(255, 220, 229, 0.4), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(255, 232, 237, 0.4), transparent 45%),
    linear-gradient(180deg, #ffffff, #fff7f8);
  box-shadow: 0 15px 40px rgba(232, 90, 111, 0.281);
  border-radius: 35px 35px 0 0;
}

/* =========================================
   3. ตัวละครเกาะขอบ (Peeking)
========================================= */
.peeking-characters {
  position: absolute;
  top: -93px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.peeking-characters img {
  display: block;
  object-fit: contain;
}

.char-bear { height: 110px; }

/* =========================================
   4. รูปปก & โปรไฟล์
========================================= */
.cover-img {
  height: 200px;
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #fff0f3;
  box-shadow: 0 8px 20px rgba(255, 95, 122, 0.247);
}

.cover-img video,
.cover-img img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  display: block;
  object-position: center 0px;
}

.shop-info {
  position: relative;
  z-index: 2;
  margin-top: -55px; 
  text-align: center;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
}

.avatar-box {
  width: 105px; 
  height: 105px;
  margin: 0 auto; 
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #ffd5df);
  box-shadow: 0 8px 22px rgba(255, 95, 122, 0.247), 0 0 0 4px rgba(255, 255, 255, 0.95);
}

.avatar-box img,
.avatar-box video {
  width: 100%; 
  height: 100%;
  object-fit: cover; 
  object-position: center 10%;
  border-radius: 50%;
}

.badge-check {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background-color: var(--accent-orange);
  color: white;
  font-size: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.btn-admin {
  position: absolute;
  right: 5px;
  top: 65px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--card-border);
  color: var(--text-dark);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 95, 122, 0.08);
}

.btn-admin:hover {
  background: #ffebf1;
  transform: translateY(-1px);
}

.sub-title {
  margin: 14px 0 2px; 
  color: var(--accent-orange);
  font-size: 9px; 
  font-weight: 800; 
  letter-spacing: 0.2em;
}

.shop-name {
  margin: 0; 
  font: 700 24px Georgia, serif; 
  letter-spacing: 0.05em;
  color: var(--text-dark);
}

.tags {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}

.tag {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--card-border);
  color: var(--text-gray);
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 15px;
}

/* =========================================
   5. การ์ดสถิติ (Stats Card)
========================================= */
.stats-card {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 4px 15px rgba(255, 95, 122, 0.08);
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-value {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: var(--text-dark);
}

.stat-label {
  font-size: 11px;
  color: var(--text-gray);
}

.star-icon {
  color: var(--star-gold);
}

.divider {
  width: 1px;
  height: 30px;
  background-color: var(--card-border);
}

/* =========================================
   6. รายการรีวิว (Review Section)
========================================= */
.review-section {
  margin-top: 20px;
}

.section-subtitle {
  margin: 0;
  font-size: 11px;
  color: var(--accent-orange);
  font-style: italic;
}

.section-title {
  margin: 2px 0 14px 0;
  font-size: 18px;
  font-weight: bold;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loading-text {
  text-align: center;
  color: var(--text-gray);
  font-size: 12px;
  padding: 20px 0;
}

.review-item {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(255, 95, 122, 0.06);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--amber-light);
  color: var(--accent-orange);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: bold;
  font-size: 13px;
}

.review-time {
  font-size: 10px;
  color: var(--text-gray);
}

.quote-icon {
  position: absolute;
  top: 12px;
  right: 15px;
  color: rgba(255, 142, 163, 0.25);
  font-size: 20px;
}

.stars {
  color: var(--star-gold);
  font-size: 11px;
  margin-bottom: 6px;
}

.review-text {
  font-size: 12px;
  color: var(--text-dark);
  line-height: 1.5;
}

/* =========================================
   7. ปุ่มลอยเขียนรีวิว (FAB Button)
========================================= */
.fab-review {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--fab-orange);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(255, 142, 163, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 40;
}

.fab-review:active {
  transform: translateX(-50%) scale(0.95);
}

/* =========================================
   8. Pop-up Modal
========================================= */
.overlay-bg {
  position: fixed; 
  z-index: 50; 
  inset: 0;
  display: none; 
  align-items: center; 
  justify-content: center; 
  padding: 20px;
  background: rgba(77, 23, 43, 0.42); 
  backdrop-filter: blur(5px);
}

.overlay-bg.show { 
  display: flex; 
  animation: fadeIn 0.2s ease; 
}

.popup-card {
  position: relative; 
  width: 100%; 
  max-width: 380px;
  padding: 25px 20px; 
  text-align: center;
  border: 1px solid var(--card-border); 
  border-radius: 25px;
  background: #fffdfd; 
  box-shadow: 0 20px 60px rgba(144, 36, 65, 0.18);
  animation: slideUp 0.3s ease;
}

.btn-close {
  position: absolute; 
  top: 15px; 
  right: 15px;
  width: 30px; 
  height: 30px; 
  border: none; 
  border-radius: 50%;
  background: var(--amber-light); 
  color: var(--text-gray);
  font-size: 18px; 
  cursor: pointer;
}

.popup-card p.top-tag { 
  margin: 0; 
  color: var(--accent-orange); 
  font-size: 9px; 
  font-weight: bold; 
  letter-spacing: 0.15em; 
}

.popup-card h2 { 
  margin: 4px 0 15px; 
  font-size: 18px; 
}

.form-group {
  text-align: left;
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--amber-light);
  font-size: 12px;
  outline: none;
}

.btn-submit {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: var(--accent-orange);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media(min-width: 540px) {
  .main-card {
    margin-top: 10px; 
    border-radius: 35px; 
    min-height: 800px;
  }
}

/* =========================================
   9. กลีบดอกไม้/ใบไม้ร่วง (Falling Image Animation)
========================================= */
.petals { 
  position: fixed; 
  z-index: 20; 
  inset: 0; 
  overflow: hidden; 
  pointer-events: none; 
}

.petal {
  position: absolute;
  top: -30px;
  width: 130px;
  height: 130px; 
  background-image: url('../images/image-11-1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  
  filter: brightness(1); 
  
  animation: fall 10s linear infinite;
}

/* กระจายตำแหน่ง 7 กลีบ */
.petal:nth-child(1)  { left: 8%;  animation-delay: -2s;  animation-duration: 12s; }
.petal:nth-child(2)  { left: 22%; animation-delay: -7s;  animation-duration: 9s;  }
.petal:nth-child(3)  { left: 38%; animation-delay: -4s;  animation-duration: 14s; }
.petal:nth-child(4)  { left: 52%; animation-delay: -9s;  animation-duration: 11s; }
.petal:nth-child(5)  { left: 66%; animation-delay: -1s;  animation-duration: 13s; }
.petal:nth-child(6)  { left: 80%; animation-delay: -5s;  animation-duration: 15s; }
.petal:nth-child(7)  { left: 92%; animation-delay: -3s;  animation-duration: 10s; }
.petal:nth-child(8)  { left: 66%; animation-delay: -1s;  animation-duration: 13s; }
.petal:nth-child(9)  { left: 80%; animation-delay: -5s;  animation-duration: 15s; }
.petal:nth-child(10) { left: 22%; animation-delay: -7s;  animation-duration: 9s;  }
.petal:nth-child(11) { left: 38%; animation-delay: -4s;  animation-duration: 14s; }

@keyframes fall {
  0%   { transform: translate3d(0, -30px, 0) rotate(0deg); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 0.9; }
  100% { transform: translate3d(-26px, 108vh, 0) rotate(430deg); opacity: 0; }
}

/* =========================================
   10. สไตล์เพิ่มเติมสำหรับ Admin & ปุ่มลบ
========================================= */
.btn-admin.is-admin {
  background: #ff8ea3;
  color: white;
  border-color: #ff6881;
}

.btn-delete-review {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff0f3;
  color: #c94a65;
  border: 1px solid #fcd8e3;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-delete-review:hover {
  background: #fcd8e3;
  transform: scale(1.05);
}

.error-msg {
  color: #e0526e;
  font-size: 11px;
  margin: -4px 0 10px;
  display: none;
}

.error-msg.show {
  display: block;
}

#admin-pin-input {
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.3em;
}

/* =========================================
   11. Custom Glassmorphism Confirm Modal
========================================= */
.glass-popup-card {
  position: relative;
  width: 90%;
  max-width: 320px;
  padding: 28px 20px 22px;
  text-align: center;
  border-radius: 28px;
  background: rgba(255, 253, 254, 0.9);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 20px 40px rgba(255, 95, 122, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  animation: glassPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-icon-box {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(242, 155, 176, 0.15);
  color: #d95b77;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid rgba(242, 155, 176, 0.3);
}

.glass-popup-card h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 700;
}

.glass-popup-card p {
  margin: 0 0 20px 0;
  font-size: 12px;
  color: var(--text-gray);
  line-height: 1.4;
}

.confirm-btn-group {
  display: flex;
  gap: 10px;
}

.btn-glass-cancel, .btn-glass-confirm {
  flex: 1;
  padding: 10px 0;
  border-radius: 14px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

.btn-glass-cancel {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-gray);
  border: 1px solid var(--card-border);
}

.btn-glass-cancel:hover {
  background: rgba(255, 255, 255, 0.98);
}

.btn-glass-confirm {
  background: #f29bb0;
  color: white;
  box-shadow: 0 4px 12px rgba(242, 155, 176, 0.35);
}

.btn-glass-confirm:hover {
  background: #e58298;
  transform: translateY(-1px);
}

@keyframes glassPopIn {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.form-group input.input-error,
.form-group textarea.input-error {
  border-color: #f29bb0 !important;
  background-color: #fff5f7 !important;
  box-shadow: 0 0 0 3px rgba(242, 155, 176, 0.18);
  animation: fieldShake 0.3s ease-in-out;
}

.field-error {
  display: none;
  color: #e0526e;
  font-size: 11px;
  margin: 5px 0 0 2px;
  font-weight: 600;
}

.field-error.show {
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeIn 0.2s ease;
}

@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* =========================================
   12. ปุ่มแบ่งหน้า (Pagination)
========================================= */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.page-btn {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--card-border);
  color: var(--text-dark);
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(:disabled) {
  background: #fff;
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.page-btn.active {
  background: var(--accent-orange);
  color: white;
  border-color: var(--accent-orange);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.plus-one {
  display: block; margin-top: 4px; color: var(--text-gray); font-size: 12.5px;
}

/* =========================================
   13. Custom Rating Dropdown (สไลด์ลง)
========================================= */
.custom-rating-select {
  position: relative;
  user-select: none;
  width: 100%;
}

.select-selected {
  background: var(--amber-light);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 95, 122, 0.05);
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.select-selected:hover, 
.custom-rating-select.open .select-selected {
  border-color: var(--accent-orange);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 142, 163, 0.18);
}

.selected-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arrow-icon {
  font-size: 11px;
  color: var(--text-gray);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-rating-select.open .arrow-icon {
  transform: rotate(180deg);
  color: var(--accent-orange);
}

.select-items {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(255, 95, 122, 0.18);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scaleY(0.95);
  transform-origin: top center;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-rating-select.open .select-items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scaleY(1);
}

.select-item {
  padding: 11px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 142, 163, 0.08);
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.select-item:last-child {
  border-bottom: none;
}

.select-item:hover {
  background-color: var(--amber-light);
  padding-left: 18px;
}

.select-item.active {
  background-color: #ffebf1;
  font-weight: bold;
}

.rating-stars {
  color: var(--star-gold);
  font-size: 11px;
  display: inline-flex;
  gap: 2px;
}

.rating-text {
  font-size: 12px;
  color: var(--text-dark);
}

/* =========================================
   14. ป้องกันการคัดลอกและการลากรูปภาพ
========================================= */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ปลดล็อกให้ช่องกรอกข้อมูลยังคงพิมพ์และเลือกข้อความได้ */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ป้องกันการลากรูปภาพ */
img {
  -webkit-user-drag: none;
  -user-drag: none;
  pointer-events: none;
}

/* =========================================
   จัดตำแหน่งหัวข้อ & ปุ่มหลักฐานการซื้อ-ขาย
========================================= */
.review-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.title-group .section-title {
  margin: 2px 0 0 0;
}

.proof-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #ffffff, #fff3f5);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(255, 95, 122, 0.1);
  transition: all 0.25s ease;
}

.proof-btn i {
  color: #f4c464;
  font-size: 13px;
}

.proof-btn:hover {
  background: #ffebf1;
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 142, 163, 0.25);
}

.proof-btn:hover i {
  color: var(--accent-orange);
}

/* =========================================
   14. Cookie Tap Effect (รูปภาพเด้งตรงจุดกด)
========================================= */
.cookie-tap-single {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 100px;
  height: 100px;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  animation: singleCookiePop 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

@keyframes singleCookiePop {
  0% {
    transform: translate(-50%, -50%) scale(0.2) rotate(-8deg);
    opacity: 0;
  }
  35% {
    transform: translate(-50%, -50%) scale(1.2) rotate(4deg);
    opacity: 1;
  }
  65% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, calc(-50% - 6px)) scale(0.7);
    opacity: 0;
  }
}

/* เมื่อมีการกดสั่งพิมพ์ หน้าเว็บจะกลายเป็นหน้าว่างเปล่าทันที */
@media print {
  html, body {
    display: none !important;
  }
}

/* =========================================
   15. ปุ่มควบคุมเพลง (ซีดีหมุนมินิมอล)
========================================= */
.music-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--card-border);
  color: var(--accent-brown);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(113, 113, 113, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.music-btn:hover {
  background: #ffffff;
  transform: scale(1.08);
  color: #565656;
}

.music-btn:active {
  transform: scale(0.95);
}

/* แผ่นซีดีหมุนนุ่มนวลตอนเล่นเพลง */
.music-btn.playing i {
  animation: spinCD 4s linear infinite;
  color: var(--accent-brown);
  will-change: transform;
}

@keyframes spinCD {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}