/* components.css - hero, cards, category, filter, grid, overlay, subscription */

/* ========== Hero ========== */

.hero {
  padding: 28px 0 18px; /* ปรับจากของเดิมให้ spacing ใกล้ artlist */
}

/* ใช้เป็น wrapper กริดซ้ายขวา (ข้อความ + vdo) */
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

/* ถ้าโค้ดเดิมยังใช้ .hero-inner อยู่ ให้มันทำหน้าที่เป็น max-width wrapper */
.hero-inner {
  max-width: 640px;
}

/* ฝั่งข้อความของ hero */
.hero-copy h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.hero-copy p {
  opacity: 0.8;
  margin: 0 0 16px;
  font-size: 14px;
}

/* ปุ่มใน hero */
.hero-actions {
  display: flex;
  gap: 12px; /* เดิม 10px → ให้ดูมีน้ำหนักขึ้น */
}

.hero-btn-primary {
  font-weight: 600;
  padding-inline: 20px;
  padding-block: 9px;
}

.hero-btn-secondary {
  font-weight: 500;
  padding-inline: 18px;
  padding-block: 9px;
}

/* ฝั่ง vdo / gradient card */
.hero-media {
  position: relative;
}

.hero-video-frame {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  padding-top: 62%; /* อัตราส่วนกล่อง hero vdo */
  background: radial-gradient(circle at 10% 0%, #ffaf7a, #4c4cff);
}

.hero-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Hero cards (Collections) ========== */

.hero-cards {
  margin-top: 18px;
  margin-bottom: 20px;
  overflow-x: auto;
}

/* ซ่อน scrollbar แนวนอน */
.hero-cards::-webkit-scrollbar {
  display: none;
}
.hero-cards {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-cards-track {
  display: flex;
  gap: 14px;
  padding-bottom: 4px;
}

.hero-card {
  flex: 0 0 auto;
  width: 170px; /* ขยายจาก 120 → ให้การ์ดใหญ่ขึ้นแบบ reference */
}

.hero-card-thumb {
  border-radius: 20px;
  padding: 6px;
  position: relative;
  overflow: hidden;
}

.hero-card-thumb-bg {
  width: 100%;
  padding-top: 100%;
  border-radius: 16px;
  background: radial-gradient(circle at 10% 0%, #ff7a7a, #4a3aff);
  opacity: 0.8;
}

.hero-card-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========== Category strip (เมนูใต้ Collection) ========== */

.category-strip {
  margin-top: 4px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.category-strip-track {
  display: inline-flex;
  gap: 18px;
  align-items: center;
}

.category-strip-track::-webkit-scrollbar {
  display: none;
}

.category-tile {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  opacity: 0.85;
}

.category-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon img {
  width: 18px;
  height: 18px;
}

.category-label {
  white-space: nowrap;
}

/* ========== Filter bar ========== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.filter-group label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.filter-pills {
  display: inline-flex;
  gap: 6px;
}

.filter-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  opacity: 0.7;
}

.filter-pill.active {
  opacity: 1;
  border-color: rgba(255,255,255,0.4);
}

.filter-group select {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  font-size: 13px;
}

/* ========== Grid placeholder ========== */

.asset-grid {
  margin-top: 20px;
}

.asset-grid-placeholder {
  padding: 40px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.15);
  text-align: center;
  font-size: 14px;
  opacity: 0.75;
}

/* ========== Overlay (login) ========== */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(16px);
}

.overlay-panel {
  position: relative;
  z-index: 1;
}

/* ตำแหน่งปุ่ม X (ตามข้อ 8) */
.overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* ========== Login panel ========== */
.login-header {
  margin-bottom: 1rem;
}

.login-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.login-tab {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
}

.login-tab.is-active {
  background: #fff;
  color: #000;
}

.login-form--hidden {
  display: none;
}

.login-social-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-social {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-social img {
  width: 22px;
  height: 22px;
}

.btn-social--google {
  background: #fff;
}

.btn-social--facebook {
  background: #1877F2;
}


.login-panel {
  width: 100%;
  max-width: 380px;
  padding: 20px 20px 24px;
  border-radius: 16px;
  background: rgba(10,10,20,0.94);
}

.login-panel h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #ffffff;
}

.login-panel p {
  color: #ffffff;
  margin: 0 0 14px;
  font-size: 13px;
  opacity: 0.8;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.login-form label {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.login-form input {
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
}

.login-alt {
  margin-top: 6px;
  text-align: center;
  font-size: 12px;
}

.login-alt p {
  margin-bottom: 8px;
}

.login-note {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.7;
}

/* กล่องกลาง (ใช้ทับจาก .overlay-panel เดิม) */
.overlay-panel.auth-panel {
  max-width: 420px;
  width: 100%;
  background: #0f0f11;
  border-radius: 20px;
  border: none; /* ไม่มีเส้นขอบกล่อง */
  padding: 40px 36px 30px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  position: relative;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.overlay.overlay--visible .overlay-panel.auth-panel {
  opacity: 1;
  transform: translateY(0);
}


/* ========== Subscription bar ========== */

.subscription-bar {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 80%;
  height: 100%;
  z-index: 65;
  display: flex;
  align-items: stretch;
}

.subscription-bar-inner {
  position: relative;
  padding: 20px 18px 24px;
  width: 100%;
  border-left: 1px solid rgba(255,255,255,0.14);
  background: rgba(8,8,16,0.98);
}

.subscription-bar h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 18px;
}

.subscription-bar p {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 13px;
  opacity: 0.9;
}

.subscription-benefits {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 13px;
}

.subscription-benefits li {
  margin-bottom: 4px;
}

.subscription-note {
  font-size: 11px;
  opacity: 0.7;
}

.subscription-bar-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* ========== Hide [hidden] elements ========== */

[hidden] {
  display: none !important;
}

/* ========== Small screen tweaks ========== */

@media (max-width: 900px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-media {
    order: -1; /* mobile เอา vdo ไว้บน */
  }
}

@media (max-width: 600px) {
  .hero-copy h1,
  .hero-inner h1 {
    font-size: 22px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Asset grid */

.asset-grid {
  margin-top: 24px;
}

.asset-grid-list {
  display: grid;
  gap: 14px;
}

/* Card */

.asset-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* ========== SINGLE ASSET PAGE ========== */

.asset-page-body {
  background: #050509;
}

.asset-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.asset-back-row {
  margin-bottom: 16px;
}

.asset-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.asset-back-btn:hover {
  border-color: rgba(255,255,255,0.3);
}
.asset-back-icon {
  font-size: 14px;
}

/* HERO LAYOUT */

.asset-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.1fr);
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.asset-hero-preview {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.asset-hero-video,
.asset-hero-image {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

.asset-hero-placeholder {
  height: 400px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  background: radial-gradient(circle at top, #111 0, #050509 55%);
}

.asset-hero-meta {
  padding: 8px 4px;
}

.asset-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.asset-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.asset-badge--premium {
  background: #ffd54f;
  color: #000;
}
.asset-badge--free {
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}

.asset-type-label {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.82);
}

.asset-title {
  font-size: 24px;
  font-weight: 600;
  margin: 6px 0 12px;
  color: #fff;
}

.asset-artist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.asset-artist-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: #111;
  display:flex;
  align-items:center;
  justify-content:center;
}
.asset-artist-avatar img {
  width:100%;
  height:100%;
  object-fit: cover;
}
.asset-artist-avatar-placeholder {
  color:#ffd54f;
  font-weight:600;
  font-size:16px;
}

.asset-artist-meta {
  display:flex;
  flex-direction:column;
}
.asset-artist-label {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:rgba(255,255,255,0.5);
}
.asset-artist-name {
  font-size:13px;
}

.asset-stats-row {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:10px 0 16px;
  font-size:12px;
  color:rgba(255,255,255,0.6);
}

/* ACTION BUTTONS */

.asset-actions-row {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}

.asset-btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  border:1px solid transparent;
  padding:8px 14px;
  font-size:13px;
  cursor:pointer;
  background:transparent;
  color:#fff;
}
.asset-btn-primary {
  background:#ffd54f;
  color:#000;
  border-color:#ffd54f;
}
.asset-btn-primary:hover {
  background:#ffe082;
}
.asset-btn-ghost {
  border-color:rgba(255,255,255,0.25);
}
.asset-btn-ghost:hover {
  border-color:rgba(255,255,255,0.45);
}

.asset-btn-icon img {
  width:16px;
  height:16px;
  display:block;
}

/* TAGS */

.asset-tags {
  margin-bottom:18px;
}
.asset-tags-label {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:rgba(255,255,255,0.6);
  margin-bottom:6px;
}
.asset-tags-list {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.asset-tag-chip {
  display:inline-flex;
  padding:4px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.3);
  font-size:12px;
  color:#fff;
  text-decoration:none;
  background:transparent;
}
.asset-tag-chip:hover {
  border-color:#ffd54f;
}

/* BLOCKS & HEADERS */

.asset-block {
  margin-top:32px;
}

.asset-block-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:12px;
}

.asset-block-title {
  font-size:18px;
  font-weight:600;
}

.asset-link-small {
  font-size:12px;
  color:#ffd54f;
  text-decoration:none;
}
.asset-link-small:hover {
  text-decoration:underline;
}

.asset-note {
  font-size:12px;
  color:rgba(255,255,255,0.6);
}

/* ARTIST GRID */

.asset-artist-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:8px;
}

.asset-artist-card {
  border-radius:12px;
  overflow:hidden;
  position:relative;
  background:#111;
}
.asset-artist-card img,
.asset-artist-card-placeholder {
  width:100%;
  height:100%;
  min-height:80px;
  object-fit:cover;
  display:block;
}

.asset-artist-card-more::after {
  content:'';
  position:absolute;
  inset:0;
  backdrop-filter:blur(2px);
  background:rgba(0,0,0,0.45);
}
.asset-artist-card-more-overlay {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:600;
}

/* SIMILAR GRID */

.asset-similar-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
}

.asset-similar-card {
  text-decoration:none;
  color:#fff;
}
.asset-similar-card img {
  width:100%;
  border-radius:12px;
  display:block;
  object-fit:cover;
}
.asset-similar-placeholder {
  width:100%;
  padding-top:56%;
  border-radius:12px;
  background:#111;
}
.asset-similar-title {
  font-size:12px;
  margin-top:6px;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .asset-hero {
    grid-template-columns: minmax(0,1fr);
  }
  .asset-page {
    padding:16px 16px 48px;
  }
  .asset-artist-grid,
  .asset-similar-grid {
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

.asset-card-thumb-link {
  display: block;
}

.asset-card-thumb {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(255,255,255,0.06), rgba(0,0,0,0.8));
}

/* landscape = 16:9 ประมาณ */
.asset-card--landscape .asset-card-thumb {
  padding-top: 56%;
}

/* portrait = สูง */
.asset-card--portrait .asset-card-thumb {
  padding-top: 135%;
}

.asset-card-video,
.asset-card-image,
.asset-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.asset-card-video,
.asset-card-image {
  object-fit: cover;
}

.asset-card-placeholder {
  background: linear-gradient(135deg, #444, #222);
}

/* overlay */

.asset-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 8px 7px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.asset-card:hover .asset-card-overlay {
  opacity: 1;
}

.asset-card-top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.asset-card-top-actions button {          
  pointer-events: auto !important;
}

.asset-card-thumb-link {
  position: relative;
}

.btn-card-icon {
  padding: 4px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.45);
}

.btn-card-icon img {
  width: 14px;
  height: 14px;
}

.asset-card-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 999px;
  backdrop-filter: blur(14px);
  background: rgba(0,0,0,0.5);
  pointer-events: auto;
}

.asset-card-title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.asset-card-meta {
  font-size: 11px;
  opacity: 0.8;
}

.asset-card-duration {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.6);
}

/* Badge Free/Premium */

.asset-card-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
}

