:root {
    --primary-bg: #121826;
    --secondary-bg: #1a2233;
    --accent-color: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Loading Screen */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--accent-color);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation */
.nav-header {
    background-color: var(--secondary-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--secondary-bg);
    z-index: 1000;
    padding: 1.5rem;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #1a2233 0%, #121826 100%);
}

/* Entity Cards */
.entity-card {
    background-color: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}


/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.slide-up {
    animation: slideUp 1s ease-out forwards;
}

.slide-down {
    animation: slideDown 1s ease-out forwards;
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFade 0.5s ease-out forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Stats */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Search */
.search-container {
    position: relative;
}

.search-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

/* GPU Acceleration */
.gpu-accelerated {
    will-change: transform;
    transform: translateZ(0);
}

/* Responsive */
@media (max-width: 768px) {
    .stat-number {
        font-size: 1.75rem;
    }
}

/* Pagination styling */
#pagination-container a {
    cursor: pointer;
    user-select: none;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

#pagination-container a:hover:not(.opacity-50) {
    background-color: rgba(59, 130, 246, 0.2);
}

#pagination-container a.bg-blue-600 {
    pointer-events: none;
}


/* Dev Tooltips - Dành cho dev và CMO */
.dev-tooltip {
    border: 1px dashed #ff6b6b;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    cursor: help;
    display: inline-flex;
    align-items: center;
    font-size: 0.8em;
}

.dev-tooltip .tooltip-content {
    width: 320px;
    background-color: #2d3748;
    border: 1px solid #ff6b6b;
}

/* Ẩn dev-tooltip khi triển khai production */
.production .dev-tooltip {
    display: none;
}


/* =================================================================== */
/* CSS CHO TÍNH NĂNG "CHẾ ĐỘ PHÂN TÍCH" */
/* =================================================================== */

