/* Tot l'estil queda limitat al mòdul. */
#mtph[hidden],#mtph [hidden]{display:none!important}
#mtph{padding:0;overflow:hidden;color:#173d53;background:#fff;border:1px solid #dce7ed;border-radius:23px;box-shadow:0 12px 35px #163a5210;font-variant-numeric:tabular-nums}
#mtph .mtph-head{padding:26px 30px 24px;background:linear-gradient(115deg,#edf8fc,#f0f9f3)}
#mtph .mtph-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#mtph h2{margin:0;font-size:1.4rem;font-weight:800;color:#155575}
#mtph .mtph-heading>span{font-size:.82rem;color:#4c6b7b}
#mtph .mtph-summary{display:grid;grid-template-columns:1.2fr 1fr;gap:26px;margin-top:24px}
#mtph .mtph-today,#mtph .mtph-episode{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
#mtph .mtph-label{font-size:.86rem;font-weight:700;color:#476c7f}
#mtph .mtph-today>strong{font-size:clamp(2.8rem,6vw,4.3rem);line-height:1.16;letter-spacing:-.045em;color:#096c95}
#mtph .mtph-episode{border-left:1px solid #ccdee3;padding-left:28px;justify-content:center}
#mtph .mtph-episode>strong{font-size:clamp(1.8rem,3.5vw,2.5rem);line-height:1.3;color:#257460}
#mtph .mtph-position{font-size:.9rem;font-weight:700;margin-top:5px}
#mtph .mtph-gain{font-size:.83rem;font-weight:800;color:#187149;min-height:1.5em;line-height:1.5;margin-top:5px}
#mtph small{display:block;font-size:.72rem;color:#537587;line-height:1.3;font-weight:500}
#mtph .mtph-rankings{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:25px 26px 18px}
#mtph .mtph-ranking{min-width:0}
#mtph .mtph-list-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
#mtph h3{margin:0;font-size:1rem;font-weight:800;color:#214e65}
#mtph .mtph-return{border:1px solid #d2e1e9;border-radius:20px;padding:5px 9px;color:#226781;background:#fff;font:inherit;font-size:.73rem;cursor:pointer;white-space:nowrap}
#mtph .mtph-return:hover{background:#edf8fc}
#mtph .mtph-return:focus-visible,#mtph .mtph-scroll:focus-visible{outline:2px solid #087daa;outline-offset:2px}
#mtph .mtph-next{font-size:.74rem;line-height:1.5;min-height:2.9em;margin:12px 0 6px;color:#577381}
#mtph .mtph-columns,#mtph .mtph-row{display:grid;grid-template-columns:46px 65px minmax(0,1fr);gap:10px;align-items:center;padding:0 10px}
#mtph .mtph-columns{height:32px;background:#f3f7f9;border-radius:8px 8px 0 0;font-size:.73rem;font-weight:800;color:#557080}
#mtph .mtph-columns>span:nth-child(-n+2),#mtph .mtph-place,#mtph .mtph-amount{text-align:right}
#mtph .mtph-scroll{height:490px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;overflow-anchor:none;background:#fff;border:1px solid #e5edf1;border-radius:0 0 9px 9px}
#mtph .mtph-rows{position:relative;margin:0;padding:0;list-style:none}
#mtph .mtph-row{min-height:38px;border-bottom:1px solid #edf2f5;font-size:.78rem;line-height:1.4}
#mtph .mtph-date{padding:8px 0;overflow-wrap:anywhere}
#mtph .mtph-place{font-size:.74rem;color:#6e8795}
#mtph .mtph-amount{font-weight:700}
#mtph .mtph-current{background:#e6f5f8;border-left:3px solid #1596b2;padding-left:7px;color:#085e7c;font-weight:800;min-height:50px}
#mtph .mtph-current .mtph-place{color:#08779e;font-weight:800}
#mtph .mtph-note{font-size:.74rem;line-height:1.6;color:#667f8c;margin:0;padding:0 26px 22px}
#mtph .mtph-error{padding:0 26px 20px;margin:0;font-size:.8rem;color:#90611d}
@media(max-width:1050px){#mtph .mtph-rankings{gap:16px;padding-left:20px;padding-right:20px}#mtph .mtph-columns,#mtph .mtph-row{grid-template-columns:39px 54px minmax(0,1fr);gap:7px;font-size:.74rem}}
@media(max-width:760px){#mtph .mtph-head{padding:22px 20px}#mtph .mtph-rankings{grid-template-columns:1fr;gap:24px}#mtph .mtph-scroll{height:380px}#mtph .mtph-row{font-size:.8rem}#mtph .mtph-next{min-height:0}#mtph .mtph-summary{gap:16px}#mtph .mtph-episode{padding-left:16px}#mtph .mtph-position{font-size:.8rem}#mtph .mtph-note{padding:0 20px 20px}}
@media(max-width:430px){#mtph .mtph-summary{grid-template-columns:1fr}#mtph .mtph-episode{border-left:0;border-top:1px solid #ccdee3;padding:15px 0 0}#mtph .mtph-today>strong{font-size:3.6rem}#mtph h2{font-size:1.25rem}#mtph .mtph-rankings{padding:20px 12px}#mtph .mtph-columns,#mtph .mtph-row{grid-template-columns:36px 49px minmax(0,1fr);gap:8px}}
@media(prefers-reduced-motion:reduce){#mtph *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
#mtph .mtph-simulation-banner{margin:0;background:#fff0ca;border-bottom:1px solid #e5bd61;color:#6a4d10;padding:12px 22px;font-size:.85rem;font-weight:800}
