/* Original component; existing palette, fonts and page design are preserved. */
.topics-preview{padding-block:12px 46px;min-width:0}
.topics-top{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:24px}
.topics-preview #topics-heading{font-size:clamp(36px,3.4vw,46px);line-height:1.16;margin:0}
.topics-intro{font-size:15px;line-height:1.7;color:var(--muted);margin:12px 0 0;max-width:62ch}
.topics-preview .topics-toggle{flex-shrink:0;min-height:46px;font-size:13px;padding:12px 17px;min-width:156px}
.topics-toggle:disabled{cursor:default;opacity:.8}
.topics-row{min-width:0;margin-top:18px}
.topics-preview .topics-row h3{font-family:var(--font);font-size:13px;letter-spacing:0;line-height:1.5;font-weight:600;color:var(--teal-dark);margin:0 0 10px}
.topics-window{min-width:0}
.topics-preview .topics-track{display:block}
.topics-preview .topics-group{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0;margin:0;list-style:none;max-width:none}
.topics-preview .topic-card{display:flex;align-items:center;gap:14px;min-width:0;min-height:82px;margin:0;padding:14px 18px;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--fjord)}
.topic-symbol{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;color:var(--teal-dark);border-radius:12px;background:var(--ice)}
.topic-symbol svg{display:block;width:30px;height:30px}
.topic-name{font:600 16px/1.45 var(--font);overflow-wrap:break-word;min-width:0}
.topics-sport .topic-symbol{background:#edf3f7;color:var(--fjord)}
.topics-preview .topics-clone{display:none}
.topics-bottom{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-top:22px}
.topics-caution{font-size:12px;line-height:1.75;color:var(--muted);max-width:86ch;margin:0}
.topics-preview .topics-list-link{display:inline-flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0;min-height:44px;padding-block:10px;color:var(--teal-dark);font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.topics-motion-status{font-size:11px;color:var(--muted);line-height:1.6;margin:8px 0 0}
.topics-noscript{font-size:12px;color:var(--muted);margin:8px 0 0}
/* Moving groups have no focusable children; their duplicate sets are aria-hidden/inert. */
.topics-preview[data-topics-motion="running"] .topics-window{overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent)}
.topics-preview[data-topics-motion="running"] .topics-track{display:flex;width:max-content;animation:iptv-topic-drift 80s linear infinite;will-change:transform}
.topics-preview[data-topics-motion="running"] .topics-sport .topics-track{animation-duration:120s;animation-direction:reverse}
.topics-preview[data-topics-motion="running"] .topics-group{display:flex;flex:none;gap:12px;padding-right:12px}
.topics-preview[data-topics-motion="running"] .topic-card{flex:0 0 224px;width:224px}
@keyframes iptv-topic-drift{from{transform:translateX(0)}to{transform:translateX(calc(-100% / 3))}}
@media(max-width:760px){
 .topics-preview{padding-block:0 34px}
 .topics-top{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:22px}
 .topics-preview #topics-heading{font-size:36px}
 .topics-intro{font-size:14px;margin-top:10px}
 .topics-preview .topics-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .topics-preview .topic-card{flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;padding:14px;min-height:104px}
 .topic-name{font-size:14px;line-height:1.5}
 .topic-symbol{width:34px;height:34px;flex-basis:34px;border-radius:10px}
 .topic-symbol svg{width:27px;height:27px}
 .topics-preview[data-topics-motion="running"] .topic-card{flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;flex-basis:210px;width:210px;min-height:76px;padding:12px}
 .topics-preview[data-topics-motion="running"] .topics-group{gap:10px;padding-right:10px}
 .topics-bottom{display:block;margin-top:18px}
 .topics-list-link{margin-top:9px}
}
@media(prefers-reduced-motion:reduce){
 .topics-preview[data-topics-motion] .topics-window{overflow:visible;mask-image:none}
 .topics-preview[data-topics-motion] .topics-track{display:block;animation:none;transform:none;will-change:auto}
 .topics-preview[data-topics-motion] .topics-group{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0}
 .topics-preview[data-topics-motion] .topics-clone{display:none}
 .topics-preview[data-topics-motion] .topic-card{width:auto}
}
@media(prefers-reduced-motion:reduce) and (max-width:760px){
 .topics-preview[data-topics-motion] .topics-group{grid-template-columns:repeat(2,minmax(0,1fr))}
 .topics-preview[data-topics-motion] .topic-card{flex-direction:column;align-items:flex-start;min-height:104px;padding:14px}
}
@media print{
 .topics-preview[data-topics-motion] .topics-window{overflow:visible;mask-image:none}
 .topics-preview[data-topics-motion] .topics-track{display:block;animation:none;transform:none}
 .topics-preview[data-topics-motion] .topics-group{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0}
 .topics-preview[data-topics-motion] .topics-clone,.topics-toggle{display:none}
 .topics-preview[data-topics-motion] .topic-card{width:auto}
}

/* Genuine brand assets are kept in their original colors and proportions. */
.topics-preview .topic-brand{flex:0 0 84px;width:84px;height:54px;min-height:54px;background:#fff;border-radius:10px;overflow:hidden}
.topics-preview .topic-brand img{display:block;width:76px;height:44px;max-width:none;object-fit:contain;aspect-ratio:auto}
.topics-preview .topic-brand img[src$="telia-play.svg"]{object-fit:fill}
.topics-preview .topic-brand-dark{background:var(--fjord)}
.topics-preview .topic-name{font-size:15px;line-height:1.45}
@media(max-width:760px){
 .topics-preview .topic-brand{flex-basis:auto;width:84px;height:50px;min-height:50px}
 .topics-preview .topic-brand img{width:76px;height:42px}
 .topics-preview .topic-name{font-size:14px}
 .topics-preview[data-topics-motion="running"] .topic-brand{flex:0 0 76px;width:76px}
 .topics-preview[data-topics-motion="running"] .topic-brand img{width:70px;height:42px}
 .topics-preview[data-topics-motion="running"] .topic-card{min-height:82px}
}