.asset-card-badge--premium {
  background: linear-gradient(120deg, #ffb347, #ff5b5b);
  color: #1b1209;
  font-weight: 600;
}

.asset-card-badge--free {
  background: rgba(0,0,0,0.7);
}

/* Tags under card */

.asset-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 1px;
}

.asset-tag {
  font-size: 11px;
  opacity: 0.75;
}

/* Mobile: overlay โชว์ตลอด (เพราะ hover ไม่มี) */

@media (max-width: 768px) {
  .asset-card-overlay {
    opacity: 1;
  }
}

/* ทำให้หน้า overlay เบลอ + ดำหรู */
.overlay.login-overlay,
.overlay.signup-overlay {
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.65);
}

/* กล่องกลาง (ใช้ทับจาก .overlay-panel เดิม) */
.overlay-panel.auth-panel {
  max-width: 420px;
  width: 100%;
  background: #0f0f11;
  border-radius: 20px;
  padding: 40px 36px 30px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  position: relative;
}

/* ปุ่มปิด X อย่าให้ใหญ่เกิน */
.overlay-panel.auth-panel .overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.overlay-panel.auth-panel .overlay-close img {
  width: 18px;
  height: 18px;
}

/* Title & Sub */
.auth-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 4px;
}
.auth-sub {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 24px;
}

