/**
 * GigGo Visual — รูปใหญ่ ข้อความน้อย carousel แนวนอน
 */

html[data-theme="dark"] .app-shell,
html:not([data-theme="light"]) .app-shell {
  --visual-radius: 24px;
}

.home-visual-segments {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 8px;
}

.home-visual-segments--top {
  padding: 8px 16px 4px;
  flex-shrink: 0;
  max-height: 42vh;
  overflow-y: auto;
}

.h-segment__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px 8px;
}

.h-segment__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.h-segment__more {
  font-size: 12px;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
}

.h-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 10px;
  margin: 0 -4px;
}

.h-carousel::-webkit-scrollbar { display: none; }

.h-tile {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 148px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  border-radius: var(--visual-radius, 20px);
  overflow: hidden;
  transition: transform 0.2s;
}

.h-tile:hover { transform: scale(1.04); }
.h-tile:active { transform: scale(0.98); }

.h-tile__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--visual-radius, 20px);
  overflow: hidden;
  background: var(--color-background-secondary);
}

.h-tile__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 6, 14, 0.92) 100%);
  pointer-events: none;
}

.h-tile__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
}

.h-tile__badge--urgent { background: rgba(226, 75, 74, 0.92); }
.h-tile__badge--muted { background: rgba(15, 23, 42, 0.75); }

.h-tile__meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
}

.h-tile__name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h-tile__sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  margin: 2px 0 0;
}

.h-tile--wide { width: 220px; }
.h-tile--wide .h-tile__frame { aspect-ratio: 16 / 10; }

.h-tile--genre .h-tile__frame { aspect-ratio: 1; }

.screen-header--compact .header-title { font-size: 18px; }
.screen-header--compact .greeting { font-size: 13px; }
.screen-header--compact .avail-label { font-size: 11px; }

#home-info-bar { display: none; }

.gig-cover--photo,
.gig-detail-cover--photo,
.swipe-cover--photo {
  position: relative;
  min-height: 160px;
  padding: 0;
  overflow: hidden;
}

.gig-cover--photo { min-height: 200px; }
.gig-detail-cover--photo { min-height: 220px; border-radius: 0; }
.swipe-cover--photo { min-height: 52vh; max-height: 420px; }

.gig-cover__photo,
.gig-detail-cover__photo,
.swipe-cover__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gig-cover--photo .gig-cover-overlay,
.gig-detail-cover--photo .gig-cover-overlay,
.swipe-cover--photo .swipe-cover-overlay {
  background: linear-gradient(180deg, rgba(6, 6, 14, 0.15) 0%, rgba(6, 6, 14, 0.88) 100%);
}

.gig-cover--photo .gig-cover-foot,
.gig-detail-cover--photo .gig-cover-foot {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}

.gig-cover-foot__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.gig-cover-foot__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.gig-cover-foot__price {
  font-size: 15px;
  font-weight: 700;
  color: #c4b5fd;
}

.job-card--visual .gig-card-body {
  padding: 10px 12px 12px;
}

.job-card--visual .card-title {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card--visual .card-tags { gap: 6px; }
.job-card--visual .card-tags .label { display: none; }

.job-card--visual .gig-cover-emoji,
.job-card--visual .gig-cover-vibe { display: none; }

.swipe-cover--photo .swipe-cover-emoji,
.swipe-cover--photo .swipe-vibe { display: none; }

.swipe-body--minimal .swipe-venue { font-size: 20px; margin-bottom: 4px; }
.swipe-body--minimal .swipe-genre-hero { font-size: 13px; opacity: 0.85; }
.swipe-body--minimal .swipe-meta-icons span:nth-child(n+3) { display: none; }
.swipe-body--minimal .swipe-location { display: none; }
.swipe-hint { font-size: 10px; opacity: 0.5; }

.discover-toolbar--visual { gap: 8px; }
.discover-hint { display: none; }

.discover-carousel-wrap { margin-bottom: 18px; }

.discover-carousel-wrap .discover-section-title {
  font-size: 14px;
  margin: 0 0 8px;
}

.discover-tile {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 132px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s;
}

.discover-tile:hover { transform: scale(1.05); }

.discover-tile__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
}

.discover-tile__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 6, 14, 0.9) 100%);
}

.discover-tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}

.discover-tile:hover .discover-tile__play { opacity: 1; }

.discover-tile__meta {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
}

.discover-tile__name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-tile__sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  margin: 2px 0 0;
}

.discover-tile-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding: 0 2px;
}

.discover-tile-actions .btn { flex: 1; padding: 6px 4px; font-size: 11px; }

.discover-list--visual { gap: 4px; }

.bottom-nav--visual .bnav-item span:not(.bnav-icon):not(.nav-badge) {
  font-size: 10px;
}

html[data-theme="dark"] .bottom-nav,
html:not([data-theme="light"]) .bottom-nav {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top-color: rgba(139, 92, 246, 0.15);
}

.map-job-thumb--photo {
  overflow: hidden;
  padding: 0;
  min-width: 72px;
  min-height: 72px;
  border-radius: 14px;
}

.map-job-thumb--photo .map-job-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
