/* ==========================================================================
   STRIPCHAT PLATFORM ARCHIVE PREMIUM CUSTOM STYLING
   ========================================================================== */

.pm-stripchat-hero {
    position: relative;
    background: radial-gradient(circle at top right, rgba(232, 41, 86, 0.12) 0%, #0e0e16 65%), linear-gradient(180deg, #0b0b0e 0%, #0e0e16 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 45px 0;
    text-align: center;
}

.pm-stripchat-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.pm-stripchat-badge-top {
    display: inline-block;
    background: rgba(232, 41, 86, 0.15);
    color: #E82956;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(232, 41, 86, 0.3);
}

.pm-stripchat-main-title {
    font-size: 46px;
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0 0 16px 0;
    line-height: 1.1;
}

.pm-stripchat-main-title span {
    background: linear-gradient(135deg, #FF3E6C 0%, #E82956 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pm-stripchat-description {
    font-size: 16px;
    line-height: 1.6;
    color: #94A3B8;
    margin-bottom: 30px;
}

.pm-stripchat-hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.pm-stripchat-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.pm-stripchat-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.pm-stripchat-stat-val {
    font-size: 32px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
}

.pm-stripchat-stat-lbl {
    font-size: 11px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
    font-weight: 700;
}

/* Podium Classification Section (Dark Premium) */
.pm-stripchat-leaderboard-section {
    background: #09090f;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-stripchat-leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pm-stripchat-leaderboard-title {
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 45px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pm-stripchat-leaderboard-title span {
    color: #FFD700;
}

.pm-stripchat-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.pm-podium-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 0; /* Flush alignment for rectangular image */
    width: 32%;
    max-width: 320px;
    height: 410px; /* Fixed height for consistent look and no extra spacing */
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    overflow: hidden; /* Clips image corners to card radius */
}

.pm-podium-card.rank-1 {
    height: 410px;
    border-color: #FFD700;
    transform: translateY(-15px) scale(1.06); /* Scale up and translate to create podium physically */
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15), 0 20px 45px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.pm-podium-card.rank-2 {
    height: 410px;
    border-color: #E2E8F0;
}

.pm-podium-card.rank-3 {
    height: 410px;
    border-color: #E2E8F0;
}

.pm-podium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.pm-podium-card.rank-1:hover {
    transform: translateY(-22px) scale(1.08); /* Maintain translation and scale on hover */
    box-shadow: 0 20px 45px rgba(255, 215, 0, 0.25), 0 25px 50px rgba(0, 0, 0, 0.6);
}

.pm-podium-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    transform: none;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 30px;
    z-index: 4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pm-podium-card.rank-1 .pm-podium-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.pm-podium-card.rank-2 .pm-podium-badge {
    background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 100%);
    color: #000;
    box-shadow: 0 4px 10px rgba(148, 163, 184, 0.4);
}

.pm-podium-card.rank-3 .pm-podium-badge {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.4);
}

.pm-podium-avatar-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    margin: 0;
    overflow: hidden;
}

.pm-podium-card.rank-1 .pm-podium-avatar-wrapper {
    height: 180px; /* Fixed dimension at 180px for Rank 1 as well */
}

.pm-podium-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* Fully rectangular */
    border: none;
    box-sizing: border-box;
}

.pm-podium-crown {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.pm-podium-card.rank-1 .pm-podium-crown {
    font-size: 28px;
    top: 10px;
    right: 10px;
}

.pm-podium-name {
    color: #1E1E26;
    font-size: 18px;
    font-weight: 900;
    margin: 12px 15px 4px 15px;
    text-transform: uppercase;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(100% - 30px);
}

.pm-podium-card.rank-1 .pm-podium-name {
    font-size: 20px;
}

/* Beautiful tag pills layout to fill white space and improve UI */
.pm-podium-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 6px 15px;
    min-height: 24px; /* Ensures consistent layout even with fewer tags */
}

.pm-podium-tag-pill {
    background: #F8FAFC;
    color: #64748B;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #E2E8F0;
}

/* Premium dual-column stats box */
.pm-podium-stats-box {
    display: flex;
    width: calc(100% - 32px);
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px 0;
    margin: 10px 16px;
    justify-content: space-around;
}

.pm-podium-stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.pm-podium-stat-col:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: #E2E8F0;
}

