/* ========== Back Arrow & Hamburger Nav Buttons ========== */
.back-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(200, 16, 46, 0.2);
    border: 1px solid rgba(200, 16, 46, 0.4);
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.back-arrow-btn:hover {
    background: rgba(200, 16, 46, 0.5);
    transform: translateX(3px);
}
.hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.hamburger-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* ========== Players Hero ========== */
.players-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.players-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0d0d1a 0%, #1a0a15 40%, #2d0a0a 70%, #0d0d1a 100%);
}

.players-hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.15) 0%, transparent 70%);
    animation: heroPulse 4s ease-in-out infinite;
}

.players-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    animation: heroPulse 5s ease-in-out infinite reverse;
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.players-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 1rem;
}

.players-hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #1a0a15;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.players-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.players-hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
}

.players-week-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: #ffd700;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========== Section Headers ========== */
.section-header-players {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge-players {
    display: inline-block;
    background: rgba(200, 16, 46, 0.15);
    color: var(--red-primary);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid rgba(200, 16, 46, 0.2);
}

.section-badge-players.gold {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.25);
}

.section-header-players h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.section-sub {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
}

/* ========== Star of the Month ========== */
.star-month-section {
    padding: 5rem 0 3rem;
    background: #0d0d1a;
}

.star-month-card {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    background: linear-gradient(165deg, #16101f, #120c18);
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 20px;
    overflow: visible;
}

.star-month-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.star-month-frame {
    position: relative;
    width: 100%;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.star-month-crown {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    font-size: 2.6rem;
    color: #ffd700;
    filter: drop-shadow(0 0 18px rgba(255,215,0,0.9)) drop-shadow(0 3px 8px rgba(0,0,0,0.6));
    animation: crownBounce 2.5s ease-in-out infinite;
    pointer-events: none;
    line-height: 1;
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.star-month-photo {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: #1a0a15;
}

.star-month-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.star-month-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(18, 12, 24, 0.95));
    z-index: 3;
    pointer-events: none;
}

.star-month-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a1535, #1a0a20);
    color: #ffd700;
    font-size: 4rem;
}

.star-month-ring {
    display: none;
}

/* ---- Star month toolbar ---- */
.star-month-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 0;
}

.star-month-toolbar .share-btn {
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    gap: 0;
    background: rgba(200, 16, 46, 0.15);
    border: 1px solid rgba(200, 16, 46, 0.25);
}

.star-month-toolbar .share-btn:hover {
    background: rgba(200, 16, 46, 0.3);
}

.star-month-sport-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 5px 14px;
}

.star-month-info {
    padding: 12px 20px 20px;
}

.star-month-name-input {
    width: 100%;
    text-align: center;
    font-weight: 800;
    color: #fff;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    box-sizing: border-box;
}

.star-month-name-input::placeholder {
    color: rgba(255,255,255,0.25);
    font-weight: 600;
}

.star-month-name-input:focus {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255,255,255,0.05);
}

.star-month-name-input.has-value {
    border-style: solid;
    border-color: rgba(255,255,255,0.08);
    background: transparent;
}

.star-month-name {
    display: none;
}

.star-month-meta {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.star-month-sport {
    display: none;
}

/* ========== Share Button ========== */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--red-primary), #a00d2d);
    color: #fff;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.share-main {
    display: none;
}

/* ========== Crown Section Icon ========== */
.section-crown-icon {
    font-size: 2.8rem;
    color: #ffd700;
    filter: drop-shadow(0 0 16px rgba(255,215,0,0.7));
    margin: 0.3rem 0 0.6rem;
    animation: crownBounce 2.5s ease-in-out infinite;
    line-height: 1;
}

