/* New live-media composition, scoped to actual plugin roots; no assumed programmes or streams. */
body.emra-redesign .erl-screen-heading {padding:22px 30px 20px;}
body.emra-redesign .erl-screen-heading h1,body.emra-redesign .erl-tv-title {font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",system-ui,sans-serif;font-size:clamp(27px,2.3vw,44px);font-weight:300;line-height:1.15;letter-spacing:.045em;margin:0;}
body.emra-redesign .erl-radio {height:calc(100vh - var(--erd-header,4em));position:relative;padding-bottom:96px;}
body.emra-redesign .erl-radio>.scroll {height:calc(100vh - var(--erd-header,4em) - 180px)!important;max-height:calc(100vh - var(--erd-header,4em) - 180px);}
body.emra-redesign .erl-station-grid {display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;padding:8px 30px 30px;align-items:stretch;}
body.emra-redesign .erl-station-grid .lmeRadioRecord-item {width:auto!important;min-width:0;margin:0!important;min-height:160px;padding:20px 12px 15px;border:1px solid #d6e4ef12;border-radius:12px;background:linear-gradient(135deg,#d9e6f30b,#b0c3d104);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;}
body.emra-redesign .erl-station-grid .lmeRadioRecord-item__imgbox {background:transparent;width:68px;height:68px;padding:0;border-radius:50%;flex:0 0 68px;display:flex;align-items:center;justify-content:center;}
body.emra-redesign .erl-station-grid .lmeRadioRecord-item__img {width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:50%;}
body.emra-redesign .erl-station-grid .lmeRadioRecord-item__name {font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-size:16px;line-height:1.25;color:#e4e9ec;font-weight:400;text-align:center;min-height:2.5em;max-width:100%;overflow-wrap:anywhere;}
body.emra-redesign .erl-station-grid .lmeRadioRecord-item.focus {background:#d6e1ed12;outline:2px solid #f1f5f8;outline-offset:2px;box-shadow:0 0 15px #edf6ff22;color:white;}
body.emra-redesign.emra-live-radio .erl-radio-dock {position:fixed;left:calc(var(--erd-rail,16.4vw) + 30px);right:30px;bottom:24px;width:auto;min-width:0;height:76px;padding:14px 22px;display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #d8e9f02b;border-radius:14px;background:rgba(27,33,38,.83);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);font-size:17px;box-shadow:0 10px 40px #0005;z-index:35;transform:none;}
body.emra-redesign.emra-live-radio .erl-radio-dock.hide {display:none!important;}
/* The native name marquee uses a 50px track; a dock needs static, separate text rows. */
body.emra-redesign.emra-live-radio .erl-radio-dock .lmeRadioRecord-player__name {display:block;flex:1;min-width:0;max-width:none;margin:0;font-size:18px;font-weight:400;line-height:1.25;}
body.emra-redesign.emra-live-radio .erl-radio-dock .lmeRadioRecord-player__name>span {display:block;width:auto;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:none!important;-webkit-animation:none!important;transform:none!important;opacity:1;visibility:visible;}
body.emra-redesign.emra-live-radio .erl-radio-dock .lmeRadioRecord-player__name .lmeBit {display:block;width:max-content;max-width:100%;font-size:12px;font-weight:400;line-height:1.25;color:#a1afb9;background:transparent;padding:0;margin:4px 0 0;}
/* Keep the original whole-dock toggle target; the end glyph explains its action. */
body.emra-redesign.emra-live-radio .erl-radio-dock .lmeRadioRecord-player__button {width:36px;height:36px;flex:0 0 36px;border:1px solid #d8e9f05c;border-radius:50%;color:#f5f5f7;box-sizing:border-box;}
body.emra-redesign.emra-live-radio .erl-radio-dock .lmeRadioRecord-player__button i {display:none;animation:none!important;}
body.emra-redesign.emra-live-radio .erl-radio-dock:not(.loading):not(.stop) .lmeRadioRecord-player__button:after {content:'';display:block;width:10px;height:10px;border:0;border-radius:2px;background:currentColor;}
body.emra-redesign.emra-live-radio .erl-radio-dock.stop .lmeRadioRecord-player__button:after {content:'';display:block;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:9px solid currentColor;background:transparent;transform:translateX(2px);}
body.emra-redesign.emra-live-radio .erl-radio-dock.loading .lmeRadioRecord-player__button:after {display:none;}
body.emra-redesign.emra-live-radio .erl-radio-dock.focus {background:rgba(52,60,67,.95);color:#fff;outline:2px solid #f0f5f8;outline-offset:2px;}
/* Native TV category button stays inside info: its up/down controller checks depend on that ancestry. */
body.emra-redesign .erl-tv {height:calc(100vh - var(--erd-header,4em));display:flex;flex-direction:column;min-height:0;}
/* Native .info has a fixed 10em height: new title/meta/tabs must size it intrinsically. */
body.emra-redesign .erl-tv-heading {height:auto;min-height:0;flex-shrink:0;position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 20px;width:100%!important;padding:20px 30px 17px;margin:0;box-sizing:border-box;}
body.emra-redesign .erl-tv-title {grid-column:1;grid-row:1;}
body.emra-redesign .erl-tv-heading .info__left {grid-column:1;grid-row:2;min-height:20px;}
body.emra-redesign .erl-tv-heading .info__title {font-size:15px;font-weight:400;line-height:1.2;color:#b2bec6;margin:0;}
body.emra-redesign .erl-tv-heading .info__title-original {font-size:12px;color:#8e9ca5;margin:3px 0 0;}
body.emra-redesign .erl-tv-heading .info__create {font-size:12px;color:#8e9ca5;margin:3px 0 0;}
body.emra-redesign .erl-tv-heading .info__right {grid-column:2;grid-row:1/3;align-self:center;width:auto;}
body.emra-redesign.emra-native-tv .erl-tv-heading .view--category{border-radius:25px;padding:10px 17px;font-size:15px;font-weight:400;background:#e0e9f010;border:1px solid #e1edf61a;margin:0;}
body.emra-redesign .erl-tv-heading .view--category{;padding:10px 17px;font-size:15px;font-weight:400;;;margin:0;}
body.emra-redesign .erl-tv-workspace {min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr);gap:22px;padding:0 30px 25px;height:auto;box-sizing:border-box;}
body.emra-redesign .erl-tv-workspace.erl-has-epg {grid-template-columns:minmax(0,1fr) 30%;}
body.emra-redesign .erl-tv-workspace>.scroll {float:none!important;width:100%!important;height:100%!important;min-width:0;max-height:100%;}
body.emra-redesign .erl-channel-grid {display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;padding:5px 4px 25px!important;}
body.emra-redesign .erl-has-epg .erl-channel-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
body.emra-redesign .erl-channel-grid>.card.card--collection {width:auto!important;min-width:0;padding:12px 10px 10px!important;margin:0!important;border:1px solid #dce8f013;border-radius:10px;background:rgba(153,177,194,.055);box-sizing:border-box;}
body.emra-redesign .erl-channel-grid>.card .card__view {height:76px!important;padding:0!important;border-radius:7px;background-color:transparent!important;border:0;}
body.emra-redesign .erl-channel-grid>.card img.card__img {width:56px!important;height:56px!important;max-width:70%!important;max-height:70%!important;object-fit:contain!important;}
body.emra-redesign .erl-channel-grid>.card div.card__img {font-size:23px;font-weight:400;background:transparent;}
body.emra-redesign .erl-channel-grid>.card .card__title {font-size:13px;font-weight:500;text-align:center;line-height:1.25;margin:5px 0;color:#e2e8eb;}
body.emra-redesign .erl-channel-grid>.card .card__age {margin:7px 0 0;border:0;border-radius:4px;background:#ffffff06;font-size:11px;}
body.emra-redesign .erl-channel-grid>.card .card__epg-title {padding:4px!important;line-height:1.3;color:#9dabb4;}
body.emra-redesign .erl-channel-grid>.card .card__epg-progress {background:#e4eef119;}
body.emra-redesign .erl-channel-grid>.card.focus {outline:2px solid #f4f7f9;outline-offset:2px;box-shadow:0 0 13px #ebf7ff24;}
body.emra-redesign .erl-channel-grid>.card.focus .card__view:after {display:none;}
body.emra-redesign .erl-tv-workspace #my_iptv_epg {float:none;width:auto;margin:0;padding:18px;border:1px solid #d6e5f31f;border-radius:13px;background:rgba(29,35,40,.64);backdrop-filter:blur(16px);align-self:start;max-height:100%;overflow:auto;box-sizing:border-box;}
body.emra-redesign #my_iptv_epg .js-epgChannel {font-size:18px;font-weight:500;margin:0 0 18px;line-height:1.3;}
body.emra-redesign #my_iptv_epg .my_iptv-details__program-title {padding:0;margin:16px 0 10px;font-size:13px;color:#98a6b0;}
body.emra-redesign #my_iptv_epg .my_iptv-program {font-size:14px;line-height:1.4;padding:8px 0;border-bottom:1px solid #ffffff09;}
body.emra-redesign #my_iptv_epg .my_iptv-program__time {width:60px;flex:0 0 60px;color:#91a0aa;}
body.emra-redesign #my_iptv_epg .my_iptv-program__progressbar {width:100%;max-width:180px;border:0;background:#ffffff18;height:3px;border-radius:3px;}
body.emra-redesign #my_iptv_epg .my_iptv-program__progress {border:0;background:#e2edf4;height:3px;}
body.emra-redesign #my_iptv_epg .my_iptv-program__desc {font-size:13px;line-height:1.5;color:#a6b2ba;margin:10px 0;}
/* Editorial collections: actual title/stats are moved into a bottom scrim, preserving all callbacks. */
body.emra-redesign .erl-collections>.scroll {max-height:calc(100vh - var(--erd-header,4em) - 95px);}
body.emra-redesign .erl-collections .items-line__title {font-size:20px;font-weight:400;}
body.emra-redesign .erl-collections .items-line {margin-bottom:24px;}
body.emra-redesign .erl-collections .items-line .erl-editorial-card {width:calc((100vw - var(--erd-rail,16.4vw) - 110px) / 3)!important;flex:0 0 calc((100vw - var(--erd-rail,16.4vw) - 110px) / 3);padding:0;margin-right:16px;}
body.emra-redesign .erl-collections .category-full.erl-editorial-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:8px 30px 25px;}
body.emra-redesign .erl-collections .category-full>.erl-editorial-card {width:auto!important;padding:0!important;margin:0;min-width:0;}
body.emra-redesign .erl-editorial-card .card__view {position:relative;padding:0!important;height:clamp(190px,17vw,320px);border-radius:12px;overflow:hidden;border:1px solid #ffffff1a;background:#172028;}
body.emra-redesign .erl-editorial-card .card__img {width:100%;height:100%;object-fit:cover;border-radius:0;}
body.emra-redesign .erl-editorial-card .erl-collection-copy {position:absolute;left:0;bottom:0;right:0;padding:48px 15px 12px;background:linear-gradient(transparent,rgba(0,0,0,.85));border-radius:0 0 12px 12px;}
body.emra-redesign .erl-collection-copy>.card__title {font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-size:20px;font-weight:400;line-height:1.25;white-space:normal;max-height:2.5em;overflow:hidden;margin:0 0 12px;}
body.emra-redesign .erl-collection-copy>.cub-collection-card__bottom {position:static;padding:0;background:transparent!important;backdrop-filter:none!important;font-size:12px;gap:8px;border-radius:0;}
body.emra-redesign .erl-editorial-card .cub-collection-card__head {font-size:12px;padding:12px;}
body.emra-redesign .erl-collection-copy .cub-collection-card__user-name {padding:0 4px;max-width:42%;overflow:hidden;text-overflow:ellipsis;}
body.emra-redesign .erl-collection-copy .cub-collection-card__user-icon {width:23px;height:23px;flex:0 0 23px;border:1px solid #ffffff80;}
body.emra-redesign .erl-editorial-card.focus .card__view {outline:2px solid #f5f8fb;outline-offset:3px;box-shadow:0 0 14px #edf8ff22;}
body.emra-redesign .erl-editorial-card.focus .card__view:after {display:none;}
@media(max-width:1000px){body.emra-redesign .erl-station-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}body.emra-redesign .erl-channel-grid{grid-template-columns:repeat(4,minmax(0,1fr))}body.emra-redesign .erl-has-epg .erl-channel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.emra-redesign .erl-tv-workspace.erl-has-epg{grid-template-columns:minmax(0,1fr) 32%}body.emra-redesign .erl-station-grid .lmeRadioRecord-item{min-height:140px}body.emra-redesign .erl-collection-copy>.card__title{font-size:17px}}

/* One live area: explicit TV/radio navigation, retaining native category controls. */
body.emra-redesign .erl-live-tabs {display:flex;align-items:center;gap:6px;width:max-content;max-width:100%;padding:4px;margin-top:14px;border:1px solid #d6e5f31f;border-radius:24px;background:rgba(18,25,30,.48);}
body.emra-redesign.emra-native-tv .erl-live-tab{appearance:none;min-height:34px;padding:7px 18px;border:0;border-radius:20px;background:transparent;color:#adb9c2;font:inherit;font-size:14px;line-height:1.2;white-space:nowrap;}
body.emra-redesign .erl-live-tab{appearance:none;min-height:34px;padding:7px 18px;;;;;font:inherit;font-size:14px;line-height:1.2;white-space:nowrap;}
body.emra-redesign.emra-native-tv .erl-live-tab[aria-selected="true"]{background:#f3f6f8;color:#10151a;}
body.emra-redesign .erl-live-tab[aria-selected="true"]{;;}
body.emra-redesign.emra-native-tv .erl-live-tab.focus{outline:2px solid #fff;outline-offset:3px;box-shadow:0 0 12px #edf6ff24;}
body.emra-redesign .erl-live-tab.focus{outline:2px solid #fff;outline-offset:3px;;}
body.emra-redesign.emra-native-tv .erl-live-tab[aria-disabled="true"]{opacity:.45;}
body.emra-redesign .erl-live-tab[aria-disabled="true"]{opacity:.45;}
body.emra-redesign .erl-tv-heading>.erl-live-tabs {grid-column:1;grid-row:3;margin-top:4px;}
body.emra-redesign .erl-tv-heading .info__right {grid-row:1/4;}
body.emra-redesign .erl-tv>.erl-tv-heading {height:auto;flex-shrink:0;}
body.emra-redesign .erl-tv>.erl-tv-workspace {height:auto;min-height:0;flex:1;}
body.emra-redesign .erl-radio.erl-live-tabbed {display:flex;flex-direction:column;min-height:0;box-sizing:border-box;}
body.emra-redesign .erl-radio.erl-live-tabbed>.erl-screen-heading {flex:none;}
body.emra-redesign .erl-radio.erl-live-tabbed>.scroll {flex:1;min-height:0;height:0!important;max-height:none!important;}
body.emra-redesign .erl-radio.erl-live-tabbed .erl-station-grid {padding-left:var(--nav-content-inset,30px);}