.pm-stat-label {
    font-size: 8px;
    color: #94A3B8;
    font-weight: 900;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.pm-stat-value {
    font-size: 13px;
    font-weight: 800;
    color: #1E1E26;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pm-podium-btn {
    width: calc(100% - 30px);
    background: var(--platform-brand-gradient, #E82956);
    color: #FFFFFF !important;
    padding: 10px 0;
    border-radius: 30px;
    font-weight: 900;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px var(--platform-brand-glow);
    margin: auto 15px 20px 15px;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.pm-podium-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.pm-podium-card.rank-1 .pm-podium-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
}

/* Runner Ups List */
.pm-stripchat-runners-up {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 850px;
    margin: 0 auto;
}

.pm-runner-row {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.3s ease, max-height 0.3s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pm-runner-row:hover {
    background: #FAFAFA;
    border-color: #CBD5E1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.pm-runner-row-hidden {
    display: none !important;
}

.pm-runner-rank {
    font-size: 22px;
    font-weight: 900;
    color: #475569;
    width: 35px;
}

.pm-runner-avatar-wrapper {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.pm-runner-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #E2E8F0;
}

.pm-runner-info {
    flex: 1;
    min-width: 0;
}

.pm-runner-name {
    color: #1E1E26;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 2px 0;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.pm-runner-meta {
    font-size: 11px;
    color: #64748B;
}

.pm-runner-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #475569;
    font-size: 13px;
    margin-right: 15px;
}

.pm-runner-rating {
    color: #FFB800;
    font-weight: 700;
}

.pm-runner-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pm-runner-btn {
    background: #F1F5F9;
    color: #475569 !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid #E2E8F0;
}

.pm-runner-btn:hover {
    background: var(--platform-brand-gradient, #E82956);
    color: #FFFFFF !important;
    border-color: transparent;
    box-shadow: 0 4px 10px var(--platform-brand-glow);
}

/* Toggle Leaderboard Button */
.pm-leaderboard-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.pm-leaderboard-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94A3B8;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.pm-leaderboard-toggle-btn:hover {
    border-color: var(--platform-brand-color, #E82956);
    color: #FFFFFF;
    background: var(--platform-brand-glow);
    transform: translateY(-1px);
}

/* Rest of Archive Grid Container Styling */
.pm-stripchat-archive-main {
    padding: 60px 0;
    background: var(--pm-bg-color, #F8F9FB);
}

.pm-stripchat-section-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--pm-text-color, #1E1E26);
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    border-left: 4px solid var(--platform-brand-color, #FF3B68);
    padding-left: 14px;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .pm-podium-card,
    .pm-podium-card.rank-1,
    .pm-podium-card.rank-2,
    .pm-podium-card.rank-3 {
        height: 380px;
    }
    .pm-podium-card.rank-1 {
        transform: translateY(-10px) scale(1.04);
    }
    .pm-podium-avatar-wrapper,
    .pm-podium-card.rank-1 .pm-podium-avatar-wrapper {
        height: 150px;
    }
    .pm-podium-name {
        font-size: 15px;
    }
    .pm-podium-card.rank-1 .pm-podium-name {
        font-size: 16px;
    }
    .pm-podium-stats-box {
        margin: 8px 10px;
        padding: 6px 0;
    }
    .pm-stat-value {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .pm-stripchat-hero {
        padding: 40px 0 30px 0;
    }
    .pm-stripchat-main-title {
        font-size: 32px;
    }
    .pm-stripchat-hero-stats {
        gap: 20px;
        margin-top: 25px;
    }
    .pm-stripchat-stat-item:not(:last-child)::after {
        display: none;
    }
    .pm-stripchat-stat-item {
        width: 45%;
    }
    .pm-stripchat-stat-val {
        font-size: 24px;
    }
    
    .pm-stripchat-podium {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .pm-podium-card {
        width: 100%;
        max-width: 100%;
    }
    .pm-podium-card.rank-1 {
        order: -1; /* Rank 1 goes first on mobile */
        height: auto;
        padding: 0;
        transform: none !important; /* disable scale/translate translation on mobile for stacking */
    }
    .pm-podium-card.rank-2, .pm-podium-card.rank-3 {
        height: auto;
        padding: 0;
        transform: none !important;
    }
    .pm-podium-avatar-wrapper,
    .pm-podium-card.rank-1 .pm-podium-avatar-wrapper {
        height: 180px;
    }
    
    .pm-runner-row {
        padding: 12px 16px;
        gap: 12px;
    }
    .pm-runner-rank {
        font-size: 18px;
        width: 25px;
    }
    .pm-runner-avatar-wrapper {
        width: 42px;
        height: 42px;
    }
    .pm-runner-name {
        font-size: 14px;
    }
    .pm-runner-stats {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        font-size: 12px;
        margin-right: 5px;
    }
    .pm-runner-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
}
