/* ============================================================
   archived3mcraft.css — الأنماط الخاصة بصفحة archived3mcraft.html
   يُحمَّل بعد الملفات المشتركة، فأي قاعدة هنا تتجاوزها.
   ============================================================ */

/* ============================================================
   archived3mcraft.css — الأنماط الخاصة بصفحة archived3mcraft.html
   يُحمَّل بعد الملفات المشتركة، فأي قاعدة هنا تتجاوزها.
   ============================================================ */

[data-theme="light"] {
    --glow-cyan-intense: 0 4px 30px rgba(0, 168, 204, 0.3);
}

/* Main Content */

.main-content {
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 20px;
    color: var(--neon-cyan);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 0 60px rgba(0, 212, 255, 0.3);
    letter-spacing: 0;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.2); }
    to { text-shadow: 0 0 40px rgba(0, 212, 255, 0.8), 0 0 80px rgba(0, 212, 255, 0.4); }
}

.page-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.9;
}

/* Season Tabs */

.season-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.season-tab-btn {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 30px;
    background: var(--bg-card);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.season-tab-btn:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    transform: translateY(-3px);
}

.season-tab-btn.active {
    background: var(--gradient-neon);
    color: var(--bg-primary);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan-intense);
}

/* ===== الموسم الخامس ===== */

.season-tab-final {
    position: relative;
}

.season-tab-final::after {
    content: 'الأخير';
    position: absolute;
    top: -9px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    background: var(--neon-cyan);
    color: var(--bg-primary);
    font-size: .6rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 99px;
    letter-spacing: .5px;
}

.carousel {
    position: relative;
    margin-bottom: 40px;
}

.car-rail {
    display: flex;
    direction: rtl;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-block: 26px;
    margin-block: -18px;
    padding-inline: max(0px, calc(50% - 280px));
}

.car-rail::-webkit-scrollbar {
    display: none;
}

.car-item {
    flex: 0 0 min(560px, 86%);
    scroll-snap-align: center;
}

.car-item > * {
    height: 100%;
    margin: 0 !important;
}

.car-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 5;
    color: var(--text-primary);
}

.car-nav:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
}

.car-nav:disabled {
    opacity: .25;
    pointer-events: none;
}

.car-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.car-nav.prev {
    right: -6px;
}

.car-nav.next {
    left: -6px;
}

.car-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.car-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-accent);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.car-dots i.active {
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transform: scale(1.35);
}

.car-pos {
    text-align: center;
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

@media (max-width: 640px) {
    .car-nav {
        width: 38px;
        height: 38px;
    }

    .car-nav.prev {
        right: -4px;
    }

    .car-nav.next {
        left: -4px;
    }

    .car-rail {
        padding-inline: 0;
    }
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.podium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 16px 16px 12px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.podium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-cyan);
    border-color: var(--neon-cyan);
}

.podium-accent {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 3px;
    background: var(--neon-cyan);
}

.podium-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.podium-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.podium-unit {
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 700;
    color: var(--neon-cyan);
    white-space: nowrap;
    letter-spacing: .2px;
}

.podium-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid var(--border-subtle);
}

.podium-row:first-of-type {
    border-top: none;
}

.podium-head + .podium-row {
    border-top: none;
}

.podium-medal {
    width: 22px;
    flex-shrink: 0;
    text-align: center;
    font-size: .95rem;
}

.podium-medal.num {
    font-size: .78rem;
    color: var(--text-muted);
    font-weight: 700;
}

.podium-card.in-car {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.podium-faces {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.podium-faces img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    image-rendering: pixelated;
    background: var(--bg-tertiary);
}

.podium-swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.podium-name {
    flex: 1;
    font-size: .88rem;
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-row.first .podium-name {
    color: var(--neon-cyan);
    font-weight: 700;
}

.podium-sub {
    display: block;
    font-size: .68rem;
    color: var(--text-muted);
    font-weight: 400;
}

.podium-value {
    font-size: .82rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.podium-note {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed var(--border-subtle);
    font-size: .72rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.gal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.gal-tab {
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 600;
    padding: 7px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.gal-tab:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.gal-tab.active {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    border-color: var(--neon-cyan);
}

.gal-tab .gal-count {
    opacity: .65;
    font-size: .72rem;
    margin-inline-start: 4px;
}

.identity-label {
    text-align: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: 2.5px;
    color: var(--neon-cyan);
    opacity: .85;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.identity-label::before, .identity-label::after {
    content: '';
    height: 1px;
    width: 42px;
    background: linear-gradient(to left, var(--neon-cyan), transparent);
    opacity: .55;
}

.identity-label::after {
    background: linear-gradient(to right, var(--neon-cyan), transparent);
}

.vod-wrap {
    max-width: 900px;
    margin: 0 auto 20px;
}

.vod-frame {
    position: relative;
    padding-top: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-accent);
    background: #000;
    box-shadow: var(--glow-cyan);
}

.vod-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.vod-cap {
    text-align: center;
    margin-top: 12px;
    font-size: .88rem;
    color: var(--text-muted);
}

.vod-cap a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.vod-cap a:hover {
    text-decoration: underline;
}

.gal-pane {
    display: none;
}

.gal-pane.active {
    display: block;
}

.season-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.season-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Titles */

.section-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin: 40px 0 20px;
    text-align: center;
    text-shadow: var(--glow-text);
}

/* Info Cards */

.info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.info-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 139, 139, 0.08) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 18px 12px;
    text-align: center;
    transition: all var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan);
}

.info-card-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.info-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.info-card-value {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

@media (max-width: 900px) {
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .info-card {
        padding: 12px 8px;
    }

    .info-card-icon {
        font-size: 1.5rem;
    }

    .info-card-value {
        font-size: 0.85rem;
    }
}

/* Placeholder Text */

.placeholder-text {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-accent);
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Static Teams */

.static-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.static-team-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: 10px 20px;
    font-weight: 600;
    color: var(--text-secondary);
}

.teams-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 30px;
}

