.tab-page-shop {
    padding: 0;
}

.shop-detail {
    padding: 16px 12px calc(16px + var(--safe-bottom));
}

.shop-detail-loading,
.shop-detail-empty,
.shop-detail-error {
    padding: 40px 16px;
    text-align: center;
    font-size: 17px;
    color: var(--color-text-muted);
}

.shop-detail-head {
    background: var(--color-surface);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.shop-detail-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.shop-detail-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.shop-detail-address svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    fill: var(--color-primary);
}

.shop-detail-intro {
    margin-top: 10px;
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.shop-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.shop-stat {
    background: rgba(201, 162, 39, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}

.shop-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.shop-stat-label {
    margin-top: 4px;
    font-size: 15px;
    color: var(--color-text-muted);
}

.shop-match-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-match-item {
    background: var(--color-surface);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
}

.shop-match-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.shop-match-meta {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.shop-detail-section {
    margin-top: 4px;
}

.shop-detail-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.shop-detail-section-sub {
    font-size: 15px;
    color: var(--color-text-muted);
    font-weight: 400;
}

.shop-participant-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-participant-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    background: var(--color-surface);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 12px;
    padding: 12px;
}

.shop-participant-item.has-bg {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-color: rgba(255, 255, 255, 0.16);
}

.shop-participant-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 12, 16, 0.32), rgba(12, 12, 16, 0.1));
    pointer-events: none;
    z-index: 0;
}

.shop-participant-item > .shop-participant-avatar-wrap,
.shop-participant-item > .shop-participant-info {
    position: relative;
    z-index: 1;
}

.shop-participant-tier {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
}

.shop-score-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.shop-tier-tag {
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    color: #f5d76e;
    background: rgba(245, 215, 110, 0.16);
    border: 1px solid rgba(245, 215, 110, 0.28);
}

.shop-score-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.shop-participant-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.shop-participant-avatar {
    position: absolute;
    left: 15.5%;
    top: 15.5%;
    width: 69%;
    height: 69%;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2418, #1a1a20);
    border: 1px solid rgba(201, 162, 39, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    overflow: hidden;
    box-sizing: border-box;
}

.shop-participant-avatar.has-frame {
    border-color: transparent;
}

.shop-participant-avatar img,
.shop-participant-avatar .app-avatar-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-avatar-frame {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    object-fit: contain;
}

.shop-participant-info {
    flex: 1;
    min-width: 0;
}

.shop-participant-name {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 2px;
}

.shop-participant-time {
    font-size: 15px;
    color: var(--color-text-muted);
}
