/* ===== Mobile - Artist Detail - Amazon Section ===== */
.amazon-section-m {
  background: #fffbf0;
  border: 1px solid #f0d9a8;
  border-radius: 8px;
  padding: 16px;
  margin-top: 24px;
}
.amazon-section-m .section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FF9900;
}
.amazon-section-m .section-header h2 {
  margin: 0;
  font-size: 16px;
  color: #232F3E;
}
.amazon-badge-sm {
  display: inline-block;
  background: #232F3E;
  color: #FF9900;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
}
.amazon-product-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s;
}
.amazon-product-item:hover, .amazon-product-item:active {
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.amazon-product-item img {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-right: 12px;
}
.amazon-product-info {
  flex: 1;
  min-width: 0;
}
.amazon-product-info .product-name {
  font-size: 15px;
  color: #0066c0;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.amazon-cta-btn-sm {
  display: inline-block;
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  border: 1px solid #a88734;
  border-radius: 3px;
  color: #111;
  font-size: 12px;
  padding: 5px 12px;
  text-decoration: none;
}

/* ===== Mobile - Artist Detail - YouTube Section ===== */
.yt-section-m {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 24px;
}
.yt-section-m .yt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c00;
}
.yt-section-m .yt-header h2 {
  margin: 0;
  font-size: 16px;
  color: #333;
}
.yt-badge-sm {
  display: inline-block;
  background: #c00;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
}
.yt-video-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}
.yt-video-item img {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
}
.yt-video-item .yt-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Mobile - Best Artists Section ===== */
.best-artists-section-m {
  background: #fffbf0;
  border: 1px solid #f0d9a8;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}
.best-artists-header-m {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FF9900;
}
.best-artists-header-m .badge-amazon {
  display: inline-block;
  background: #232F3E;
  color: #FF9900;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
}
.best-artists-header-m span:last-child {
  font-size: 13px;
  color: #555;
}

/* ===== Mobile - Artist Index ===== */
.nav-pills-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 8px 0;
}
.nav-pills-custom a, .nav-pills-custom .active {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #555;
  background: #f0f0f0;
  border: 1px solid #ddd;
  -webkit-tap-highlight-color: transparent;
}
.nav-pills-custom .active {
  background: #4a90d9;
  color: #fff;
  border-color: #4a90d9;
  pointer-events: none;
}
.filter-card {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
}
.filter-card .form-control, .filter-card .form-select {
  font-size: 14px;
}
.filter-card .btn-search {
  background: #4a90d9;
  color: #fff;
  border: none;
  font-weight: 600;
}

/* ===== Mobile Header Search ===== */
.header-mobile-shell {
  padding-top: 8px;
}
.header-search-form-m {
  margin-top: 10px;
}
.header-search-group-m {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-search-input-m {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d6deea;
  border-radius: 12px;
  background: #fff;
  color: #314155;
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.04);
}
.header-search-input-m:focus {
  outline: none;
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.18);
}
.header-search-button-m {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4a90d9 0%, #3a7bd5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(58, 123, 213, 0.22);
}
.header-search-button-m:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(58, 123, 213, 0.18);
}

/* ===== Mobile - List Items ===== */
.list-group .list-group-item {
  border-radius: 8px !important;
  margin-bottom: 6px;
  border: 1px solid #e0e0e0;
  transition: box-shadow .2s;
  overflow: hidden;
}
.list-group .list-group-item:active {
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.artist-placeholder {
  border: none !important;
  background: linear-gradient(135deg, #e8eaf6, #f5f5f5);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.artist-placeholder::after {
  content: "\266B";
  font-size: 36px;
  color: #bbb;
  position: absolute;
}

/* ===== Mobile - Amazon Product Iframe (Best Artists Cards) ===== */
.amazon-iframe-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow .2s;
}
.amazon-iframe-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,.1);
}
.amazon-iframe-thumb {
  flex-shrink: 0;
}
.amazon-iframe-thumb img {
  border-radius: 4px;
}
.amazon-iframe-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.amazon-iframe-body .recommend_description {
  float: none;
  width: 100%;
  margin: 0;
}
.amazon-iframe-cta {
  display: inline-block;
  margin-top: 12px;
  background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
  border: 1px solid #a88734;
  border-radius: 3px;
  color: #111;
  font-size: 14px;
  padding: 8px 20px;
  text-decoration: none;
  font-weight: bold;
}
.amazon-iframe-cta:hover {
  background: linear-gradient(to bottom, #f5d78e, #eeb933);
}

/* ===== Mobile - Recommend Products ===== */
.product-thumb {
  width: 160px;
  float: left;
  margin-right: -20px;
}
h2.recommend_artist_name {
  font-size: 130%;
  font-weight: bold;
  margin-bottom: 4px;
  color: black;
}
div.recommend_description {
  display: inline-block;
  max-width: 480px;
  word-break: break-all;
  vertical-align: top;
}

/* ===== Mobile - Social Links ===== */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #555;
  text-decoration: none;
  font-size: 13px;
}
.social-link:hover {
  background: #f5f5f5;
}

