.ranking-page {
  margin-top: 0rem;
  margin-bottom: 1rem;
}

.ranking-page.is-loading {
  opacity: 0.86;
  transition: opacity 0.18s ease;
}

.ranking-page-header {
  text-align: center;
  margin-bottom: 1rem;
}

.ranking-page-header h1 {
  font-size: 1.8rem;
  margin: 0 0 0.4rem;
}

.ranking-page-header p {
  margin: 0;
  color: #555;
}

.ranking-page-header .rank-type-definition {
  color: #eef3f8;
}

.rank-type-tabs {
  margin: 0.9rem 0 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #8c309f;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f7f7;
}

.rank-type-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.6rem;
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-right: 1px solid #1b232a;
  background: #1b232a;
}

.rank-type-tab:last-child {
  border-right: none;
}

.rank-type-tab.active {
  color: #fff;    
  background: linear-gradient(180deg, #2f3947 0%, #4800cc 100%);
}

.rank-type-tab:hover {
  background: #28333d;
}

.rank-type-tab.active:hover {
  background: linear-gradient(180deg, #364456 0%, #49627c 100%);
}

.ranking-breadcrumb {
  margin: 0.75rem 0 1rem;
  font-size: 0.92rem;
}

.ranking-breadcrumb a {
  text-decoration: none;
  color: #2b5fab;
}

.ranking-breadcrumb .sep {
  margin: 0 0.45rem;
  color: #777;
}

.ranking-level-selects {
  border: 1px solid #2f3b45;
  border-radius: 10px;
  background: #1b232a;
  padding: 0.9rem;
  margin-bottom: 1rem;
}

.select-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.select-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.select-field > span {
  font-size: 0.84rem;
  color: #c6d2db;
  font-weight: 700;
}

.select-field select {
  height: 40px;
  border: 1px solid #41515f;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.92rem;
  background: #222d35;
  color: #e9eff4;
}

.select-field select:disabled {
  background: #1a232a;
  color: #7f8d98;
}

.select-field select:focus {
  outline: none;
  border-color: #db80ae;
  box-shadow: 0 0 0 2px rgba(219, 128, 174, 0.15);
}

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ranking-item {
  display: block;
  background: #2b2b2b;
  border-radius: 8px;
  border: 1px solid #191919;
  box-sizing: border-box;
  overflow: hidden;
}

.ranking-item + .ranking-item {
  margin-top: 0.7rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid #404040;
  gap: 10px;
}

.rank-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.rank-no {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffd56a;
  flex-shrink: 0;
}

.rank-medal.gold {
  color: #f4c430;
}

.rank-medal.silver {
  color: #c8ced7;
}

.rank-medal.bronze {
  color: #cd7f32;
}

.rank-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #1a1a1a;
  border: 1px solid #4a4a4a;
  flex-shrink: 0;
}

.shop-link {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-link:hover {
  text-decoration: underline;
}

.card-content {
  display: flex;
  flex-wrap: wrap;
  padding: 8px;
  gap: 12px;
  align-items: flex-start;
}

.shop-image {
  flex-shrink: 0;
}

.shop-image img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
}

.rank-main {
  flex: 1;
  min-width: 0;
}

.shop-meta {
  margin-top: 0.1rem;
  font-size: 0.8rem;
  color: #9ca8b0;
}

.shop-info-grid {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
      border-bottom: 1px #605c5c dashed;
}

.shop-info-grid .info-item {
  color: #cfd6db;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.shop-info-grid .info-item i {
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.shop-info-grid .info-item a {
  color: #cfe4ff;
  text-decoration: none;
}

.shop-info-grid .info-item a:hover {
  text-decoration: underline;
}

.shop-info-grid .fa-clock {
  color: #f4c430;
}

.shop-info-grid .fa-route {
  color: #7dc4ff;
}

.shop-info-grid .fa-user-secret {
  color: #ff8f8f;
}

.shop-info-grid .fa-link {
  color: #8fd8ff;
}

.shop-info-grid .fa-yen-sign {
  color: #7ff0a0;
}

.shop-info-grid .fa-user {
  color: #c9b2ff;
}

.shop-info-grid .fa-phone {
  color: #6de08d;
}

.metrics {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: #f1f4f7; 
  border: 1px solid transparent;
}

.metric-chip i {
  font-size: 0.9rem;
}
 

.metric-rating i {
  color: #f4c430;
}
 

.metric-review i {
  color: #60b1ff;
}
 

.metric-view i {
  color: #8f9bff;
}
 

.metric-phone i {
  color: #5fd67d;
}
 

.metric-fav-shop i {
  color: #ff6eaf;
}
 

.metric-fav-girl i {
  color: #b087ff;
}

.ranking-actions {
  margin-top: 0.2rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.rank-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid transparent;
  box-sizing: border-box;
  min-width: 0;
  white-space: nowrap;
}

.rank-action-btn.phone {
  background: #1f6d35;
  border-color: #2a8242;
  color: #ffffff;
}

.rank-action-btn.favorite {
        background: #3f3f46;
        border-color: #5e5e66;
}

.rank-action-btn.favorite.active {
  background: #7b203f;
  border-color: #d65b8a;
  color: #fff4fa;
}

.rank-action-btn.detail {
  background: #3f6385;
  border-color: #53789b;
  color: #ffffff;
}

.rank-action-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.score-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffd56a;
}

.ranking-empty {
  text-align: center;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  padding: 1.2rem;
}

.shop-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.shop-layout .main {
  flex: 1;
  min-width: 0;
}

.shop-layout .sidebar {
  max-width: 300px;
  width: 100%;
  min-width: 250px;
}

.sidebar .new-list {
  background: #2c3e50;
  border: 1px solid #6ef9a066;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar .new-list + .new-list {
  margin-top: 12px;
}

.sidebar .new-list h2 {
  margin-top: 0;
  font-size: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #6ef9a066;
  color: #fff;
}

.sidebar .new-list h2 i {
  margin-right: 6px;
}

.sidebar .new-list h2 .fa-user-nurse {
  color: #f6c343;
}

.sidebar .new-list h2 .fa-bolt {
  color: #40f312;
}

.sidebar .new-list .new-shop-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto 1fr;
  gap: 4px 6px;
  background: #34495e;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #2c3e50;
  box-sizing: border-box;
  min-height: 64px;
  margin-bottom: 10px;
  transition: background 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.sidebar .new-list .new-shop-card:hover {
  background: #4a6741;
}

.sidebar .new-list .new-shop-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.sidebar .new-list .new-shop-card .new-shop-info {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}

.sidebar .new-list .new-shop-card .shop-name {
  margin-left: 13px;
  line-height: 1.2;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.sidebar .new-list .new-shop-card .station {
  color: #bdc3c7;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: 13px;
}

.sidebar .new-list .new-shop-card .business-time {
  color: #bdc3c7;
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: 13px;
}

.sidebar .new-list .new-shop-card .business-time i {
  margin-right: 3px;
}

.sidebar .new-list .new-shop-card .fa-clock {
  color: #f39c12;
}

.sidebar .new-list .new-shop-card .fa-location-dot {
  color: #8ab4f8;
}

.sidebar-empty {
  color: #c7d2db;
  font-size: 13px;
  margin: 8px 4px;
}

@media (max-width: 768px) {
  .shop-layout {
    display: block;
  }

  .shop-layout .sidebar {
    max-width: none;
    min-width: 0;
    margin-top: 14px;
  }

  .rank-type-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: none;
    background: transparent;
    overflow: visible;
  }

  .rank-type-tab {
    border: 1px solid #32475a;
    border-radius: 10px; 
  }

  .rank-type-tab:last-child {
    border-right: 1px solid #1b232a;
  }

  .select-row {
    grid-template-columns: 1fr;
  }

  .ranking-actions {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .card-content {
    gap: 10px;
  }

  .shop-image img {
width: 100%;
        height: auto;
        max-height: 115px;
        max-width: 120px;
  }

  .shop-link {
    font-size: 0.95rem;
  }

  .shop-meta {
    font-size: 0.76rem;
  }

  .shop-info-grid {
    gap: 5px 8px;
  }

  .shop-info-grid .info-item {
    font-size: 11px;
  }

  .rank-action-btn {
    padding: 0 6px;
    font-size: 0.76rem;
  }
}