/* Lớp CSS để đánh dấu các yếu tố có ghi chú */
.has-note {
    outline: 2px dotted rgba(59, 130, 246, 0.6); /* Viền chấm màu xanh dương */
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.has-note:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Lớp CSS để làm nổi bật yếu tố đang được chọn */
.highlight-active {
    outline: 4px solid rgba(255, 48, 16, 0.871); /* Viền liền đậm */
    background-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Style cho sidebar khi mở */
#analysis-panel.is-open {
    transform: translateX(0);
}

 
.prose-custom h2 {     margin-top: 0.5em;    margin-bottom: 1em;    padding-bottom: 0.4em;
    border-bottom: 1px solid #374151;    font-weight: 600;    font-size: 1.6em; }
.prose-custom h3 { margin-top: 2em; margin-bottom: 1em;     font-weight: 600;    font-size: 1.4em;
color:#60A5FA;}
.prose-custom p, .prose-custom ul, .prose-custom ol { line-height: 1.8; }
#toc-wrapper { transition: flex-basis 0.3s ease-in-out; }
#toc-container { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto;overflow-x: hidden; }

#toc-container-main { transition: opacity 0.3s ease-in-out, visibility 0.3s; }
#toc-container a { display: block; padding: 0.5rem; border-radius: 0.375rem; transition: all 0.2s ease-in-out; border-left: 3px solid transparent; }
#toc-container a.active { color: #60A5FA; border-left-color: #60A5FA; transform: translateX(5px); background-color: rgba(59, 130, 246, 0.1); }
#toc-container a.is-h3 { margin-left: 1rem; }
.toc-collapsed { flex-basis: 4rem !important; }
.toc-collapsed #toc-container-main { opacity: 0; visibility: hidden; }
.toc-collapsed #toc-toggle-button .icon-hide { display: none; }
.toc-collapsed #toc-toggle-button .icon-show { display: block; }
#toc-toggle-button .icon-show { display: none; }
.content-highlight { animation: highlight-fade 1.5s ease-in-out; }

@keyframes highlight-fade { 0% { background-color: rgba(59, 130, 246, 0.2); box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); border-radius: 4px; } 100% { background-color: transparent; } }
.author-box, .related-posts { border-top: 1px solid #374151; margin-top: 3rem; padding-top: 2rem; }
@media (max-width: 1280px) { #toc-wrapper { display: none; } }

.prose-custom a.entity-link {color: #5a7dff;text-decoration: underline;}

/* Thay thế CSS cũ bằng CSS mới này */
.content-highlight {
    /* Áp dụng animation mới */
    animation: pulse-border 1.2s ease-out;
}

@keyframes pulse-border {
    0% {
        outline: 2px solid rgba(59, 130, 246, 0.7);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        /* Làm cho viền và bóng sáng rực lên ở giữa animation */
        outline: 3px solid rgba(96, 165, 250, 1);
        box-shadow: 0 0 35px rgba(96, 165, 250, 0.7);
    }
    100% {
        outline: 2px solid rgba(59, 130, 246, 0);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0);
    }
}



  /* Card Container Styling */
  .team-entity-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--secondary-bg);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.team-entity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Avatar Styling */
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* Avatar Hover Effects */
.team-avatar:hover {
    transform: scale(1.05);
}

.liverpool-avatar { background-color: #e50914; }
.city-avatar { background-color: #6CABDD; }
.arsenal-avatar { background-color: #EF0107; }
.manutd-avatar { background-color: #DA291C; }
.chelsea-avatar { background-color: #034694; }
.barcelona-avatar { background: linear-gradient(45deg, #A50044, #004D98); }
.inter-milan-avatar { background-color: #0068A8; }
.dortmund-avatar { background-color: #FDE100; color: #000;}
.la-liga-avatar { background-color: #004D98; }
.serie-a-avatar { background-color: #000000; }
.bundesliga-avatar { background-color: #DC052D; }
.ligue1-avatar { background-color: #004170; }

/* Content Layout */
.team-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.team-url {
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
}

/* Statistics Grid Styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 16px 0;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

/* Statistics Hover */
.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Related Entities Styling */
.related-entities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entity-link {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.entity-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    color: var(--text-primary);
}

.entity-description {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Tooltips for Statistics */
.stat-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(26, 34, 51, 0.95);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 200px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
}

.stat-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Loading States */
.loading-card {
    opacity: 0.6;
    pointer-events: none;
}

.loading-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 767px) {
    .team-entity-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-avatar {
        margin: 0 auto;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card Container Styling */
.team-entity-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--secondary-bg);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.team-entity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Avatar Styling */
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* Avatar Hover Effects */
.team-avatar:hover {
    transform: scale(1.05);
}

.liverpool-avatar { background-color: #e50914; }
.city-avatar { background-color: #6CABDD; }
.arsenal-avatar { background-color: #EF0107; }
.manutd-avatar { background-color: #DA291C; }
.chelsea-avatar { background-color: #034694; }
.barcelona-avatar { background: linear-gradient(45deg, #A50044, #004D98); }
.inter-milan-avatar { background-color: #0068A8; }
.dortmund-avatar { background-color: #FDE100; color: #000;}
.la-liga-avatar { background-color: #004D98; }
.serie-a-avatar { background-color: #000000; }
.bundesliga-avatar { background-color: #DC052D; }
.ligue1-avatar { background-color: #004170; }

/* Content Layout */
.team-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.team-url {
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
}

/* Statistics Grid Styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 16px 0;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

/* Statistics Hover */
.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Related Entities Styling */
.related-entities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

a.entity-tag { display: inline-block; padding: 4px 10px; background: rgba(255, 255, 255, 0.1); border-radius: 16px; font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: all 0.2s ease; }
a.entity-tag:hover { background: var(--accent-color); color: var(--text-primary); }
  
.entity-tag {

    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
    margin: 4px;
    border: 1px solid transparent;
}
.entity-tag:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: #ffffff;
    border-color: #60a5fa;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}


.entity-link {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.entity-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    color: var(--text-primary);
}

.entity-description {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Tooltips for Statistics */
.stat-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(26, 34, 51, 0.95);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 200px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
}

.stat-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Loading States */
.loading-card {
    opacity: 0.6;
    pointer-events: none;
}

.loading-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 767px) {
    .team-entity-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-avatar {
        margin: 0 auto;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Demo Link Entity */
.demoett {
    border: 3px dashed #006dff!important;
}

/* Tooltips */
.tooltip-trigger {
    position: relative;
    cursor: help;
    border: 2px dashed #f6c23b; 
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}
 

.tooltip-content {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(26, 34, 51, 0.95);
    color: var(--text-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    width: 300px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000; /* Tăng z-index từ 100 lên 1000 */
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: left;
    pointer-events: none; /* Thêm dòng này để tránh tooltip chặn sự kiện chuột */
}

.tooltip-trigger:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

.tooltip-highlight {
    color: var(--accent-color);
    font-weight: 600;
}

 /* Card Container Styling */
 .player-entity-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--secondary-bg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Card Hover Effects */
.player-entity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Player Image Container */
.player-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
}

.player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-badge {
    position: absolute;
    top: 0;
    right: 0;
    margin: 8px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* Team Badge Colors */
.liverpool-badge { background-color: #e50914; }
.city-badge { background-color: #6CABDD; }
.real-madrid-badge { background-color: #004D98; }
.barcelona-badge { background-color: #A50044; }
.bayern-badge { background-color: #DC052D; }
.juventus-badge { background-color: #000000; }
.psg-badge { background-color: #004170; }
.inter-badge { background-color: #0068A8; }
.dortmund-badge { background-color: #FDE100; color: #000; }
.chelsea-badge { background-color: #034694; }
.manutd-badge { background-color: #DA291C; }
.milan-badge { background-color: #FB090B; }

/* Player Content */
.player-content {
    padding: 16px;
}

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

.player-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.player-position {
    font-size: 14px;
    padding: 4px 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* SEO Performance Bar */
.seo-performance {
    margin-bottom: 16px;
}

.performance-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.performance-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.performance-fill {
    height: 100%;
    background-color: #10B981;
    border-radius: 4px;
}

/* Player Stats */
.player-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.stat-label {
    color: var(--text-secondary);
}

/* Footer Actions */
.player-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.internal-links {
    font-size: 12px;
    color: var(--text-secondary);
}

.view-details {
    color: #3B82F6;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-details:hover {
    color: #60A5FA;
}

/* Related Entities Styling */
.related-entities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.entity-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.entity-link i {
    margin-right: 6px;
    font-size: 14px;
}

.entity-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    color: var(--text-primary);
}

/* Entity Icon Colors */
.team-icon { color: #e50914; }
.league-icon { color: #3B82F6; }
.coach-icon { color: #10B981; }
.country-icon { color: #F59E0B; }

.entity-description {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}


.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(26, 34, 51, 0.95);
    color: var(--text-secondary);
    padding: 12px;
    border-radius: 8px;
    width: 280px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    pointer-events: none;
}

.tooltip-trigger:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

.tooltip-highlight {
    color: #60A5FA;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 767px) {
    .player-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CSS cho card HLV mới */
.coach-card {
    background: #1F2937;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}
.coach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: #3B82F6;
}
.philosophy-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3B82F6;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #93C5FD;
    text-decoration: none;
}

div#analysis-panel {
    overflow: auto;
}


/* =================================================================== */
/* FIX CHO TOOLTIP BỊ CHE (Z-INDEX ON HOVER)                         */
/* =================================================================== */

.resource-card {
    /* Bắt buộc phải có position: relative để z-index có hiệu lực với các thành phần anh em */
    position: relative; 
}

.resource-card:hover {
    /* Khi hover, đưa z-index của card này lên cao hơn, nó sẽ nổi lên trên các card khác */
    z-index: 10;
}
 

/* =================================================================== */
/* FIX Z-INDEX CHO SEARCH DROPDOWN DÙNG CHUNG TOÀN SITE              */
/* =================================================================== */

/* Ra lệnh cho header "bay" lên trên các thành phần khác như <main> */
.nav-header {
    position: relative;
    z-index: 50; /* z-index cao cho toàn bộ header */
}


/* Dropdown kết quả phải có z-index cao hơn cả header để nổi lên trênสุด */
.search-results-dropdown {
    position: absolute;
    z-index: 51; 
}

/* =================================================================== */
/* COMPONENT: HORIZONTAL SCROLL CUSTOMIZATION                        */
/* =================================================================== */

.horizontal-scroll-container {
  position: relative;
  /* Cho phép cuộn ngang */
  overflow-x: auto;
  /* Ẩn thanh cuộn mặc định của trình duyệt */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

/* Hiệu ứng Gradient mờ ở cạnh phải */
.horizontal-scroll-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60px; /* Độ rộng của vùng mờ */
  background: linear-gradient(to left, #111827, transparent);
  pointer-events: none; /* Cho phép click xuyên qua lớp phủ */
  transition: opacity 0.2s;
  opacity: 1;
}

/* Ẩn hiệu ứng mờ khi đã cuộn đến hết */
.horizontal-scroll-container.scrolled-to-end::after {
  opacity: 0;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
    height: 8px; /* Chiều cao của thanh cuộn ngang */
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: #2d3748; /* Màu nền của rãnh cuộn (gray-800) */
    border-radius: 10px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: #4a5568; /* Màu của con trượt (gray-600) */
    border-radius: 10px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #718096; /* Màu con trượt khi hover (gray-500) */
}

/* =================================================================== */
/* COMPONENT: TABS INTERFACE                                         */
/* =================================================================== */

.tab-button {
    padding: 0.75rem 1.5rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 600;
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tab-button.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.competitor-card {
    max-width: 400px;
}

 .blueprint-container { max-width: 1200px; margin: auto; padding: 2rem; }
        .section-title { font-size: 2.25rem; font-weight: 800; color: #fff; border-bottom: 2px solid #3B82F6; padding-bottom: 0.5rem; margin-bottom: 2rem; }
        .subsection-title { font-size: 1.5rem; font-weight: 700; color: #93C5FD; margin-top: 2.5rem; margin-bottom: 1.5rem; }
        .blueprint-card { background-color: #1F2937; border-radius: 0.75rem; padding: 1.5rem; border: 1px solid #374151; }
        .rule-list li { display: flex; align-items: flex-start; margin-bottom: 1rem; }
        .rule-list i { color: #34D399; margin-right: 0.75rem; margin-top: 5px; }
        code { background-color: #111827; color: #F3F4F6; padding: 0.2em 0.4em; margin: 0; font-size: 0.9em; border-radius: 0.25rem; }
   

        /* CSS cho các Tab trong Match Center */
       .tab-button {
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            border: 2px solid transparent;
            font-weight: 600;
            color: #9CA3AF;
            transition: all 0.2s ease-in-out;
        }
        .tab-button.active {
            color: white;
            background-color: #3B82F6;
        }
        .tab-button:not(.active):hover {
            background-color: #374151;
        }
        .match-card-item {
            display: flex;
            align-items: center;
            background-color: #1F2937;
            padding: 1rem;
            border-radius: 0.5rem;
            transition: background-color 0.2s;
            text-decoration: none;
            color: inherit;
        }
        .match-card-item:hover {
            background-color: #374151;
        }
        .match-time-league { width: 25%; font-size: 0.875rem; color: #9CA3AF; }
        .match-teams { width: 50%; display: flex; align-items: center; justify-content: center; gap: 1rem; }
        .team-info { display: flex; align-items: center; gap: 0.75rem; flex: 1; justify-content: center; }
        .team-info:first-child { justify-content: flex-end; }
        .team-info:last-child { justify-content: flex-start; }
        .team-logo { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
        .match-score { font-weight: 700; font-size: 1.125rem; }
        .match-odds-link { width: 25%; display: flex; justify-content: flex-end; align-items: center; color: #9CA3AF; }
        .odds-tag { font-size: 0.75rem; font-weight: 600; color: #60A5FA; background-color: rgba(59, 130, 246, 0.1); padding: 0.25rem 0.5rem; border-radius: 0.25rem; margin-right: 1rem; }
        .hub-link-item { display: flex; align-items: center; padding: 0.75rem; background-color: #1F2937; border-radius: 0.5rem; transition: all 0.2s; text-decoration: none; color: #D1D5DB; }
        .hub-link-item:hover { background-color: #374151; color: white; }
        .hub-link-item i { width: 1.5rem; text-align: center; margin-right: 0.75rem; }