/* ปุ่ม Social */
.auth-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.btn-social {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-social img {
  width: 18px;
  height: 18px;
}
.btn-social.fb {
  background: #1877f2;
  color: #fff;
}
.btn-social.gg {
  background: #ffffff;
  color: #000;
}

/* เส้นแบ่ง or */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 14px 0 18px;
}
.auth-divider:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #272727;
}
.auth-divider span {
  position: relative;
  padding: 0 10px;
  background: #0f0f11;
  color: #777;
  font-size: 12px;
}

/* Form */
.auth-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

/* ช่องกรอกใน overlay: มีแต่เส้น ไม่มีพื้นหลัง */
.auth-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.55);
  background: transparent;
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
}

.auth-form input::placeholder {
  color: rgba(255,255,255,0.6);
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.95);
}

/* กันตัวอื่นมา override อีกรอบ */
.overlay-panel.auth-panel input {
  background: transparent !important;
}

/* wrap input + eye button */
.auth-input-wrap {
  position: relative;
}

.auth-input-wrap input {
  padding-right: 40px; /* กันพื้นที่ให้ปุ่มตา */
}

.input-eye {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.input-eye img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

/* แถว Forgot + Sign in (แนวนอน) */
.auth-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

/* ลิงก์ทั่วไปในฟอร์ม (เช่น forgot) */
.auth-link {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}

/* ปุ่มหลักใน overlay */
.auth-btn {
  padding: 8px 20px;
  border-radius: 6px;      /* มุมมนเล็กน้อย ไม่กลม */
  border: 0;
  background: #2274ff;     /* หรือใช้สีที่คุณอยากได้ */
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ปุ่มที่อยู่แถวเดียวกับ forgot ให้กว้างเท่าข้อความ */
.auth-btn--compact {
  width: auto;
  margin-left: auto;       /* ดันไปชิดขวาของแถว */
}

/* ถ้าต้องการปุ่มเต็มแถว (เช่นในหน้า signup) ใช้คลาสนี้เพิ่ม */
.auth-btn--full {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}
/* ลิงก์ล่าง ๆ */
.auth-link {
  font-size: 13px;
  color: #ffd54a;
  text-decoration: none;
}
.auth-link:hover {
  text-decoration: underline;
}

/* ปุ่มหลักสีเหลือง SOUND7 */
.auth-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 0;
  background: #ffd54a;
  color: #000;
  font-weight: 600;
  margin-top: 8px;
  cursor: pointer;
}

/* ลิงก์ล่าง ๆ */
.auth-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #ffd54a;
}
.auth-bottom {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}
.auth-bottom a {
  color: #ffd54a;
  font-weight: 600;
}

@media (max-width: 600px) {
  .overlay.login-overlay,
  .overlay.signup-overlay {
    align-items: center;             /* จัดให้อยู่กลางแนวตั้ง */
  }

  .overlay-panel.auth-panel {
    width: calc(100% - 32px);
    max-width: 420px;
    height: auto;
    border-radius: 16px;
    padding: 28px 20px 22px;
  }
}

.overlay-panel.auth-panel .auth-title {
  color: #ffffff !important;
}

