/* Prevent any horizontal overflow on the body */
body, html {
    overflow-x: hidden;
    max-width: 100vw;
}

.table-container-top10 {
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: none !important; /* Firefox - hide scrollbar */
  -ms-overflow-style: none !important; /* IE and Edge - hide scrollbar */
}

.table-container-top10::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, Opera - hide scrollbar */
  width: 0 !important;
  height: 0 !important;
}

/* Period headers within the engagement reports table */
.period-header {
  background-color: #161617 !important;
  color: white !important;
  font-weight: bold !important;
  text-align: center !important;
  font-size: 16px !important;
  padding: 12px 8px !important;
  display: table-row !important;
}

.period-header td {
  border: none !important;
  background-color: #161617 !important;
  color: white !important;
  font-weight: bold !important;
  text-align: center !important;
  font-size: 16px !important;
  padding: 12px 8px !important;
}

/* Mobile adjustments for season headers */
@media (max-width: 768px) {
    .table-section-header {
        padding: 14px 18px;
        font-size: 18px;
        margin-top: 30px;
    }
    
    .table-section-subheader {
        padding: 12px 16px;
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .table-container-top10 {
        margin-bottom: 35px;
    }
    
    /* Mobile adjustments for prediction boxes */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}
	.filters-list{
		background: #ececec;
    padding: 10px;
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 20px;
    border-radius: 4px 4px 0 0;
	}
	.filters-list label{
		float: left;
    line-height: 36px;
    padding-right: 10px;
	}
	.filters-list input{
		width:150px!important;float:left
	}
	*,
*:before,
*:after {
   box-sizing: border-box;
}
/*== common styles for both parts of tool tip ==*/
.tool::before,
.tool::after {
    left: 50%;
    opacity: 0;
    position: absolute;
    z-index: -100;
}

.tool:hover::before,
.tool:focus::before,
.tool:hover::after,
.tool:focus::after {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 100; 
}
 select#titlepicker{width:100%;}

/*== pointer tip ==*/
.tool::before {
    border-style: solid;
    border-width: 1em 0.75em 0 0.75em;
    border-color: #3E474F transparent transparent transparent;
    bottom: 100%;
    content: "";
    margin-left: -0.5em;
    transform:  scale(.6) translateY(-90%);
}

/*== speech bubble ==*/
.tool::after {
    background: #3E474F;
    border-radius: .25em;
    bottom: 180%;
    color: #EDEFF0;
    content: attr(data-tip);
    margin-left: -8.75em;
    padding: 1em;
    transform:  scale(.6) translateY(50%);  
    width: 17.5em;
}

@media (max-width: 760px) {
  .tool::after { 
        font-size: .75em;
        margin-left: -5em;
        width: 10em; 
  }
}

tr.new-data td{
    border-top:3px solid #000!important;
}
@media only screen and (max-width: 719px) {
    .filters-list {
        height: 140px !important;
    }
    select#titlepicker{width:100%!important;}
}

/* Chart button styles */
.chart-btn {
    padding: 10px 20px;
    border: 2px solid #b9090b;
    background: white;
    color: #b9090b;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.chart-btn:hover {
    background: #b9090b;
    color: white;
}

.chart-btn.active {
    background: #b9090b;
    color: white;
}

#viewsEvolutionChart {
    max-height: 700px;
    margin: 20px 0;
}

/* Enhanced table styles */
.table-container-top10 table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
    scrollbar-width: none !important; /* Firefox - hide scrollbar */
    -ms-overflow-style: none !important; /* IE and Edge - hide scrollbar */
}

.table-container-top10 table::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera - hide scrollbar */
    width: 0 !important;
    height: 0 !important;
}

.table-container-top10 thead {
    background: #b9090b;
    color: white;
}

.table-container-top10 th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    border: none;
}

.table-container-top10 tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.table-container-top10 tbody tr:hover {
    background-color: #f8f9fa;
}

.table-container-top10 tbody tr:last-child {
    border-bottom: none;
}

.table-container-top10 td {
    padding: 12px 15px;
    font-size: 16px;
    line-height: 1.5;
    border: none;
    vertical-align: middle;
}

.table-container-top10 td:first-child {
    font-weight: 600;
}

