/*
Theme Name: Prince rankings
Author: Lukas Stabulionis
Author URI: 
Theme URI: 
Tags: full-site-editing, block-patterns
Text Domain: prince-rankings
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 100.2

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}
/* Theme Name: Prince Rankings Premium
Description: High-end authority dashboard for aesthetic rankings.
*/

/* --- 1. GLOBAL FOUNDATION --- */
:root {
    --bg-dark: #050505;
    --card-bg: #111111;
    --card-hover: #161616;
    --accent-gold: #D4AF37;
    --accent-gold-glow: rgba(212, 175, 55, 0.3);
    --text-main: #FFFFFF;
    --text-dim: #888888;
    --text-muted: #444444;
    --success: #00E676;
    --danger: #FF1744;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box; /* Prevents input overflow */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- 2. TRADITIONAL PREMIUM HEADER --- */
.top-announcement {
    background: var(--accent-gold);
    color: #000;
    text-align: center;
    padding: 8px 0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.site-header {
    background: #000;
    border-bottom: 1px solid #1a1a1a;
    height: 100px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-left .nav-links { justify-content: flex-start; }
.nav-right .nav-links { justify-content: flex-end; }

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--accent-gold); }

.logo a {
    font-size: 26px;
    font-weight: 900;
    text-decoration: none;
    color: #fff;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.logo span { color: var(--accent-gold); }

.contact-btn {
    border: 1px solid var(--accent-gold) !important;
    padding: 10px 20px;
    border-radius: 2px;
    color: var(--accent-gold) !important;
}

/* --- 3. LEADERBOARD --- */
.leaderboard-container {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 60px;
}

.mog-title {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -3px;
    margin: 0;
    text-transform: uppercase;
}

.leaderboard-subtitle {
    color: var(--text-dim);
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 10px;
}

.prince-card {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 1fr 180px;
    align-items: center;
    background: var(--card-bg);
    margin-bottom: 16px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #1a1a1a;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.prince-card:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: #333;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.top-tier { border: 1px solid rgba(212, 175, 55, 0.2); }
.rank-number { font-size: 28px; font-weight: 900; color: var(--text-muted); }
.tier-1 .rank-number { color: var(--accent-gold); }
.prince-score-p {padding-left: 8px;}
.prince-identity { display: flex; align-items: center; gap: 20px; }
.avatar-frame img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.name-box h3 { margin: 0; font-size: 20px; font-weight: 700; }
.territory-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

.data-label { display: block; font-size: 10px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.data-value { font-size: 22px; font-weight: 800; }
.pos { color: var(--success); }
.neg { color: var(--danger); }

.mog-profile-link {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #333;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    border-radius: 4px;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: 8px;
}
.mog-profile-link:hover { background: #fff; color: #000; }

/* --- 4. PROFILE PAGES --- */
.profile-wrapper { max-width: 1100px; margin: 80px auto; padding: 0 40px; }
.profile-hero { display: grid; grid-template-columns: 350px 1fr; gap: 40px; align-items: flex-end; margin-bottom: 40px; }
.profile-id-photo img { width: 100%; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); object-fit: cover; }

.profile-titles h1 { font-size: 72px; font-weight: 900; letter-spacing: -4px; line-height: 0.9; margin: 0; }
.territory-title { color: var(--accent-gold); font-size: 14px; letter-spacing: 5px; text-transform: uppercase; margin: 15px 0; }

/* --- ATTRIBUTE BARS --- */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #1a1a1a;
}

.attribute-row {
    margin-bottom: 5px;
}

.attr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.attr-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.attr-value {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    color: var(--accent-gold);
    font-size: 14px;
}

.attr-bar-bg {
    height: 4px; /* Thin, elegant bar */
    background: #000;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.attr-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold) 0%, #FFFFFF 100%);
    box-shadow: 0 0 10px var(--accent-gold-glow);
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1); /* Smooth expansion */
}

/* Responsive adjustment for bars */
@media (max-width: 998px) {
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    .mog-title {
        line-height: 120%;
    }
    /* --- 3. LEADERBOARD --- */
.leaderboard-container {
    padding: 0 8px;
}
}
.vote-buttons { display: flex; justify-content: center; gap: 20px; margin: 50px 0; }
.vote-btn { padding: 18px 50px; font-weight: 900; text-transform: uppercase; border-radius: 4px; cursor: pointer; transition: 0.3s; }
.vote-btn.up { background: #fff; color: #000; border: none; }
.vote-btn.down { background: transparent; border: 1px solid #333; color: #fff; }

/* --- 5. MINIMAL SENTIMENT BOX (FIXED WIDTH) --- */
#respond {
    background: #111;
    padding: 24px;
    border-radius: 4px;
    border: 1px solid #1a1a1a;
    max-width: 600px;
    margin: 60px auto;
}

#commentform {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.mini-form-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#respond input[type="text"], 
#respond textarea {
    width: 100% !important; /* Forces box-sizing */
    background: #000 !important;
    border: 1px solid #222 !important;
    color: #fff !important;
    padding: 14px !important;
    font-size: 13px !important;
    font-family: var(--font-primary);
    border-radius: 2px;
}

#respond textarea { height: 120px; resize: none; }

#respond input:focus, 
#respond textarea:focus { border-color: var(--accent-gold) !important; outline: none; }

.mini-submit-btn {
    background: var(--accent-gold) !important;
    color: #000 !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    align-self: flex-end;
}

/* List of sentiments */
.sentiment-list { list-style: none; padding: 0; max-width: 600px; margin: 40px auto; }
.sentiment-list .comment { background: #0a0a0a; border: 1px solid #111; padding: 25px; margin-bottom: 15px; border-radius: 4px; }
.comment-author cite { font-style: normal; font-weight: 800; text-transform: uppercase; color: #fff; font-size: 12px; }
.anon-user,
.says { color: var(--text-muted); font-size: 10px; }
.comment-content p { color: #aaa; font-size: 14px; margin: 10px 0 0; }

/* --- 6. FOOTER --- */
.site-footer {
    background: #0a0a0a;
    padding: 80px 0 40px;
    border-top: 1px solid #1a1a1a;
    margin-top: 100px;
}

.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; padding-bottom: 40px; border-bottom: 1px solid #1a1a1a; }
.footer-logo { font-size: 24px; font-weight: 900; margin-bottom: 15px; text-transform: uppercase; }
.footer-logo span { color: var(--accent-gold); }
.footer-col h4 { color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.footer-col a { display: block; color: #666; text-decoration: none; font-size: 13px; margin-bottom: 10px; transition: 0.3s; }
.footer-col a:hover { color: #fff; }

/* --- 7. RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .header-container { grid-template-columns: 1fr 1fr; }
    .nav-left { display: none; }
    .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 998px) {
    .profile-hero { grid-template-columns: 1fr; text-align: center; }
    .stats-grid { grid-template-columns: 1fr; padding: 25px; }
    .premium-h1 { font-size: 50px; }
    .profile-titles h1 { font-size: 44px !important; letter-spacing: -2px !important; }

}/* --- 6. PREMIUM RULES & METHODOLOGY --- */
.page-standard-container {
    max-width: 900px;
    margin: 60px auto 120px;
    padding: 0 20px;
}

.premium-h1 {
    font-size: 80px;
    font-weight: 900;
    letter-spacing: -5px;
    text-transform: uppercase;
    margin: 0;
    line-height: 0.8;
    color: #fff;
}

.premium-tagline {
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 25px;
    font-size: 13px;
    display: block;
}

.section-title {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 80px 0 40px;
    border-left: 4px solid var(--accent-gold);
    padding-left: 20px;
    color: #fff;
}

/* Rules Grid - Two columns for desktop */
.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.method-item {
    background: #111;
    padding: 35px;
    border-radius: 4px;
    border: 1px solid #1a1a1a;
    transition: border-color 0.3s ease;
}

.method-item:hover {
    border-color: var(--accent-gold);
}

.method-item h3 {
    color: var(--accent-gold);
    margin-top: 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-item p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Mechanics / Logic Boxes */
.mechanics-list {
    display: flex;
    gap: 20px;
}

.mech-box {
    flex: 1;
    background: #0a0a0a;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #111;
}

.mech-box strong {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
}

.mech-box p {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0;
}

/* --- MOBILE ADJUSTMENTS FOR RULES --- */
@media (max-width: 768px) {
    .premium-h1 { font-size: 45px; letter-spacing: -2px; }
    .method-grid { grid-template-columns: 1fr; }
    .mechanics-list { flex-direction: column; }
}
/* --- PREMIUM CONTRAST VOTING --- */
.voting-box {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    max-width: 300px; /* Limits the width as requested */
}

.v-btn {
    flex: 1;
    display: flex;
    flex-direction: column; /* Stacks arrow and number vertically */
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}

/* UPVOTE: White Background, Black Text */
.v-btn.up {
    background: #FFFFFF;
    color: #000000;
}

.v-btn.up:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* DOWNVOTE: Black Background, White Text */
.v-btn.down {
    background: #000000;
    color: #FFFFFF;
    border: 2px solid #333; /* Dark border to see it against the dark site */
}

.v-btn.down:hover {
    transform: translateY(5px);
    border-color: #ef4444; /* Subtle red hint on hover */
}

/* Arrow Styling */
.v-icon {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Vote Count Styling */
.vote-count {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -1px;
}

.vote-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-top: 4px;
}
.trending-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #1a1a1a;
}

.mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 1px solid #333;
}

.prince-name {
    flex-grow: 1;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #fff;
}

.stat-count {
    font-family: 'Courier New', monospace;
    font-weight: 900;
}

.stat-count.up { color: #10b981; }
.stat-count.down { color: #ef4444; }
.vote-hub-container { max-width: 1100px; margin: 40px auto; padding: 20px; }
.trending-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.trending-card { background: #0a0a0a; border: 1px solid #1a1a1a; padding: 20px; border-radius: 12px; }
.trending-card.up { border-top: 3px solid #10b981; }
.trending-card.down { border-top: 3px solid #ef4444; }

.main-vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }

/* --- ELITE VOTING HUB STYLING --- */
:root {
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F1D592 50%, #B4941F 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

.elite-vote-hub { max-width: 1200px; margin: 80px auto; padding: 0 40px; }

/* Selection Grid at Top */
.hub-selection-section { margin-bottom: 40px; }
.section-label { font-size: 11px; letter-spacing: 4px; color: var(--accent-gold); text-align: center; margin-bottom: 30px; }

.prince-gallery-grid {
    display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px;
    scrollbar-width: thin; scrollbar-color: var(--accent-gold) transparent;
}

.gallery-item {
    min-width: 120px; text-align: center; cursor: pointer; transition: 0.3s;
}

.gallery-avatar-wrap {
    width: 100px; height: 100px; border-radius: 25px; /* Squircle */
    overflow: hidden; border: 1px solid var(--glass-border); background: #000;
    margin: 0 auto 12px; transition: 0.3s;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.gallery-item:hover img { filter: grayscale(0); }
.gallery-item:hover .gallery-avatar-wrap { border-color: var(--accent-gold); transform: scale(1.05); }

.gallery-name { font-size: 10px; font-weight: 800; text-transform: uppercase; color: #888; letter-spacing: 1px; }

/* Voting Station */
.elite-station-card { margin-bottom: 80px; }
.glass-box {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px); padding: 50px; border-radius: 20px;
    text-align: center;
}

.active-station { display: flex; align-items: center; justify-content: space-between; text-align: left; }

.station-profile { display: flex; align-items: center; gap: 30px; }
.station-avatar { width: 140px; height: 140px; border-radius: 35px; border: 2px solid var(--accent-gold); object-fit: cover; }
.station-info h2 { font-size: 42px; font-weight: 900; color: #fff; margin: 0; line-height: 1; }
.status-badge { font-size: 9px; color: var(--accent-gold); font-weight: 800; letter-spacing: 2px; margin-top: 10px; }

/* Leaderboard (Bottom 3) */
.hub-comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.trending-panel { background: #000; border: 1px solid #1a1a1a; padding: 30px; border-radius: 12px; }
.panel-title { font-size: 12px; letter-spacing: 2px; margin-bottom: 25px; font-weight: 900; }
.rising-panel .panel-title { color: #10b981; }
.falling-panel .panel-title { color: #ef4444; }

.trending-row { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid #111; }
.trending-row .name { flex-grow: 1; font-weight: 700; text-transform: uppercase; font-size: 13px; color: #fff; }
.trending-row .count { font-weight: 900; font-family: 'Inter'; }

/* Premium Buttons */
.elite-up { background: #fff !important; color: #000 !important; font-weight: 900; width: 180px; height: 60px; }
.elite-down { background: #000 !important; color: #fff !important; border: 1px solid #333 !important; width: 180px; height: 60px; }

@media (max-width: 900px) {
    .active-station { flex-direction: column; text-align: center; gap: 30px; }
    .station-profile { flex-direction: column; }
    .hub-comparison-grid { grid-template-columns: 1fr; }
}
@media (max-width: 998px) {
    .profile-id-photo img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
    .data-value {
        font-size: 16px;
    }
    .mog-profile-link {
        margin-top: 0px;
    }
}
.prince-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 15px;
}

.stat-group {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.stat-label {
    font-size: 8px;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 2px;
    opacity: 0.5;
}

.stat-value {
    font-family: 'Inter', sans-serif; /* Or any bold sans-serif */
    font-weight: 900;
    font-size: 16px;
}

.rising .stat-value { color: #10b981; } /* Emerald Green */
.overrated .stat-value { color: #ef4444; } /* Red */

.stat-divider {
    width: 1px;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
}/* --- PREMIUM HAMBURGER BUTTON --- */
.hamburger-btn {
    display: none; /* Hidden on Desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001; /* Keep above the overlay */
}

.hamburger-btn .bar {
    height: 2px;
    width: 100%;
    background-color: var(--accent-gold);
    transition: all 0.4s ease;
    border-radius: 2px;
}

/* --- 7. RESPONSIVENESS & MOBILE MENU --- */
@media (max-width: 1024px) {
    /* Override grid to a flex layout for mobile header */
    .header-container { 
        display: flex; 
        justify-content: space-between; 
        align-items: center;
    }

    .hamburger-btn {
        display: flex; 
    }

    /* Create the Full-Screen Glass Overlay */
    .nav-wrapper {
        position: fixed;
        top: 100px; /* Sits right below the 100px header */
        left: -100%; /* Hidden off-screen by default */
        width: 100%;
        height: calc(100vh - 100px);
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 10000;
    }

    /* Stack both nav halves */
    .nav-left { padding-top: 60px; }
    .nav-right { padding-top: 20px; top: 100px; }

    /* Slide in when active */
    .nav-wrapper.active {
        left: 0;
    }

    /* Restyle links for mobile impact */
    .nav-links {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav-links a {
        font-size: 18px; /* Larger tap targets */
        letter-spacing: 3px;
    }

    .nav-right .nav-links {
        margin-top: 20px;
    }

    /* Hamburger Animation to 'X' */
    .hamburger-btn.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #fff;
    }
    .hamburger-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #fff;
    }

    /* Footer Mobile Fix */
    .footer-top { grid-template-columns: 1fr; text-align: center; }
}
@media (min-width:998px) {
    .d-lg-none {
        display: none !important;
    }
        /* Shrink the Analyse Button */
    .mog-profile-link.d-lg-none { 
        display:none !important;
    }
        .score-action-row.d-lg-block { 
        display:inline-block !important;
    }
}
        /* Shrink the Analyse Button */
    .mog-profile-link.d-lg-none { 
        display:inline-block;
    }
        .score-action-row.d-lg-block { 
        display:none;
    }
/* --- DESKTOP CARD LAYOUT --- */
.prince-card {
    display: grid;
    /* 5 Columns to fit the button back in */
    grid-template-columns: 60px 2fr 1fr 100px 110px; 
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    margin-bottom: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid #1a1a1a;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Tweak the button so it fits nicely inside the card */
.mog-profile-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid #333;
    color: #fff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
    border-radius: 6px;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: 0; /* Removed the top margin from the old version */
}

/* --- SUPER COMPACT MOBILE LAYOUT --- */
@media (max-width: 998px) {
    .prince-card { 
        /* 1 Line Layout: Rank, Identity, Pill, Button */
        display: grid;
        justify-content: space-between;
        padding: 10px 12px; /* Much tighter padding */
        margin-bottom: 8px; /* Tighter spacing between cards */
        grid-template-columns: 20px 180px 50px 1fr;
        gap: 10px !important;
    }
    /* Shrink the rank number */
    .rank-number { font-size: 18px; }
    
    /* Shrink the avatar and name */
    .prince-identity { gap: 10px; }
    .avatar-frame img { width: 36px; height: 36px; } /* Tiny avatars */
    .name-box h3 { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    
    /* Hide the text score entirely to save space */
    .hide-on-mobile { display: none; } 
    
    /* Shrink the movement pill */
    .rank-movement-pill { padding: 4px 8px; font-size: 11px; }
    .rank-movement-pill svg { width: 12px; height: 12px; }

    /* Shrink the Analyse Button */
    .mog-profile-link { 
        padding: 6px 10px; 
        font-size: 9px; 
    }
}

/* --- NEW MOVEMENT PILL STYLES --- */
.prince-movement {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.rank-movement-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    font-family: var(--font-primary);
    background: rgba(255, 255, 255, 0.05);
    color: #888;
}

.rank-movement-pill.up { 
    color: #10b981; /* Emerald Green */
    background: rgba(16, 185, 129, 0.15); 
}

.rank-movement-pill.down { 
    color: #ef4444; /* Red */
    background: rgba(239, 68, 68, 0.15); 
}

.card-chevron svg {
    transition: 0.3s;
}

.prince-card:hover .card-chevron svg {
    stroke: #fff; /* Chevron lights up when card hovered */
}
/* Using the container class ensures higher specificity */
.leaderboard-container .prince-movement {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.leaderboard-container .rank-movement-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    min-width: 45px;
    justify-content: center;
}

/* Specific colors for movement */
.leaderboard-container .rank-movement-pill.up { 
    color: #10b981 !important; 
    background: rgba(16, 185, 129, 0.15) !important; 
}

.leaderboard-container .rank-movement-pill.down { 
    color: #ef4444 !important; 
    background: rgba(239, 68, 68, 0.15) !important; 
}

.leaderboard-container .rank-movement-pill svg {
    stroke: currentColor;
}