/* ===== Mobile - Footer ===== */
.footer-mobile {
  margin-top: 20px;
  padding: 16px 12px 20px;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
  color: #6b737c;
}
.footer-mobile .footer-mode {
  font-size: 17px;
  margin: 0 0 10px;
  color: #555;
}
.footer-mobile .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  font-size: 14px;
}
.footer-mobile .footer-links a {
  color: inherit;
  text-decoration: none;
}
.footer-mobile .footer-links a:hover {
  text-decoration: underline;
}

/* ===== Mobile - Top Page Instruments List (restore original list-group look) ===== */
.list-group-item.list-group-item-action[href="/violinist/"],
.list-group-item.list-group-item-action[href="/pianist/"],
.list-group-item.list-group-item-action[href="/cellist/"],
.list-group-item.list-group-item-action[href="/flutist/"] {
  border-radius: 0 !important;
  margin-bottom: 0;
  border-color: rgba(0, 0, 0, 0.125);
  overflow: visible;
  box-shadow: none;
}
/* ===== Mobile - Artist Detail Utility ===== */
.yt-desc-truncate {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Mobile - Artist Detail Amazon Meta ===== */
.amazon-meta-m {
  margin-top: 4px;
}
.amazon-meta-line-m {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.45;
  color: #6b7280;
}
.amazon-meta-label-m {
  color: #7b8794;
}
.amazon-feature-copy-m {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #4b5563;
}
.amazon-meta-spacer-m {
  margin-bottom: 8px;
}

/* ===== Mobile - Artist Detail YouTube Meta ===== */
.yt-thumb-wrap {
  position: relative;
  display: block;
  flex: 0 0 120px;
  width: 120px;
  overflow: hidden;
  border-radius: 4px;
  line-height: 0;
}
.yt-thumb-wrap img {
  display: block;
  width: 120px;
  height: 90px;
  object-fit: cover;
}
.yt-video-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-left: 14px;
}
.yt-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  color: #2f2f2f;
}
.yt-duration-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.yt-video-desc {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  max-height: 2.9em;
  -webkit-line-clamp: 2;
}

/* ===== Mobile - Artist Detail Recommend ===== */
.recommend-mobile {
  margin-top: 24px;
  padding: 18px 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 100%);
}
.recommend-mobile-header {
  margin-bottom: 12px;
}
.recommend-mobile-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8eef8;
  color: #50627a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.recommend-mobile-header h2 {
  margin: 8px 0 4px;
  font-size: 19px;
  line-height: 1.35;
  color: #243447;
}
.recommend-mobile-lead {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #6b7280;
}
.recommend-mobile-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.recommend-mobile-item {
  flex: 0 0 120px;
  text-decoration: none;
}
.recommend-mobile-card {
  display: block;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(36, 52, 71, 0.08);
}
.recommend-mobile-thumb {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}
.recommend-mobile-thumb img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
}
.recommend-mobile-name {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #374151;
  text-align: center;
}
.top-mobile-recommend {
  margin-top: 8px;
  margin-bottom: 20px;
}
.top-mobile-recommend .recommend-mobile-header {
  margin-bottom: 14px;
}
.top-mobile-recommend .recommend-mobile-list {
  gap: 14px;
  padding-bottom: 8px;
}