.table-container-top10 td:nth-child(3),
.table-container-top10 td:nth-child(4) {
    font-weight: 600;
    text-align: right;
}

/* Responsive table improvements */
@media only screen and (max-width: 768px) {
    .table-container-top10 th,
    .table-container-top10 td {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .table-container-top10 th {
        font-size: 14px;
    }
    
    /* Ensure tables don't overflow on mobile */
    .table-container-top10 {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none !important; /* Firefox - hide scrollbar */
        -ms-overflow-style: none !important; /* IE and Edge - hide scrollbar */
    }
    
    .table-container-top10::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera - hide scrollbar */
        width: 0 !important;
        height: 0 !important;
    }
    
    /* Make table cells wrap text on mobile */
    .table-container-top10 td,
    .table-container-top10 th {
        word-wrap: break-word;
        max-width: 200px;
    }
}

/* Fix Select2 width issues */
.select2-container {
    max-width: 100%;
}

.select2-container--default .select2-selection--single {
    max-width: 100%;
}

/* Ensure Select2 dropdowns work properly on desktop */
.select2-dropdown {
    z-index: 9999;
}

/* Ensure Select2 positioning works correctly */
.select2-container--open .select2-dropdown {
    position: absolute;
}

/* Only override Select2 widths on mobile */
@media (max-width: 768px) {
    .select2-container {
        width: 100% !important;
        max-width: 100%;
    }
    
    .select2-dropdown {
        width: 100% !important;
        max-width: 100%;
    }
}

/* Reset specific margins and paddings that might cause white borders */

/* Keep essential width constraints without affecting theme layout */

/* Data summary table specific styles */
.table-container-top10 table[style*="margin-top: 20px"] {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.table-container-top10 table[style*="margin-top: 20px"] thead {
    background: #495057;
}

.table-container-top10 table[style*="margin-top: 20px"] tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.table-container-top10 table[style*="margin-top: 20px"] tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

/* Small text styling */
.table-container-top10 small {
    color: #666;
    font-size: 13px;
    font-weight: 400;
}

/* Expandable data summary styles */
.data-summary-details {
    margin-top: 20px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
}

.data-summary-toggle {
    padding: 12px 15px;
    background: #495057;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
}

.data-summary-toggle:hover {
    background: #343a40;
}

.data-summary-details[open] .data-summary-toggle {
    border-radius: 6px 6px 0 0;
}

.data-summary-details > div {
    padding: 15px;
    background: white;
    border-radius: 0 0 6px 6px;
}

/* Remove default details arrow and add custom styling */
.data-summary-toggle::-webkit-details-marker {
    display: none;
}

/* Hide default arrow in all browsers */
.data-summary-details > summary {
    list-style: none;
}

.data-summary-details > summary::-webkit-details-marker {
    display: none;
}

.data-summary-toggle::before {
    margin-right: 8px;
}

.data-summary-details[open] .data-summary-toggle::before {
    transform: rotate(90deg);
}

/* Title overview — same won-rec-tag-focus card + meta grid as recommendations.php (no layout overrides) */
.top10-title-overview {
	margin-bottom: 1.5rem;
}

.top10-title-overview__name {
	font-weight: 700;
}

.top10-title-overview__original-line {
	margin: 0 0 0.65rem;
}

.top10-title-performance--embedded {
	margin: 1rem 0 0;
	padding: 1rem 0 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	border-top: 1px solid #e2e2e6;
}

.top10-title-performance__heading {
	margin: 0 0 0.35rem;
	font-size: 1.08rem;
	font-weight: 700;
	color: #161617;
}

.top10-title-performance__lede {
	margin: 0 0 0.85rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: #555;
}

.top10-title-performance__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 0.75rem 1.1rem;
	margin: 0;
}

.top10-title-performance__row {
	margin: 0;
	min-width: 0;
}

.top10-title-performance .top10-title-performance__label,
.top10-title-performance__grid .top10-title-performance__label,
.won-rec-tag-focus__card .top10-title-performance__label {
	margin: 0 0 0.2rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none !important;
	color: #555 !important;
}

