.statistics-section{scroll-margin-top:24px}.stats-panel{overflow:hidden}.stats-tabs{display:flex;gap:6px;padding:16px 20px;border-bottom:1px solid #e5e5ea;background:white;flex-wrap:wrap}.stats-tabs button{background:#f2f2f7;border:0;border-radius:9px;padding:10px 17px;min-height:42px;font-size:13px;color:#62626a;font-weight:550}.stats-tabs button.active{background:#e8f3ff;color:#0068c7}.stats-tabs button:hover{background:#edf5ff}.stats-controls{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:18px 24px;background:#fafafa;border-bottom:1px solid #eaeaee}.stats-controls label{font-size:11px;color:#6e6e73;display:grid;gap:6px}.stats-controls select{min-width:135px;font-size:13px;min-height:40px}.stats-export,.stats-more{border:1px solid #dedee3;background:white;color:#3a3a3c;border-radius:9px;padding:10px 15px;min-height:40px;font-size:12px}.stats-export{margin-left:auto}.stats-content{padding:24px;outline-offset:-4px}.stats-heading{margin-bottom:22px}.stats-heading h3{font-size:20px;letter-spacing:-.025em;margin:0 0 8px}.stats-heading p,.stats-footnote{font-size:12px;line-height:1.9;color:#77777f;margin:0;max-width:850px}.stats-context{font-size:11px;color:#77777f;padding:15px 24px;margin:0;border-top:1px solid #e5e5ea;line-height:1.8;background:#fcfcfd}.stats-box-card{padding:18px 0;border-top:1px solid #e5e5ea}.stats-box-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.stats-box-head h4{display:flex;align-items:center;gap:12px;font-size:17px;margin:0}.stats-box-head h4>span{font-size:12px;color:#8e8e93;font-weight:500}.stats-box-head p{margin:0;font-size:12px;color:#6e6e73}.stats-box-head p strong{font-size:23px;font-weight:650;color:#1d1d1f;font-variant-numeric:tabular-nums}.stats-box-scroll{overflow:auto;scrollbar-width:thin}.stats-box-scroll svg{display:block;width:100%;min-width:680px;height:auto}.stats-box-scroll rect:hover{stroke:#1d1d1f;stroke-width:1}.stat-link{font:inherit;font-weight:550;text-align:left;line-height:1.6;border:0;background:transparent;padding:0;color:#1d1d1f;cursor:pointer}.stat-link:hover{color:#0068c7;text-decoration:underline;text-underline-offset:3px}.stats-week-data{font-size:11px;color:#6e6e73;margin:0 0 8px}.stats-week-data summary{cursor:pointer;padding:9px 0;min-height:36px}.stats-week-data .table-wrap{max-height:260px}.stats-week-data td,.stats-week-data th{font-size:11px!important;padding:9px!important}.stats-table table{width:100%;min-width:660px;border-collapse:collapse}.stats-table th{font-size:11px!important;background:#f5f5f7!important}.stats-table td{font-size:13px!important;color:#3a3a3c;padding:15px 12px!important;vertical-align:middle}.stats-table th:first-child,.stats-table td:first-child{width:50px}.stats-table th:nth-child(2),.stats-table td:nth-child(2){width:34%;min-width:180px;text-align:left}.stats-table td:nth-child(n+3){font-variant-numeric:tabular-nums;white-space:nowrap}.stats-table small{display:block;font-size:11px;color:#8e8e93;line-height:1.6;font-weight:400}.stats-table .stat-number{font-size:22px!important;font-weight:650;color:#1d1d1f}.stats-table .stat-number small{display:inline;font-size:11px;margin-left:4px}.stats-table tbody tr:nth-child(even){background:#fafafa}.stats-more{display:block;margin:20px auto 0}.stat-live{display:inline-block;background:#e8f5ee;color:#24804a;border-radius:6px;padding:4px 8px;font-size:11px}.stats-empty{font-size:14px;color:#77777f;text-align:center;padding:30px}.stats-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}.stats-highlights article{border:1px solid #e5e5ea;border-radius:12px;padding:18px;background:#fafafa;min-width:0}.stats-highlights article>span{display:block;font-size:11px;color:#77777f;margin-bottom:9px}.stats-highlights strong{font-size:29px;line-height:1.5;font-weight:650;color:#1d1d1f}.stats-highlights strong small{font-size:13px;margin-left:4px;font-weight:400}.stats-highlights .stats-highlight-name{display:block;font-size:18px;overflow-wrap:anywhere}.stats-highlights p{font-size:11px;color:#77777f;margin:7px 0 0;line-height:1.7}.stats-week-data .stats-table th:first-child,.stats-week-data .stats-table td:first-child{width:110px}.stats-week-data .stats-table th:nth-child(2),.stats-week-data .stats-table td:nth-child(2){width:60px;min-width:0}.stats-week-data .stats-table td:last-child{white-space:normal}
@media(max-width:700px){.top nav{grid-template-columns:repeat(4,minmax(0,1fr))}.top nav svg{display:none}.stats-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:6px}.stats-tabs button{font-size:12px;padding:9px 5px;min-height:42px}.stats-controls{padding:14px;gap:10px}.stats-controls label{flex:1;min-width:115px}.stats-controls select{width:100%;min-width:0}.stats-export{margin-left:0;font-size:11px}.stats-content{padding:16px 14px}.stats-heading h3{font-size:18px}.stats-heading p,.stats-footnote{font-size:11px}.stats-context{padding:13px 14px;font-size:10px}.stats-box-head{align-items:start;gap:8px}.stats-box-head h4{font-size:14px;gap:7px;max-width:55%;overflow-wrap:anywhere}.stats-box-head p{font-size:10px;text-align:right}.stats-box-head p strong{font-size:21px}.stats-box-head p span{display:block}.stats-box-scroll svg{min-width:740px}.stats-highlights{grid-template-columns:1fr;gap:9px}.stats-highlights article{padding:13px 15px}.stats-highlights .stats-highlight-name{font-size:19px}.stats-table table{min-width:650px}.stats-table td{padding:12px 10px!important}.stats-week-data .stats-table table{min-width:560px}}
.stats-scroll-hint{display:none}
@media(max-width:700px){.stats-scroll-hint{display:block;font-size:10px;color:#77777f;text-align:right;margin:10px 0}.stats-table th:nth-child(2),.stats-table td:nth-child(2){width:180px;min-width:180px;max-width:200px}.stats-table table{table-layout:fixed}.stats-table th:first-child,.stats-table td:first-child{width:40px}.stats-table td:nth-child(n+3),.stats-table th:nth-child(n+3){width:100px}.stats-week-data .stats-table table{table-layout:auto}}
.stats-mode{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;background:white;border-bottom:1px solid #e5e5ea}.stats-mode>div{display:flex;background:#f2f2f7;border-radius:10px;padding:4px;gap:3px}.stats-mode button{border:0;background:transparent;border-radius:7px;padding:9px 15px;font-size:13px;color:#6e6e73;min-height:40px;font-weight:550}.stats-mode button.active{background:white;color:#1d1d1f;box-shadow:0 1px 5px #00000014}.stats-mode p{font-size:11px;color:#77777f;line-height:1.8;margin:0}.image-library-controls{display:flex;align-items:end;flex-wrap:wrap;gap:16px;padding:16px 24px;background:#fafafa;border-bottom:1px solid #e5e5ea}.image-library-controls label{display:grid;gap:6px;font-size:11px;color:#6e6e73}.image-library-controls input{background:white;border:1px solid #dedee3;border-radius:9px;padding:9px 12px;font-size:13px;min-height:40px;width:250px;max-width:100%}.image-library-controls select{min-height:40px;min-width:170px}#recordImageCount{font-size:12px;color:#77777f;margin-left:auto;padding-bottom:9px}.record-image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.record-image-card{border:1px solid #e5e5ea;border-radius:14px;overflow:hidden;background:white;min-width:0}.record-image-thumb{display:block;width:100%;height:245px;background:#f2f2f7;border:0;padding:14px;cursor:zoom-in}.record-image-thumb img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 5px #0000000b)}.record-image-thumb:hover{background:#eaeaf0}.record-image-info{padding:16px}.record-image-info h4{font-size:14px;line-height:1.7;font-weight:600;margin:7px 0;color:#1d1d1f}.record-image-info p{font-size:11px;color:#77777f;line-height:1.7;margin:0}.record-image-info .record-image-date{color:#0068a4;font-size:10px}.record-image-actions{display:flex;align-items:center;gap:9px;margin-top:15px}.record-save,.record-image-actions button{display:inline-flex;justify-content:center;align-items:center;min-height:40px;border-radius:8px;font-size:12px;line-height:1.5;padding:9px 13px;border:0;cursor:pointer;text-decoration:none}.record-save{background:#e8f3ff;color:#0068c7;font-weight:550}.record-save:hover{background:#d7eaff;color:#0058ad}.record-image-actions button{background:#f2f2f7;color:#6e6e73}#recordImageDialog{width:min(1100px,calc(100vw - 40px));max-height:94dvh;padding:0;border:1px solid #e5e5ea;border-radius:18px;background:#fff}#recordImageDialog h2{font-size:20px;line-height:1.5}.record-image-toolbar{display:flex;align-items:center;gap:16px;padding:13px 24px;border-bottom:1px solid #e5e5ea;flex-wrap:wrap}.record-image-toolbar>span{color:#77777f;font-size:11px;margin-right:auto}.record-image-toolbar>a:last-child{font-size:12px;color:#0068c7}.record-image-preview{background:#f5f5f7;max-height:64dvh;overflow:auto;padding:16px;text-align:center}.record-image-preview img{display:block;max-width:100%;height:auto;margin:auto}.record-save-help{font-size:11px;color:#77777f;padding:10px 24px;margin:0;line-height:1.8}
@media(max-width:1000px){.record-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.stats-mode{display:block;padding:14px}.stats-mode>div{width:fit-content}.stats-mode p{margin-top:10px;font-size:10px}.stats-mode button{font-size:12px;padding:9px 13px}.image-library-controls{padding:14px;gap:10px}.image-library-controls label{width:100%}.image-library-controls input,.image-library-controls select{width:100%;min-width:0}#recordImageCount{padding:0}.record-image-grid{grid-template-columns:1fr;gap:14px}.record-image-thumb{height:260px}.record-image-info{padding:14px}.record-image-actions>a,.record-image-actions>button{min-height:44px}.record-image-actions .record-save{flex:1}#recordImageDialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);border-radius:13px}#recordImageDialog h2{font-size:16px}.record-image-toolbar{padding:12px 14px;gap:10px}.record-image-toolbar>span{width:100%;font-size:10px}.record-image-preview{padding:5px}.record-save-help{padding:10px 14px;font-size:10px}}
.linked-record-head{display:flex;align-items:start;justify-content:space-between;gap:18px;margin-bottom:18px}.linked-record-head h3{font-size:20px;line-height:1.5;margin:0 0 7px}.linked-record-head p{font-size:11px;color:#77777f;margin:0;line-height:1.8}.linked-record-status{font-size:10px;color:#0068a4;background:#edf5ff;padding:7px 9px;border-radius:7px;white-space:nowrap}.linked-record-preview{padding:20px;background:#f2f2f7;border:1px solid #e5e5ea;border-radius:13px;text-align:center;min-height:120px}.linked-record-preview canvas{display:block;width:auto;height:auto;max-width:100%;max-height:680px;object-fit:contain;margin:auto;box-shadow:0 3px 12px #0000000b}.linked-record-head~.record-image-actions{margin:16px 0}.stats-mode>div{flex-shrink:0}
@media(max-width:700px){.stats-mode>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.stats-mode button{font-size:11px;padding:8px 5px;min-width:0;line-height:1.6}.linked-record-head{display:block}.linked-record-head h3{font-size:17px}.linked-record-status{display:inline-block;margin-top:10px}.linked-record-preview{padding:6px}.linked-record-preview canvas{max-height:550px}}
.box-artist-picker{padding:15px 24px;background:#fff;border-bottom:1px solid #e5e5ea}.box-picker-mode{display:flex;gap:6px}.box-picker-mode button,.box-artist-search button{border:0;border-radius:8px;background:#f2f2f7;color:#62626b;padding:9px 13px;min-height:40px;font-size:12px}.box-picker-mode button.active{background:#e8f3ff;color:#0068c7}.box-artist-picker label{display:block;font-size:11px;color:#6e6e73;margin:15px 0 7px}.box-artist-search{display:flex;gap:8px;max-width:580px}.box-artist-search input{flex:1;min-width:0;background:white;border:1px solid #dedee3;border-radius:9px;min-height:42px;padding:9px 12px;font-size:13px}.box-artist-search button{background:#e8f3ff;color:#0068c7;min-width:65px}#boxArtistSelected{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.box-artist-chip{border:1px solid #dbe6f1;background:#f3f8ff;border-radius:8px;min-height:37px;padding:7px 11px;color:#335a7b;font-size:12px}.box-artist-chip span{margin-left:8px;color:#77777f}#boxArtistStatus{font-size:10px;color:#77777f;margin:9px 0 0;line-height:1.8}
@media(max-width:700px){.box-artist-picker{padding:13px 14px}.box-picker-mode button{font-size:11px}.box-artist-search input{font-size:12px}.box-artist-chip{font-size:11px}}
.stats-box-grid.two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}.stats-box-grid .stats-box-card{min-width:0}
@media(max-width:1000px){.stats-box-grid.two-columns{display:block}}

/* Single-column boxes and artist/year comparisons. */
.stats-box-grid{display:block}.box-picker-mode{flex-wrap:wrap}.box-year-options{border:0;padding:16px 0 0;margin:0}.box-year-options legend{font-size:12px;color:#6e6e73;padding:0}.box-year-options>div{display:flex;flex-wrap:wrap;gap:8px}.box-year-options label{display:flex;align-items:center;gap:7px;margin:0;min-height:44px;padding:7px 12px;border:1px solid #e5e5ea;border-radius:10px;background:#fafafa;font-size:13px;color:#3a3a3c}.box-year-options label:has(input:checked){border-color:#b9d9f8;background:#e8f3ff;color:#0068c7}.box-year-options input{accent-color:#0088ff;width:17px;height:17px}#boxYearStatus{font-size:11px;line-height:1.8;color:#6e6e73}.year-comparison h4{max-width:100%}.linked-record-preview canvas{max-height:none;width:100%;height:auto}.box-artist-picker [hidden]{display:none!important}
.stats-mode{flex-wrap:wrap}.stats-mode>p{flex:1;min-width:220px}.stats-mode>div{max-width:100%}.box-picker-mode button{min-height:44px}.stats-panel [hidden]{display:none!important}

/* Balanced hierarchy: artist, total, chart, dedicated month band. */
.stats-box-card{padding:22px 0 18px}.stats-box-head{align-items:center;gap:18px}.stats-box-head h4{font-size:20px;font-weight:650}.stats-box-head p strong{font-size:28px}.stats-box-head p{font-size:12px}.stats-box-head p span{margin-left:8px}.stats-box-scroll{margin-top:8px}.stats-week-data{margin-top:5px}.stats-week-data summary{font-size:12px;min-height:40px}.stats-heading h3,.linked-record-head h3{font-size:22px}.stats-heading p,.linked-record-head p{font-size:13px;line-height:1.8}.box-year-options legend{margin-bottom:10px}.year-comparison .stats-box-head h4{font-size:21px}
@media(max-width:700px){.stats-box-card{padding:18px 0 14px}.stats-box-head h4,.year-comparison .stats-box-head h4{font-size:17px;line-height:1.55}.stats-box-head p strong{font-size:25px}.stats-box-head p{font-size:11px}.stats-box-head p span{margin:4px 0 0;display:block}.stats-box-head h4{max-width:62%}.stats-box-scroll svg{min-width:820px}.stats-heading h3,.linked-record-head h3{font-size:19px}.stats-heading p,.linked-record-head p{font-size:12px}.linked-record-preview{padding:4px}}

/* Roomier boxes and complete song legends for a single year. */
.stats-box-card{padding:28px 0 24px}.stats-box-scroll{margin-top:16px}.stats-box-scroll svg{min-width:1000px}.box-song-legend{display:flex;flex-wrap:wrap;gap:12px 24px;padding:16px 4px 18px;border-top:1px solid #f0f0f3;margin-top:10px}.box-song-item{display:inline-flex;align-items:baseline;gap:9px;max-width:100%;font-size:13px;line-height:1.7;color:#515158;overflow-wrap:anywhere}.box-song-item i{display:inline-block;flex:0 0 10px;width:10px;height:10px;border-radius:3px;align-self:flex-start;margin-top:6px}.box-song-item>span{min-width:0}.stats-box-head p span{line-height:1.8}.stats-week-data{margin-top:9px}
@media(max-width:700px){.stats-box-card{padding:24px 0 20px}.stats-box-scroll{margin-top:16px}.stats-box-scroll svg{min-width:1060px}.box-song-legend{gap:12px 18px;padding:14px 2px 16px}.box-song-item{font-size:13px;line-height:1.8}.stats-box-head{align-items:flex-start}.stats-box-head h4{font-size:18px}.stats-box-head p strong{font-size:27px}}

.linked-record-page-label{margin:22px 0 12px;font-size:14px;font-weight:600;color:#515158}.linked-record-page-label:first-child{margin-top:0}

.stat-rank-move{display:inline-block;margin-inline-start:4px;color:#247153;font-family:"Segoe UI Symbol",sans-serif;font-weight:700}.stat-rank-move[data-rank-move="down"]{color:#9b4b3f}