/* ========== Players Grid ========== */
.players-week-section {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, #0d0d1a 0%, #110a18 100%);
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== Player Card ========== */
.player-card {
    perspective: 1000px;
}

.player-card-inner {
    position: relative;
    background: linear-gradient(165deg, #16101f, #120c18);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.player-card-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(255, 215, 0, 0.12), 0 8px 30px rgba(0,0,0,0.5);
    border-color: rgba(255, 215, 0, 0.3);
}

.player-sport-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
}

.football-tag {
    background: rgba(0, 180, 0, 0.2);
    color: #4caf50;
    border: 1px solid rgba(0, 180, 0, 0.25);
}

.gym-tag {
    background: rgba(156, 39, 176, 0.2);
    color: #ce93d8;
    border: 1px solid rgba(156, 39, 176, 0.25);
}

.basket-tag {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.25);
}

.player-frame {
    position: relative;
    width: 100%;
    height: 240px;
    margin: 0;
}

.player-frame-border {
    display: none;
}

.player-photo {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    border: none;
    background: #1a0a15;
}

.player-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(18, 12, 24, 0.95));
    z-index: 3;
    pointer-events: none;
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.player-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a1025, #1a0815);
    color: rgba(255,255,255,0.2);
    font-size: 3rem;
}

.player-star-badge {
    display: none;
}

/* ---- Toolbar row: share left, sport right ---- */
.player-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 0;
}

.player-toolbar .share-btn {
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    gap: 0;
    background: rgba(200, 16, 46, 0.15);
    border: 1px solid rgba(200, 16, 46, 0.25);
}

.player-toolbar .share-btn:hover {
    background: rgba(200, 16, 46, 0.3);
}

.player-info {
    text-align: center;
    padding: 10px 12px 14px;
}

/* ---- Name field ---- */
.player-name-input {
    width: 100%;
    text-align: center;
    font-weight: 800;
    color: #fff;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    box-sizing: border-box;
}

.player-name-input::placeholder {
    color: rgba(255,255,255,0.25);
    font-weight: 600;
}

.player-name-input:focus {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255,255,255,0.05);
}

.player-name-input.has-value {
    border-style: solid;
    border-color: rgba(255,255,255,0.08);
    background: transparent;
}

.player-branch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ff8a96;
    font-size: 0.68rem;
    margin-bottom: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 3px 10px;
}

.player-born {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 215, 0, 0.6);
    font-size: 0.68rem;
    font-weight: 600;
    margin-bottom: 0;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    padding: 3px 10px;
}

.player-born i {
    font-size: 0.6rem;
    margin-left: 0;
}

[dir="ltr"] .player-born i {
    margin-left: 0;
    margin-right: 0;
}

.player-meta {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.star-month-born {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 4px 12px;
    margin: 0;
}

.star-month-born i {
    font-size: 0.65rem;
    margin-left: 0;
}

[dir="ltr"] .star-month-born i {
    margin-left: 0;
    margin-right: 0;
}

.star-month-branch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 4px 12px;
}

.player-actions {
    display: none;
}

/* ========== Share Modal ========== */
.share-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: linear-gradient(160deg, #1e1530, #150d1e);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.share-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

[dir="ltr"] .share-modal-close {
    left: auto;
    right: 15px;
}

.share-modal-close:hover {
    color: #fff;
}

.share-modal-content h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.share-modal-content p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
}

.share-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.share-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.share-platform i {
    font-size: 1.5rem;
}

.share-platform span {
    font-size: 0.7rem;
    font-weight: 600;
}

.share-platform:hover {
    transform: translateY(-3px);
}