.top10-title-performance__value {
	margin: 0;
	font-size: 0.91rem;
	line-height: 1.45;
	font-weight: 600;
	color: #161617;
}

.top10-title-performance__sub {
	display: block;
	margin-top: 0.18rem;
	font-size: 0.78rem;
	font-weight: 400;
	line-height: 1.4;
	color: #666;
}

.top10-title-performance__points {
	font-weight: 600;
	color: #1a5fa8;
}

.top10-title-performance__move {
	display: inline-block;
	margin-left: 0.15rem;
	padding: 0.08rem 0.38rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
	vertical-align: middle;
}

.top10-title-performance__move--up { background: rgba(34, 139, 34, 0.12); color: #1b7a1b; }
.top10-title-performance__move--down { background: rgba(185, 9, 11, 0.1); color: #b9090b; }
.top10-title-performance__move--same,
.top10-title-performance__move--new { background: #eee; color: #555; }
.top10-title-performance__move--na { color: #888; background: transparent; padding: 0; }

.top10-title-performance__chart {
	margin-top: 1rem;
	padding-top: 0.95rem;
	border-top: 1px solid #e2e2e6;
}

.top10-title-performance__chart-heading {
	margin: 0 0 0.25rem;
	font-size: 0.92rem;
	font-weight: 700;
	color: #161617;
}

.top10-title-performance__chart-lede {
	margin: 0 0 0.65rem;
	font-size: 0.8rem;
	line-height: 1.45;
	color: #666;
}

.top10-title-performance__chart-wrap {
	position: relative;
	height: 260px;
	width: 100%;
}

.top10-title-performance__chart-wrap canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
}

@media (max-width: 640px) {
	.top10-title-performance__grid {
		grid-template-columns: 1fr;
	}
}
.button{padding:5px;background:#b9090b;color:#fff;}
#add-comparison-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f5f7;
  border: 2px solid #b9090b;
  border-radius: 7px;
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(185,9,11,0.07);
  font-size: 16px;
}
#add-comparison-title-box label {
  margin: 0;
  font-weight: 600;
  color: #b9090b;
  white-space: nowrap;
}
#add-comparison-title-box select {
  min-width: 220px;
  max-width: 350px;
}
#add-comparison-title-box .chart-btn {
  margin-left: 8px;
}
@media (max-width: 600px) {
  #add-comparison-title-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  #add-comparison-title-box select {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
  }
}

