/* ============================== */
/* HEADER                         */
/* ============================== */
.header-inner{display:grid;grid-template-columns:60px 1fr;grid-template-areas:"logo title" "power tagline";column-gap:12px;row-gap:4px;align-items:center;}
.logo-tile{grid-area:logo;width:60px;height:60px;border-radius:12px;display:grid;place-items:center;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--accent),#ff5a36);font-size:28px;line-height:1;user-select:none;}
.powered{grid-area:power;margin-top:2px;font-size:12px;line-height:1.2;color:var(--ink-muted);}
.brand{grid-area:title;margin:0;font-size:32px;font-weight:800;letter-spacing:-.01em;color:var(--ink);}
.tagline{grid-area:tagline;margin:0;font-size:16px;line-height:1.35;color:#0f172a;font-weight:700; }

/* ============================== */
/* NAV: 10 equal pills            */
/* ============================== */
.nav-buttons{display:flex;gap:8px;margin:10px 0 16px;flex-wrap:nowrap;}
.nav-buttons>a{flex:0 0 calc((100% - 9*8px)/10);max-width:calc((100% - 9*8px)/10);display:flex;align-items:center;justify-content:center;height:54px;padding:0 8px;border-radius:10px;background:#2c2c2c;color:#fff;font-weight:800;font-size:16px;line-height:1.15;text-align:center;white-space:normal;word-break:keep-all;}
.nav-buttons>a:hover{filter:brightness(1.08);}
.nav-buttons>a.active{background:var(--accent);}

/* ============================== */
/* TEXT / LINKS                   */
/* ============================== */
.intro-text,.commentary{font-size:16px;line-height:1.5;margin:8px 0 16px;color:var(--ink);}
.section-heading{margin:8px 0 6px;padding:2px 0;font-size:16px;font-weight:800;line-height:1.2;color:var(--ink);display:block;}
.section-heading .hyperlink,.hyperlink{color:var(--ink);text-decoration:underline;text-underline-offset:3px;}

/* ============================== */
/* HOME TABLES                    */
/* ============================== */
.tables-home{background:#fff;border:1px solid #e9ecef;border-radius:10px;box-shadow:0 1px 1px rgba(0,0,0,.05);overflow:hidden;}
.tables-home table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;}
.tables-home thead th{background:#f7f7f9;color:#2F3E46;font-weight:700;text-align:left;padding:8px 10px;border-bottom:1px solid #e9ecef;}
.tables-home tbody td{padding:8px 10px;border-bottom:1px solid #f0f2f4;color:#2F3E46;vertical-align:middle;}
.tables-home tbody tr:last-child td{border-bottom:0;}
.tables-home-sno{width:56px;text-align:left;font-weight:700;color:#2F3E46;}
.tables-home td img{vertical-align:middle;margin-right:8px;}
.tables-home td:nth-child(2){display:flex;align-items:center;gap:8px;min-width:0;white-space:normal;overflow-wrap:anywhere;}
.tables-home td:nth-child(2) img{flex:0 0 24px;width:24px;height:16px;display:block;}
.tables-home .flag-name{display:grid;grid-template-columns:24px 1fr;align-items:center;column-gap:8px;}
.tables-home .flag-name>img{width:24px;height:auto;display:block;}
.tables-home .flag-name>span{white-space:normal;overflow-wrap:anywhere;}
.tables-home-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;}

/* ============================== */
/* FILTERS / FORMS (baseline 14px)*/
/* ============================== */
.filter-btn,.all-btns,.new-button-class,.form-control,.form-select,.selectors button,.subtypes button,.filters-left select,.filters-middle input,.filters-right button{background:#f2f2f2;color:var(--ink);border:1px solid #d9d9d9;border-radius:8px;font-size:14px;line-height:1.4;padding:8px 12px;min-height:36px;}
.filter-btn:hover,.all-btns:hover,.new-button-class:hover,.selectors button:hover,.subtypes button:hover{background:#d9d9d9;}
.filter-btn.active,.new-button-class.active,.subtypes .active{background:var(--accent)!important;color:#fff!important;border-color:var(--accent)!important;}
.selectors,.subtypes{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:8px;}
.subtypes{opacity:.9;font-size:13px;}
.search-wrapper{position:relative;}
.search-wrapper input{padding-right:2.5rem;}
.search-icon-btn{position:absolute;top:50%;right:.5rem;transform:translateY(-50%);background:none;border:0;color:#6c757d;font-size:1.2rem;cursor:pointer;}

/* ============================== */
/* PAGINATION                     */
/* ============================== */
.pagination{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-bottom:24px;}
.pagination a.pagination-link,.pagination span.pagination-link,.pagination button{display:inline-block;padding:8px 12px;font-size:14px;border:1px solid #d9d9d9;border-radius:8px;background:#f2f2f2;color:var(--ink);white-space:nowrap;cursor:pointer;}
.pagination a.pagination-link:hover,.pagination button:hover{background:#d9d9d9;}
.pagination .pagination-link.active,.pagination button.active{background:var(--accent);color:#fff;border:0;}

/* ============================== */
/* FOOTER                         */
/* ============================== */
.footer-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;font-weight:700;}
.footer-links a{font-size:14px;}
.footer-disclaimer{margin-top:6px;font-size:12px;color:#555;}

/* ============================== */
/* FILTERS WRAPPER L/R            */
/* ============================== */
:root{--sel-left:28%;}
.selectors-layout{display:grid;grid-template-columns:var(--sel-left) 1fr;gap:12px;border:1px solid #e6e6e6;border-bottom:0;border-radius:10px 10px 0 0;padding:12px;position:relative;background:#fff;}
.selectors-layout::after{content:"";position:absolute;top:12px;bottom:12px;left:var(--sel-left);width:1px;background:#e6e6e6;}
.filters-container{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #e6e6e6;border-top:1px solid #e6e6e6;border-radius:0 0 10px 10px;padding:12px;background:#fff;margin-top:0;}
.filters-left,.filters-middle,.filters-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.filters-container select,.filters-container input[type="text"],.filters-container button,.new-button-class{font-size:14px;padding:8px 12px;border-radius:8px;background:#f2f2f2;border:1px solid #d9d9d9;color:#2C2C2C;}
.filters-container button a{color:inherit;text-decoration:none;display:block;}

/* Tiny separators between consecutive .subtypes groups */
.subtypes{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.subtypes + .subtypes{position:relative;padding-left:14px;margin-left:10px;}
.subtypes + .subtypes::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:1px;background:#e6e6e6;border-radius:1px;}

/* ============================== */
/* LATEST RATINGS (tables-RATINGS)*/
/* ============================== */
.tables-RATINGS{--RATINGS-font:14px;margin-top:8px;background:#fff;border:1px solid #e9ecef;border-radius:10px;overflow:hidden;}
.tables-RATINGS > .table.tables-RATINGS2{width:100%!important;table-layout:fixed!important;border-collapse:separate;border-spacing:0;font-size:var(--RATINGS-font)!important;}
.tables-RATINGS thead th{position:sticky;top:0;z-index:2;background:#f7f7f9;color:#2F3E46;font-weight:700;padding:10px 12px;border-bottom:1px solid #e9ecef;white-space:nowrap;}
.tables-RATINGS tbody td,.tables-RATINGS tbody th{padding:10px 12px;vertical-align:middle;line-height:1.35;border-top:1px solid #f0f2f4;background:#fff;}
.tables-RATINGS .tables-RATINGS2 tbody tr:nth-child(even) td{background:#fafbfc;}
.tables-RATINGS .tables-RATINGS2 tbody tr:hover td{background:#f3f6ff;}
.tables-RATINGS .table.tables-RATINGS2 thead th:nth-child(1),.tables-RATINGS .table.tables-RATINGS2 tbody :is(th,td):nth-child(1){text-align:center!important;}
.tables-RATINGS .table.tables-RATINGS2 thead th:nth-child(2),.tables-RATINGS .table.tables-RATINGS2 tbody :is(th,td):nth-child(2){text-align:center!important;}
.tables-RATINGS .table.tables-RATINGS2 thead th:nth-child(3),.tables-RATINGS .table.tables-RATINGS2 tbody :is(th,td):nth-child(3){text-align:left!important;}
.tables-RATINGS .table.tables-RATINGS2 thead th:nth-child(4),.tables-RATINGS .table.tables-RATINGS2 tbody :is(th,td):nth-child(4){text-align:left!important;}
.tables-RATINGS .table.tables-RATINGS2 thead th:nth-child(5),.tables-RATINGS .table.tables-RATINGS2 tbody :is(th,td):nth-child(5){text-align:left!important;}
.tables-RATINGS .table.tables-RATINGS2 td:nth-child(3),.tables-RATINGS .table.tables-RATINGS2 td.name-column,.tables-RATINGS .RATINGS-name{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;}
.tables-RATINGS .table.tables-RATINGS2 td.name-column img,.tables-RATINGS .table.tables-RATINGS2 td:nth-child(3)>img,.tables-RATINGS .RATINGS-flag{flex:0 0 24px!important;width:24px!important;height:16px!important;object-fit:contain!important;display:inline-block!important;border-radius:2px;}
.tables-RATINGS .RATINGS-text{min-width:0;}
.tables-RATINGS .table.tables-RATINGS2 tbody td:nth-child(2),.tables-RATINGS .RATINGS-change{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;white-space:nowrap!important;line-height:1!important;}
.tables-RATINGS .table.tables-RATINGS2 tbody td:nth-child(2)>*,.tables-RATINGS .RATINGS-change>*{display:inline-block!important;vertical-align:middle!important;}
.tables-RATINGS .RATINGS-change img{width:15px;height:auto;}
.tables-RATINGS thead th .sort-icons{display:inline-flex;gap:3px;margin-left:6px;opacity:.8;font-size:.85em;}
.tables-RATINGS thead th .sort-icons .hidden{display:inline!important;opacity:.45;}
.tables-RATINGS .table.tables-RATINGS2 thead th:nth-child(3),.tables-RATINGS .table.tables-RATINGS2 tbody :is(th,td):nth-child(3){width:32%!important;}
.tables-RATINGS .table.tables-RATINGS2 thead th:nth-child(5),.tables-RATINGS .table.tables-RATINGS2 tbody :is(th,td):nth-child(5){width:44%!important;}
.tables-RATINGS .rank-column{text-align:center!important;font-weight:700;}
.tables-RATINGS .small-td{padding:10px 12px;white-space:nowrap;}


/* ============================== */
/* COMPARE                        */
/* ============================== */
.compare-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:14px;}
.player-card{background:#fff;border:1px solid #e9ecef;border-radius:12px;box-shadow:0 1px 1px rgba(0,0,0,.05);overflow:hidden;}
.player-card__head{position:relative;display:flex;align-items:center;gap:10px;padding:12px 44px 12px 12px;border-bottom:1px solid #eee;background:#fafafa;}
.player-card__title{font-weight:800;font-size:14px;color:#2c2c2c;}
.player-card__select{flex:1;}
.player-card__select select{width:100%;background:#f2f2f2;color:var(--ink);border:1px solid #d9d9d9;border-radius:8px;font-size:14px;line-height:1.4;padding:8px 12px;min-height:36px;}
.btn-pill-clear{position:absolute;right:12px;top:50%;transform:translateY(-50%);border:1px solid #e1e1e1;background:#fff;border-radius:999px;padding:4px 10px;font-size:12px;line-height:1;cursor:pointer;}
.btn-pill-clear:hover{background:#f3f3f3;}
.player-card .col-section-heading{font-weight:800;font-size:13px;padding:10px 12px 6px;color:#2c2c2c;}
.player-card__head>:not(.player-card__title):not(.player-card__select):not(.btn-pill-clear){display:none;}

.tables-COMPARE{background:#fff;border:1px solid #e9ecef;border-radius:10px;box-shadow:0 1px 1px rgba(0,0,0,.05);overflow:hidden;margin:0 12px 12px;}
.tables-COMPARE table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;}
.tables-COMPARE thead th{background:#f7f7f9;color:#2F3E46;font-weight:700;text-align:left;padding:8px 10px;border-bottom:1px solid #e9ecef;white-space:nowrap;}
.tables-COMPARE tbody td,.tables-COMPARE tbody th{padding:8px 10px;border-bottom:1px solid #f0f2f4;color:#2F3E46;vertical-align:middle;}
.tables-COMPARE tbody tr:last-child td,.tables-COMPARE tbody tr:last-child th{border-bottom:0;}
.tables-COMPARE tbody tr:nth-child(even){background:#fcfcfc;}
.tables-COMPARE .rank-column{width:56px;text-align:center;font-weight:700;}
.tables-COMPARE .no-data-text{color:#777;text-align:center;padding:14px 8px;}
.tables-COMPARE thead th:nth-child(2),.tables-COMPARE tbody td:nth-child(2){width:40%;}
.tables-COMPARE td img{vertical-align:middle;margin-right:8px;}

.compare-actions{display:flex;justify-content:flex-start;gap:10px;margin:10px 0;}
.compare-clear-btn{background:#f2f2f2;color:var(--ink);border:1px solid #d9d9d9;border-radius:8px;font:700 14px/1.2 "Nunito Sans",system-ui,sans-serif;padding:8px 12px;cursor:pointer;margin-right:auto;}
.compare-clear-btn:hover{background:#d9d9d9;}

.player-quickstats{margin-top:8px;margin-bottom:8px;}
.player-quickstats-empty{border:1px dashed #e6e6e6;border-radius:10px;padding:8px 10px;color:#777;background:#fff;}

.player-selectors{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:12px;margin:12px 0;}
.player-selectors .player-card__head{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid #e9ecef;border-radius:10px;padding:10px 12px;}
.player-selectors .player-card__title{font-weight:800;color:var(--ink);}

.compare-section{margin-top:16px;background:#fff;border:1px solid #e9ecef;border-radius:12px;overflow:hidden;}
.compare-section__head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#f7f7f9;border-bottom:1px solid #e9ecef;font-weight:800;color:#2F3E46;}
.compare-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:12px;}
.compare-card{display:flex;flex-direction:column;gap:8px;}
.compare-card .tables-COMPARE{background:#fff;border:1px solid #e9ecef;border-radius:10px;overflow:hidden;}
.compare-card .tables-COMPARE table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;}
.compare-card .tables-COMPARE thead th{background:#f7f7f9;color:#2F3E46;font-weight:700;padding:8px 10px;border-bottom:1px solid #e9ecef;text-align:left;}
.compare-card .tables-COMPARE tbody td,.compare-card .tables-COMPARE tbody th{padding:8px 10px;border-bottom:1px solid #f0f2f4;color:#2F3E46;white-space:nowrap;}
.compare-card .tables-COMPARE tbody tr:last-child td{border-bottom:0;}
.compare-card .rank-column{text-align:center;font-weight:700;}


/* ============================== */
/* RESPONSIVE                     */
/* ============================== */
@media (max-width:640px){
  .brand{font-size:28px;}
  .tagline{font-size:13px;}
}
@media (max-width:1200px){
  .nav-buttons{gap:6px;}
  .nav-buttons>a{flex:0 0 calc((100% - 9*6px)/10);max-width:calc((100% - 9*6px)/10);height:52px;}
}
@media (max-width:1100px){.compare-columns{grid-template-columns:repeat(2,1fr);}}
@media (max-width:900px){
  .nav-buttons{flex-wrap:wrap;}
  .nav-buttons>a{flex:1 1 160px;max-width:unset;}
  .selectors-layout{grid-template-columns:1fr;}
  .selectors-layout::after{display:none;}
}
@media (max-width:900px){
  .tables-ATB-COMPARE .table.tables-ATB2-COMPARE thead th:nth-child(4),
  .tables-ATB-COMPARE .table.tables-ATB2-COMPARE tbody :is(th,td):nth-child(4){width:auto!important;}
}
@media (max-width:900px){
  .tables-RATINGS-COMPARE .table.tables-RATINGS2-COMPARE thead th:nth-child(3),
  .tables-RATINGS-COMPARE .table.tables-RATINGS2-COMPARE tbody :is(th,td):nth-child(3){width:auto!important;}
}
@media (max-width:768px){
  :root{--sel-left:100%;}
  .selectors-layout{grid-template-columns:1fr;}
  .selectors-layout::after{display:none;}
  .subtypes + .subtypes{padding-left:10px;margin-left:8px;}
  .subtypes + .subtypes::before{top:4px;bottom:4px;}
  .compare-columns{grid-template-columns:1fr;}
  .compare-grid{grid-template-columns:1fr;gap:8px;}
  .player-selectors{grid-template-columns:1fr;gap:8px;}
}

/* Tight padding on very small screens */
@media (max-width:480px){
  .subscribe-form{ padding:16px; }
}