.share-platform.whatsapp { color: #25D366; }
.share-platform.whatsapp:hover { background: rgba(37, 211, 102, 0.1); border-color: rgba(37, 211, 102, 0.3); }

.share-platform.instagram { color: #E4405F; }
.share-platform.instagram:hover { background: rgba(228, 64, 95, 0.1); border-color: rgba(228, 64, 95, 0.3); }

.share-platform.twitter { color: #fff; }
.share-platform.twitter:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }

.share-platform.facebook { color: #1877F2; }
.share-platform.facebook:hover { background: rgba(24, 119, 242, 0.1); border-color: rgba(24, 119, 242, 0.3); }

.share-platform.snapchat { color: #FFFC00; }
.share-platform.snapchat:hover { background: rgba(255, 252, 0, 0.08); border-color: rgba(255, 252, 0, 0.2); }

.share-platform.copy-link { color: #aaa; }
.share-platform.copy-link:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }

/* ========== Hall of Fame ========== */
.hall-of-fame-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #110a18 0%, #0d0d1a 100%);
}

.hall-timeline {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hall-week {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.hall-week:hover {
    border-color: rgba(255, 215, 0, 0.15);
}

.hall-week-header {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hall-week-date {
    color: #ffd700;
    font-weight: 700;
    font-size: 0.9rem;
}

.hall-players {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.hall-player-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hall-mini-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(255, 215, 0, 0.25);
    background: #1a0a15;
}

.hall-mini-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.hall-mini-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a1025, #1a0815);
    color: rgba(255,255,255,0.15);
    font-size: 1rem;
}

.hall-mini-name {
    color: rgba(255,255,255,0.65);
    font-size: 0.55rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hall-mini-name.placeholder {
    color: rgba(255,255,255,0.2);
    font-style: italic;
}

.hall-mini-sport {
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
}

.hall-mini-sport.football-tag  { color: #4caf50; }
.hall-mini-sport.gym-tag       { color: #ce93d8; }
.hall-mini-sport.basket-tag    { color: #ffb74d; }

.hall-auto-badge {
    font-size: 0.62rem;
    color: #ffd700;
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 10px;
    padding: 2px 8px;
    margin-right: 8px;
}

[dir="ltr"] .hall-auto-badge {
    margin-right: 0;
    margin-left: 8px;
}

/* ========== LTR Support ========== */
[dir="ltr"] .players-hero h1,
[dir="ltr"] .players-hero p,
[dir="ltr"] .section-header-players,
[dir="ltr"] .section-header-players h2,
[dir="ltr"] .star-month-name,
[dir="ltr"] .star-month-reason,
[dir="ltr"] .player-info,
[dir="ltr"] .player-name,
[dir="ltr"] .player-reason,
[dir="ltr"] .share-modal-content h3,
[dir="ltr"] .share-modal-content p {
    direction: ltr;
    text-align: center;
}

[dir="ltr"] .star-month-card {
    direction: ltr;
}

[dir="ltr"] .star-month-info {
    text-align: left;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .players-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .players-hero h1 {
        font-size: 2.2rem;
    }

    .players-hero p {
        font-size: 1rem;
    }

    .star-month-card {
        max-width: 100%;
        border-radius: 16px;
    }

    .star-month-photo {
        height: 300px;
    }

    .star-month-name {
        font-size: 1.2rem;
    }

    .star-month-info {
        padding: 16px 18px 20px;
    }

    .players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .player-frame {
        height: 160px;
    }

    .player-name {
        font-size: 0.9rem;
    }

    .player-info {
        padding: 10px 10px 2px;
    }

    .player-meta {
        gap: 4px;
    }

    .player-branch,
    .player-born {
        font-size: 0.6rem;
        padding: 2px 8px;
    }

    .section-header-players h2 {
        font-size: 1.7rem;
    }

    .share-platforms {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .players-hero h1 {
        font-size: 1.8rem;
    }

    .players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .star-month-photo {
        height: 260px;
    }

    .share-platforms {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== Scroll Animations ========== */
.player-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.player-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.player-card:nth-child(2) { transition-delay: 0.1s; }
.player-card:nth-child(3) { transition-delay: 0.2s; }
.player-card:nth-child(4) { transition-delay: 0.3s; }
.player-card:nth-child(5) { transition-delay: 0.4s; }
.player-card:nth-child(6) { transition-delay: 0.5s; }