/* Table section headings */
.table-section-header {
    background: linear-gradient(135deg, #b9090b 0%, #e50914 100%);
    color: white;
    padding: 18px 24px;
    margin: 35px 0 0 0;
    border-radius: 8px 8px 0 0;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(185,9,11,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    letter-spacing: 0.3px;
}

.table-section-header__date {
    display: inline;
    margin-left: 0.35em;
    font-size: 0.72em;
    font-weight: 500;
    opacity: 0.92;
    letter-spacing: 0;
    white-space: nowrap;
}


.table-section-subheader {
    background: linear-gradient(135deg, #161617 0%, #1f1f21 100%);
    color: #e0e0e0;
    padding: 14px 20px;
    margin: 0 0 20px 0;
    border-radius: 0 0 8px 8px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(22,22,23,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    border-top: 2px solid rgba(185,9,11,0.2);
    flex-wrap: wrap;
}

.table-section-subheader b {
    color: #b9090b;
    font-weight: 600;
}

/* Add visual separator between season sections */
.table-container-top10 {
    margin-bottom: 40px;
    position: relative;
}

.table-container-top10::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(185,9,11,0.2) 20%, rgba(185,9,11,0.2) 80%, transparent 100%);
}

/* Enhanced table styling when under season headers */
.table-section-header + .table-section-subheader + .table-container-top10 table {
    border-top: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.table-section-header + .table-container-top10 table {
    border-top: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Improve spacing between multiple seasons */
.table-section-header:not(:first-of-type) {
    margin-top: 50px;
}

/* Style for season summary text */
.table-container-top10 + p {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 18px 24px;
    border-radius: 8px;
    border-left: 4px solid #b9090b;
    margin: 25px 0 !important;
    font-size: 16px;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #333;
}

.table-container-top10 + p i {
    color: #b9090b;
    font-weight: 600;
    font-style: normal;
}

.table-container-top10 + p b {
    color: #b9090b;
    font-weight: 700;
}

/* Style for overall title summary */
.top10-title-overview + hr + small {
    display: block;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px 24px;
    border-radius: 8px;
    border-left: 4px solid #b9090b;
    margin: 25px 0;
    font-size: 15px;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #333;
}

.top10-title-overview + hr + small b {
    color: #b9090b;
    font-weight: 700;
}

/* Improve HR separator styling */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(185,9,11,0.2) 20%, rgba(185,9,11,0.2) 80%, transparent 100%);
    margin: 30px 0;
}

/* Mobile-specific fixes for horizontal scroll */
@media (max-width: 768px) {
    /* Fix filters list on mobile */
    .filters-list {
        height: auto !important;
        min-height: 140px;
        padding: 15px 10px;
    }
    
    .filters-list label {
        float: none;
        display: block;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .filters-list input {
        width: 100% !important;
        float: none;
        margin-bottom: 10px;
    }
    
    /* Fix title picker on mobile */
    select#titlepicker {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    /* Fix date search bar on mobile */
    .datesearchbar {
        flex-direction: column;
        gap: 10px;
        padding: 15px 10px;
    }
    
    .datesearchbar select {
        width: 100% !important;
        margin: 0;
    }
    
    .datesearchbar a {
        align-self: center;
    }
    
    /* Fix table headers with fixed widths */
    .table-container-top10 th[style*="width:"] {
        width: auto !important;
        min-width: 0;
    }
    
    /* Override all hardcoded table header widths on mobile */
    .table-container-top10 th[width] {
        width: auto !important;
        min-width: 0;
    }
    
    /* Fix Select2 dropdowns on mobile */
    .select2-container {
        width: 100% !important;
        max-width: 100%;
    }
    
    /* Ensure Select2 dropdowns are properly positioned on mobile */
    .select2-dropdown {
        width: 100% !important;
        max-width: 100%;
    }
    
    /* Ensure all tables are properly contained */
    .table-container-top10 {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none !important; /* Firefox - hide scrollbar */
        -ms-overflow-style: none !important; /* IE and Edge - hide scrollbar */
    }
    
    .table-container-top10::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera - hide scrollbar */
        width: 0 !important;
        height: 0 !important;
    }
    
    /* Fix any remaining width issues */
}

/* Release week indicator styles */
.release-week-label {
    background: #b9090b !important;
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-size: 10px !important;
    font-weight: bold !important;
    margin-left: 8px !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

.release-week-label:hover {
    background: #8a0608 !important;
}

/* Methodology / legend callouts (must load on title-search views; weekly block is gated behind !title) */
.top10-method-note {
    margin: 1rem 0 1.75rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(185, 9, 11, 0.22);
    background: #fafafa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.top10-method-note__inner {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.2rem 1.05rem 1rem;
    border-left: 4px solid #b9090b;
}
.top10-method-note__icon {
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: rgba(185, 9, 11, 0.12);
    color: #b9090b;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.85rem;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
}
.top10-method-note__body { min-width: 0; }
.top10-method-note__title {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b9090b;
    margin: 0 0 0.4rem;
}
.top10-method-note__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #2a2a2a;
}
.top10-method-note__text a {
    color: #b9090b;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.top10-method-note__text a:hover,
.top10-method-note__text a:focus {
    color: #8c0608;
}
.top10-method-note__text .release-week-label {
    margin: 0 4px !important;
    vertical-align: 0.12em;
}

.won-rec-tag-focus__action .won-rec-tag-focus__action-icon {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    color: inherit;
}
.won-rec-tag-focus__action .won-rec-tag-focus__action-icon svg {
    display: block;
}

/* Engagement reports (title search): chart-first + collapsible period tables */
.top10-engagement-lede {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #444;
    max-width: 52rem;
}
.top10-engagement-chart {
    margin: 0 0 1.25rem;
    padding: 1.1rem 1.15rem 1.25rem;
    background: #f4f4f6;
    border: 1px solid #e2e2e6;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.top10-engagement-chart__canvas-wrap {
    position: relative;
    width: 100%;
    min-height: 320px;
    max-height: 420px;
}
.top10-engagement-chart__canvas-wrap canvas {
    max-width: 100%;
    height: auto !important;
}
.top10-engagement-details {
    margin: 0 0 1.5rem;
    border: 1px solid #dcdce0;
    border-radius: 10px;
    background: #fafafa;
    overflow: hidden;
}
.top10-engagement-details__summary {
    cursor: pointer;
    list-style: none;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
    background: linear-gradient(180deg, #fff 0%, #f0f0f2 100%);
    border-bottom: 1px solid #e0e0e4;
}
.top10-engagement-details__summary::-webkit-details-marker {
    display: none;
}
.top10-engagement-details__summary::after {
    content: "▸";
    float: right;
    font-weight: 700;
    color: #b9090b;
    transition: transform 0.2s ease;
}
.top10-engagement-details[open] .top10-engagement-details__summary::after {
    transform: rotate(90deg);
}
.top10-engagement-details__inner {
    padding: 0.75rem 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#top10-country-stats {
    scroll-margin-top: 5.5rem;
}
.top10-country-count {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: #555;
}
.top10-country-season {
    margin: 0 0 0.75rem;
    border: 1px solid #dcdce0;
    border-radius: 10px;
    background: #fafafa;
    overflow: hidden;
}
.top10-country-season__summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
    background: linear-gradient(180deg, #fff 0%, #f0f0f2 100%);
}
.top10-country-season__summary::-webkit-details-marker {
    display: none;
}
.top10-country-season__meta {
    font-weight: 600;
    font-size: 0.82rem;
    color: #555;
}
.top10-country-season__inner {
    padding: 0.75rem 0.85rem 1rem;
    border-top: 1px solid #e0e0e4;
    background: #fff;
}
.top10-country-table__num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.top10-engagement-period {
    margin: 0;
    padding: 0;
    border: 1px solid #e8e8ec;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.top10-engagement-period__title {
    margin: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #161617;
    border-bottom: 2px solid #b9090b;
}
.top10-engagement-period .table-container-top10 {
    margin: 0;
}
.top10-engagement-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.top10-engagement-table th,
.top10-engagement-table td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.top10-engagement-table thead th {
    text-align: left;
    background: #f6f6f8;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #333;
}
.top10-engagement-table__num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.top10-engagement-table tbody tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.02);
}
.top10-engagement-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== Top 10 search — section titles on dark panels ===== */
#won-top10-root.top10-search-page h4.top10-search-section-title,
#won-top10-root.top10-search-page .entry.themeform h4.top10-search-section-title,
#won-top10-root.top10-search-page .entry h4.top10-search-section-title {
	margin: 2rem 0 1rem !important;
	padding: 0 0 0.55rem !important;
	border: none !important;
	border-bottom: 2px solid rgba(255, 255, 255, 0.12) !important;
	background: none !important;
	background-color: transparent !important;
	font-size: 1.35rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	position: relative;
	letter-spacing: 0 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

#won-top10-root.top10-search-page h4.top10-search-section-title .top10-search-section-title__meta,
#won-top10-root.top10-search-page .top10-search-section-title__meta {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	color: #999 !important;
	-webkit-text-fill-color: #999 !important;
}

/* ===== Top 10 search — unified page chrome (matches title overview card) ===== */
#won-top10-root.top10-search-page .top10-search-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 3.6rem;
	height: 2px;
	background: var(--won-accent, #b9090b);
	pointer-events: none;
}

.top10-search-page .top10-search-toolbar {
	height: auto !important;
	min-height: 0;
	margin: 0 0 1rem;
	padding: 1rem 1.1rem;
	background: #f4f4f4;
	border: 1px solid #ddd;
	border-radius: var(--writeup-radius-card, 10px);
	box-shadow: none;
	color: #161617;
	font-size: 0.95rem;
	font-weight: 400;
}

.top10-search-page .top10-search-toolbar label {
	float: none;
	display: inline-block;
	margin: 0 0.65rem 0 0;
	line-height: 2.2;
	color: #161617;
	font-weight: 600;
}

.top10-search-page .top10-search-toolbar input[type="submit"] {
	float: right;
	margin: 0;
	padding: 0.52rem 0.95rem;
	border: 1px solid #b9090b;
	border-radius: 999px;
	background: #b9090b;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	width: auto !important;
}

.top10-search-page .top10-search-toolbar input[type="submit"]:hover {
	border-color: var(--writeup-accent, #b9090b);
	background: var(--writeup-accent, #b9090b);
}

.top10-search-page .top10-search-note {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	background: #fafafa;
	border: 1px solid #e2e2e6;
	border-left: 3px solid var(--writeup-accent, #b9090b);
	border-radius: 8px;
}

.top10-search-page .top10-search-note__text {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.55;
	color: #333;
	font-style: normal;
}

.top10-search-page .top10-search-note__text b {
	color: #161617;
	font-weight: 700;
}

.top10-search-page hr {
	border: none;
	height: 1px;
	margin: 1.5rem 0;
	background: #e2e2e6;
}

.top10-search-page .top10-method-note,
.top10-search-page .top10-engagement-chart,
.top10-search-page .top10-search-prediction,
.top10-search-page #add-comparison-title-box {
	background: #fff;
	border: 1px solid #e2e2e6;
	border-radius: var(--writeup-radius-card, 10px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
	color: #161617;
}

.top10-search-page .top10-method-note {
	margin: 0 0 1.25rem;
	overflow: hidden;
}

.top10-search-page .top10-method-note__inner {
	padding: 1rem 1.1rem;
	border-left: 3px solid var(--writeup-accent, #b9090b);
	gap: 0.75rem;
}

.top10-search-page .top10-method-note__icon {
	background: color-mix(in srgb, var(--writeup-accent, #b9090b) 16%, transparent);
	color: #ff8a8f;
}

.top10-search-page .top10-method-note__title {
	color: #161617;
	font-size: 0.72rem;
	letter-spacing: 0.07em;
}

.top10-search-page .top10-method-note__text {
	color: #333;
	font-size: 0.9rem;
}

.top10-search-page .top10-method-note__text a {
	color: #b9090b;
}

.top10-search-page .top10-method-note__text a:hover,
.top10-search-page .top10-method-note__text a:focus {
	color: #9a0709;
}

.top10-search-page .table-section-header {
	background: #b9090b !important;
	background: linear-gradient(135deg, #b9090b 0%, #d40812 100%) !important;
	color: #fff !important;
	padding: 0.85rem 1.1rem;
	margin: 1.5rem 0 0;
	border: 1px solid rgba(185, 9, 11, 0.65);
	border-bottom: none;
	border-radius: 10px 10px 0 0;
	font-size: 1.05rem;
	font-weight: 700;
	box-shadow: none;
	text-shadow: none;
	letter-spacing: 0;
	line-height: 1.25;
}

.top10-search-page .table-section-header__date {
	display: inline;
	margin-left: 0.35em;
	color: rgba(255, 255, 255, 0.88) !important;
	font-size: 0.72em;
	font-weight: 500;
	opacity: 1;
	letter-spacing: 0;
	white-space: nowrap;
}

.top10-search-page .table-section-subheader {
	background: #f0f0f2;
	color: #333;
	padding: 0.75rem 1.1rem;
	margin: 0;
	border: 1px solid #e2e2e6;
	border-top: none;
	border-bottom: none;
	border-radius: 0;
	font-size: 0.88rem;
	font-weight: 500;
	box-shadow: none;
}

.top10-search-page .table-section-subheader b {
	color: #b9090b;
	font-weight: 700;
}

.top10-search-page .table-section-header + .table-section-subheader + .table-container-top10,
.top10-search-page .table-section-header + .table-container-top10,
.top10-search-page .top10-search-performance-summary--intro + .table-container-top10 {
	margin: 0 0 1.5rem;
	padding: 0;
	border: 1px solid #e2e2e6;
	border-top: none;
	border-radius: 0 0 10px 10px;
	overflow: hidden;
	background: #fff;
}

.top10-search-page .table-section-header + .table-section-subheader + .top10-search-performance-summary--intro,
.top10-search-page .table-section-header + .top10-search-performance-summary--intro,
.top10-search-page .table-section-subheader + .top10-search-performance-summary--intro {
	margin: 0 !important;
	padding: 0.85rem 1.1rem;
	border: 1px solid #e2e2e6;
	border-top: none;
	border-left: none;
	border-right: 1px solid #e2e2e6;
	border-bottom: none;
	border-radius: 0;
	box-shadow: none;
	background: #f7f7f8;
	color: #333;
}

.top10-search-page .table-container-top10::after {
	display: none;
}

.top10-search-page .table-container-top10 table {
	margin: 0;
	border-radius: 0;
	box-shadow: none;
}

.top10-search-page .table-container-top10 thead {
	background: #2a2a2c;
	color: #f5f5f5;
}

.top10-search-page .table-container-top10 tbody tr:hover {
	background-color: #f3f4f6;
}

.top10-search-page .table-container-top10 + p,
.top10-search-page .top10-search-performance-summary,
.top10-search-page .top10-title-overview + hr + small {
	display: block;
	margin: 1rem 0 1.25rem !important;
	padding: 1rem 1.1rem;
	background: #fafafa;
	border: 1px solid #e2e2e6;
	border-left: 3px solid var(--writeup-accent, #b9090b);
	border-radius: 8px;
	box-shadow: none;
	font-size: 0.92rem;
	line-height: 1.6;
	color: #333;
}

.top10-search-page .table-container-top10 + p b,
.top10-search-page .table-container-top10 + p i,
.top10-search-page .top10-search-performance-summary b,
.top10-search-page .top10-search-performance-summary i,
.top10-search-page .top10-title-overview + hr + small b {
	color: #161617;
	font-style: normal;
	font-weight: 700;
}

.top10-search-page .top10-engagement-lede {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #555;
	max-width: none;
}

.top10-search-page .top10-engagement-chart {
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem 1.15rem;
}

.top10-search-page .top10-search-chart-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-bottom: 1rem;
}

.top10-search-page .chart-btn,
.top10-search-page .top10-search-btn {
	padding: 0.52rem 0.84rem;
	border: 1px solid #ddd;
	border-radius: 999px;
	background: #f4f4f4;
	color: #161617;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
}

.top10-search-page .chart-btn:hover,
.top10-search-page .top10-search-btn:hover,
.top10-search-page .chart-btn.active,
.top10-search-page .top10-search-btn.active {
	border-color: var(--writeup-accent, #b9090b);
	background: color-mix(in srgb, var(--writeup-accent, #b9090b) 10%, #fff);
	color: #b9090b;
}

.top10-search-page #add-comparison-title-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 1rem;
	padding: 0.85rem 1rem;
	font-size: 0.9rem;
}

.top10-search-page #add-comparison-title-box label {
	margin: 0;
	color: #161617;
	font-weight: 600;
}

.top10-search-page .top10-engagement-details {
	border: 1px solid #e2e2e6;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	margin-bottom: 1rem;
}

.top10-search-page .top10-engagement-details__summary {
	padding: 0.85rem 1rem;
	background: #f4f4f4;
	color: #161617;
	font-weight: 600;
}

.top10-search-page .top10-engagement-details__inner {
	padding: 0.85rem 1rem 1rem;
	border-top: 1px solid #e2e2e6;
}

.top10-search-page .top10-country-count {
	color: #555;
}

.top10-search-page .top10-country-season {
	background: #fff;
}

.top10-search-page .top10-country-season__summary {
	color: #161617;
}

.top10-search-page .top10-country-table__num {
	text-align: right;
}

.top10-search-page .top10-engagement-period__title {
	color: #161617;
}

.top10-search-page .top10-search-prediction {
	margin: 1.25rem 0;
	padding: 1rem 1.1rem 1.15rem;
}

.top10-search-page .top10-search-prediction__title {
	margin: 0 0 0.65rem;
	font-size: 1.02rem;
	font-weight: 700;
	color: #161617;
}

.top10-search-page .top10-search-badge {
	display: inline-block;
	margin-left: 0.45rem;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	vertical-align: middle;
}

.top10-search-page .top10-search-badge--warn {
	background: rgba(255, 152, 0, 0.2);
	color: #ffb74d;
}

.top10-search-page .top10-search-prediction__warn {
	margin: 0 0 0.55rem;
	font-size: 0.82rem;
	color: #ffb74d;
	font-weight: 600;
}

.top10-search-page .top10-search-prediction__lede {
	margin: 0 0 1rem;
	font-size: 0.88rem;
	line-height: 1.55;
	color: #555;
}

.top10-search-page .top10-search-prediction__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.top10-search-page .top10-search-prediction__stat {
	text-align: center;
	padding: 0.65rem 0.55rem;
	border-radius: 8px;
	border: 1px solid #e2e2e6;
	background: #fafafa;
}

.top10-search-page .top10-search-prediction__stat-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.top10-search-page .top10-search-prediction__stat-value {
	margin-top: 0.2rem;
	font-size: 1rem;
	font-weight: 700;
	color: #161617;
}

.top10-search-page .top10-search-prediction__stat--bull .top10-search-prediction__stat-label { color: #1b7a1b; }
.top10-search-page .top10-search-prediction__stat--base .top10-search-prediction__stat-label { color: #1a5fa8; }
.top10-search-page .top10-search-prediction__stat--bear .top10-search-prediction__stat-label { color: #b9090b; }

.top10-search-page .top10-search-prediction__chart {
	position: relative;
	height: 350px;
	margin-bottom: 0.85rem;
}

.top10-search-page .top10-search-prediction__footnote {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.5;
	color: #999;
	font-style: italic;
}

.top10-search-page .top10-search-week-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	width: 100%;
	margin: 0 0 0.75rem;
	padding: 0.85rem 1rem;
	background: #1a1a1a;
	border: 1px solid #2a2a2a;
	border-radius: 10px;
	text-align: center;
}

.top10-search-page .top10-search-week-nav a {
	padding: 0.55rem 0.95rem;
	border: 1px solid #b9090b;
	border-radius: 999px;
	color: #fff !important;
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 700;
	background: #b9090b;
}

.top10-search-page .top10-search-week-nav a:hover {
	border-color: #9a0709;
	background: #9a0709;
	color: #fff !important;
}

.top10-search-page .top10-search-week-nav select {
	flex: 1 1 220px;
	max-width: 100%;
	margin: 0 !important;
	float: none !important;
	width: auto !important;
}

.top10-search-page .top10-search-week-notice {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	background: #fafafa;
	border: 1px solid #e2e2e6;
	border-left: 3px solid #b9090b;
	border-radius: 8px;
	color: #333;
	font-size: 0.9rem;
}

.top10-search-page .top10-search-week-notice b {
	color: #161617;
}

.top10-search-page .data-summary-details {
	margin-top: 1rem;
	border: 1px solid #e2e2e6;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.top10-search-page .data-summary-toggle {
	padding: 0.85rem 1rem;
	background: #f4f4f4;
	color: #161617;
	font-size: 0.92rem;
}

.top10-search-page .data-summary-details > div {
	padding: 0.85rem 1rem 1rem;
	background: #fff;
	color: #222;
}

@media (max-width: 768px) {
	.top10-search-page .top10-search-toolbar input[type="submit"] {
		float: none;
		width: 100% !important;
		margin-top: 0.65rem;
	}

	.top10-search-page .top10-search-toolbar label {
		display: block;
		margin-bottom: 0.45rem;
	}
}

/* Keep essential width constraints without affecting theme layout */

/* Top 10 custom breadcrumbs in shared page masthead */
#won-page-root .won-top10__crumbs {
	margin: 0 0 .35rem;
}
#won-page-root .won-top10__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .8125rem;
	line-height: 1.35;
	color: #999;
}
#won-page-root .won-top10__crumbs li {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-width: 0;
}
#won-page-root .won-top10__crumbs li:not(:last-child)::after {
	content: "/";
	color: rgba(153, 153, 153, 0.7);
	font-weight: 600;
}
#won-page-root .won-top10__crumbs a {
	color: #d4d4d4 !important;
	text-decoration: none;
	font-weight: 600;
}
#won-page-root .won-top10__crumbs a:hover {
	color: #fff !important;
	text-decoration: underline;
}
#won-page-root .won-top10__crumbs [aria-current="page"] span {
	color: #999;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: min(70vw, 28rem);
}
