   * { box-sizing: border-box; margin: 0; padding: 0; }
        
        body {
            font-family: 'Heebo', sans-serif;
            background: #0a0e17;
            color: #e8e8e8;
            overflow-x: hidden;
        }

        /* === TOP HEADER === */
        .top-bar {
            background: rgba(10, 14, 23, 0.98);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding: 20px 40px;
            
            top: 0;
            z-index: 1000;
        }

        .top-bar-inner {
            max-width: 1600px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 30px;
        }

        .build-header-info {
            display: flex;
            align-items: center;
            gap: 20px;
            flex: 1;
        }

        .build-title-section h1 {
            font-size: 1.8rem;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .build-meta-row {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 0.9rem;
            color: #888;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .meta-item i {
            color: #667eea;
            font-size: 0.85rem;
        }

        .author-name {
            color: #667eea;
            font-weight: 600;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .rating-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 12px 20px;
            border-radius: 10px;
            min-width: 100px;
        }

        .rating-number {
            font-size: 2rem;
            font-weight: 800;
            color: #ffd700;
            line-height: 1;
            margin-bottom: 4px;
        }

        .rating-stars {
            display: flex;
            gap: 3px;
            margin-bottom: 4px;
        }

        .rating-stars i {
            color: #ffd700;
            font-size: 0.75rem;
        }

        .rating-count {
            font-size: 0.75rem;
            color: #666;
        }

        .btn-action {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.9rem;
            text-decoration: none;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .btn-back {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ccc;
        }

        .btn-back:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            transform: translateY(-2px);
        }

        .btn-create {
            background: linear-gradient(135deg, #48bb78, #38a169);
            color: white;
            border: none;
            box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
        }

        .btn-create:hover {
            box-shadow: 0 6px 25px rgba(72, 187, 120, 0.5);
            transform: translateY(-2px);
        }

        .btn-share {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ccc;
            padding: 12px 20px;
        }

        .btn-share:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
        }

        /* === VERSION ALERT === */
        .version-alert {
            background: linear-gradient(135deg, rgba(49, 130, 206, 0.15), rgba(66, 153, 225, 0.1));
            border-bottom: 1px solid rgba(49, 130, 206, 0.3);
            padding: 15px 40px;
        }

        .version-alert-inner {
            max-width: 1600px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
        }

        .version-alert i {
            color: #63b3ed;
            font-size: 1.2rem;
            margin-left: 10px;
        }

        .version-alert span {
            color: #bee3f8;
        }

        .btn-latest {
            background: #3182ce;
            color: white;
            padding: 10px 20px;
            border-radius: 6px;
            font-weight: 700;
            font-size: 0.85rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
        }

        .btn-latest:hover {
            background: #2b6cb0;
            box-shadow: 0 4px 20px rgba(49, 130, 206, 0.4);
        }

        /* === MAIN CONTAINER === */
        .main-container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 30px 40px;
        }

        /* === RATING & CONTROLS BAR === */
        .controls-bar {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 20px 30px;
            margin-bottom: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 30px;
        }

        .rate-section {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .rate-section label {
            font-size: 0.9rem;
            color: #888;
            font-weight: 600;
        }

        .star-rating {
            display: flex;
            gap: 8px;
        }

        .star-rating i {
            font-size: 1.8rem;
            color: #333;
            cursor: pointer;
            transition: all 0.2s;
        }

        .star-rating i:hover,
        .star-rating i.active {
            color: #ffd700;
            transform: scale(1.1);
        }

        .share-section {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .share-section label {
            font-size: 0.9rem;
            color: #888;
            font-weight: 600;
        }

       


        /* סדר וארגון המידע למעלה */
        .player-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 15px;
            position: absolute;
            left: 43px;
            top: 15px;
        }

        .level-display-compact {
            font-size: 2.5rem; /* מספר גדול אבל לא ענק */
            font-weight: 800;
            color: #7b61ff; /* הסגול מהתמונה */
            text-shadow: 0 0 20px rgba(123, 97, 255, 0.4);
            line-height: 1;
            margin-bottom: 5px;
        }

        .level-subtext {
            font-size: 0.9rem;
            color: #8892b0;
            font-weight: 500;
            letter-spacing: 1px;
        }
        
        .level-subtext span.highlight {
            color: #e2e8f0;
        }

        /* עיצוב הסליידר הדק */
        .slider-container {
            width: 30%;
            margin: 15px 0 25px 0;
            position: absolute;
            height: 20px;
            display: flex;
            right: 24px;
            top: 41px;
            align-items: center;
                z-index: 50;
        }

        input[type=range] {
            -webkit-appearance: none;
            direction: RTL; /* מכריח את הסליידר לעבוד משמאל לימין כמו נגן רגיל */
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            outline: none;
            cursor: pointer;
            
            /* הגדרת הצבע הסגול */
            background-image: linear-gradient(#7b61ff, #7b61ff);
            background-repeat: no-repeat;
            background-position: RIGHT center; /* מוודא שהצבע מתחיל משמאל */
            background-size: 100% 100%; /* נשלט על ידי ה-JS */
        }

        /* העיגול (Thumb) */
        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            height: 18px;
            width: 18px;
            border-radius: 50%;
            background: #fff;
            cursor: pointer;
            box-shadow: 0 0 15px 2px rgba(123, 97, 255, 0.8); /* הזוהר הסגול */
            transition: transform 0.1s;
            border: 2px solid #1a1d2e; /* הפרדה קטנה כהה */
            margin-top: 0; /* איזון לאמצע */
        }

        input[type=range]::-webkit-slider-thumb:hover {
            transform: scale(1.2);
            box-shadow: 0 0 20px 4px rgba(123, 97, 255, 1);
        }

        /* כפתורי שליטה */
        .playback-btns {
                display: flex;
    justify-content: center;
    gap: 15px;
    /* margin-top: 10px; */
    top: 15px;
    position: absolute;
    margin: auto;
    left: 69%;
    z-index: 50;
        }

        .ctrl-btn {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #8892b0;
            padding: 8px 20px;
            border-radius: 6px;
            font-weight: 500;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 100px;
            justify-content: center;
        }

        .ctrl-btn:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-1px);
        }
        
        .ctrl-btn i { font-size: 0.8rem; }

        /* === TREE CONTAINER === */
        .tree-wrapper {
            background: radial-gradient(circle at 50% 50%, #1a1d26, #050608 80%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 25px;
            position: relative;
            height: 760px;
        }

        #tree-container {
            position: relative;
            width: 100%;
            height: 100%;
            cursor: grab;
            overflow: hidden;
        }

        #tree-container:active {
            cursor: grabbing;
        }

        #tree-canvas {
            position: absolute;
            transform-origin: 0 0;
            will-change: transform;
        }

        svg {
            position: absolute;
            top: 0;
            left: 0;
            overflow: visible;
            pointer-events: none;
            z-index: 1;
        }

        /* === SKILL NODES === */
        line {
            stroke: #333;
            stroke-width: 3;
            transition: stroke 0.4s, filter 0.4s;
            stroke-linecap: round;
        }

        line.active {
            stroke-width: 4;
            stroke: #fff;
            filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
        }

        .skill-node {
            position: absolute;
            background: #0b0d12;
            border: 2px solid #555;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10;
            cursor: default;
            transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
            transform: translate(-50%, -50%);
            box-shadow: 0 0 10px rgba(0,0,0,0.8);
            user-select: none;
        }

        .skill-node.small { width: 50px; height: 50px; }
        .skill-node.large { width: 80px; height: 80px; border-width: 3px; }
        .skill-node.passive { width: 60px; height: 60px; border-style: double; border-width: 4px; }

        .skill-node.locked { filter: grayscale(1) brightness(0.7); border-color: #333 !important; }
        .skill-node.available { border-color: #888; animation: pulse-border 2s infinite; }
        .skill-node.purchased { background: #14161f; border-color: #fff; box-shadow: 0 0 20px rgba(255,255,255,0.2); animation: none; }

        .icon-container { width: 60%; height: 60%; display: flex; justify-content: center; align-items: center; }
        .icon-container img { width: 100%; height: 100%; object-fit: contain; opacity: 0.6; transition: 0.3s; }
        .skill-node.purchased .icon-container img { opacity: 1; filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); }

        .node-counter {
            position: absolute;
            bottom: -22px;
            background: #050608;
            border: 1px solid #444;
            border-radius: 10px;
            padding: 2px 8px;
            font-size: 12px;
            font-weight: 700;
            color: #777;
            pointer-events: none;
            z-index: 15;
            box-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }

        .skill-node.maxed .node-counter { color: #050608; background: #fff; border-color: #fff; }

        .branch-survival.available { border-color: #ff2a2a; }
        .branch-survival.purchased { border-color: #ff2a2a; box-shadow: 0 0 25px rgba(255, 42, 42, 0.6); }
        .branch-mobility.available { border-color: #ffd700; }
        .branch-mobility.purchased { border-color: #ffd700; box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); }
        .branch-conditioning.available { border-color: #00ff88; }
        .branch-conditioning.purchased { border-color: #00ff88; box-shadow: 0 0 25px rgba(0, 255, 136, 0.6); }

        @keyframes pulse-border {
            0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.1); }
            50% { box-shadow: 0 0 15px rgba(255,255,255,0.2); }
        }

        /* === DESCRIPTION + BRANCHES === */
        .info-grid {
           display: flex;
    /* grid-template-columns: 1fr 1fr; */
    gap: 25px;
    margin-bottom: 30px;

        }

        .description-card,
        .branches-card {
              top: 67px;
    /* background: rgba(255, 255, 255, 0.03); */
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    /* border-radius: 12px; */
    /* padding: 25px; */
    position: absolute;
    display: flex;
    left: 0;
        }

        .card-title {
            font-size: 0.85rem;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .card-title i {
            color: #667eea;
        }

        .description-text {
            font-size: 1rem;
            line-height: 1.7;
            color: #ccc;
        }

        .branch-item {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 12px;
            width: 100%;
        }

        .branch-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .branch-name {
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .branch-survival .branch-name { color: #ff2a2a; }
        .branch-mobility .branch-name { color: #ffd700; }
        .branch-conditioning .branch-name { color: #00ff88; }

        .branch-points {
            font-size: 1.2rem;
            font-weight: 800;
        }

        .branch-progress-bar {
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
            overflow: hidden;
        }

        .branch-progress-fill {
            height: 100%;
            transition: width 0.3s;
            border-radius: 3px;
        }

        .branch-survival .branch-progress-fill {
            background: linear-gradient(90deg, #ff2a2a, #ff5252);
        }

        .branch-mobility .branch-progress-fill {
            background: linear-gradient(90deg, #ffd700, #ffed4e);
        }

        .branch-conditioning .branch-progress-fill {
            background: linear-gradient(90deg, #00ff88, #00ffaa);
        }

        /* === COMMENTS SECTION === */
        .comments-section {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 30px;
        }

        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .comments-title {
            font-size: 1.2rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .comments-count {
            background: rgba(102, 126, 234, 0.2);
            color: #667eea;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.9rem;
        }

        .comment-box {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .comment-box textarea {
            width: 100%;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 15px;
            color: #fff;
            font-family: 'Heebo', sans-serif;
            font-size: 0.95rem;
            resize: vertical;
            min-height: 100px;
        }

        .comment-box textarea:focus {
            outline: none;
            border-color: #667eea;
        }

        .comment-box button {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            margin-top: 10px;
            transition: all 0.2s;
        }

        .comment-box button:hover {
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
            transform: translateY(-2px);
        }

        .comment-item {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
        }

        .comment-author-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .comment-author {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: white;
        }

        .comment-author-name {
            font-weight: 700;
            color: #fff;
        }

        .comment-time {
            font-size: 0.85rem;
            color: #666;
        }

        .comment-text {
            color: #ccc;
            line-height: 1.6;
            margin-bottom: 12px;
        }

        .comment-actions {
            display: flex;
            gap: 15px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .comment-action-btn {
            background: none;
            border: none;
            color: #888;
            font-size: 0.85rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: color 0.2s;
        }

        .comment-action-btn:hover {
            color: #667eea;
        }

        .comment-action-btn.liked {
            color: #667eea;
        }

        /* === TOOLTIP === */
        .skill-tooltip {
            position: fixed;
            z-index: 9999;
            background: linear-gradient(135deg, #f3e5d0, #e8d5bf);
            color: #111;
            padding: 15px 18px;
            border-radius: 8px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.6);
            pointer-events: none;
            display: none;
            width: 280px;
            border: 2px solid #cbbba0;
            direction: ltr;
        }

        .tooltip-title {
            font-weight: 800;
            text-transform: uppercase;
            font-size: 1.2rem;
            margin-bottom: 8px;
            color: #000;
        }

        .tooltip-desc {
            font-size: 0.95rem;
            color: #444;
            line-height: 1.4;
            margin-bottom: 10px;
            direction: rtl;
            text-align: right;
        }

        .tooltip-req {
            font-size: 0.8rem;
            font-weight: 800;
            text-transform: uppercase;
            color: #d69e2e;
            padding-top: 10px;
            border-top: 2px solid rgba(0,0,0,0.1);
        }

        /* === RESPONSIVE === */
        @media (max-width: 1200px) {
            .info-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .top-bar-inner {
                flex-direction: column;
                align-items: flex-start;
            }

            .header-right {
                width: 100%;
                justify-content: space-between;
            }

            .controls-bar {
                flex-direction: column;
                align-items: flex-start;
            }

            .playback-btns {
                grid-template-columns: 1fr 1fr;
            }
        }
        /* === RESPONSIVE DESIGN === */

@media (max-width: 1024px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-container {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    /* התאמת גובה הנגן לנייד */
    .tree-wrapper {
        height: 500px; 
        display: flex;
        flex-direction: column;
    }

    /* סידור מחדש של כפתורי השליטה - שלא יצופו על העץ */
    .playback-btns {
        position: relative;
        left: auto;
        top: auto;
        margin: 10px auto;
        width: 100%;
        justify-content: center;
        order: 2; /* מעביר אותם מתחת למד ה-Level */
    }

    .ctrl-btn {
        padding: 8px 12px;
        min-width: 70px;
        font-size: 0.75rem;
    }

    /* התאמת הסליידר ומד הרמה */
    .player-header {
        position: relative;
        left: auto;
        top: auto;
        margin-top: 15px;
        order: 1;
    }

    .slider-container {
        position: relative;
        right: auto;
        top: auto;
        width: 90%;
        margin: 10px auto;
        order: 3;
    }

    .level-display-compact {
        font-size: 2rem;
    }

    /* התאמת כותרות ודירוג */
    .build-title-section h1 {
        font-size: 1.4rem;
        text-align: center;
    }

    .build-meta-row {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .rating-box {
        width: 100%;
        min-width: unset;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    /* שורת הדירוג והשיתוף */
    .controls-bar {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .rate-section, .share-section {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    /* כרטיסי המידע בתחתית */
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-points {
        font-size: 1rem;
    }

    /* תיקון Tooltip לטאץ' */
    .skill-tooltip {
        width: 240px;
        font-size: 0.85rem;
    }
}

/* אופטימיזציה למסכים קטנים מאוד */
@media (max-width: 480px) {
    .playback-btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 0 10px;
    }

    .ctrl-btn {
        width: 100%;
    }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}