/* Member Cards Grid */

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.member-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    border: 2px solid var(--border-subtle);
    transition: all var(--transition-normal);
    --team-color: #00D4FF;
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: var(--team-color);
    box-shadow: 0 0 20px var(--team-color);
}

.member-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    margin: 0 auto 8px;
    background: var(--bg-tertiary);
    image-rendering: pixelated;
    border: 2px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.member-card:hover .member-avatar {
    border-color: var(--team-color);
}

.member-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
    line-height: 1.3;
}

/* Team Cards */

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.team-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 2px solid;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.team-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

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

.team-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.team-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.team-count {
    font-size: 0.85rem;
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 600;
}

.team-leader {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.team-leader-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.team-leader-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.team-leader-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.team-member:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.team-member img {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    image-rendering: pixelated;
}

/* Gallery Slider */

.gallery-container {
    margin-bottom: 40px;
}

.gallery-slider {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-accent);
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-counter {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--text-primary);
    z-index: 10;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
    color: var(--text-primary);
}

.gallery-nav:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
}

.gallery-nav.prev {
    right: 15px;
}

.gallery-nav.next {
    left: 15px;
}

.gallery-nav svg {
    width: 20px;
    height: 20px;
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    background: var(--bg-secondary);
}

.gallery-thumb {
    width: 70px;
    height: 45px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    opacity: 0.6;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb.active {
    border-color: var(--neon-cyan);
    opacity: 1;
    box-shadow: var(--glow-cyan);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Caption */

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    backdrop-filter: blur(5px);
    padding: 20px 15px 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #ffffff;
    text-align: center;
    line-height: 1.6;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-caption.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Make main image clickable */

.gallery-main img {
    cursor: zoom-in;
}

.gallery-zoom-hint {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    z-index: 10;
    pointer-events: none;
    opacity: 0.85;
    transition: all var(--transition-normal);
}

.gallery-main:hover .gallery-zoom-hint {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    opacity: 1;
}

.gallery-zoom-hint svg {
    width: 18px;
    height: 18px;
}

/* Lightbox (Fullscreen) */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 80px;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--glow-cyan-intense);
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--text-primary);
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    transform: rotate(90deg);
    box-shadow: var(--glow-cyan);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--text-primary);
    z-index: 10;
}

.lightbox-nav:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
}

.lightbox-nav.prev {
    right: 20px;
}

.lightbox-nav.next {
    left: 20px;
}

.lightbox-nav svg {
    width: 26px;
    height: 26px;
}

.lightbox-counter {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    color: var(--text-primary);
    z-index: 10;
}

.lightbox-caption {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    padding: 12px 22px;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: #fff;
    text-align: center;
    line-height: 1.6;
    z-index: 10;
}

.lightbox-caption.hidden {
    display: none;
}

@media (max-width: 768px) {
    .lightbox-img-wrap {
        padding: 60px 12px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-nav.prev {
        right: 10px;
    }

    .lightbox-nav.next {
        left: 10px;
    }

    .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }

    .lightbox-caption {
        font-size: 0.9rem;
        max-width: 92%;
        bottom: 15px;
    }
}

/* Loading Spinner */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner-circle {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.spinner-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-logo {
    object-fit: cover;
    background: var(--bg-card);
}

/* Footer */

.footer {
    position: relative;
    z-index: 1;
}

.footer-bottom {
    text-align: center;
}

/* Season Identity Banner */

.season-identity {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 30px;
    display: block;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-accent);
    box-shadow: var(--glow-cyan);
    transition: all var(--transition-normal);
}

.season-identity:hover {
    transform: scale(1.02);
    box-shadow: var(--glow-cyan-intense);
}

/* Stats Section */

.stats-section {
    margin: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 139, 139, 0.05) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-cyan);
    border-color: var(--neon-cyan);
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--neon-cyan);
}

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

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.stat-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.stat-item-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 10px;
}

.stat-item-rank.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.stat-item-rank.silver {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #000;
}

.stat-item-rank.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #fff;
}

.stat-item-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

.stat-item-value {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-align: left;
    direction: ltr;
}

@media (max-width: 1024px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 100px 15px 40px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .season-tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .gallery-thumb {
        width: 60px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* شارة "الأخير" على تبويب آخر موسم — تتبع لغة الصفحة */
html[lang="en"] .season-tab-final::after {
    content: 'Latest';
}

/* ---------- النسخة الإنجليزية: اتجاه من اليسار إلى اليمين ---------- */

/* شريط البطاقات مثبّت على rtl في الأصل، فنقلبه مع لغة الصفحة */
html[lang="en"] .car-rail {
    direction: ltr;
}

/* وبالتالي يتبادل زرّا السابق/التالي مكانيهما، ويُعكس شكل السهم */
html[lang="en"] .car-nav.prev {
    right: auto;
    left: -6px;
}

html[lang="en"] .car-nav.next {
    left: auto;
    right: -6px;
}

html[lang="en"] .car-nav svg {
    transform: scaleX(-1);
}

/* عناوين مربّعات معلومات السيرفر كانت صغيرة جدًا بالإنجليزية */
html[lang="en"] .info-card-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: .2px;
}

html[lang="en"] .info-card-value {
    font-size: 1.05rem;
}
