*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    background:#0b0b0b;
    color:#fff;
    font-family:Segoe UI,Arial,sans-serif;
    margin:0;
    overflow: hidden;
    display:flex;
    flex-direction:column;
	width:100%;
    max-width:100%;
    height:100vh;
    max-height:100%;
  scrollbar-gutter: stable;
}
html{
  scrollbar-gutter: stable;
  min-height:100%;
}

.aktivstan{display: block !important;}
.noaktivstan{display: none !important;}
.mobilaktiv{display: block !important;}
.mobilnoaktiv{display: none !important;}

.topbar{

    flex-shrink:0;

    display:flex;

    align-items:center;

    gap:10px;

    min-height:82px;

    background:#151515;

    padding:15px;

    margin-bottom:20px;

    border-radius:20px;

    z-index:1000;
	width:auto;
}

.logo{
    font-size:42px;
    font-weight:900;
    margin-right:25px;
    font-weight:bold;
    color:#05DCF0;
	 margin-right:15px;
     flex-shrink:0;
}

.logo span{
    color:#e50914;
}

#search{
    flex:1;
    min-width:180px;
    height:56px;
    padding:0 20px;
    font-size:18px;
    border:none;
    border-radius:25px;
    background:#222;
    color:white;
}

#category,
#list{
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

    min-width:180px;
    height:56px;

    padding:0 55px 0 20px;

    font-size:18px;
    font-weight:700;

    color:#f7f1ff;

    border:1px solid rgba(190,157,255,.48);

    border-radius:16px;

    cursor:pointer;

    background:
    linear-gradient(
        145deg,
        #392653 0%,
        #28183f 55%,
        #1d1230 100%
    );

    background-image:
    linear-gradient(
        145deg,
        #392653 0%,
        #28183f 55%,
        #1d1230 100%
    );

    box-shadow:
        0 4px 13px rgba(20,10,38,.48),
        inset 0 1px 0 rgba(255,255,255,.12);

    transition:.25s ease;
}

.movies{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:20px;
    width:100%;
    align-content:start;
    align-items:start;
    padding:5px;
}

.movies-container{
    scrollbar-width:none;
    -ms-overflow-style:none;
    mask-image:linear-gradient(
        to bottom,
        black 0%,
        black 90%,
        transparent 100%
    );
	flex:1;
    overflow-y:auto;
    overflow-x:hidden;
}

.movies-container::-webkit-scrollbar{
    display:none;
}

.movies{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    row-gap:15px;
    column-gap:15px;
    padding:15px;
    height:100%;
    align-content:start;
}

.movie{
    background:#1b1b1b;
    border-radius:20px;
    overflow:hidden;
    position:relative;
    display:flex;
    flex-direction:column;
     height:calc((100vh - 235px) / 2);
}
.movie img{
    width:100%;
    height:80%;
    object-fit:cover;
    display:block;
    padding:3px;
    border-radius:20px;
}

.movie-info{
    height:20%;
    padding:6px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:center;
}

.movie-info h3{
    font-size:16px;
    font-weight:700;
}

.movie-info p{
    font-size:14px;
    color:#FFD700;
    font-weight:700;
}

.movie:hover{
transform:translateY(-15px);
box-shadow:0 0 20px rgba(229,9,20,.4);
}

.archive{
position:absolute;
right:12px;
top:12px;
width:45px;
height:45px;
font-size:22px;;
border-radius:50%;
background:rgba(0,0,0,.8);
display:flex;
align-items:center;
justify-content:center;
color:red;
font-size:18px;
}
.rating{
position:absolute;
left:12px;
top:12px;
background:rgba(0,0,0,.8);
padding:5px 10px;
border-radius:20px;
color:gold;
font-size:16px;
padding:8px 12px;
font-weight:700;
}

.pagination{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    height:80px;
    background:#101010;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    z-index:500;
}

.pagination button{

     padding:12px 18px;
    min-width:150px;
    height:55px;
    font-size:20px;
    font-weight:700;

    border:none;

    border-radius:30px;

    background:#e50914;

    color:white;

    font-size:16px;

    cursor:pointer;

}
#pageInfo{
    color:#05DCF0;
     font-size:32px;
    font-weight:900;
    font-weight:900;
    text-shadow:
        0 0 15px #05DCF0;
}
.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.95);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
    padding:10px;
}
.modal.active{
    display:flex;
}

.modal-window{
    position:relative;
    width:min(950px,96vw);
    max-height:98%;
    background:#181818;
    border-radius:25px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

.modal-content{
    display:flex;
    gap:20px;
    overflow:hidden;
    padding:20px;
    max-height:calc(90vh - 30px);
}

.modal-content img{
    width:220px;
    min-width:220px;
    height:330px;
    object-fit:cover;
    border-radius:20px;
}

.modal-info{
    flex:1;
    display:flex;
    flex-direction:column;
    min-height:0;
}

.modal-info h2 {
  color: #ffd700;
  margin-bottom: 5px;
  text-align: center;
}

.box{
background:#272727;
padding:5px;
border-radius:15px;
margin-bottom:5px;
}

button{
    position:relative;
    overflow:hidden;
    transition:.15s;
	cursor:pointer;
}

button:active{

    transform:
        scale(.94)
        translateY(2px);
}

.buttons{
display:flex;
flex-wrap:wrap;
gap:6px;
margin-top:15px;
}

.buttons button:hover{

transform:translateY(-3px);

filter:brightness(1.15);

box-shadow:
0 10px 25px rgba(0,0,0,.4);
}

.buttons button{

    height:28px;

    min-width:90px;

    padding:4px 8px;

    font-size:12px;

    border-radius:8px;

    font-weight:600;
}

#themeBtn,
#tvBtn,
#thRad,
#thFilm{
    padding:8px 13px;
    border:none;
    border-radius:10px;
    background:#e50914;
    color:#fff;
    cursor:pointer;
    height:56px;
    min-width:120px;
    font-size:18px;
    font-weight:700;
    min-width:90px;

    transition:
        background .2s,
        transform .15s,
        box-shadow .2s;
}

#themeBtn:hover,
#tvBtn:hover,
#thRad:hover,
#thFilm:hover{
    background:#05DCF0;
    color:#000;
    box-shadow:0 0 15px rgba(5,220,240,.7);
}

#themeBtn:active,
#tvBtn:active,
#thRad:active,
#thFilm:active{
    transform:scale(.95);
}

.btn-active{
    background:#05DCF0 !important;
    color:#000 !important;
    box-shadow:0 0 20px rgba(5,220,240,.9) !important;
}

.light{
    background:#f5f5f5;
    color:#222;
}

.light .topbar{
    background:white;
}

.light .movie{
    background:white;
}

.light #search,
.light #category,
.light #list{
    background:#f3f5ff !important;
    color:#222 !important;
    border:1px solid #b8c6ff !important;
}

.light .pagination{
    background:#ffffff;
    border-top:1px solid #dcdcdc;
}

.light #pageInfo{
    color:#0078d7;
    text-shadow:none;
}

.light .pagination button{
    background:#0078d7;
    color:#fff;
}

.light .modal{
    background:rgba(0,0,0,.35);
}

.light .modal-window{
    background:#ffffff;
    color:#222;
    border:3px solid #05DCF0;
    box-shadow:
        0 0 20px rgba(5,220,240,.35),
        0 0 40px rgba(5,220,240,.15);

}

.light .modal-info2{
    background:#ffffff;
}

.light .description-box{
    background:#f2f2f2;
    color:#222;
}

.light .box{
    background:#ececec;
    color:#222;
}

.light .info-scroll::-webkit-scrollbar-track{
    background:#dcdcdc;
}

.light .close-btn{
    background:#ff3158;
}

.light .movie-rating-panel{
    background:#ffffff;
}

.light #zapfilm{
    background:#ffffff;
}
.light .modal-info h2{
    color:#c68a00;
}
.logo-wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

#mobileMenuBtn{
    display:none;
    width:45px;
    height:45px;
    border:none;
    border-radius:12px;
    background:#e50914;
    color:#fff;
    font-size:24px;
    cursor:pointer;
}

.mobile-controls{
    display:flex;
    align-items:center;
    gap:10px;
    flex:1;
}

.description-box{
    flex:1;
    min-height:200px;
    max-height:300px;
    overflow-y:auto;
    background:#242424;
    border-radius:15px;
    padding:15px;
    line-height:1.6;
	margin-top:10px;
}
.description-box::-webkit-scrollbar{
width:8px;
}
.description-box::-webkit-scrollbar-thumb{
background:#e50914;
border-radius:20px;
}

.watch-btn{
min-height:40px;
font-size:20px;
width:100%;
background:linear-gradient(
135deg,
#00d54f,
#00a63c
) !important;
font-size:28px;
font-weight:900;
box-shadow:
0 0 25px rgba(0,213,79,.7);
order:-1;
margin-top:-15px;
}

.watch-btn:active{
    transform:scale(.97);
    background:#00963a !important;
    box-shadow:
    inset 0 0 20px rgba(0,0,0,.4);
}
.archive-btn{
width:49%;
background:linear-gradient(
135deg,
#ff5f6d,
#ff2d55
);

box-shadow:
0 0 15px rgba(255,45,85,.5);
}

.delete-btn{
width:49%;
background:linear-gradient(
135deg,
#ff7b00,
#ff4d00
);

box-shadow:
0 0 15px rgba(255,120,0,.5);
}

.exit-btn{

background:linear-gradient(
135deg,
#5e5e5e,
#373737
);

box-shadow:
0 0 15px rgba(255,255,255,.15);
}

.close-btn{
    position:absolute;
    left:5px;
    top:5px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#ff003c;
    color:#fff;
    font-size:24px;
    font-weight:bold;
    cursor:pointer;
    z-index:100;
    box-shadow:
        0 0 15px rgba(255,0,60,.6);
    transition:.2s;
}
.close-btn:active{
    transform:scale(.85) rotate(90deg);
    background:#d90034;
}
.pagination button:active{
    transform:scale(.90);
    background:#c40710;
}

.vote-up{

    background:#00b140;

    transition:.15s;

    user-select:none;

    cursor:pointer;
}

.vote-up:hover{

    filter:brightness(1.1);
}

.vote-up:active{

    transform:scale(.90);

    filter:brightness(.85);

    box-shadow:
      inset 0 4px 10px rgba(0,0,0,.5);
}
.vote-down{

    background:#e50914;

    transition:.15s;

    user-select:none;

    cursor:pointer;
}

.vote-down:hover{

    filter:brightness(1.1);
}

.vote-down:active{

    transform:scale(.90);

    filter:brightness(.85);

    box-shadow:
      inset 0 4px 10px rgba(0,0,0,.5);
}
.vote-btn{

    flex:1;

    height:55px;

    border-radius:12px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    color:white;

    font-weight:bold;
}
.rating-circle{
    position:absolute;
    top:2px;
    right:2px;

    width:50px;
    height:50px;
    border-radius:50%;
    background:rgba(0,0,0,.85);
    border:2px solid gold;
    color:gold;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    font-weight:bold;
    backdrop-filter:blur(5px);

    box-shadow:
        0 0 15px rgba(255,215,0,.5);
}
#totalScore{
color:gold;
font-size:14px;
margin-top:-2px;
}
.poster-column{

    width:240px;

    min-width:240px;

    display:flex;

    flex-direction:column;

    gap:12px;
}

.poster-column img{

    width:100%;

    height:340px;

    object-fit:cover;

    border-radius:20px;
}
.info-scroll{

    max-height:160px;

    overflow-y:auto;

    margin-bottom:10px;

    padding-right:5px;
}

.info-scroll::-webkit-scrollbar{

    width:8px;
}

.info-scroll::-webkit-scrollbar-track{

    background:#222;

    border-radius:20px;
}

.info-scroll::-webkit-scrollbar-thumb{

    background:#e50914;

    border-radius:20px;
}

.poster-wrap {
    position: relative;
    width: 250px;
    height: auto;

    margin-top: 35px;
}

    .poster-wrap img, .fixir {
    position: sticky;
    top: 0;
    width:100% !important;
    max-width:250px;
    height:300px !important;
    object-fit:cover;  left: inherit;
    object-fit: cover;
    z-index: 1;
}

   .movie-rating-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 320px;
    width: 250px;
    left: inherit;
    box-sizing: border-box;
    padding: 0px 5px;
    z-index: 2;
    margin-top: 10px;
}

.modal-info2 {
  display: flex;
  flex-direction: column;
 width:100%;
    max-width:100%;
    min-width:0;
	min-height: 400px;
  background: #000;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0 auto;
}

.modal-info2.noaktivstan {
  display: none !important;
}

#zapfilm {
  flex-grow: 1;
  width: 100%;
  min-height: 380px;
  display: flex;
  background: #000;
}

#zapfilm iframe {
  min-width: 99% !important;
  min-height: 99% !important;
  flex-grow: 1;
  border: none !important;
  display: block;
}

.modal-buttons {
  display: flex;
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
}

.wixprosm, .wixprosm2 {
  flex: 1;
  text-align: center;
  cursor: pointer;
  background-color: #ffd700;
  color: #000;
  border: none;
  font-weight: bold;
  font-size: 18px;
  box-sizing: border-box;
  min-height: 40px;
  margin-top: 20px;
}

.wixprosm {
  border-right: 1px solid #000;
}

#ok-popup,#ok-popup2{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2147483647;
  border-radius: 6px;

  transition: opacity 0.2s ease, visibility 0.2s ease;
  opacity: 0;
  visibility: hidden;
}
.razik {
  height: 90px;
  width: 90px;
}

#ok-popup.show-popup,#ok-popup2.show-popup {
  opacity: 1;
  visibility: visible;
}

@media(max-width:500px){
  .movies{
        grid-template-columns:1fr;
        gap:15px;
    }

    .movie{
        margin:0;
    }

    .movie img{
        height:220px;
        min-height:220px;
        max-height:220px;
        aspect-ratio:auto;
    }

}

@media(max-width:700px){

  .modal-info2 {
    height: 80vh;
    width: 95%;
    border-radius: 8px;
  }

  .modal-buttons  {
    flex-direction: column;
  }
  .wixprosm, .wixprosm2 {
    padding: 12px 0;
	width: 100%;
    font-size: 14px;
  }
  .wixprosm {
    border-right: none;
    border-bottom: 1px solid #000;
  }

.modal{

    padding:0;
}

.modal-window{
    border-radius:0;
	width:95vw;
    max-height:95vh;
    border-radius:20px;
}

.modal-content{
    gap:10px;
    padding:15px;
    overflow-y:auto;
	display:flex;
    flex-direction:column;
    overflow-y:auto;
}

.modal-content img{
    width:100%;
    height:220px;
    min-width:auto;
    max-height:380px;
    object-fit:cover;
    border-radius:18px;
}

.modal-info h2{

    font-size:22px;
	justify-content:center;
}

.box{

    padding:10px;

    font-size:14px;
}

.description-box{

    min-height:180px;

    max-height:250px;
}

.watch-btn{

    width:100%;

    height:80px;

    font-size:26px;
}

.buttons{

    display:flex;

    flex-direction:column;

    gap:10px;
}

.buttons button{

    width:100%;

    min-width:100%;

    height:55px;
}

.close-btn{
    width:40px;
    height:40px;
    font-size:20px;
    top:8px;
    right:8px;
}
.poster-column{

    width:100%;

    min-width:100%;
}

.poster-column img{

    width:100%;

    height:240px;
}

}

@media(max-width:1200px){
movies{
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:18px;
    }

    .movie img{
        height:240px;
        min-height:240px;
        max-height:240px;
    }
}

@media(max-width:900px){

.topbar{
    flex-direction:column;
    align-items:stretch;
}

#mobileMenuBtn{
    display:block;
}

.mobile-controls{
    width:100%;
    display:none;
    flex-direction:column;
}

.mobile-controls{
    overflow:hidden;
}

.mobile-controls.open{
    display:flex;
}

#search,
#category,
#list,
#themeBtn,
#tvBtn,
#thRad,
#thFilm{
    width:98%;

}

#search{
    margin-top: 5px;
}

.vote-btn{

    height:55px;

    font-size:14px;
}

.rating-circle{
    position:absolute;
    margin-top: 12px;
    right:15px;
    width:40px;
    height:40px;
    font-size:12px;
}
.info-scroll{

        max-height:130px;
    }
.vote-btn{

    transition:
        transform .15s,
        filter .15s,
        box-shadow .15s;

    cursor:pointer;
}

.vote-btn:active{

    transform:
        scale(.88)
        translateY(2px);

    box-shadow:
        inset 0 5px 15px rgba(0,0,0,.45);
}

  .modal-window {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    display: block !important;
   padding-top: 325px !important;
    box-sizing: border-box;
    overflow-y: auto !important;
    height: 100vh !important;
    background-color: #000000;
	z-index: 0;
  }

  .poster-wrap {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 360px !important;
  }

  .poster-wrap img, .fixir {
    position: fixed !important;
    top: 0;
    left: 0;
    width:100% !important;
    max-width:250px;
    height:300px !important;
    object-fit:cover;
    object-fit: cover;
    z-index: 10;
  }

  .movie-rating-panel {
    display: flex;
    position: fixed !important;
    top: 302px !important;
    left: 0;
    width: 100% !important;
    height: 50px !important;
    background-color: #000000;
    box-sizing: border-box;
    padding: 0 15px;
    margin-top: 0 !important;
    z-index: 11;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  }

   .modal-info {
    position: relative !important;
    margin-top: 0 !important;
    z-index: 1;
  }
   .close-btn {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;

    margin: 0 !important;
    transform: none !important;

    z-index: 100 !important;
  }
  .modal-wrapper-class {
    display: block !important;
    overflow-y: auto !important;
    padding-top: 0 !important;
  }

   .modal-info2 {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    overflow-y: auto !important;
    box-sizing: border-box;
    transform: none !important;
    margin: 0 !important;
    padding-top: 5px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    padding-bottom: 30px !important;
    z-index: 5 !important;
  }
   .movies{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:15px;
    }

    .movie img{
        height:210px;
        min-height:210px;
        max-height:210px;
    }

}

#themeBtn, #tvBtn, #thRad, #thFilm, #settingsBtn {
    background: linear-gradient(135deg, #7657ff 0%, #5636d9 52%, #39249b 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(190, 174, 255, .55) !important;
    border-radius: 14px !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    letter-spacing: .2px;
    box-shadow: 0 6px 18px rgba(91, 62, 220, .35), inset 0 1px 0 rgba(255,255,255,.2);
    transition: background .25s ease, color .25s ease, transform .2s ease,
                box-shadow .3s ease, filter .25s ease !important;
}

#themeBtn:hover, #tvBtn:hover, #thRad:hover, #thFilm:hover, #settingsBtn:hover {
    background: linear-gradient(135deg, #927cff 0%, #6d4aff 55%, #4c32c9 100%) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(111, 76, 255, .55), 0 0 18px rgba(145, 115, 255, .35);
    filter: brightness(1.08);
}
#themeBtn:active, #tvBtn:active, #thRad:active, #thFilm:active, #settingsBtn:active {
    transform: scale(.96) !important;
}

#search,#category,
#list{
    border:1px solid rgba(190,157,255,.48) !important;
    transition:border-color .25s ease,
               box-shadow .25s ease,
               filter .25s ease !important;
}
#search:focus,
#category:focus,
#list:focus{
    outline:none;

    border-color:#c4a5ff !important;

    box-shadow:
        0 0 12px rgba(164,119,255,.75),
        0 0 24px rgba(164,119,255,.52),
        0 0 38px rgba(164,119,255,.25) !important;
}

.movie { transform: none !important; box-shadow: none; border: 2px solid transparent; }
.movie:hover, .movie:focus-within, .movie.selected {
    transform: none !important;
    box-shadow: none !important;
}
.movie img {
    border: 3px solid transparent;
    border-radius: 18px;
    transition: border-color .28s ease, box-shadow .3s ease, filter .3s ease;
}
.movie:hover img {
    border-color: #a18cff;
    box-shadow: 0 0 12px rgba(145,115,255,.95),
                0 0 28px rgba(119,87,255,.8),
                0 0 52px rgba(119,87,255,.55),
                0 0 75px rgba(119,87,255,.28);
    filter: brightness(1.12) saturate(1.12) drop-shadow(0 0 14px rgba(119,87,255,.75));
}
.movie.selected.blue img {
    border-color: #20d6cc !important;
    box-shadow: 0 0 14px #20d6cc, 0 0 32px rgba(32,214,204,.85),
                0 0 60px rgba(32,214,204,.55), 0 0 85px rgba(32,214,204,.3) !important;
    filter: brightness(1.13) saturate(1.15) drop-shadow(0 0 16px rgba(32,214,204,.8));
}
.movie.selected.red img {
    border-color: #ff5b8a !important;
    box-shadow: 0 0 14px #ff5b8a, 0 0 32px rgba(255,91,138,.85),
                0 0 60px rgba(255,91,138,.55), 0 0 85px rgba(255,91,138,.3) !important;
    filter: brightness(1.13) saturate(1.15) drop-shadow(0 0 16px rgba(255,91,138,.8));
}
.movie.selected.gold img {
    border-color: #ffd166 !important;
    box-shadow: 0 0 14px #ffd166, 0 0 32px rgba(255,209,102,.85),
                0 0 60px rgba(255,209,102,.55), 0 0 85px rgba(255,209,102,.3) !important;
    filter: brightness(1.13) saturate(1.15) drop-shadow(0 0 16px rgba(255,209,102,.8));
}
.movie.selected { border-color: transparent !important; }

:root {
    --btn-purple: #30204f;
    --btn-purple-light: #49316f;
    --btn-glow: rgba(164, 119, 255, .58);
    --poster-glow: #a879ff;
}

#themeBtn, #tvBtn, #thRad, #thFilm,
.pagination button {
    background: linear-gradient(145deg, #392653 0%, #28183f 55%, #1d1230 100%) !important;
    color: #f7f1ff !important;
    border: 1px solid rgba(190, 157, 255, .48) !important;
    box-shadow: 0 4px 13px rgba(20, 10, 38, .48),
                inset 0 1px 0 rgba(255,255,255,.12);
    transition: background .25s ease, color .25s ease, transform .2s ease,
                box-shadow .25s ease, border-color .25s ease, filter .25s ease !important;
}

#themeBtn:hover, #tvBtn:hover, #thRad:hover, #thFilm:hover,
.pagination button:hover {
    background: linear-gradient(145deg, #62418e 0%, #49306f 55%, #35214f 100%) !important;
    color: #fff !important;
    border-color: #c4a5ff !important;
    box-shadow: 0 0 10px rgba(164,119,255,.75),
                0 0 24px rgba(164,119,255,.52),
                0 0 38px rgba(164,119,255,.25),
                inset 0 1px 0 rgba(255,255,255,.2) !important;
    filter: brightness(1.12);
}
#category:hover,
#list:hover{
    border-color:#c4a5ff !important;

    box-shadow:
        0 0 10px rgba(164,119,255,.75),
        0 0 24px rgba(164,119,255,.52),
        0 0 38px rgba(164,119,255,.25),
        inset 0 1px 0 rgba(255,255,255,.2) !important;

    filter:brightness(1.08);
}

#themeBtn:active, #tvBtn:active, #thRad:active, #thFilm:active,
.pagination button:active {
    transform: scale(.96) !important;
}

#themeBtn.btn-active, #tvBtn.btn-active, #thRad.btn-active, #thFilm.btn-active,
#themeBtn.active, #tvBtn.active, #thRad.active, #thFilm.active,
.pagination button.active, .pagination button.btn-active,
.pagination button[aria-current="page"] {
    background: linear-gradient(145deg, #7552a7 0%, #513574 58%, #392452 100%) !important;
    border-color: #d0b5ff !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(164,119,255,.8),
                0 0 25px rgba(164,119,255,.58),
                0 0 42px rgba(164,119,255,.3) !important;
}

.movie { transform: none !important; overflow: visible; }
.movie:hover, .movie:focus-within, .movie.selected { transform: none !important; }
.movie img {
    position: relative;
    z-index: 1;
    transition: border-color .3s ease, box-shadow .3s ease, filter .3s ease;
}
.movie:hover img {
    border-color: #c5a7ff !important;
    box-shadow: 0 0 12px rgba(177,139,255,.95),
                0 0 28px rgba(164,119,255,.85),
                0 0 52px rgba(164,119,255,.62),
                0 0 78px rgba(164,119,255,.38) !important;
    filter: brightness(1.12) saturate(1.16)
            drop-shadow(0 0 8px rgba(164,119,255,.9))
            drop-shadow(0 0 20px rgba(164,119,255,.62));
}

.movie .rating, .movie .rating-circle, .movie .archive,
.movie .movie-rating-panel, .movie .vote-btn {
    position: absolute;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}
.movie .rating, .movie .rating-circle, .movie .archive {
    transition: none !important;
}
.movie:hover .rating, .movie:hover .rating-circle, .movie:hover .archive,
.movie:hover .movie-rating-panel, .movie:hover .vote-btn {
    opacity: 1 !important;
    visibility: visible !important;
}

.movie, .movie:hover, .movie:focus-within, .movie.selected {
    transform: none !important;
}
.movie img {
    transition: none !important;
    filter: none;
    will-change: auto;
}
.movie:hover img {
    border-color: #b99aff !important;
    box-shadow: 0 0 6px rgba(185,154,255,.65),
                0 0 14px rgba(164,119,255,.38) !important;
    filter: brightness(1.04) !important;
}
.movie.selected.blue img {
    box-shadow: 0 0 7px rgba(32,214,204,.7),
                0 0 16px rgba(32,214,204,.38) !important;
    filter: brightness(1.04) !important;
}
.movie.selected.red img {
    box-shadow: 0 0 7px rgba(255,91,138,.7),
                0 0 16px rgba(255,91,138,.38) !important;
    filter: brightness(1.04) !important;
}
.movie.selected.gold img {
    box-shadow: 0 0 7px rgba(255,209,102,.7),
                0 0 16px rgba(255,209,102,.38) !important;
    filter: brightness(1.04) !important;
}

.movie .rating, .movie .rating-circle, .movie .archive,
.movie .movie-rating-panel, .movie .vote-btn {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
}

.movie .archive {
    width: 49px !important;
    height: 49px !important;
    font-size: 23px !important;
}
.movie .rating {
    font-size: 18px !important;
    padding: 9px 13px !important;
}
.movie .rating-circle {
    width: 44px !important;
    height: 44px !important;
    font-size: 14px !important;
}
.movie:hover img {
    box-shadow: 0 0 9px rgba(185,154,255,.72),
                0 0 19px rgba(164,119,255,.48) !important;
    filter: brightness(1.05) !important;
}

#movieModal .modal-window {
    border: 3px solid #05DCF0 !important;
    border-radius: 26px !important;
    box-shadow:
        0 0 0 1px rgba(5,220,240,.18),
        0 0 22px rgba(5,220,240,.42),
        0 0 48px rgba(5,220,240,.18) !important;
}

#movieModal #modalTitle {
    text-align: center !important;
    font-weight: 900 !important;
    letter-spacing: .4px;
    text-shadow: 0 2px 3px rgba(0,0,0,.55), 0 0 14px rgba(255,215,0,.25);
}

#movieModal .buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 12px !important;
    width: 100% !important;
    margin: 12px 0 18px !important;
    align-items: stretch !important;
}

#movieModal .buttons > button {
    min-width: 0 !important;
    min-height: 50px !important;
    height: auto !important;
    padding: 11px 18px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-size: clamp(15px, 1.15vw, 20px) !important;
    font-weight: 800 !important;
    letter-spacing: .2px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease !important;
}

#movieModal .buttons > .watch-btn {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    order: 0 !important;
    min-height: 60px !important;
    margin: 0 0 5px !important;
    border: 1px solid rgba(140,255,190,.55) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #18df75 0%, #00a947 55%, #008b3a 100%) !important;
    color: #fff !important;
    font-size: clamp(21px, 1.55vw, 30px) !important;
    box-shadow: 0 5px 18px rgba(0,190,75,.34), inset 0 1px 0 rgba(255,255,255,.24) !important;
}

#movieModal .buttons > .archive-btn {
    background: linear-gradient(135deg, #ff647b 0%, #f32655 100%) !important;
    box-shadow: 0 4px 14px rgba(243,38,85,.28) !important;
}

#movieModal .buttons > .delete-btn {
    background: linear-gradient(135deg, #ff9b36 0%, #ef5700 100%) !important;
    box-shadow: 0 4px 14px rgba(239,87,0,.28) !important;
}

#movieModal .buttons > button:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.12) !important;
}

#movieModal .buttons > button:active {
    transform: scale(.97) !important;
    filter: brightness(.94) !important;
}

#movieModal .close-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(255,255,255,.38) !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ff526d, #d90038) !important;
    color: #fff !important;
    font-size: 23px !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 16px rgba(255,0,60,.42), inset 0 1px 0 rgba(255,255,255,.28) !important;
    z-index: 1000 !important;
}

#movieModal .close-btn:hover {
    transform: scale(1.06) !important;
    filter: brightness(1.12) !important;
}

#movieModal .description-box {
    border: 1px solid rgba(5,220,240,.28);
    border-radius: 18px !important;
    line-height: 1.65;
    margin-bottom: 14px !important;
}

#movieModal .info-scroll {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px 10px !important;
    margin-top: 0 !important;
}

#movieModal .info-scroll .box {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    border: 1px solid rgba(5,220,240,.18);
    border-radius: 14px !important;
    padding: 10px 13px !important;
}

#movieModal .modal-buttons button {
    min-height: 46px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.25);
}

.light #movieModal .modal-window {
    border: 3px solid #05DCF0 !important;
    box-shadow:
        0 0 20px rgba(5,220,240,.4),
        0 0 42px rgba(5,220,240,.2) !important;
}

@media (max-width: 700px) {
    #movieModal .modal-window {
        border-width: 2px !important;
        border-radius: 20px !important;
    }
    #movieModal .buttons {
        gap: 9px !important;
    }
    #movieModal .buttons > button {
        min-height: 46px !important;
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
    #movieModal .buttons > .watch-btn {
        min-height: 52px !important;
        font-size: 20px !important;
    }
    #movieModal .close-btn {
        top: 6px !important;
        right: 6px !important;
        width: 40px !important;
        height: 40px !important;
    }
    #movieModal .info-scroll {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media screen and (min-width: 701px) {

    #movieModal.modal {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        display: none;
        align-items: stretch !important;
        justify-content: stretch !important;
        background: rgba(0, 0, 0, .985) !important;
        z-index: 2147483000 !important;
    }

    #movieModal.modal.active {
        display: flex !important;
    }

    #movieModal .modal-window {
        position: relative !important;
        width: 90vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border: 3px solid #05DCF0 !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        background: #101216 !important;
        box-shadow: inset 0 0 24px rgba(5, 220, 240, .12),
                    0 0 25px rgba(5, 220, 240, .35) !important;
    }

    #movieModal .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        padding: 66px 34px 24px !important;
        gap: 30px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        align-items: flex-start !important;
    }

    #movieModal .close-btn {
        position: absolute !important;
        top: 4px !important;
        right: 6px !important;
        left: auto !important;
        z-index: 2147483001 !important;
        width: 62px !important;
        height: 62px !important;
        min-width: 62px !important;
        min-height: 62px !important;
        padding: 0 !important;
        border: 2px solid rgba(255,255,255,.65) !important;
        border-radius: 50% !important;
        background: linear-gradient(145deg, #ff667d, #d90038) !important;
        color: #fff !important;
        font-size: 32px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        box-shadow: 0 5px 20px rgba(255,0,60,.48),
                    inset 0 1px 0 rgba(255,255,255,.3) !important;
    }

    #movieModal .buttons {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        width: 100% !important;
        gap: 12px 14px !important;
        margin: 8px 0 18px !important;
        box-sizing: border-box !important;
    }

    #movieModal .buttons > .watch-btn {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        width: 100% !important;
    }

    #movieModal .buttons > .archive-btn {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        justify-self: stretch !important;
    }

    #movieModal .buttons > .delete-btn {
        grid-column: 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        justify-self: stretch !important;
    }

    #movieModal .poster-column {
        flex: 0 0 250px !important;
        width: 250px !important;
        min-width: 250px !important;
    }

    #movieModal .poster-wrap {
        position: relative !important;
        width: 100% !important;
        height: 300px !important;
        margin-top: 0 !important;
        overflow: hidden !important;
        border-radius: 20px !important;
    }

    #movieModal .poster-wrap .fixir {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        z-index: 1 !important;
    }

    #movieModal .poster-wrap img {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 20px !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel {
        position: absolute !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        top: auto !important;
        display: flex !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 8px !important;
        z-index: 5 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-btn {
        position: relative !important;
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 4px 8px !important;
        border: 1px solid rgba(255,255,255,.55) !important;
        border-radius: 999px !important;
        background: rgba(8, 12, 18, .86) !important;
        color: #fff !important;
        font-size: 19px !important;
        backdrop-filter: blur(8px);
        box-shadow: 0 3px 12px rgba(0,0,0,.4) !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-btn span {
        font-size: 13px !important;
        line-height: 1.1 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-up {
        border-color: rgba(45, 220, 125, .8) !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-down {
        border-color: rgba(255, 90, 105, .8) !important;
    }
}

@media screen and (max-width: 700px) {
    #movieModal .close-btn {
        top: 4px !important;
        right: 4px !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        font-size: 26px !important;
        z-index: 2147483001 !important;
    }

    #movieModal .buttons {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
        width: 100% !important;
    }

    #movieModal .buttons > .watch-btn {
        grid-column: 1 / -1 !important;
    }

    #movieModal .buttons > .archive-btn {
        grid-column: 1 !important;
        width: 100% !important;
    }

    #movieModal .buttons > .delete-btn {
        grid-column: 2 !important;
        width: 100% !important;
    }
}

@media screen and (min-width: 701px) {
    #movieModal .poster-column {
        position: relative !important;
        align-self: flex-start !important;
    }

    #movieModal .poster-wrap {
        position: relative !important;
        width: 250px !important;
        height: 340px !important;
        margin-top: 35px !important;
        overflow: visible !important;
    }

    #movieModal .poster-wrap .fixir,
    #movieModal .poster-wrap .fixir img,
    #movieModal .poster-wrap #modalPoster {
        width: 100% !important;
        height: 100% !important;
    }

    #movieModal .poster-wrap #modalPoster {
        display: block !important;
        object-fit: cover !important;
        border-radius: 20px !important;
    }

    #movieModal .poster-column > .rating-circle {
        position: absolute !important;
        top: 43px !important;
        right: 8px !important;
        left: auto !important;
        z-index: 9 !important;
        width: 58px !important;
        height: 58px !important;
        border: 2px solid #ffd700 !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, .88) !important;
        box-shadow: 0 0 16px rgba(255, 215, 0, .55) !important;
        pointer-events: none !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel {
        position: absolute !important;
        top: auto !important;
        bottom: 8px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 9px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-btn {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        height: 62px !important;
        min-height: 62px !important;
        padding: 5px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2px !important;
        border: 2px solid rgba(255, 255, 255, .72) !important;
        border-radius: 999px !important;
        color: #fff !important;
        font-size: 27px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        background: rgba(8, 12, 18, .92) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, .48) !important;
        backdrop-filter: blur(7px);
        cursor: pointer !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-btn span {
        display: block !important;
        color: #fff !important;
        font-size: 17px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-up {
        border-color: #18df75 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-down {
        border-color: #ff526d !important;
    }
}

@media screen and (min-width: 701px) {

    #movieModal .modal-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 14px !important;
        padding: 58px 26px 20px !important;
    }

    #movieModal .poster-column {
        flex: 0 0 280px !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #movieModal .poster-wrap {
        width: 280px !important;
        height: 380px !important;
        margin: 0 !important;
        position: relative !important;
        overflow: visible !important;
    }

    #movieModal .poster-wrap .fixir {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        overflow: hidden !important;
        border-radius: 20px !important;
    }

    #movieModal .poster-wrap #modalPoster {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 20px !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel {
        position: static !important;
        inset: auto !important;
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        margin: 10px 0 0 !important;
        padding: 0 !important;
        gap: 10px !important;
        z-index: 5 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-btn {
        position: relative !important;
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        height: 60px !important;
        min-height: 60px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        padding: 5px 8px !important;
        border-radius: 999px !important;
        font-size: 27px !important;
        line-height: 1 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-btn span {
        font-size: 16px !important;
        line-height: 1 !important;
    }

    #movieModal .poster-column > .rating-circle {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
        z-index: 9 !important;
    }

    #movieModal .modal-info {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    #movieModal #modalTitle {
        width: 96% !important;
        max-width: 100% !important;
        align-self: center !important;
        margin: 0 auto 10px !important;
        padding: 0 48px 0 12px !important;
        line-height: 1.18 !important;
        text-align: center !important;
    }

    #movieModal .buttons {
        width: 96% !important;
        max-width: 100% !important;
        align-self: center !important;
        margin: 0 auto 14px !important;
        gap: 10px 12px !important;
    }

    #movieModal .buttons > .watch-btn {
        min-height: 56px !important;
        padding: 9px 16px !important;
    }

    #movieModal .buttons > .archive-btn,
    #movieModal .buttons > .delete-btn {
        min-height: 50px !important;
        padding: 8px 14px !important;
    }

    #movieModal .description-box {
        width: 100% !important;
        margin: 0 0 14px !important;
        min-height: 110px !important;
        box-sizing: border-box !important;
    }

    #movieModal .info-scroll {
        width: 100% !important;
        margin: 0 !important;
    }
}

#movieModal.modal {
    position: fixed !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    padding: 10px !important;
    margin: 0 !important;

    display: none !important;

    justify-content: center !important;
    align-items: center !important;

    box-sizing: border-box !important;
    z-index: 2147483000 !important;

    overflow: hidden !important;
}

#movieModal.modal.active {
    display: flex !important;
}

#movieModal .modal-window {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    transform: none !important;

    width: 90vw !important;
    height: 90vh !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 90vw !important;
    max-height: 90vh !important;

    margin: 0 !important;
    padding-top: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    border: 3px solid #05DCF0 !important;
    border-radius: 22px !important;

    background: #101216 !important;

    box-sizing: border-box !important;
    overflow: hidden !important;

    box-shadow:
        0 0 0 1px rgba(5,220,240,.18),
        0 0 22px rgba(5,220,240,.42),
        0 0 48px rgba(5,220,240,.18) !important;
}

#movieModal .modal-content {
    width: 100% !important;
    height: 100% !important;

    min-height: 0 !important;
    max-height: 100% !important;

    display: flex !important;

    box-sizing: border-box !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#movieModal .close-btn {
    position: absolute !important;

    top: 8px !important;
    right: 8px !important;
    left: auto !important;

    z-index: 2147483001 !important;
}

@media screen and (max-width: 700px) {

    #movieModal.modal {
        padding: 8px !important;
    }

    #movieModal .modal-window {
        width: 96vw !important;
        height: 92vh !important;

        max-width: 96vw !important;
        max-height: 92vh !important;

        border-width: 2px !important;
        border-radius: 18px !important;

        padding-top: 0 !important;
    }

    #movieModal .modal-content {
        width: 100% !important;
        height: 100% !important;

        min-height: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        padding: 56px 14px 18px !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

@media (min-width: 701px) {

    #movieModal .modal-info {
        box-sizing: border-box !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    #movieModal .description-box,
    #movieModal .info-scroll,
    #movieModal .buttons,
    #movieModal #modalTitle {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    #movieModal .buttons {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #movieModal .info-scroll {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    #movieModal .info-scroll .box {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    #movieModal .description-box {
        padding: 15px !important;
    }
}

@media screen and (min-width: 701px) {
    #movieModal .modal-info {
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        min-width: 0 !important;
        align-items: stretch !important;
    }

    #movieModal #modalTitle,
    #movieModal .buttons,
    #movieModal .description-box,
    #movieModal .info-scroll {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
    }

    #movieModal #modalTitle {
        padding-left: 12px !important;
        padding-right: 48px !important;
    }

    #movieModal .buttons {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 14px !important;
    }

    #movieModal .buttons > button {
        box-sizing: border-box !important;
    }

    #movieModal .description-box {
        margin-top: 0 !important;
        margin-bottom: 14px !important;
    }

    #movieModal .info-scroll {
        margin-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media screen and (max-width: 700px) {
    #movieModal .modal-info {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        align-items: stretch !important;
    }

    #movieModal #modalTitle,
    #movieModal .buttons,
    #movieModal .description-box,
    #movieModal .info-scroll {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
    }

    #movieModal .buttons {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

#movieModal.modal {
    overflow: hidden !important;
}

#movieModal .modal-window {
    display: flex !important;
    flex-direction: column !important;
    height: 90vh !important;
    min-height: 0 !important;
    max-height: 90vh !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#movieModal .modal-content {
    display: flex !important;
    flex: 1 1 0% !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 58px 26px 20px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#movieModal .poster-column {
    flex: 0 0 280px !important;
    width: 280px !important;
    min-width: 0 !important;
    max-width: 280px !important;
    align-self: flex-start !important;
}

#movieModal .modal-info {
    display: flex !important;
    flex: 1 1 0% !important;
    flex-direction: column !important;
    align-self: stretch !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    gap: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#movieModal .modal-info > #modalTitle,
#movieModal .modal-info > .buttons {
    flex: 0 0 auto !important;
}

#movieModal .modal-info .description-box {
    display: block !important;
    flex: 1 1 0% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 12px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    scrollbar-gutter: stable !important;
    box-sizing: border-box !important;
}

#movieModal .modal-info > .info-scroll {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: auto 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

#movieModal .modal-info > .info-scroll .box {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
}

#movieModal .description-box::-webkit-scrollbar {
    width: 8px;
}

#movieModal .description-box::-webkit-scrollbar-thumb {
    background: #05DCF0;
    border-radius: 20px;
}

@media screen and (max-width: 700px) {
    #movieModal.modal {
        padding: 8px !important;
    }

    #movieModal .modal-window {
        width: 96vw !important;
        height: 92vh !important;
        min-height: 0 !important;
        max-width: 96vw !important;
        max-height: 92vh !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    #movieModal .modal-content {
        display: flex !important;
        flex: 1 1 0% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 56px 14px 14px !important;
        gap: 10px !important;
        overflow: hidden !important;
    }

    #movieModal .poster-column {
        position: relative !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 8px !important;
    }

    #movieModal .poster-wrap {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: 220px !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    #movieModal .poster-wrap .fixir {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
    }

    #movieModal .poster-wrap #modalPoster,
    #movieModal .poster-wrap img {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: contain !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel {
        position: absolute !important;
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        top: auto !important;
        display: flex !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 8px !important;
        z-index: 10 !important;
    }

    #movieModal .poster-column > .rating-circle {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        left: auto !important;
        z-index: 11 !important;
    }

    #movieModal .modal-info {
        display: flex !important;
        flex: 1 1 0% !important;
        flex-direction: column !important;
        align-self: stretch !important;
        width: 100% !important;
        height: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
    }

    #movieModal .modal-info > #modalTitle,
    #movieModal .modal-info > .buttons {
        flex: 0 0 auto !important;
    }

    #movieModal .modal-info .description-box {
        flex: 1 1 0% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 0 8px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    #movieModal .modal-info > .info-scroll {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: auto 0 0 !important;
        overflow: visible !important;
    }
}

@keyframes segolPosterAura {
    from { opacity: .48; filter: blur(17px); }
    to   { opacity: .78; filter: blur(23px); }
}

@media (prefers-reduced-motion: reduce) {
    #movieModal .poster-wrap::before {
        animation: none !important;
        opacity: .62 !important;
    }
}

@media screen and (min-width: 1600px) {
    #movieModal .modal-content {
        gap: 16px !important;
        padding: 60px 28px 22px !important;
    }

    #movieModal .poster-column {
        flex: 0 0 294px !important;
        width: 294px !important;
        min-width: 294px !important;
        max-width: 294px !important;
    }

    #movieModal .poster-wrap {
        width: 294px !important;
        height: 399px !important;
    }

    #movieModal #modalTitle {
        font-size: clamp(30px, 2.05vw, 38px) !important;
    }

    #movieModal .buttons {
        gap: 13px !important;
    }

    #movieModal .buttons > .watch-btn {
        min-height: 64px !important;
        padding: 13px 22px !important;
        font-size: clamp(22px, 1.45vw, 27px) !important;
    }

    #movieModal .buttons > .archive-btn,
    #movieModal .buttons > .delete-btn {
        min-height: 58px !important;
        padding: 11px 18px !important;
        font-size: clamp(18px, 1.2vw, 23px) !important;
    }

    #movieModal .description-box {
        font-size: clamp(18px, 1.2vw, 23px) !important;
        line-height: 1.55 !important;
        padding: 17px 20px !important;
    }

    #movieModal .info-scroll {
        gap: 12px 14px !important;
    }

    #movieModal .info-scroll .box {
        min-height: 58px !important;
        padding: 13px 16px !important;
        font-size: clamp(16px, 1.05vw, 20px) !important;
    }

    #movieModal .poster-column > .rating-circle {
        width: 61px !important;
        height: 61px !important;
        font-size: 20px !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel {
        gap: 11px !important;
        margin-top: 11px !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-btn {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        height: 60px !important;
        min-height: 60px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        padding: 5px 8px !important;
        border-radius: 999px !important;
        font-size: 27px !important;
        line-height: 1 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-btn span {
        font-size: 16px !important;
        line-height: 1 !important;
    }

    #movieModal .close-btn {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        font-size: 24px !important;
    }
}

@media screen and (min-width: 1600px) {
    #movieModal .modal-window {
        width: 94vw !important;
        max-width: 94vw !important;
        height: 90vh !important;
        max-height: 90vh !important;
    }

    #movieModal .modal-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 44px !important;
        padding: 72px 44px 30px !important;
        overflow: hidden !important;
    }

    #movieModal .poster-column {
        flex: 0 0 430px !important;
        width: 430px !important;
        min-width: 430px !important;
        max-width: 430px !important;
        align-self: stretch !important;
        position: relative !important;
    }

    #movieModal .poster-wrap {
        position: relative !important;
        width: 430px !important;
        height: 610px !important;
        max-width: 100% !important;
        margin-top: 30px !important;
        overflow: visible !important;
    }

    #movieModal .poster-wrap .fixir,
    #movieModal .poster-wrap .fixir img,
    #movieModal .poster-wrap #modalPoster,
    #movieModal .poster-wrap img {
        width: 100% !important;
        height: 100% !important;
    }

    #movieModal .poster-wrap #modalPoster,
    #movieModal .poster-wrap img {
        display: block !important;
        object-fit: cover !important;
        border-radius: 22px !important;
    }

    #movieModal .poster-column > .rating-circle {
        top: 38px !important;
        right: 12px !important;
        width: 76px !important;
        height: 76px !important;
        font-size: 27px !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel {
        position: absolute !important;
        top: auto !important;
        bottom: 4px !important;
        left: 7px !important;
        right: 7px !important;
        width: auto !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-btn {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        height: 78px !important;
        min-height: 78px !important;
        padding: 7px 12px !important;
        border-radius: 999px !important;
        font-size: 34px !important;
        line-height: 1 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-btn span {
        font-size: 20px !important;
        line-height: 1 !important;
    }

    #movieModal .modal-info {
        display: flex !important;
        flex: 1 1 0% !important;
        flex-direction: column !important;
        align-self: stretch !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-height: 100% !important;
        gap: 0 !important;
        overflow: hidden !important;
    }

    #movieModal #modalTitle {
        font-size: clamp(38px, 2.6vw, 54px) !important;
        line-height: 1.12 !important;
        margin-bottom: 16px !important;
    }

    #movieModal .buttons {
        gap: 18px !important;
        margin-bottom: 22px !important;
    }

    #movieModal .buttons > .watch-btn {
        min-height: 82px !important;
        padding: 18px 30px !important;
        font-size: clamp(30px, 2vw, 40px) !important;
    }

    #movieModal .buttons > .archive-btn,
    #movieModal .buttons > .delete-btn {
        min-height: 72px !important;
        padding: 16px 24px !important;
        font-size: clamp(25px, 1.65vw, 33px) !important;
    }

    #movieModal .description-box {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        padding: 26px 30px !important;
        margin-bottom: 20px !important;
        font-size: clamp(25px, 1.65vw, 33px) !important;
        line-height: 1.58 !important;
    }

    #movieModal .info-scroll {
        flex: 0 0 auto !important;
        gap: 16px 18px !important;
        margin-top: auto !important;
    }

    #movieModal .info-scroll .box {
        min-height: 76px !important;
        padding: 18px 22px !important;
        gap: 8px !important;
        font-size: clamp(22px, 1.45vw, 29px) !important;
        line-height: 1.25 !important;
    }

    #movieModal .close-btn {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
        font-size: 30px !important;
    }
}

@media screen and (min-width: 1600px) {

    #movieModal .modal-content {
        gap: 54px !important;
        padding-left: 54px !important;
        padding-right: 54px !important;
        box-sizing: border-box !important;
    }

    #movieModal .modal-info {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    #movieModal .modal-info > #modalTitle,
    #movieModal #modalTitle {
        font-size: clamp(34px, 2.2vw, 42px) !important;
        line-height: 1.15 !important;
    }

    #movieModal .modal-info > .buttons > .watch-btn,
    #movieModal .buttons > .watch-btn {
        font-size: 29px !important;
        line-height: 1.2 !important;
    }
    #movieModal .modal-info > .buttons > .archive-btn,
    #movieModal .modal-info > .buttons > .delete-btn,
    #movieModal .buttons > .archive-btn,
    #movieModal .buttons > .delete-btn {
        font-size: 25px !important;
        line-height: 1.2 !important;
    }

    #movieModal .modal-info .description-box,
    #movieModal .modal-info .description-box p,
    #movieModal .modal-info .description-box span,
    #movieModal .modal-info .description-box div,
    #movieModal .modal-info .description-box li {
        font-size: 29px !important;
        line-height: 1.48 !important;
    }

    #movieModal .modal-info > .info-scroll .box,
    #movieModal .modal-info > .info-scroll .box * {
        font-size: 23px !important;
        line-height: 1.25 !important;
    }
}

@media screen and (min-width: 701px) {

    #movieModal .poster-wrap {
        overflow: visible !important;
        margin-bottom: 0 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        margin: 18px 0 0 !important;
        padding: 0 !important;
        gap: 12px !important;
        z-index: 5 !important;
    }

    #movieModal .modal-info {
        margin-left: 20px !important;
    }

    #movieModal .close-btn {
        width: 76px !important;
        height: 76px !important;
        min-width: 76px !important;
        min-height: 76px !important;
        font-size: 40px !important;
    }
}

@media screen and (max-width: 700px) {
    #movieModal .poster-wrap {
        overflow: visible !important;
        margin-bottom: 0 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        margin: 14px 0 0 !important;
        padding: 0 !important;
    }

    #movieModal .close-btn {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
        font-size: 29px !important;
    }
}

@media screen and (min-width: 701px) {
    #movieModal .modal-content {
        padding-right: 42px !important;
    }

    #movieModal .modal-info {
        margin-left: 28px !important;
    }
}

#movieModal .buttons > .watch-btn {
    margin-bottom: 14px !important;
}

@media screen and (max-width: 1899.98px) {
    #movieModal .buttons > .watch-btn {
        margin-bottom: 5px !important;
    }

    #movieModal .close-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        font-size: 23px !important;
    }
}

@media screen and (min-width: 701px) and (max-width: 1200px) {

    #movieModal .poster-column {
        flex: 0 0 340px !important;
        width: 340px !important;
        min-width: 340px !important;
        max-width: 340px !important;
    }

    #movieModal .poster-wrap {
        width: 340px !important;
        max-width: 100% !important;
        height: 485px !important;
    }

    #movieModal .modal-info > .buttons,
    #movieModal .buttons {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        row-gap: 3px !important;
        column-gap: 10px !important;
    }

    #movieModal .buttons > .watch-btn {
        margin: 0 !important;
    }

    #movieModal .modal-window .close-btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        font-size: 18px !important;
        line-height: 30px !important;
    }
}

@media screen and (min-width: 701px) and (max-width: 1200px) {
    #movieModal .modal-window {
        width: 94vw !important;
        max-width: 94vw !important;
        height: 90vh !important;
        max-height: 90vh !important;
        box-sizing: border-box !important;
    }

    #movieModal .modal-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 34px !important;
        padding: 56px 34px 24px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #movieModal .poster-column {
        flex: 0 0 340px !important;
        width: 340px !important;
        min-width: 340px !important;
        max-width: 340px !important;
        align-self: stretch !important;
        position: relative !important;
        margin: 0 !important;
    }

    #movieModal .poster-wrap {
        position: relative !important;
        width: 340px !important;
        height: 482px !important;
        max-width: 100% !important;
        margin: 24px 0 0 !important;
        overflow: visible !important;
    }

    #movieModal .poster-wrap .fixir,
    #movieModal .poster-wrap .fixir img,
    #movieModal .poster-wrap #modalPoster,
    #movieModal .poster-wrap img {
        width: 100% !important;
        height: 100% !important;
    }

    #movieModal .poster-wrap #modalPoster,
    #movieModal .poster-wrap img {
        display: block !important;
        object-fit: cover !important;
        border-radius: 18px !important;
    }

    #movieModal .poster-column > .rating-circle {
        top: 30px !important;
        right: 10px !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 21px !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel {
        position: absolute !important;
        top: auto !important;
        bottom: 4px !important;
        left: 6px !important;
        right: 6px !important;
        width: auto !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 9px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-btn {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        height: 62px !important;
        min-height: 62px !important;
        padding: 6px 9px !important;
        border-radius: 999px !important;
        font-size: 27px !important;
        line-height: 1 !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel .vote-btn span {
        font-size: 16px !important;
        line-height: 1 !important;
    }

    #movieModal .modal-info {
        display: flex !important;
        flex: 1 1 0% !important;
        flex-direction: column !important;
        align-self: stretch !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-height: 100% !important;
        margin: 0 !important;
        gap: 0 !important;
        overflow: hidden !important;
    }

    #movieModal .modal-info > #modalTitle,
    #movieModal #modalTitle {
        font-size: clamp(27px, 3vw, 38px) !important;
        line-height: 1.12 !important;
        margin: 0 0 13px !important;
    }

    #movieModal .modal-info > .buttons,
    #movieModal .buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 13px !important;
        margin: 0 0 17px !important;
    }

    #movieModal .buttons > .watch-btn {
        min-height: 65px !important;
        padding: 14px 22px !important;
        font-size: clamp(23px, 2.5vw, 30px) !important;
        margin: 0 !important;
    }

    #movieModal .buttons > .archive-btn,
    #movieModal .buttons > .delete-btn {
        min-height: 58px !important;
        padding: 12px 18px !important;
        font-size: clamp(19px, 2.1vw, 25px) !important;
    }

    #movieModal .description-box {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        padding: 20px 23px !important;
        margin: 0 0 15px !important;
        font-size: clamp(18px, 2.1vw, 25px) !important;
        line-height: 1.5 !important;
        overflow: auto !important;
    }

    #movieModal .info-scroll {
        flex: 0 0 auto !important;
        gap: 12px 14px !important;
        margin-top: auto !important;
    }

    #movieModal .info-scroll .box {
        min-height: 61px !important;
        padding: 14px 17px !important;
        gap: 6px !important;
        font-size: clamp(16px, 1.8vw, 22px) !important;
        line-height: 1.25 !important;
    }

    #movieModal .close-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        font-size: 24px !important;
        line-height: 44px !important;
    }
}

@media screen and (min-width: 701px) and (max-width: 1200px) {

    #movieModal .modal-info > #modalTitle,
    #movieModal #modalTitle {
        position: relative !important;
        display: block !important;
        width: fit-content !important;
        max-width: 100% !important;
        margin: 0 0 20px !important;
        padding: 0 0 12px !important;
        color: #f8faff !important;
        font-size: clamp(34px, 3.4vw, 44px) !important;
        font-weight: 850 !important;
        line-height: 1.08 !important;
        letter-spacing: -0.035em !important;
        text-wrap: balance !important;
        background: linear-gradient(100deg, #ffffff 0%, #d9e7ff 48%, #c5b8ff 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        filter: drop-shadow(0 3px 15px rgba(105, 132, 255, .18)) !important;
    }

    #movieModal .modal-info > #modalTitle::after,
    #movieModal #modalTitle::after {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 76px !important;
        height: 4px !important;
        border-radius: 999px !important;
        background: linear-gradient(90deg, #65d6ff, #8b7bff 58%, #d78bff) !important;
        box-shadow: 0 0 18px rgba(111, 156, 255, .35) !important;
    }

    #movieModal .modal-info .description-box,
    #movieModal .description-box {
        position: relative !important;
        flex: 1 1 0% !important;
        min-height: 150px !important;
        margin: 0 0 18px !important;
        padding: 24px 26px !important;
        overflow: auto !important;
        color: #e8edff !important;
        font-size: clamp(19px, 2vw, 24px) !important;
        font-weight: 450 !important;
        line-height: 1.62 !important;
        letter-spacing: .005em !important;
        background:
            linear-gradient(135deg, rgba(93, 133, 255, .13), rgba(157, 105, 255, .10) 55%, rgba(66, 214, 224, .08)),
            rgba(18, 25, 45, .76) !important;
        border: 1px solid rgba(155, 181, 255, .24) !important;
        border-radius: 20px !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .07),
            0 12px 32px rgba(0, 0, 0, .20),
            0 0 24px rgba(104, 130, 255, .07) !important;
        backdrop-filter: blur(16px) saturate(135%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(135%) !important;
    }

    #movieModal .modal-info .description-box p,
    #movieModal .description-box p {
        margin: 0 0 12px !important;
        color: inherit !important;
        font-size: inherit !important;
        line-height: inherit !important;
    }

    #movieModal .modal-info .description-box p:last-child,
    #movieModal .description-box p:last-child {
        margin-bottom: 0 !important;
    }

    #movieModal .description-box::-webkit-scrollbar {
        width: 7px !important;
    }

    #movieModal .description-box::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, .045) !important;
        border-radius: 99px !important;
    }

    #movieModal .description-box::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #66d7f5, #9582ff) !important;
        border-radius: 99px !important;
    }

    #movieModal .modal-info > .info-scroll .box,
    #movieModal .info-scroll .box {
        position: relative !important;
        min-height: 68px !important;
        padding: 15px 18px !important;
        color: #eef2ff !important;
        font-size: clamp(17px, 1.8vw, 21px) !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        background:
            linear-gradient(135deg, rgba(100, 143, 255, .14), rgba(157, 116, 255, .10)),
            rgba(22, 29, 50, .78) !important;
        border: 1px solid rgba(158, 181, 255, .20) !important;
        border-radius: 15px !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        transition: border-color .2s ease, background .2s ease, transform .2s ease !important;
    }

    #movieModal .modal-info > .info-scroll .box:hover,
    #movieModal .info-scroll .box:hover {
        border-color: rgba(129, 190, 255, .42) !important;
        background:
            linear-gradient(135deg, rgba(100, 143, 255, .20), rgba(157, 116, 255, .15)),
            rgba(22, 29, 50, .88) !important;
        transform: translateY(-1px) !important;
    }

    #movieModal .modal-info > .buttons {
        gap: 12px !important;
        margin-bottom: 20px !important;
    }

    #movieModal .buttons > .watch-btn {
        border-radius: 15px !important;
        box-shadow: 0 8px 22px rgba(80, 135, 255, .22) !important;
        font-weight: 750 !important;
    }

    #movieModal .buttons > .archive-btn,
    #movieModal .buttons > .delete-btn {
        border-radius: 14px !important;
        font-weight: 650 !important;
    }
}

#movieModal .modal-window {
    background:
        radial-gradient(ellipse at 8% 5%, rgba(60, 119, 255, .16), transparent 38%),
        radial-gradient(ellipse at 95% 95%, rgba(173, 80, 255, .13), transparent 40%),
        linear-gradient(145deg, #111827 0%, #0c1220 55%, #11101f 100%) !important;
    border: 1px solid rgba(126, 177, 255, .48) !important;
    border-radius: 24px !important;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, .48),
        0 0 0 1px rgba(255, 255, 255, .035),
        0 0 36px rgba(75, 132, 255, .16),
        inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}

#movieModal .modal-info {
    color: #edf3ff !important;
}

#movieModal .modal-info #modalTitle,
#movieModal #modalTitle {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px !important;
    padding: 0 0 14px !important;
    color: #f5f8ff !important;
    font-size: clamp(34px, 3vw, 50px) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
    text-align: left !important;
    text-wrap: balance !important;
    background: linear-gradient(100deg, #ffffff 0%, #bcecff 48%, #c8b6ff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 4px 16px rgba(92, 153, 255, .2)) !important;
}

#movieModal .modal-info #modalTitle::after,
#movieModal #modalTitle::after {
    content: "" !important;
    display: block !important;
    width: 92px !important;
    height: 4px !important;
    margin-top: 12px !important;
    border-radius: 99px !important;
    background: linear-gradient(90deg, #45d9f5, #7778ff 58%, #d17cff) !important;
    box-shadow: 0 0 18px rgba(104, 151, 255, .42) !important;
}

#movieModal .description-box {
    color: #e5edff !important;
    font-size: clamp(17px, 1.45vw, 22px) !important;
    font-weight: 450 !important;
    line-height: 1.68 !important;
    letter-spacing: .008em !important;
    padding: 22px 24px !important;
    border: 1px solid rgba(128, 174, 255, .25) !important;
    border-left: 3px solid #65cfff !important;
    border-radius: 18px !important;
    background:
        linear-gradient(125deg, rgba(63, 119, 220, .15), rgba(133, 91, 205, .12) 58%, rgba(42, 194, 204, .08)),
        rgba(17, 25, 43, .88) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .07),
        0 12px 30px rgba(0, 0, 0, .18) !important;
    backdrop-filter: blur(14px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
}

#movieModal .description-box p {
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

#movieModal .description-box::-webkit-scrollbar {
    width: 7px !important;
}
#movieModal .description-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .045) !important;
    border-radius: 99px !important;
}
#movieModal .description-box::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #54d9f4, #9277ff) !important;
    border-radius: 99px !important;
}

#movieModal .info-scroll .box {
    color: #edf2ff !important;
    background:
        linear-gradient(135deg, rgba(84, 132, 235, .15), rgba(139, 99, 218, .12)),
        rgba(21, 29, 49, .88) !important;
    border: 1px solid rgba(139, 174, 255, .22) !important;
    border-radius: 14px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .055),
        0 5px 16px rgba(0, 0, 0, .12) !important;
    transition: border-color .2s ease, background .2s ease, transform .2s ease !important;
}
#movieModal .info-scroll .box:hover {
    border-color: rgba(105, 211, 255, .52) !important;
    background:
        linear-gradient(135deg, rgba(84, 150, 255, .22), rgba(157, 109, 239, .17)),
        rgba(21, 29, 49, .94) !important;
    transform: translateY(-1px) !important;
}

#movieModal .buttons > .watch-btn {
    color: #fff !important;
    background: linear-gradient(110deg, #18c987 0%, #0da9a8 52%, #168bd7 100%) !important;
    border: 1px solid rgba(145, 255, 224, .38) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 24px rgba(15, 183, 160, .22), inset 0 1px 0 rgba(255,255,255,.2) !important;
    font-weight: 850 !important;
}
#movieModal .buttons > .archive-btn {
    color: #fff !important;
    background: linear-gradient(120deg, #ec5b88, #c43f91) !important;
    border: 1px solid rgba(255, 185, 218, .32) !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 18px rgba(213, 63, 139, .2) !important;
}
#movieModal .buttons > .delete-btn {
    color: #fff !important;
    background: linear-gradient(120deg, #f39a42, #df5b43) !important;
    border: 1px solid rgba(255, 207, 157, .34) !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 18px rgba(220, 105, 55, .2) !important;
}
#movieModal .buttons > button {
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease !important;
}
#movieModal .buttons > button:hover {
    filter: brightness(1.1) saturate(1.08) !important;
    transform: translateY(-2px) !important;
}

#movieModal .close-btn {
    color: #fff !important;
    background: linear-gradient(140deg, #ff668b, #d92e67) !important;
    border: 1px solid rgba(255, 224, 236, .5) !important;
    box-shadow: 0 5px 18px rgba(228, 48, 108, .34), inset 0 1px 0 rgba(255,255,255,.25) !important;
}

.light #movieModal .modal-window {
    background:
        radial-gradient(ellipse at 5% 0%, rgba(91, 151, 255, .12), transparent 42%),
        linear-gradient(145deg, #f8faff, #edf2ff) !important;
    border-color: rgba(89, 125, 220, .55) !important;
}
.light #movieModal .modal-info #modalTitle,
.light #movieModal #modalTitle {
    background: linear-gradient(100deg, #253b72, #386fbd 55%, #7851b5) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
.light #movieModal .description-box {
    color: #263451 !important;
    background: linear-gradient(130deg, rgba(94, 151, 255, .12), rgba(157, 119, 225, .10)), #fff !important;
    border-color: rgba(93, 127, 208, .24) !important;
    border-left-color: #438edb !important;
}
.light #movieModal .info-scroll .box {
    color: #263451 !important;
    background: linear-gradient(130deg, #fff, #eef3ff) !important;
    border-color: rgba(93, 127, 208, .22) !important;
}

@media (max-width: 700px) {
    #movieModal .modal-info #modalTitle,
    #movieModal #modalTitle {
        font-size: clamp(25px, 7vw, 32px) !important;
        line-height: 1.12 !important;
        margin-bottom: 14px !important;
    }
    #movieModal .description-box {
        padding: 16px 17px !important;
        font-size: 16px !important;
        line-height: 1.55 !important;
        border-radius: 15px !important;
    }
    #movieModal .info-scroll .box {
        border-radius: 12px !important;
        padding: 10px 12px !important;
    }
}

@media screen and (min-width: 1201px) {
    #movieModal .modal-window .modal-info #modalTitle,
    #movieModal .modal-window #modalTitle {
        font-size: clamp(34px, 2.25vw, 44px) !important;
        line-height: 1.06 !important;
        font-weight: 900 !important;
        letter-spacing: -0.04em !important;
        margin-bottom: 22px !important;
    }
}

.movie img {
    cursor: pointer !important;
}

@media screen and (min-width: 1201px) {
    #movieModal .modal-window .modal-info #modalTitle,
    #movieModal .modal-window #modalTitle {
        font-size: clamp(34px, 2.25vw, 44px) !important;
        line-height: 1.12 !important;
    }
}

@media screen and (max-width: 1899.98px) {
    #movieModal .buttons {
        row-gap: 4px !important;
        column-gap: 10px !important;
        gap: 4px 10px !important;
    }
    #movieModal .buttons > .watch-btn {
        margin-bottom: 0 !important;
    }
}

@media screen and (min-width: 1901px) {
    #movieModal .modal-window .modal-info #modalTitle,
    #movieModal .modal-window #modalTitle {
        font-size: clamp(48px, 2.65vw, 58px) !important;
        line-height: 1.08 !important;
    }
}

#movieModal .buttons > button,
#movieModal .buttons > button:hover,
#movieModal .buttons > button:focus,
#movieModal .buttons > button:focus-visible {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    color: #fff !important;
    pointer-events: auto !important;
    -webkit-text-fill-color: #fff !important;
}
#movieModal .buttons > .watch-btn:hover,
#movieModal .buttons > .watch-btn:focus {
    background: linear-gradient(110deg, #18c987 0%, #0da9a8 52%, #168bd7 100%) !important;
}
#movieModal .buttons > .archive-btn:hover,
#movieModal .buttons > .archive-btn:focus {
    background: linear-gradient(120deg, #ec5b88, #c43f91) !important;
}
#movieModal .buttons > .delete-btn:hover,
#movieModal .buttons > .delete-btn:focus {
    background: linear-gradient(120deg, #f39a42, #df5b43) !important;
}
#movieModal .buttons > button::before,
#movieModal .buttons > button::after {
    pointer-events: none !important;
}
#movieModal .buttons > button:hover {
    filter: brightness(1.08) saturate(1.05) !important;
    transform: translateY(-1px) !important;
}

#movieModal .modal-info {
    display: flex !important;
    flex-direction: column !important;
}
#movieModal .modal-info > #modalTitle,
#movieModal .modal-info #modalTitle {
    order: -10 !important;
    align-self: flex-start !important;
}

#movieModal .modal-info > .buttons,
#movieModal .buttons {
    column-gap: 6px !important;
    row-gap: 6px !important;
    gap: 6px !important;
}
#movieModal .buttons > button {
    margin: 0 !important;
}

@media screen and (min-width: 1800px) {
    #movieModal .modal-window .modal-info #modalTitle,
    #movieModal .modal-window #modalTitle {
        font-size: clamp(52px, 3vw, 64px) !important;
        line-height: 1.06 !important;
        margin-top: 0 !important;
        margin-bottom: 18px !important;
    }
}

@media screen and (min-width: 1800px) {
    #movieModal .modal-window .modal-info #modalTitle,
    #movieModal .modal-window #modalTitle {
        font-size: clamp(38px, 2.2vw, 44px) !important;
        line-height: 1.1 !important;
    }
}

.movie img,
.movie .poster-wrap img,
.movies .movie img {
    cursor: pointer !important;
}

@media screen and (min-width: 1900px) {
    #movieModal .modal-window .modal-info #modalTitle,
    #movieModal .modal-window #modalTitle {
        font-size: 48px !important;
        line-height: 1.12 !important;
        font-weight: 900 !important;
    }
}

#movieModal .buttons button,
#movieModal .buttons button:hover,
#movieModal .buttons button:focus,
#movieModal .buttons button:focus-visible,
#movieModal .buttons button:active,
#movieModal .buttons a,
#movieModal .buttons a:hover,
#movieModal .buttons a:focus,
#movieModal .buttons a:active {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
    filter: none !important;
    pointer-events: auto !important;
}
#movieModal .buttons .watch-btn,
#movieModal .buttons .watch-btn:hover,
#movieModal .buttons .watch-btn:focus,
#movieModal .buttons .watch-btn:active {
    background: linear-gradient(110deg, #18c987 0%, #0da9a8 52%, #168bd7 100%) !important;
}
#movieModal .buttons .archive-btn,
#movieModal .buttons .archive-btn:hover,
#movieModal .buttons .archive-btn:focus,
#movieModal .buttons .archive-btn:active {
    background: linear-gradient(120deg, #ec5b88, #c43f91) !important;
}
#movieModal .buttons .delete-btn,
#movieModal .buttons .delete-btn:hover,
#movieModal .buttons .delete-btn:focus,
#movieModal .buttons .delete-btn:active {
    background: linear-gradient(120deg, #f39a42, #df5b43) !important;
}
#movieModal .buttons button:hover,
#movieModal .buttons a:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .24) !important;
}
#movieModal .buttons button::before,
#movieModal .buttons button::after,
#movieModal .buttons a::before,
#movieModal .buttons a::after {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
}

.movie,
.movie img,
.movie .poster-wrap,
.movie .poster-wrap img {
    cursor: pointer !important;
}

@media screen and (min-width: 1900px) {
    #movieModal .modal-window .modal-info #modalTitle,
    #movieModal .modal-window #modalTitle {
        font-size: 40px !important;
        line-height: 1.12 !important;
        font-weight: 900 !important;
    }
}

#movieModal .buttons > .archive-btn {
    margin-right: 10px !important;
}
#movieModal .buttons > .delete-btn {
    margin-left: 0 !important;
}

#movieModal .buttons button,
#movieModal .buttons a {
    opacity: 1 !important;
    visibility: visible !important;
    transition: background-color .15s ease, background-image .15s ease,
                box-shadow .15s ease, filter .15s ease !important;
    transform: none !important;
}
#movieModal .buttons button:hover,
#movieModal .buttons a:hover,
#movieModal .buttons button:focus,
#movieModal .buttons a:focus {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: brightness(1.06) !important;
}
#movieModal .buttons button:active,
#movieModal .buttons a:active {
    transform: scale(.96) !important;
    filter: brightness(.92) !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.28) !important;
}

#movieModal .close-btn {
    transition: background-color .15s ease, box-shadow .15s ease,
                filter .15s ease !important;
    transform: none !important;
}
#movieModal .close-btn:hover,
#movieModal .close-btn:focus {
    transform: none !important;
    filter: brightness(1.08) !important;
}
#movieModal .close-btn:active {
    transform: scale(.92) !important;
    filter: brightness(.9) !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.3) !important;
}

#movieModal .info-scroll .box {
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}
#movieModal .info-scroll .box strong,
#movieModal .info-scroll .box b,
#movieModal .info-scroll .box span,
#movieModal .info-scroll .box label {
    font-weight: 800 !important;
    font-size: 1em !important;
}
@media screen and (max-width: 700px) {
    #movieModal .info-scroll .box {
        font-size: 16px !important;
    }
}

@media screen and (min-width: 1900px) {

    #movieModal .modal-window .modal-info #modalTitle,
    #movieModal .modal-window #modalTitle {
        font-size: 40px !important;
        line-height: 1.12 !important;
    }

    #movieModal .buttons > .archive-btn {
        margin-right: 18px !important;
    }
}

#movieModal .buttons button,
#movieModal .buttons a,
#movieModal .close-btn {
    opacity: 1 !important;
    visibility: visible !important;
    transition: filter .16s ease, box-shadow .16s ease,
                background-color .16s ease !important;
}

#movieModal .buttons button:hover,
#movieModal .buttons a:hover,
#movieModal .close-btn:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: brightness(1.12) saturate(1.08) !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,.16),
                0 4px 12px rgba(0,0,0,.22) !important;
}

#movieModal .buttons button:active,
#movieModal .buttons a:active,
#movieModal .close-btn:active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(.96) !important;
    filter: brightness(.92) !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.3) !important;
}

@media screen and (min-width: 1900px) {

    #movieModal .buttons {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        column-gap: 30px !important;
        row-gap: 14px !important;
        gap: 14px 30px !important;
    }
    #movieModal .buttons > .archive-btn,
    #movieModal .buttons > .delete-btn {
        width: 100% !important;
        margin: 0 !important;
        min-width: 0 !important;
    }

    #movieModal .close-btn {
        width: 93px !important;
        height: 93px !important;
        min-width: 93px !important;
        min-height: 93px !important;
        top: 6px !important;
        right: 8px !important;
        font-size: 48px !important;
        line-height: 1 !important;
    }
}

#movieModal .buttons > button,
#movieModal .buttons > a,
#movieModal .close-btn,
#movieModal .modal-buttons button,
#movieModal .modal-buttons .wixprosm,
#movieModal .modal-buttons .wixprosm2 {
    opacity: 1 !important;
    visibility: visible !important;
    transition: filter .16s ease, box-shadow .16s ease,
                background-color .16s ease, border-color .16s ease !important;
}

#movieModal .buttons > button:hover,
#movieModal .buttons > a:hover,
#movieModal .close-btn:hover,
#movieModal .modal-buttons button:hover,
#movieModal .modal-buttons .wixprosm:hover,
#movieModal .modal-buttons .wixprosm2:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: brightness(1.12) saturate(1.08) !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,.18),
                0 5px 16px rgba(0,0,0,.28) !important;
}

#movieModal .buttons > button:active,
#movieModal .buttons > a:active,
#movieModal .close-btn:active,
#movieModal .modal-buttons button:active,
#movieModal .modal-buttons .wixprosm:active,
#movieModal .modal-buttons .wixprosm2:active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(.96) !important;
    filter: brightness(.92) !important;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.32) !important;
}

#movieModal .buttons > .watch-btn:hover,
#movieModal .buttons > .watch-btn:focus {
    background: linear-gradient(110deg, #18c987 0%, #0da9a8 52%, #168bd7 100%) !important;
}
#movieModal .buttons > .archive-btn:hover,
#movieModal .buttons > .archive-btn:focus {
    background: linear-gradient(120deg, #ec5b88, #c43f91) !important;
}
#movieModal .buttons > .delete-btn:hover,
#movieModal .buttons > .delete-btn:focus {
    background: linear-gradient(120deg, #f39a42, #df5b43) !important;
}

@media screen and (min-width: 1900px) {
    #movieModal .buttons button:active,
    #movieModal .buttons a:active,
    #movieModal .close-btn:active {
        -webkit-transform: translate3d(0, 3px, 0) scale(.97) !important;
        transform: translate3d(0, 3px, 0) scale(.97) !important;
        -webkit-box-shadow: inset 0 3px 7px rgba(0, 0, 0, .38) !important;
        box-shadow: inset 0 3px 7px rgba(0, 0, 0, .38) !important;
        -webkit-transition: -webkit-transform .07s ease, box-shadow .07s ease !important;
        transition: transform .07s ease, box-shadow .07s ease !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media screen and (min-width: 1900px) {

    #movieModal .buttons > button,
    #movieModal .buttons > a,
    #movieModal .close-btn {
        opacity: 1 !important;
        visibility: visible !important;
        -webkit-transform: none !important;
        transform: none !important;
        -webkit-filter: none !important;
        filter: none !important;
        pointer-events: auto !important;
        -webkit-transition: none !important;
        transition: none !important;
    }

    #movieModal .buttons > button:hover,
    #movieModal .buttons > button:focus,
    #movieModal .buttons > button:focus-visible,
    #movieModal .buttons > a:hover,
    #movieModal .buttons > a:focus,
    #movieModal .close-btn:hover,
    #movieModal .close-btn:focus {
        opacity: 1 !important;
        visibility: visible !important;
        display: inline-flex !important;
        -webkit-transform: none !important;
        transform: none !important;
        -webkit-filter: none !important;
        filter: none !important;
        pointer-events: auto !important;
    }

    #movieModal .buttons > button:active,
    #movieModal .buttons > a:active,
    #movieModal .close-btn:active {
        opacity: 1 !important;
        visibility: visible !important;
        -webkit-transform: translateY(3px) scale(.97) !important;
        transform: translateY(3px) scale(.97) !important;
        -webkit-filter: brightness(.88) !important;
        filter: brightness(.88) !important;
        -webkit-box-shadow: inset 0 3px 7px rgba(0,0,0,.42) !important;
        box-shadow: inset 0 3px 7px rgba(0,0,0,.42) !important;
        -webkit-transition: none !important;
        transition: none !important;
    }
}

@media screen and (min-width: 1900px) {
    #movieModal .buttons > .archive-btn,
    #movieModal .buttons > .delete-btn {
        width: auto !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
    }

    #movieModal .buttons > .archive-btn {
        margin-right: 32px !important;
    }

    #movieModal .buttons > .delete-btn {
        margin-left: 0 !important;
    }
}

.movie img,
.movies .movie img,
.movie .poster-wrap img,
.movie-card img,
.film-card img,
.film img,
.poster-wrap img {
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation;
    -webkit-transition: -webkit-transform .12s ease, filter .12s ease, box-shadow .12s ease !important;
    transition: transform .12s ease, filter .12s ease, box-shadow .12s ease !important;
    transform-origin: center center;
}

.movie img:active,
.movies .movie img:active,
.movie .poster-wrap img:active,
.movie-card img:active,
.film-card img:active,
.film img:active,
.poster-wrap img:active {
    -webkit-transform: scale(.965) !important;
    transform: scale(.965) !important;
    -webkit-filter: brightness(.82) !important;
    filter: brightness(.82) !important;
}

@media screen and (max-width: 700px) {
    #movieModal.modal {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 0 !important;
        padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) !important;
        margin: 0 !important;
        overflow: hidden !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    #movieModal .modal-window {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-width: 1px !important;
        overflow: hidden !important;
    }

    #movieModal .modal-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 14px !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        padding: calc(54px + env(safe-area-inset-top)) 14px 18px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
    }

    #movieModal .poster-column {
        flex: 0 0 auto !important;
        width: min(52vw, 190px) !important;
        min-width: 0 !important;
        max-width: 190px !important;
        margin: 0 auto !important;
    }

    #movieModal .poster-wrap {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 2 / 3 !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }

    #movieModal .poster-wrap img,
    #movieModal .poster-wrap #modalPoster {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    #movieModal .modal-info {
        width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
    }

    #movieModal .modal-info #modalTitle,
    #movieModal #modalTitle {
        font-size: clamp(21px, 6vw, 28px) !important;
        line-height: 1.15 !important;
        margin: 0 48px 12px 0 !important;
        overflow-wrap: anywhere !important;
    }

    #movieModal .buttons {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        grid-auto-flow: row !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 12px 0 !important;
    }

    #movieModal .buttons > .watch-btn {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-height: 48px !important;
    }

    #movieModal .buttons > .archive-btn,
    #movieModal .buttons > .delete-btn {
        grid-column: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 9px 7px !important;
        font-size: 13px !important;
        white-space: normal !important;
    }

    #movieModal .description-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 13px !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        overflow-wrap: anywhere !important;
    }

    #movieModal .info-scroll {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #movieModal .info-scroll .box {
        min-width: 0 !important;
        padding: 9px 10px !important;
        font-size: 13px !important;
        overflow-wrap: anywhere !important;
    }

    #movieModal .close-btn {
        position: absolute !important;
        top: max(7px, env(safe-area-inset-top)) !important;
        right: 8px !important;
        left: auto !important;
        z-index: 2147483001 !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        font-size: 25px !important;
    }
}

@media screen and (max-width: 380px) {
    #movieModal .modal-content { padding-left: 10px !important; padding-right: 10px !important; }
    #movieModal .poster-column { width: min(48vw, 160px) !important; max-width: 160px !important; }
    #movieModal .buttons { gap: 7px !important; }
    #movieModal .buttons > .archive-btn,
    #movieModal .buttons > .delete-btn { font-size: 12px !important; }
}

@media screen and (min-width: 701px) {
    #movieModal .poster-column {
        display: flex !important;
        flex-direction: column !important;
        align-self: stretch !important;
        min-height: 0 !important;
        height: auto !important;
    }

    #movieModal .poster-wrap {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    #movieModal .poster-wrap > .fixir {
        position: relative !important;
        inset: auto !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        overflow: hidden !important;
    }

    #movieModal .poster-wrap > .fixir img,
    #movieModal .poster-wrap > #modalPoster {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        min-height: 0 !important;
        object-fit: cover !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel {
        position: static !important;
        inset: auto !important;
        flex: 0 0 auto !important;
        display: flex !important;
        width: 100% !important;
        margin: 0 !important;
        margin-top: 12px !important;
        padding: 0 !important;
        gap: 9px !important;
        z-index: 10 !important;
    }
}

@media screen and (max-width: 700px) {
    #movieModal .poster-wrap {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: auto !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    #movieModal .poster-wrap > .fixir {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 2 / 3 !important;
        overflow: hidden !important;
    }

    #movieModal .poster-wrap > .fixir img,
    #movieModal .poster-wrap > #modalPoster {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    #movieModal .poster-wrap > .movie-rating-panel {
        position: static !important;
        inset: auto !important;
        display: flex !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        margin-top: 12px !important;
        padding: 0 !important;
        gap: 9px !important;
    }
}

#movieModal .modal-window {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: min(92dvh, 900px) !important;
    max-height: 92dvh !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#movieModal .modal-content.noaktivstan {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#movieModal .modal-info2 {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #05070b !important;
}

#movieModal .modal-info2.noaktivstan {
    display: none !important;
}

#movieModal .modal-info2.aktivstan {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#movieModal #zapfilm {
    position: relative !important;
    display: flex !important;
    flex: 1 1 0 !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #000 !important;
}

#movieModal #zapfilm iframe {
    display: block !important;
    flex: 1 1 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
#movieModal .modal-info2{
    overflow: visible !important;
}
#movieModal .modal-window{
    overflow: visible !important;
}
#movieModal .modal-buttons{
    position:relative !important;
    z-index:5 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:20px !important;
    width:100% !important;
    min-height:95px !important;
    height:95px !important;
    padding:12px 18px !important;
    margin:0 !important;
    box-sizing:border-box !important;
    background:linear-gradient(180deg,#141b2b 0%,#0a0f18 100%) !important;
    border-top:1px solid rgba(255,255,255,.12) !important;
}

#movieModal .modal-buttons .wixprosm,
#movieModal .modal-buttons .wixprosm2{
    flex:1 1 50% !important;
    width:50% !important;
    min-width:0 !important;
    height:70px !important;
    min-height:70px !important;
    border:none !important;
    border-radius:20px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    color:#fff !important;
    font-size:24px !important;
    font-weight:900 !important;
    letter-spacing:.3px !important;
    cursor:pointer !important;
    transition:.15s ease !important;
    box-shadow:
        0 10px 25px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.15) !important;
}

#movieModal .modal-buttons .wixprosm{
    background:linear-gradient(135deg,#ff6475 0%,#e11d48 100%) !important;
    box-shadow:
        0 0 20px rgba(255,100,117,.4),
        0 10px 25px rgba(0,0,0,.35) !important;
}

#movieModal .modal-buttons .wixprosm2{
    background:linear-gradient(135deg,#35a8ff 0%,#165dff 100%) !important;
    box-shadow:
        0 0 20px rgba(53,168,255,.45),
        0 10px 25px rgba(0,0,0,.35) !important;
}

#movieModal .modal-buttons .wixprosm:hover,
#movieModal .modal-buttons .wixprosm2:hover{
    transform:translateY(-2px) !important;
    filter:brightness(1.1) !important;
}

#movieModal .modal-buttons .wixprosm:active,
#movieModal .modal-buttons .wixprosm2:active{
    transform:scale(.97) !important;
    filter:brightness(.9) !important;
}
#movieModal .close-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

@media (max-width: 700px) {
    #movieModal .modal-window {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        min-height: 0 !important;
        border-radius: 0 !important;
    }

    #movieModal .modal-info2 {
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    #movieModal .modal-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 9px !important;
        flex-basis: 64px !important;
        min-height: 64px !important;
        height: 64px !important;
        padding: 8px 10px !important;
    }

    #movieModal .modal-buttons .wixprosm,
    #movieModal .modal-buttons .wixprosm2 {
        width: auto !important;
        min-height: 46px !important;
        padding: 0 12px !important;
        font-size: 15px !important;
    }
}

/* Итоговые размеры шапки, поиска и пагинации только от 1900px */
@media screen and (min-width: 1900px) {
    .topbar {
        min-height: 124px !important;
        padding: 22px 30px !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }

    .logo {
        font-size: 60px !important;
        margin-right: 25px !important;
    }

    /* Поле поиска немного компактнее остальных элементов */
    #search {
        height: 68px !important;
        font-size: 22px !important;
        padding: 0 24px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-right: 10px;
    }

    #category,
#list,
    #themeBtn,
    #tvBtn,
    #thRad,
    #thFilm {
        height: 72px !important;
        font-size: 24px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border-radius: 38px !important;
    }

    #category,
#list {
        padding: 0 24px !important;
    }

    #themeBtn,
    #tvBtn,
    #thRad,
    #thFilm {
        min-width: 11% !important;
        padding: 0 !important;
        margin-left: 10px;
        
    }

    .pagination {
        height: 112px !important;
        gap: 30px !important;
    }

    .pagination button {
        min-width: 200px !important;
        height: 76px !important;
        padding: 0 28px !important;
        font-size: 24px !important;
        border-radius: 38px !important;
    }
#prevBtn {
    margin-right: 40px;
}

#nextBtn {
    margin-left: 40px;
}
    #pageInfo {
        font-size: 44px !important;
    }
}


/* =========================================================
   Адаптация для экранов шириной меньше 1900px
   ========================================================= */
@media screen and (max-width: 1899.98px) {
    .topbar {
        min-height: 70px !important;
        padding: 10px 15px !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
       
    }

    .logo {
        font-size: 32px !important;
    }

    .pagination {
        height: 65px !important;
        gap: 12px !important;
    }

    .pagination button {
        min-width: 110px !important;
        height: 45px !important;
        padding: 0 16px !important;
        font-size: 15px !important;
        border-radius: 38px !important;
    }
    #search {
        height: 45px !important;
        font-size: 16px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border-radius: 38px !important;
    }

    #category,
#list,
    #themeBtn,
    #tvBtn,
    #thRad,
    #thFilm {
        height: 45px !important;
        font-size: 14px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border-radius: 38px !important;
    }
    #pageInfo {
        font-size: 24px !important;
    }
}

/* Немного увеличенная высота карточек фильмов на больших экранах */
@media screen and (min-width: 1900px) {
    .movie {
        height: calc((100vh - 205px) / 2) !important;
    }

    .movie img {
        height: 80% !important;
        flex: 0 0 80% !important;
    }

    .movie-info {
        height: 20% !important;
        flex: 0 0 20% !important;
    }
}

/* Умеренное увеличение высоты карточек для экранов 1201–1899px */
@media screen and (min-width: 1201px) and (max-width: 1899.98px) {
    .movie {
        height: calc((100vh - 220px) / 2) !important;
    }

    .movie img {
        height: 80% !important;
        flex: 0 0 80% !important;
    }

    .movie-info {
        height: 20% !important;
        flex: 0 0 20% !important;
    }
}

/* Увеличиваем высоту всей карточки, сохраняя пропорции 80/20 */
@media screen and (max-width: 1899.98px) {
    .movie {
        height: calc((100vh - 190px) / 2) !important;
    }

    .movie img {
        height: 98% !important;
        flex: 0 0 80% !important;
    }

    .movie-info {
        height: 20% !important;
        flex: 0 0 20% !important;
    }
}

/* Для экранов от 1900px: карточки компактнее,
   информационный блок увеличен до 26% */
@media screen and (min-width: 1900px) {
    .movie {
        height: calc((100vh - 245px) / 2) !important;
    }

    .movie img {
        height: 74% !important;
        flex: 0 0 74% !important;
    }

    .movie-info {
        height: 26% !important;
        flex: 0 0 26% !important;
    }
}


/* Расстояние movies-container: 10px от шапки и 10px до пагинации */
.topbar {
    margin-bottom: 10px !important;
}

@media screen and (min-width: 1900px) {
    .movies-container {
        margin-bottom: 122px !important; /* пагинация 112px + отступ 10px */
    }
}

@media screen and (max-width: 1899.98px) {
    .movies-container {
        margin-bottom: 75px !important; /* пагинация 65px + отступ 10px */
    }
}

/* Расстояние между карточками фильмов */
.movies {
    row-gap: 10px !important;
    column-gap: 10px !important;
}


/* Равномерная высота двух рядов карточек без наложения на пагинацию */
.movies-container {
    min-height: 0 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.movies {
    height: 100% !important;
    min-height: 0 !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    align-content: stretch !important;
    align-items: stretch !important;
    row-gap: 10px !important;
    column-gap: 10px !important;
    padding: 10px 15px !important;
}

.movie {
    height: 100% !important;
    min-height: 0 !important;
}

.movie img {
    height: 80% !important;
    min-height: 0 !important;
    flex: 0 0 80% !important;
}

.movie-info {
    height: 20% !important;
    min-height: 0 !important;
    flex: 0 0 20% !important;
    overflow: hidden !important;
}

/* Финальная компоновка: минимальные безопасные отступы от шапки и пагинации */
.topbar {
    margin-bottom: 5px !important;
}

.movies-container {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    overflow-y: auto !important;
}

.movies {
    height: 100% !important;
    min-height: 0 !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    align-content: stretch !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 5px 15px !important;
}

.movie {
    height: 100% !important;
    min-height: 0 !important;
    transform: none;
}

.movie-info h3 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
}

@media screen and (min-width: 1900px) {
    /* Пагинация 112px + 5px воздушного зазора */
    .movies-container {
        margin-bottom: 117px !important;
    }

    .movie img {
        height: 74% !important;
        flex: 0 0 74% !important;
    }

    .movie-info {
        height: 26% !important;
        flex: 0 0 26% !important;
        padding: 8px 10px !important;
    }

    .movie-info h3 {
        font-size: clamp(22px, 1.3vw, 28px) !important;
        font-weight: 750 !important;
    }

    .movie-info p {
        font-size: clamp(16px, 0.9vw, 20px) !important;
    }
}

@media screen and (max-width: 1899.98px) {
    /* Пагинация 65px + 5px воздушного зазора */
    .movies-container {
        margin-bottom: 70px !important;
    }

    .movie img {
        height: 80% !important;
        flex: 0 0 80% !important;
    }

    .movie-info {
        height: 20% !important;
        flex: 0 0 20% !important;
    }

    .movie-info h3 {
        font-size: 16px !important;
    }
}

@media screen and (min-width: 1900px){

.movie{
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
}

.movie img{
    width:calc(100% - 6px) !important;
    height:100% !important;
    flex:1 1 auto !important;
    min-height:0 !important;
    object-fit:cover !important;
    object-position:center top !important;
    padding:3px !important;
    margin:0 !important;
    box-sizing:border-box !important;
}

.movie-info{
    flex:0 0 auto !important;
    height:auto !important;
    min-height:78px !important;
    padding:6px 10px 8px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:center !important;
}

.movie-info h3{
    font-size:24px !important;
    line-height:1.1 !important;
    margin:0 !important;
}

.movie-info p{
    font-size:18px !important;
    margin-top:6px !important;
    line-height:1.2 !important;
}

#movieModal .close-btn{
    position:absolute !important;
    top:15px !important;
    right:15px !important;
    width:72px !important;
    height:72px !important;
    min-width:72px !important;
    min-height:72px !important;
    font-size:38px !important;
    line-height:1 !important;
    z-index:2147483647 !important;
    overflow:visible !important;
    transform:none !important;
}

#movieModal .close-btn:hover,
#movieModal .close-btn:focus{
    transform:scale(1.05) !important;
    filter:brightness(1.1) !important;
}

}
@media screen and (min-width:1900px){

    #movieModal .modal-buttons{
        min-height:120px !important;
        height:120px !important;
        gap:30px !important;
        padding:16px 24px !important;
    }

    #movieModal .modal-buttons .wixprosm,
    #movieModal .modal-buttons .wixprosm2{
        height:85px !important;
        min-height:85px !important;
        font-size:30px !important;
        border-radius:24px !important;
    }

}

@media screen and (max-width:700px){

    #movieModal .modal-buttons{
        gap:10px !important;
        min-height:75px !important;
        height:75px !important;
        padding:8px 10px !important;
    }

    #movieModal .modal-buttons .wixprosm,
    #movieModal .modal-buttons .wixprosm2{
        height:55px !important;
        min-height:55px !important;
        font-size:16px !important;
        border-radius:14px !important;
    }
}


/* =========================================================
   TV 1900px+: карточки строго между шапкой и пагинацией
   ========================================================= */
@media screen and (min-width: 1900px) {
    html,
    body {
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }

    body {
        display: flex !important;
        flex-direction: column !important;
    }

    .topbar {
        flex: 0 0 auto !important;
        margin-bottom: 5px !important;
    }

    /* Высота области рассчитывается flex-контейнером.
       122px снизу = пагинация 112px + зазор 10px. */
    .movies-container {
        flex: 1 1 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-top: 0 !important;
        margin-bottom: 122px !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        box-sizing: border-box !important;
    }

    .movies {
        display: grid !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
        align-content: stretch !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 5px 15px !important;
        box-sizing: border-box !important;
    }

    .movie {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .movie img {
        display: block !important;
        flex: 1 1 0 !important;
        width: 100% !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center top !important;
        box-sizing: border-box !important;
    }

    .movie-info {
        flex: 0 0 78px !important;
        height: 78px !important;
        min-height: 78px !important;
        max-height: 78px !important;
        padding: 6px 10px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .pagination {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 112px !important;
        min-height: 112px !important;
        max-height: 112px !important;
        z-index: 500 !important;
        box-sizing: border-box !important;
    }
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ: карточки, описание и категории без обрезания
   ========================================================= */
@media screen and (max-width: 700px) {
    html, body {
        min-height: 100%;
        height: auto;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .topbar {
        position: relative !important;
        z-index: 1000 !important;
        margin-bottom: 8px !important;
    }

    .mobile-controls {
        max-height: calc(100dvh - 70px);
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .movies-container {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 0 76px !important;
        overflow: visible !important;
    }

    .movies {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-rows: auto !important;
        grid-template-rows: none !important;
        align-content: start !important;
        gap: 12px !important;
        height: auto !important;
        padding: 8px 10px 14px !important;
        overflow: visible !important;
    }

    .movie {
        display: grid !important;
        grid-template-columns: minmax(105px, 34%) minmax(0, 1fr) !important;
        grid-template-rows: minmax(145px, auto) !important;
        align-items: stretch !important;
        height: auto !important;
        min-height: 145px !important;
        max-height: none !important;
        overflow: hidden !important;
        position: relative !important;
        border-radius: 12px !important;
    }

    .movie img {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 145px !important;
        max-height: 220px !important;
        flex: none !important;
        object-fit: cover !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .movie-info {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        min-height: 145px !important;
        max-height: none !important;
        padding: 10px 9px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        text-align: left !important;
    }

    .movie-info h3 {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;
        overflow: hidden !important;
        width: 100% !important;
        font-size: 15px !important;
        line-height: 1.2 !important;
        overflow-wrap: anywhere !important;
        margin: 0 0 8px !important;
    }

    .movie-info p {
        display: block !important;
        width: 100% !important;
        max-height: 4.2em !important;
        overflow: hidden !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        margin: 0 !important;
    }

    .movie .rating {
        z-index: 5 !important;
        font-size: 11px !important;
        padding: 4px 6px !important;
    }

    .movie .archive {
        z-index: 6 !important;
    }

    .pagination {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 900 !important;
    }

    /* Окно фильма: компактный постер, описание и все метаданные доступны. */
    #movieModal .modal-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 9px !important;
        height: 100% !important;
        max-height: 100% !important;
        padding: 54px 12px 14px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box !important;
    }

    #movieModal .poster-column {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        flex: 0 0 auto !important;
        align-items: center !important;
    }

    #movieModal .poster-wrap {
        width: 100% !important;
        height: auto !important;
        gap: 7px !important;
    }

    #movieModal .poster-wrap > .fixir {
        width: min(42vw, 150px) !important;
        height: auto !important;
        aspect-ratio: 2 / 3 !important;
        margin: 0 auto !important;
    }

    #movieModal .poster-wrap > .fixir img,
    #movieModal #modalPoster {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
    }

    #movieModal .movie-rating-panel {
        margin-top: 7px !important;
        gap: 8px !important;
    }

    #movieModal .rating-circle {
        display: none !important;
    }

    #movieModal .modal-info {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        gap: 8px !important;
    }

    #movieModal .modal-info h2 {
        font-size: 19px !important;
        line-height: 1.2 !important;
        margin: 0 38px 4px 0 !important;
        text-align: center !important;
        overflow-wrap: anywhere !important;
    }

    #movieModal .buttons {
        gap: 7px !important;
    }

    #movieModal .buttons > button {
        min-height: 42px !important;
        height: auto !important;
        padding: 8px 7px !important;
        font-size: 13px !important;
        white-space: normal !important;
    }

    #movieModal .buttons > .watch-btn {
        min-height: 46px !important;
        font-size: 16px !important;
    }

    #movieModal .description-box {
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        padding: 10px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: anywhere !important;
    }

    #movieModal .info-scroll {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #movieModal .info-scroll .box {
        min-width: 0 !important;
        padding: 8px !important;
        font-size: 12px !important;
        overflow-wrap: anywhere !important;
    }
}

@media screen and (max-width: 380px) {
    .movie {
        grid-template-columns: 96px minmax(0, 1fr) !important;
        min-height: 132px !important;
    }

    .movie img,
    .movie-info {
        min-height: 132px !important;
    }

    .movie-info {
        padding: 8px 7px !important;
    }

    .movie-info h3 {
        font-size: 13px !important;
    }

    .movie-info p {
        font-size: 11px !important;
    }

    #movieModal .poster-wrap > .fixir {
        width: 112px !important;
    }
}


/* =========================================================
   SEGOL.TV — аккуратное оформление карточек и постеров.
   Не меняет сетку, размеры, высоту и расположение блоков.
   ========================================================= */
.movie {
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(34, 40, 54, .96), rgba(17, 21, 31, .98)) !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .22),
                inset 0 0 0 1px rgba(255, 255, 255, .07) !important;
    transition: box-shadow .22s ease, background .22s ease !important;
}

/* Постер заполняет свою существующую область; геометрия карточки не меняется. */
.movie img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    background: #111722 !important;
    box-shadow: 0 4px 13px rgba(0, 0, 0, .25) !important;
}

.movie:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .30),
                inset 0 0 0 1px rgba(255, 255, 255, .12) !important;
}
.movie:hover img {
    border-color: rgba(255, 255, 255, .34) !important;
    box-shadow: 0 6px 17px rgba(0, 0, 0, .30) !important;
}

.light .movie {
    background: linear-gradient(145deg, #ffffff, #eef1f6) !important;
    box-shadow: 0 5px 16px rgba(30, 40, 60, .12),
                inset 0 0 0 1px rgba(35, 45, 65, .08) !important;
}
.light .movie img {
    background: #e8ebf1 !important;
    border-color: rgba(35, 45, 65, .16) !important;
    box-shadow: 0 4px 12px rgba(30, 40, 60, .12) !important;
}

@media (prefers-reduced-motion: reduce) {
    .movie, .movie img { transition: none !important; }
}


/* =========================================================
   ЕДИНЫЙ ВИД ПОСТЕРОВ ВО ВСЕХ РАЗДЕЛАХ: ФИЛЬМЫ / TV / РАДИО
   Применяется только к картинке внутри карточки.
   Геометрия карточек и сетка остаются без изменений.
   ========================================================= */
#movies[data-content-type="film"] > .movie > img,
#movies[data-content-type="tv"] > .movie > img,
#movies[data-content-type="radio"] > .movie > img,
#movies > .movie > img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #111722 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,.28) !important;
    padding: 0 !important;
}
#movies[data-content-type="tv"] > .movie > img:hover,
#movies[data-content-type="radio"] > .movie > img:hover,
#movies[data-content-type="film"] > .movie > img:hover {
    border-color: rgba(255,255,255,.42) !important;
    box-shadow: 0 7px 18px rgba(0,0,0,.34) !important;
}
.light #movies > .movie > img {
    background: #e8ebf1 !important;
    border-color: rgba(35,45,65,.18) !important;
    box-shadow: 0 5px 14px rgba(30,40,60,.14) !important;
}


/* === Настройки: выпадающее меню === */
.settings-menu-wrap{position:relative;flex-shrink:0}
#settingsBtn{padding:8px 14px;border:0;border-radius:12px;background:#e50914;color:#fff;min-height:56px;font-size:17px;font-weight:700;cursor:pointer;white-space:nowrap}
#settingsBtn:hover{background:#05DCF0;color:#111}
.settings-menu{position:absolute;right:0;top:calc(100% + 10px);width:260px;max-width:85vw;padding:12px;background:#19151f;border:1px solid rgba(190,157,255,.45);border-radius:16px;box-shadow:0 14px 38px rgba(0,0,0,.55);z-index:10020}
.settings-menu[hidden]{display:none!important}
.settings-menu-section+.settings-menu-section{border-top:1px solid rgba(255,255,255,.12);margin-top:10px;padding-top:10px}
.settings-menu-title{padding:4px 8px 8px;color:#05DCF0;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.settings-menu button{display:block;width:100%;padding:11px 10px;margin:3px 0;border:0;border-radius:9px;text-align:left;background:#29232f;color:#fff;font-size:14px;font-weight:600}
.settings-menu button:hover{background:#05DCF0;color:#111}
.light .settings-menu{background:#fff;border-color:#cbd5e1}
.light .settings-menu button{background:#f0f2f7;color:#222}
.light .settings-menu button:hover{background:#05DCF0;color:#111}

/* === Отдельное модальное окно ТВ === */
.tv-modal-window{width:min(1100px,96vw);max-height:96vh;padding:20px;overflow-y:auto;gap:14px}
.tv-modal-heading{padding:4px 55px 0;text-align:center}
.tv-modal-heading h2{color:#ffd700;font-size:24px;margin-bottom:5px}
.tv-modal-description{color:#bbb;font-size:14px}
.tv-player-wrap{width:100%;aspect-ratio:16/9;max-height:58vh;background:#000;border-radius:14px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.tv-player-wrap iframe,.tv-player-wrap video{display:block;width:100%;height:100%;border:0;background:#000;object-fit:contain}
.tv-player-empty,.tv-program-empty{padding:22px;text-align:center;color:#aaa;background:#252525;border-radius:10px;width:100%}
.tv-program-section h3{font-size:18px;color:#05DCF0;margin:2px 0 10px}
.tv-program-list{display:flex;flex-direction:column;gap:7px;max-height:30vh;overflow-y:auto}
.tv-program-item{display:flex;gap:16px;align-items:center;padding:11px 14px;background:#252525;border-radius:9px}
.tv-program-time{min-width:85px;color:#ffd700;font-weight:800}
.tv-program-name{color:#fff}
.tv-modal .close-btn{position:sticky;float:right;top:0;left:auto;margin-bottom:-52px;align-self:flex-end}
.settings-info-window{width:min(480px,92vw);min-height:180px;padding:75px 25px 25px;text-align:center;gap:15px}
.settings-info-window h2{color:#05DCF0}
.settings-info-window p{line-height:1.5;color:inherit}
.light .tv-modal-window,.light .settings-info-window{background:#fff;color:#222}
.light .tv-program-item,.light .tv-player-empty,.light .tv-program-empty{background:#f0f0f0}
.light .tv-program-name{color:#222}
.light .tv-modal-description{color:#555}

/* Размеры карточек: постеры фильмов немного шире, логотипы ТВ и радио компактнее. */
#movies[data-content-type="film"]{column-gap:13px}
#movies[data-content-type="film"]>.movie>img{width:100%;height:82%;object-fit:cover;object-position:center}
#movies[data-content-type="tv"]>.movie>img,
#movies[data-content-type="radio"]>.movie>img{width:86%;height:72%;margin:0 auto;object-fit:contain;padding:8px;border-radius:16px}
#movies[data-content-type="tv"]>.movie .movie-info,
#movies[data-content-type="radio"]>.movie .movie-info{height:28%}
@media(max-width:700px){
    #settingsBtn{min-height:44px;font-size:14px;padding:7px 10px}
    .settings-menu{right:0;top:calc(100% + 6px)}
    .tv-modal-window{padding:12px}
    .tv-modal-heading h2{font-size:19px}
    .tv-player-wrap{max-height:38vh}
    .tv-program-list{max-height:30vh}
    #movies[data-content-type="tv"]>.movie>img,
    #movies[data-content-type="radio"]>.movie>img{width:78%;height:68%;padding:6px}
}


/* === Финальное оформление карточек и реальный размер изображений === */
#movies[data-content-type="film"] > .movie > img {
    width: 90% !important; height: 78% !important; margin: 7px auto 0 !important;
    object-fit: cover !important; border-radius: 18px !important;
}
#movies[data-content-type="tv"] > .movie > img,
#movies[data-content-type="radio"] > .movie > img {
    width: 70% !important; height: 62% !important; margin: 10px auto 0 !important;
    object-fit: contain !important; border-radius: 16px !important;
}
#movies[data-content-type="tv"] > .movie,
#movies[data-content-type="radio"] > .movie { border-radius: 18px !important; overflow: hidden; }

/* Кнопка настроек наследует геометрию кнопок разделов */
#settingsBtn {
    min-height: 44px !important; height: auto !important; padding: 9px 16px !important;
    border: 1px solid rgba(190,174,255,.55) !important; border-radius: 14px !important;
    background: linear-gradient(135deg,#7657ff 0%,#5636d9 52%,#39249b 100%) !important;
    color: #fff !important; font-size: 18px !important; font-weight: 750 !important;
    box-shadow: 0 6px 18px rgba(91,62,220,.35),inset 0 1px 0 rgba(255,255,255,.2) !important;
}
#settingsBtn:hover { background: linear-gradient(135deg,#927cff 0%,#6d4aff 55%,#4c32c9 100%) !important; color:#fff !important; transform:translateY(-2px); }
@media(max-width:700px){#settingsBtn{min-height:40px !important;font-size:14px !important;padding:7px 10px !important}}

/* Радиоплеер */






















/* Обновлённый широкий радиоплеер */










@media(max-width:700px) {
    
    
    
    
    
}

/* Постеры фильмов немного компактнее — уменьшается само изображение */
#movies[data-content-type="film"] > .movie > img {
    width: 84% !important; height: 73% !important; margin: 8px auto 0 !important;
    object-fit: cover !important; border-radius: 17px !important;
}

/* Корректное полноэкранное затемнение и центрирование радиоплеера */









/* Единая высота и геометрия кнопок разделов; настройки — красная шестерёнка */
#tvBtn, #thRad, #thFilm {
    box-sizing: border-box !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 9px 16px !important;
    font-size: 18px !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
    align-self: center !important;
}
#settingsBtn {
    box-sizing: border-box !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #ff7373 !important;
    border-radius: 14px !important;
    background: #d90018 !important;
    color: #fff !important;
    font-size: 27px !important;
    line-height: 1 !important;
    box-shadow: 0 5px 16px rgba(217,0,24,.32) !important;
}
#settingsBtn:hover { background: #f01830 !important; color: #fff !important; }
@media (max-width: 700px) {
    
    
    
    
    
    #tvBtn, #thRad, #thFilm { height: 40px !important; min-height: 40px !important; padding: 7px 10px !important; font-size: 14px !important; }
    #settingsBtn { width: 40px !important; min-width: 40px !important; max-width: 40px !important; height: 40px !important; min-height: 40px !important; }
}

/* === Финальная корректировка: единые верхние кнопки === */
#tvBtn, #thRad, #thFilm, #settingsBtn {
    box-sizing: border-box !important;
    height: 56px !important;
    min-height: 56px !important;
    min-width: 120px !important;
    padding: 8px 13px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: 1px solid rgba(190,174,255,.55) !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg,#7657ff 0%,#5636d9 52%,#39249b 100%) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
    align-self: center !important;
}
#settingsBtn {
    width: 120px !important;
    max-width: 120px !important;
    padding: 0 !important;
    font-size: 32px !important;
    color: #ff303f !important;
    background: linear-gradient(135deg,#7657ff 0%,#5636d9 52%,#39249b 100%) !important;
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
#tvBtn:hover, #thRad:hover, #thFilm:hover, #settingsBtn:hover {
    background: linear-gradient(135deg,#927cff 0%,#6d4aff 55%,#4c32c9 100%) !important;
    transform: translateY(-2px);
}
@media (max-width: 700px) {
    #tvBtn, #thRad, #thFilm, #settingsBtn {
        height: 45px !important; min-height: 45px !important;
        min-width: 90px !important; padding: 0 10px !important;
        font-size: 14px !important; border-radius: 38px !important;
    }
    #settingsBtn { width: 90px !important; max-width: 90px !important; font-size: 27px !important; }
}

/* === Радио: крупное затемнённое окно и круглое лого === */



#tvModal .tv-modal-window .close-btn{
    position: absolute !important; top: 16px !important; right: 18px !important;
    left: auto !important; float: none !important; z-index: 5 !important;
    width: 58px !important; height: 58px !important; min-width: 58px !important;
    padding: 0 !important; margin: 0 !important; border-radius: 50% !important;
    display: grid !important; place-items: center !important;
    font-size: 30px !important; font-weight: 900 !important;
    background: #e50925 !important; color: #fff !important;
    border: 2px solid rgba(255,255,255,.45) !important;
    box-shadow: 0 5px 22px rgba(229,9,37,.4) !important;
}








@media(max-width:700px) {
    
    
    
    
    
    
    
    
    #tvModal .tv-modal-window .close-btn{ width: 46px !important; height: 46px !important; min-width: 46px !important; font-size: 24px !important; }
}

/* === ТВ-плеер: полноэкранное затемнение, большое центральное окно === */
#tvModal.tv-modal {
    position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important;
    display: none; align-items: center !important; justify-content: center !important;
    padding: 24px !important; box-sizing: border-box !important;
    background: rgba(0,0,0,.9) !important;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 29999 !important;
}
#tvModal.tv-modal.active { display: flex !important; }
#tvModal .tv-modal-window {
    position: relative !important; width: min(1250px,96vw) !important;
    max-width: 1250px !important; max-height: calc(100vh - 48px) !important;
    margin: auto !important; padding: 76px 38px 34px !important;
    box-sizing: border-box !important; display: flex !important;
    flex-direction: column !important; align-items: stretch !important;
    gap: 18px !important; overflow-y: auto !important;
    border: 1px solid rgba(165,130,255,.55) !important; border-radius: 28px !important;
    background: linear-gradient(145deg,#211a30,#111018 75%) !important;
    box-shadow: 0 30px 100px rgba(0,0,0,.8),0 0 45px rgba(116,76,220,.2) !important;
}
#tvModal .tv-modal-heading { width:100% !important; padding:0 70px !important; text-align:center !important; }
#tvModal .tv-modal-heading h2 { font-size:30px !important; margin:0 0 8px !important; }
#tvModal .tv-modal-description { font-size:16px !important; }
#tvModal .tv-player-wrap {
    width:100% !important; aspect-ratio:16/9 !important; max-height:68vh !important;
    min-height:260px !important; border-radius:18px !important; overflow:hidden !important;
    box-shadow:0 12px 36px rgba(0,0,0,.45) !important;
}
#tvModal .tv-program-section { width:100% !important; }
#tvModal .tv-modal-window .close-btn { position:absolute !important; float:none !important; margin:0 !important; }
@media(max-width:700px) {
    #tvModal.tv-modal { padding:10px !important; }
    #tvModal .tv-modal-window { width:96vw !important; max-height:calc(100vh - 20px) !important; padding:66px 12px 18px !important; gap:12px !important; }
    #tvModal .tv-modal-heading { padding:0 42px !important; }
    #tvModal .tv-modal-heading h2 { font-size:21px !important; }
    #tvModal .tv-player-wrap { min-height:190px !important; max-height:50vh !important; }
}

/* === Финальная унификация верхней панели: исходный красный стиль === */
#tvBtn, #thRad, #thFilm, #settingsBtn {
    box-sizing: border-box !important;
    height: 56px !important;
    min-height: 56px !important;
    min-width: 120px !important;
    padding: 8px 13px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #e50914 !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    transform: none;
}
#tvBtn:hover, #thRad:hover, #thFilm:hover, #settingsBtn:hover {
    background: #05DCF0 !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(5,220,240,.7) !important;
}
#tvBtn:active, #thRad:active, #thFilm:active, #settingsBtn:active { transform: scale(.95) !important; }
#settingsBtn {
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    padding: 0 !important;
    font-size: 27px !important;
    color: #fff !important;
}
.settings-menu-wrap { flex: 0 0 auto !important; }
@media (max-width:700px) {
    #tvBtn, #thRad, #thFilm { height:56px !important; min-height:56px !important; min-width:120px !important; padding:8px 13px !important; font-size:18px !important; }
    #settingsBtn { width:56px !important; min-width:56px !important; max-width:56px !important; height:56px !important; min-height:56px !important; font-size:27px !important; }
}

/* === Большое центральное окно телеканала: видео сверху, программа снизу === */
#tvModal.tv-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 2vh 2vw !important;
    box-sizing: border-box !important;
    background: rgba(0,0,0,.88) !important;
    backdrop-filter: blur(9px) !important;
    -webkit-backdrop-filter: blur(9px) !important;
}
#tvModal.tv-modal.active { display: flex !important; }
#tvModal .tv-modal-window {
    position: relative !important;
    width: min(1480px, 96vw) !important;
    max-width: 1480px !important;
    height: min(94dvh, 1100px) !important;
    max-height: 94dvh !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 68px clamp(18px, 3vw, 42px) 26px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 1px solid rgba(190,157,255,.55) !important;
    border-radius: 24px !important;
    background: linear-gradient(145deg,#211a30,#111018 78%) !important;
    box-shadow: 0 28px 90px rgba(0,0,0,.8), 0 0 40px rgba(116,76,220,.22) !important;
}
#tvModal .tv-modal-heading { flex: 0 0 auto !important; width:100% !important; padding:0 64px !important; text-align:center !important; }
#tvModal .tv-modal-heading h2 { margin:0 0 5px !important; font-size:clamp(22px,2.2vw,32px) !important; }
#tvModal .tv-player-wrap {
    position:relative !important;
    flex: 0 0 auto !important;
    width:100% !important;
    height:clamp(300px, 54vh, 690px) !important;
    min-height:300px !important;
    max-height:none !important;
    aspect-ratio:16/9 !important;
    margin:0 auto !important;
    overflow:hidden !important;
    border-radius:16px !important;
    background:#050505 !important;
    box-shadow:0 12px 38px rgba(0,0,0,.55) !important;
}
#tvModal .tv-player-wrap iframe,
#tvModal .tv-player-wrap video,
#tvModal .tv-native-player {
    display:block !important;
    width:100% !important;
    height:100% !important;
    min-height:100% !important;
    border:0 !important;
    object-fit:contain !important;
    background:#000 !important;
}
#tvModal .tv-program-section {
    display:block !important;
    flex:1 0 150px !important;
    width:100% !important;
    min-height:130px !important;
    padding:14px 18px !important;
    box-sizing:border-box !important;
    border:1px solid rgba(190,157,255,.22) !important;
    border-radius:15px !important;
    background:rgba(255,255,255,.045) !important;
}
#tvModal .tv-program-section h3 { margin:0 0 10px !important; font-size:19px !important; color:#e5d8ff !important; }
#tvModal .tv-program-list { max-height:190px !important; overflow-y:auto !important; }
#tvModal .tv-program-item { display:flex !important; gap:18px !important; padding:9px 4px !important; border-bottom:1px solid rgba(255,255,255,.09) !important; }
#tvModal .tv-modal-window .close-btn {
    position:absolute !important; top:14px !important; right:16px !important;
    width:54px !important; height:54px !important; min-width:54px !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
    border-radius:50% !important; font-size:28px !important; z-index:5 !important;
}
@media(max-width:700px) {
    #tvModal.tv-modal { padding:8px !important; }
    #tvModal .tv-modal-window { width:98vw !important; height:96dvh !important; max-height:96dvh !important; padding:62px 12px 16px !important; gap:10px !important; }
    #tvModal .tv-modal-heading { padding:0 42px !important; }
    #tvModal .tv-player-wrap { height:34vh !important; min-height:210px !important; }
    #tvModal .tv-program-section { flex-basis:130px !important; padding:10px !important; }
    #tvModal .tv-program-list { max-height:160px !important; }
    #tvModal .tv-modal-window .close-btn { top:8px !important; right:8px !important; width:46px !important; height:46px !important; min-width:46px !important; font-size:24px !important; }
}

/* === Более выразительные элементы радиоплеера === */





@media(max-width:700px) {
    
    
    
}

/* === FINAL FIX: TV modal large and centered, with EPG below the player === */
#tvModal.tv-modal {
  position:fixed !important; inset:0 !important; z-index:1000000 !important;
  display:none !important; align-items:center !important; justify-content:center !important;
  width:100vw !important; height:100vh !important; height:100dvh !important;
  padding:2vh 2vw !important; box-sizing:border-box !important;
  background:rgba(0,0,0,.88) !important;
  -webkit-backdrop-filter:blur(10px) !important; backdrop-filter:blur(10px) !important;
}
#tvModal.tv-modal.active { display:flex !important; }
#tvModal .tv-modal-window {
  position:relative !important; inset:auto !important; transform:none !important;
  width:min(1560px,96vw) !important; max-width:1560px !important;
  height:94vh !important; height:94dvh !important; max-height:94vh !important; max-height:94dvh !important;
  min-height:0 !important; margin:0 auto !important;
  padding:76px clamp(18px,2.8vw,42px) 24px !important;
  box-sizing:border-box !important; display:flex !important; flex-direction:column !important;
  align-items:stretch !important; justify-content:flex-start !important; gap:14px !important;
  overflow-y:auto !important; overflow-x:hidden !important;
  border:1px solid rgba(190,157,255,.5) !important; border-radius:24px !important;
  background:linear-gradient(145deg,#211a30,#101018 78%) !important;
  box-shadow:0 30px 100px rgba(0,0,0,.82),0 0 42px rgba(116,76,220,.2) !important;
}
#tvModal .tv-modal-heading { flex:0 0 auto !important; width:100% !important; text-align:center !important; padding:0 76px !important; }
#tvModal .tv-modal-heading h2 { font-size:clamp(24px,2vw,34px) !important; margin:0 0 6px !important; }
#tvModal .tv-player-wrap {
  flex:0 0 auto !important; width:100% !important; height:clamp(320px,57vh,760px) !important;
  min-height:320px !important; max-height:none !important; aspect-ratio:16/9 !important;
  margin:0 auto !important; border-radius:16px !important; overflow:hidden !important;
  background:#000 !important; box-shadow:0 12px 38px rgba(0,0,0,.55) !important;
}
#tvModal .tv-player-wrap iframe, #tvModal .tv-player-wrap video, #tvModal .tv-native-player {
  display:block !important; width:100% !important; height:100% !important; min-height:100% !important;
  border:0 !important; background:#000 !important; object-fit:contain !important;
}
#tvModal .tv-program-section {
  display:block !important; flex:1 0 150px !important; width:100% !important; min-height:140px !important;
  padding:14px 18px !important; box-sizing:border-box !important; border-radius:15px !important;
  border:1px solid rgba(190,157,255,.24) !important; background:rgba(255,255,255,.05) !important;
}
#tvModal .tv-program-section h3 { margin:0 0 10px !important; font-size:20px !important; }
#tvModal .tv-program-list { max-height:22vh !important; overflow-y:auto !important; }
#tvModal .tv-modal-window > .close-btn {
  position:absolute !important; top:12px !important; right:14px !important; z-index:20 !important;
  width:64px !important; height:64px !important; min-width:64px !important; padding:0 !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  border-radius:50% !important; font-size:34px !important; line-height:1 !important;
}
@media(max-width:700px) {
  #tvModal.tv-modal { padding:6px !important; }
  #tvModal .tv-modal-window { width:98vw !important; height:96dvh !important; max-height:96dvh !important; padding:68px 10px 12px !important; gap:10px !important; }
  #tvModal .tv-modal-heading { padding:0 46px !important; }
  #tvModal .tv-player-wrap { height:38vh !important; min-height:200px !important; }
  #tvModal .tv-program-section { flex-basis:125px !important; padding:10px !important; }
  #tvModal .tv-program-list { max-height:18vh !important; }
  #tvModal .tv-modal-window > .close-btn { top:8px !important; right:8px !important; width:54px !important; height:54px !important; min-width:54px !important; font-size:29px !important; }
}

/* === RADIO: larger close control and clearly separated modern buttons === */





@media(max-width:700px) {
  
  
  
}

/* === Top navigation buttons use the same visual language as #list === */
#tvBtn, #thRad, #thFilm, #settingsBtn {
  appearance:none !important; -webkit-appearance:none !important;
  box-sizing:border-box !important; height:56px !important; min-height:56px !important;
  padding:0 20px !important; border:1px solid rgba(190,157,255,.48) !important;
  border-radius:16px !important; cursor:pointer !important;
  color:#f7f1ff !important; font-size:18px !important; font-weight:700 !important;
  background:linear-gradient(145deg,#392653 0%,#28183f 55%,#1d1230 100%) !important;
  box-shadow:0 4px 13px rgba(20,10,38,.48),inset 0 1px 0 rgba(255,255,255,.12) !important;
  transition:background .25s ease,box-shadow .25s ease,transform .18s ease !important;
}
#tvBtn, #thRad, #thFilm { min-width:180px !important; }
#settingsBtn {
  width:56px !important; min-width:56px !important; max-width:56px !important;
  padding:0 !important; font-size:28px !important; color:#e50914 !important;
}
#tvBtn:hover, #thRad:hover, #thFilm:hover, #settingsBtn:hover {
  background:linear-gradient(145deg,#50336f 0%,#35204f 55%,#27183c 100%) !important;
  border-color:rgba(220,190,255,.8) !important;
  box-shadow:0 6px 18px rgba(20,10,38,.58),inset 0 1px 0 rgba(255,255,255,.18) !important;
  transform:translateY(-1px) !important;
}
#tvBtn:active, #thRad:active, #thFilm:active, #settingsBtn:active { transform:translateY(0) scale(.98) !important; }
@media(max-width:700px) {
  #tvBtn, #thRad, #thFilm { min-width:0 !important; }
}


/* === Кнопки ТВ / Радио / Фильмы: оформление перенесено из предоставленного CSS === */
#tvBtn, #thRad, #thFilm {
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box !important;
    height: 56px !important;
    min-height: 56px !important;
    min-width: 120px !important;
    padding: 8px 13px !important;
    border: 1px solid rgba(190,157,255,.48) !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, #392653 0%, #28183f 55%, #1d1230 100%) !important;
    color: #f7f1ff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    box-shadow: 0 4px 13px rgba(20,10,38,.48),
                inset 0 1px 0 rgba(255,255,255,.12) !important;
    transition: background .25s ease, color .25s ease, transform .2s ease,
                box-shadow .25s ease, border-color .25s ease, filter .25s ease !important;
}
#tvBtn:hover, #thRad:hover, #thFilm:hover {
    background: linear-gradient(145deg, #62418e 0%, #49306f 55%, #35214f 100%) !important;
    color: #fff !important;
    border-color: #c4a5ff !important;
    box-shadow: 0 0 10px rgba(164,119,255,.75),
                0 0 24px rgba(164,119,255,.52),
                0 0 38px rgba(164,119,255,.25),
                inset 0 1px 0 rgba(255,255,255,.2) !important;
    filter: brightness(1.12);
}
#tvBtn:active, #thRad:active, #thFilm:active {
    transform: scale(.96) !important;
}
#tvBtn.btn-active, #thRad.btn-active, #thFilm.btn-active,
#tvBtn.active, #thRad.active, #thFilm.active {
    background: linear-gradient(145deg, #7552a7 0%, #513574 58%, #392452 100%) !important;
    border-color: #d0b5ff !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(164,119,255,.8),
                0 0 25px rgba(164,119,255,.58),
                0 0 42px rgba(164,119,255,.3) !important;
}


/* === Адаптация мобильного окна фильма и оформление постеров === */
@media screen and (max-width: 700px) {
    #movieModal .buttons { gap: 7px !important; }

    #movieModal .buttons > button {
        min-height: 42px !important;
        height: auto !important;
        padding: 8px 7px !important;
        font-size: 13px !important;
        white-space: normal !important;
    }

    #movieModal .buttons > .watch-btn {
        min-height: 46px !important;
        font-size: 16px !important;
    }

    #movieModal .description-box {
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        padding: 10px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: anywhere !important;
    }

    #movieModal .info-scroll {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #movieModal .info-scroll .box {
        min-width: 0 !important;
        padding: 8px !important;
        font-size: 12px !important;
        overflow-wrap: anywhere !important;
    }
}

@media screen and (max-width: 380px) {
    .movie {
        grid-template-columns: 96px minmax(0, 1fr) !important;
        min-height: 132px !important;
    }

    .movie img,
    .movie-info {
        min-height: 132px !important;
    }

    .movie-info { padding: 8px 7px !important; }
    .movie-info h3 { font-size: 13px !important; }
    .movie-info p { font-size: 11px !important; }
    #movieModal .poster-wrap > .fixir { width: 112px !important; }
}

/* === ПОСТЕРЫ: чуть шире, овальные края; размеры и сетка карточек не меняются === */
.movie img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 1px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 28px !important;
    background: linear-gradient(145deg, #202431, #10131b) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24),
                inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}
.movie:hover img {
    border-color: rgba(255, 255, 255, 0.32) !important;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.32),
                inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}
.light .movie img {
    background: linear-gradient(145deg, #f3f4f8, #dfe3eb) !important;
    border-color: rgba(35, 45, 65, 0.16) !important;
    box-shadow: 0 4px 12px rgba(30, 40, 60, 0.14) !important;
}
@media (prefers-reduced-motion: reduce) {
    .movie img { transition: none !important; }
}


/* === Единое оформление кнопок темы, ТВ, Радио и Фильмы из предоставленного CSS === */
#themeBtn, #tvBtn, #thRad, #thFilm, #settingsBtn {
    background: linear-gradient(145deg, #392653 0%, #28183f 55%, #1d1230 100%) !important;
    color: #f7f1ff !important;
    border: 1px solid rgba(190, 157, 255, .48) !important;
    box-shadow: 0 4px 13px rgba(20, 10, 38, .48),
                inset 0 1px 0 rgba(255,255,255,.12) !important;
    transition: background .25s ease, color .25s ease, transform .2s ease,
                box-shadow .25s ease, border-color .25s ease, filter .25s ease !important;
}

#themeBtn:hover, #tvBtn:hover, #thRad:hover, #thFilm:hover, #settingsBtn:hover {
    background: linear-gradient(145deg, #62418e 0%, #49306f 55%, #35214f 100%) !important;
    color: #fff !important;
    border-color: #c4a5ff !important;
    box-shadow: 0 0 10px rgba(164,119,255,.75),
                0 0 24px rgba(164,119,255,.52),
                0 0 38px rgba(164,119,255,.25),
                inset 0 1px 0 rgba(255,255,255,.2) !important;
    filter: brightness(1.12);
}

#themeBtn:active, #tvBtn:active, #thRad:active, #thFilm:active, #settingsBtn:active {
    transform: scale(.96) !important;
}

#themeBtn.btn-active, #tvBtn.btn-active, #thRad.btn-active, #thFilm.btn-active, #settingsBtn.btn-active,
#themeBtn.active, #tvBtn.active, #thRad.active, #thFilm.active, #settingsBtn.active {
    background: linear-gradient(145deg, #7552a7 0%, #513574 58%, #392452 100%) !important;
    border-color: #d0b5ff !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(164,119,255,.8),
                0 0 25px rgba(164,119,255,.58),
                0 0 42px rgba(164,119,255,.3) !important;
}


/* === Единый размер и овальная форма кнопок как у #list === */
#themeBtn,
#tvBtn,
#thRad,
#thFilm,
#settingsBtn {
    box-sizing: border-box !important;
    min-width: 180px !important;
    width: auto !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 20px !important;
    border-radius: 16px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: normal !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

/* На больших экранах — те же увеличенные габариты и овал, что у #list */
@media screen and (min-width: 1600px) {
    #themeBtn,
    #tvBtn,
    #thRad,
    #thFilm,
    #settingsBtn {
        min-width: 180px !important;
        width: auto !important;
        height: 72px !important;
        min-height: 72px !important;
        padding: 0 24px !important;
        border-radius: 38px !important;
        font-size: 24px !important;
    }
}

/* В узком мобильном меню кнопки занимают ту же ширину строки, что и #list */
@media screen and (max-width: 700px) {
    #themeBtn,
    #tvBtn,
    #thRad,
    #thFilm,
    #settingsBtn {
        width: 98% !important;
        min-width: 0 !important;
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 20px !important;
        border-radius: 16px !important;
        font-size: 18px !important;
    }
}


/* === #settingsBtn: те же размеры, овал и эффекты, что у остальных кнопок === */
#settingsBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #e50914 !important;
    font-size: 28px !important;
    padding: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
}
#settingsBtn:hover { color: #ff4050 !important; }
@media screen and (min-width: 1600px) {
    #settingsBtn { font-size: 34px !important; }
}
@media screen and (max-width: 700px) {
    #settingsBtn { font-size: 28px !important; }
}

/* === SETTINGS: compact circular button, matching the navigation button height === */
#settingsBtn {
    width:56px !important;
    min-width:56px !important;
    max-width:56px !important;
    height:56px !important;
    min-height:56px !important;
    padding:0 !important;
    flex:0 0 56px !important;
    border-radius:50% !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height:1 !important;
}
@media screen and (min-width:1600px) {
    #settingsBtn {
        width:72px !important;
        min-width:72px !important;
        max-width:72px !important;
        height:72px !important;
        min-height:72px !important;
        flex-basis:72px !important;
        border-radius:50% !important;
    }
}
@media screen and (max-width:700px) {
    #settingsBtn {
        width:56px !important;
        min-width:56px !important;
        max-width:56px !important;
        height:56px !important;
        min-height:56px !important;
        flex-basis:56px !important;
        border-radius:50% !important;
    }
}

/* === TV modal: wide horizontal layout on desktop, fluid stack on small screens === */
#tvModal .tv-modal-window {
    width:min(1900px,98vw) !important;
    max-width:1900px !important;
    height:min(92dvh,1100px) !important;
    max-height:92dvh !important;
    padding:76px clamp(18px,2vw,36px) 22px !important;
    display:grid !important;
    grid-template-columns:minmax(0,2.15fr) minmax(280px,.85fr) !important;
    grid-template-rows:auto minmax(0,1fr) !important;
    align-items:stretch !important;
    gap:14px 20px !important;
    overflow:hidden !important;
}
#tvModal .tv-modal-heading {
    grid-column:1 / -1 !important;
    grid-row:1 !important;
    width:100% !important;
    padding:0 76px !important;
}
#tvModal .tv-player-wrap {
    grid-column:1 !important;
    grid-row:2 !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    aspect-ratio:16 / 9 !important;
    align-self:start !important;
}
#tvModal .tv-program-section {
    grid-column:2 !important;
    grid-row:2 !important;
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    height:100% !important;
    flex:none !important;
    overflow:hidden !important;
}
#tvModal .tv-program-list {
    max-height:calc(100% - 42px) !important;
    height:calc(100% - 42px) !important;
    overflow-y:auto !important;
}
@media screen and (max-width:900px) {
    #tvModal.tv-modal { padding:6px !important; }
    #tvModal .tv-modal-window {
        width:98vw !important;
        height:96dvh !important;
        max-height:96dvh !important;
        padding:66px 12px 12px !important;
        display:flex !important;
        flex-direction:column !important;
        gap:10px !important;
        overflow-y:auto !important;
    }
    #tvModal .tv-modal-heading { padding:0 48px !important; }
    #tvModal .tv-player-wrap {
        flex:0 0 auto !important;
        width:100% !important;
        height:clamp(190px,42dvh,440px) !important;
        min-height:190px !important;
        aspect-ratio:16 / 9 !important;
    }
    #tvModal .tv-program-section {
        flex:1 0 130px !important;
        width:100% !important;
        height:auto !important;
        min-height:130px !important;
        overflow:hidden !important;
    }
    #tvModal .tv-program-list {
        height:auto !important;
        max-height:22dvh !important;
        overflow-y:auto !important;
    }
}
@media screen and (max-width:420px) {
    #tvModal .tv-modal-window { padding:62px 8px 10px !important; }
    #tvModal .tv-player-wrap { height:34dvh !important; min-height:170px !important; }
    #tvModal .tv-modal-heading { padding:0 42px !important; }
}

/* === ТВ / Радио / Фильмы: одинаковая геометрия с #list на всех экранах === */
#tvBtn,
#thRad,
#thFilm {
    box-sizing: border-box !important;
    min-width: 180px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 20px !important;
    border-radius: 16px !important;
    font-size: 18px !important;
    line-height: normal !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

/* На всех экранах меньше 1900px #list имеет 45px высоту и овал 38px */
@media screen and (max-width: 1899.98px) {
    #tvBtn,
    #thRad,
    #thFilm {
        height: 45px !important;
        min-height: 45px !important;
        border-radius: 38px !important;
        font-size: 14px !important;
        padding: 0 20px !important;
    }
}

/* На больших экранах размеры совпадают с #list (72px) */
@media screen and (min-width: 1900px) {
    #tvBtn,
    #thRad,
    #thFilm {
        height: 72px !important;
        min-height: 72px !important;
        border-radius: 38px !important;
        font-size: 24px !important;
        padding: 0 24px !important;
        min-width: 180px !important;
    }
}

/* На узких экранах ширина кнопок совпадает с шириной #list */
@media screen and (max-width: 700px) {
    #tvBtn,
    #thRad,
    #thFilm {
        width: 98% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
}

/* === ТВ / Радио / Фильмы: компактнее по ширине и с небольшим горизонтальным интервалом === */
#tvBtn,
#thRad,
#thFilm {
    width: auto !important;
    min-width: 132px !important;
    max-width: 168px !important;
    flex: 0 0 auto !important;
    padding-left: 13px !important;
    padding-right: 13px !important;
    margin-left: 4px !important;
    margin-right: 4px !important;
}

@media screen and (max-width: 700px) {
    #tvBtn,
    #thRad,
    #thFilm {
        width: min(100%, 220px) !important;
        min-width: 0 !important;
        max-width: 220px !important;
        align-self: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .mobile-controls {
        gap: 8px !important;
    }
}

/* === ТВ / Радио / Фильмы: на больших экранах вернуть широкие кнопки и увеличить промежутки === */
@media screen and (min-width: 1900px) {
    #tvBtn,
    #thRad,
    #thFilm {
        width: auto !important;
        min-width: 190px !important;
        max-width: none !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
        flex: 0 0 auto !important;
    }
}

/* === Исправление радио- и ТВ-модальных окон для разных экранов === */
/* Радио на экранах до 1900px: компактное окно, полностью помещается по высоте */
@media screen and (max-width: 1899.98px) {
    
    
    
    
    
    
    
    
}

/* Радио на больших ТВ/мониторах: крупное окно и явно разнесённые кнопки */
@media screen and (min-width: 1900px) {
    
    
    
    
    
    
    

    /* ТВ-плеер: расширяем окно и область видео на больших дисплеях */
    #tvModal .tv-modal-window {
        width: 98vw !important;
        max-width: none !important;
        height: 94dvh !important;
        max-height: 94dvh !important;
        grid-template-columns: minmax(0, 2.5fr) minmax(340px, .8fr) !important;
        gap: 18px 28px !important;
        padding: 78px clamp(28px, 2.5vw, 64px) 28px !important;
    }
    #tvModal .tv-player-wrap {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
    }
    #tvModal .tv-program-section { min-width: 0 !important; }
}

/* Очень узкие экраны: кнопки радио остаются раздельными и доступными */
@media screen and (max-width: 520px) {
    
    
    
    
    
    
}

/* === ОБНОВЛЁННЫЙ ДИЗАЙН РАДИО И ТВ ДЛЯ БОЛЬШИХ ЭКРАНОВ === */
@media screen and (min-width: 1900px) {
    /* Кнопки управления радио: фиксированная ширина и большой промежуток */
    
    

    /* Более широкий ТВ-модал: больше места видео и программе передач */
    #tvModal .tv-modal-window {
        width: 99.2vw !important;
        max-width: 2800px !important;
        height: 96dvh !important;
        max-height: 96dvh !important;
        padding: 82px clamp(34px, 2.2vw, 72px) 28px !important;
        grid-template-columns: minmax(0, 3.2fr) minmax(420px, .9fr) !important;
        gap: 22px 34px !important;
    }
    #tvModal .tv-player-wrap {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
    }
    #tvModal .tv-program-section {
        min-width: 0 !important;
        height: 100% !important;
    }
}

/* Вертикальный LED-эквалайзер: высокие отдельные столбики с мягким свечением */




@media screen and (max-width: 700px) {
    
    
}


/* === Радио: адаптивное окно без внутренних полос прокрутки === */










/* Новый эквалайзер: круговой спектр с радиальными световыми импульсами */







/* На дисплеях от 1900px — тот же компактный макет, лишь немного крупнее */
@media screen and (min-width: 1900px) {
    
    
    
    
    
    
}

/* Маленькая высота и узкие телефоны: всё помещается без внутреннего скролла */
@media screen and (max-width: 520px) {
    
    
    
    
    
    
}
@media screen and (max-height: 620px) {
    
    
    
    
}
@media (prefers-reduced-motion: reduce) {
    
}

/* === RADIO FINAL OVERRIDE: spacious desktop layout + visible animated spectrum === */
@media screen and (min-width: 1900px) {
    
    
    
    
    
    
    
    
    
    
    
}

@media (prefers-reduced-motion: reduce) {
    
}

/* === ТОЧЕЧНАЯ ПРАВКА: ТВ шире, радио-кнопки разнесены, эквалайзер крупнее === */
@media screen and (min-width: 1900px) {
    /* ТВ: максимально используем горизонтальное пространство экрана */
    #tvModal .tv-modal-window {
        width: 99.6vw !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 95dvh !important;
        max-height: 95dvh !important;
        box-sizing: border-box !important;
        grid-template-columns: minmax(0, 3.4fr) minmax(460px, .85fr) !important;
        column-gap: 36px !important;
        row-gap: 18px !important;
        padding: 78px clamp(42px, 2.4vw, 80px) 30px !important;
    }
    #tvModal .tv-player-wrap {
        min-width: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    #tvModal .tv-program-section {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Радио: две независимые колонки с гарантированным промежутком */
    
    

    /* Большой круговой эквалайзер */
    
    
    
}


/* === Корректировка по запросу: ТВ шире по горизонтали и ниже по высоте; эквалайзер компактнее и анимируется === */
@media screen and (min-width: 1900px) {
    #tvModal .tv-modal-window {
        width: 99.7vw !important;
        max-width: 99.7vw !important;
        height: 78dvh !important;
        max-height: 78dvh !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
        grid-template-columns: minmax(0, 3.8fr) minmax(420px, .9fr) !important;
        column-gap: 30px !important;
        padding: 58px clamp(28px, 1.8vw, 54px) 22px !important;
    }
    #tvModal .tv-player-wrap,
    #tvModal .tv-program-section {
        min-width: 0 !important;
        min-height: 0 !important;
    }
}

/* Радиальный эквалайзер: компактнее; transform оставлен анимации, без !important */




@media screen and (min-width: 1900px) {
    
    
    
}

/* === НОВАЯ ФИНАЛЬНАЯ АДАПТАЦИЯ: ТВ широкое/низкое, радио с линейным эквалайзером === */
@media screen and (min-width: 1900px) {
    #tvModal .tv-modal-window {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        height: 70dvh !important;
        max-height: 70dvh !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
        display: grid !important;
        grid-template-columns: minmax(0, 3.2fr) minmax(440px, 1fr) !important;
        grid-template-rows: 58px minmax(0, 1fr) !important;
        gap: 12px 28px !important;
        padding: 58px clamp(24px, 1.5vw, 44px) 18px !important;
        overflow: hidden !important;
    }
    #tvModal .tv-modal-heading {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        padding: 0 64px !important;
        overflow: hidden !important;
    }
    #tvModal .tv-player-wrap {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        min-width: 0 !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        align-self: stretch !important;
    }
    #tvModal .tv-player-wrap iframe,
    #tvModal .tv-player-wrap video {
        width: 100% !important;
        height: 100% !important;
    }
    #tvModal .tv-program-section {
        grid-column: 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
    #tvModal .tv-program-list {
        height: calc(100% - 42px) !important;
        max-height: calc(100% - 42px) !important;
        overflow-y: auto !important;
    }
}

/* Линейный аудио-индикатор вместо неработающего радиального спектра.
   Полосы анимируются CSS при подключении/воспроизведении потока. */





@media screen and (min-width: 1900px) {
    
}
@media screen and (max-width: 700px) {
    
    
}
@media (prefers-reduced-motion: reduce) {
    
}

/* === Финальная замена радио-эквалайзера: анимированная звуковая волна === */





/* Кнопки Старт/Стоп: принудительное расстояние через внешние отступы */


@media screen and (min-width: 1900px) {
    
    
    
}
@media screen and (max-width: 600px) {
    
    
    
    
}
@media (prefers-reduced-motion: reduce) {
    
}


/* === Финальная корректировка: ТВ шире по горизонтали; радио компактнее === */
@media screen and (min-width: 1900px) {
    #tvModal .tv-modal-window {
        width: calc(100vw - 8px) !important;
        max-width: calc(100vw - 8px) !important;
        min-width: 0 !important;
        height: 64dvh !important;
        max-height: 64dvh !important;
        min-height: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        grid-template-columns: minmax(0, 3.6fr) minmax(390px, .9fr) !important;
        gap: 10px 22px !important;
        padding: 54px 22px 14px !important;
        box-sizing: border-box !important;
    }
    #tvModal .tv-player-wrap,
    #tvModal .tv-program-section { min-width: 0 !important; min-height: 0 !important; }
}

/* Возвращён первый круговой эквалайзер, в компактном размере.
   Анимация включается только после события audio 'playing'. */







@media screen and (min-width: 1900px) {
    
    
    
    
    
}

@media screen and (max-width: 600px) {
    
    
    
    
}


/* === FIX: центрирование и стабильная работа кругового эквалайзера на всех экранах === */




@media screen and (max-width: 600px) {
    
    
    
    
}
/* Анимация визуализатора должна работать и при системной настройке reduced motion. */
@media (prefers-reduced-motion: reduce) {
    
}

/* === Корректировка по запросу: заметный эквалайзер на всех экранах === */




@media screen and (max-width: 1899px) {
    
    
    
}
@media screen and (max-width: 600px) {
    
}

/* === Широкие модальные окна и разнесённые кнопки на сверхшироких экранах === */
@media screen and (min-width: 1900px) {
    #tvModal .tv-modal-window {
        width: 99.5vw !important;
        max-width: 99.5vw !important;
        min-width: 0 !important;
        height: 78dvh !important;
        max-height: 78dvh !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
        grid-template-columns: minmax(0, 4.4fr) minmax(420px, 1fr) !important;
        column-gap: 28px !important;
        box-sizing: border-box !important;
    }
    
    
    
}

/* === Финальная настройка радиоплеера: заметный эквалайзер и широкое окно === */




@media screen and (max-width: 1899px) {
    
    
    
}
@media screen and (max-width: 600px) {
    
}

@media screen and (min-width: 1900px) {
    
    
    
    
}


/* =====================================================================
   RADIO MODAL — единый набор размеров и адаптивных правил
   Все размеры окна, логотипа, эквалайзера и кнопок собраны здесь.
   ===================================================================== */
#radioModal.radio-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 30000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    overflow: auto !important;
    background: rgba(0,0,0,.88) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
}
#radioModal.radio-modal.active { display: flex !important; }
#radioModal .radio-modal-window {
    position: relative !important;
    display: flex !important;
    flex: 0 1 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    width: min(980px, 94vw) !important;
    max-width: 94vw !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(100dvh - 32px) !important;
    margin: auto !important;
    padding: 76px clamp(18px, 4vw, 54px) 28px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    text-align: center !important;
    border: 1px solid rgba(165,130,255,.55) !important;
    border-radius: 30px !important;
    background: radial-gradient(ellipse at 50% 0%, #39235f 0%, #1b1729 55%, #101018 100%) !important;
    box-shadow: 0 30px 100px rgba(0,0,0,.8), 0 0 45px rgba(116,76,220,.2) !important;
}
#radioModal .radio-modal-window > .close-btn {
    position: absolute !important; top: 14px !important; right: 16px !important; left: auto !important;
    z-index: 20 !important; width: 58px !important; height: 58px !important; min-width: 58px !important;
    margin: 0 !important; padding: 0 !important; border-radius: 50% !important;
    display: grid !important; place-items: center !important; font-size: 30px !important;
}
#radioModal .radio-player-art {
    position: relative !important; display: flex !important; flex: 0 0 170px !important;
    align-items: center !important; justify-content: center !important;
    width: 170px !important; height: 170px !important; margin: 0 auto !important; padding: 9px !important;
    box-sizing: border-box !important; overflow: visible !important; border-radius: 50% !important;
    background: linear-gradient(145deg,#6f45c5,#211638) !important;
    box-shadow: 0 0 0 8px rgba(164,119,255,.12), 0 0 48px rgba(139,92,246,.4) !important;
}
#radioModal .radio-station-logo {
    display: block !important; width: 100% !important; height: 100% !important; max-width: 100% !important;
    margin: auto !important; object-fit: contain !important; object-position: center !important; border-radius: 50% !important;
}
#radioModal .radio-onair {
    position: absolute !important; top: -18px !important; left: 50% !important; z-index: 8 !important;
    display: inline-block !important; transform: translateX(-50%) !important; white-space: nowrap !important;
    padding: 6px 13px !important; border-radius: 20px !important; background: #e11d48 !important;
    color: #fff !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: .8px !important;
}
#radioModal #radioModalTitle { margin: 4px 0 !important; color: #fff !important; font-size: clamp(22px, 2vw, 34px) !important; }
#radioModal .radio-player-status { min-height: 22px !important; margin: 0 !important; color: #c4b5fd !important; font-size: 15px !important; }
#radioModal .radio-equalizer {
    --eq-radius: 48px;
    position: relative !important; display: block !important; flex: 0 0 auto !important;
    width: 150px !important; height: 150px !important; min-width: 150px !important; min-height: 150px !important;
    max-width: 150px !important; max-height: 150px !important; margin: 4px auto 8px !important; padding: 0 !important;
    overflow: hidden !important; box-sizing: border-box !important; border: 1px solid rgba(190,157,255,.22) !important;
    border-radius: 50% !important; background: radial-gradient(circle, rgba(139,92,246,.18) 0 18%, rgba(15,12,28,.76) 19% 56%, rgba(8,10,20,.28) 57% 100%) !important;
    box-shadow: inset 0 0 18px rgba(139,92,246,.15), 0 0 14px rgba(139,92,246,.12) !important;
}
#radioModal .radio-equalizer::before, #radioModal .radio-equalizer::after {
    content: "" !important; position: absolute !important; inset: 28% !important;
    border: 1px solid rgba(196,181,253,.25) !important; border-radius: 50% !important; pointer-events: none !important;
}
#radioModal .radio-equalizer::after { inset: 43% !important; border-color: rgba(196,181,253,.35) !important; }
#radioModal .radio-equalizer i {
    position: absolute !important; left: 50% !important; top: 50% !important; display: block !important;
    width: 4px !important; height: 18px !important; margin: -9px 0 0 -2px !important; border: 0 !important;
    border-radius: 5px !important; opacity: .35 !important;
    background: linear-gradient(to top,#6d28d9 0%,#a78bfa 65%,#fff 100%) !important;
    box-shadow: 0 0 5px rgba(167,139,250,.55) !important; transform-origin: 50% 50% !important;
    transform: rotate(calc(var(--bar) * 15deg)) translateY(calc(-1 * var(--eq-radius))) scaleY(.2) !important;
    animation: none !important;
}
#radioModal.is-playing .radio-equalizer i {
    animation: radio-eq-clean 520ms ease-in-out infinite alternate !important;
    animation-delay: calc(var(--bar) * -23ms) !important; opacity: 1 !important;
}
@keyframes radio-eq-clean {
    from { transform: rotate(calc(var(--bar) * 15deg)) translateY(calc(-1 * var(--eq-radius))) scaleY(.2); filter: brightness(.9); }
    to { transform: rotate(calc(var(--bar) * 15deg)) translateY(calc(-1 * var(--eq-radius))) scaleY(1.65); filter: brightness(1.6); }
}
#radioModal .radio-player-controls {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    align-items: center !important; justify-content: center !important; gap: 28px !important;
    width: 100% !important; margin: 12px auto 0 !important;
}
#radioModal .radio-player-controls > #radioStart, #radioModal .radio-player-controls > #radioStop {
    flex: 0 1 230px !important; width: 230px !important; max-width: 42% !important; min-width: 0 !important;
    min-height: 64px !important; margin: 0 !important; padding: 14px 22px !important;
    border: 1px solid rgba(255,255,255,.18) !important; border-radius: 18px !important;
    color: #fff !important; font-size: 21px !important; font-weight: 850 !important;
}
#radioModal .radio-player-controls > #radioStart { background: linear-gradient(135deg,#f32636,#b50918) !important; box-shadow: 0 12px 28px rgba(229,9,20,.24), inset 0 1px 0 rgba(255,255,255,.2) !important; }
#radioModal .radio-player-controls > #radioStop { background: linear-gradient(135deg,#3c4658,#202735) !important; box-shadow: 0 12px 28px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.12) !important; }
#radioModal .radio-player-controls > button:hover { filter: brightness(1.12) !important; transform: translateY(-2px) !important; }
#radioModal .radio-player-controls > button:disabled { opacity: .45 !important; cursor: not-allowed !important; }
.light #radioModal .radio-modal-window { background: linear-gradient(145deg,#fff,#eee9ff) !important; color: #222 !important; }
.light #radioModal #radioModalTitle { color: #222 !important; }

/* Средние экраны: компактное окно, не выходит за границы viewport. */
@media screen and (min-width: 700.01px) and (max-width: 1899.98px) {
    #radioModal .radio-modal-window { width: min(980px, 92vw) !important; max-width: 92vw !important; max-height: calc(100dvh - 32px) !important; padding: 72px clamp(24px, 4vw, 54px) 26px !important; gap: 13px !important; }
    #radioModal .radio-player-art { width: 158px !important; height: 158px !important; flex-basis: 158px !important; }
    #radioModal .radio-equalizer { --eq-radius: 43px; width: 136px !important; height: 136px !important; min-width: 136px !important; min-height: 136px !important; max-width: 136px !important; max-height: 136px !important; }
}

/* Большие экраны: увеличиваем окно именно по горизонтали и немного по высоте. */
@media screen and (min-width: 1900px) {
    #radioModal .radio-modal-window {
        width: min(1720px, 96vw) !important; max-width: 96vw !important;
        min-height: min(760px, 86dvh) !important; max-height: 94dvh !important;
        padding: 84px clamp(64px, 5vw, 110px) 42px !important; gap: 18px !important;
    }
    #radioModal .radio-player-art { width: 210px !important; height: 210px !important; flex-basis: 210px !important; }
    #radioModal .radio-equalizer { --eq-radius: 52px; width: 164px !important; height: 164px !important; min-width: 164px !important; min-height: 164px !important; max-width: 164px !important; max-height: 164px !important; }
    #radioModal .radio-player-controls { gap: 36px !important; margin-top: 16px !important; }
    #radioModal .radio-player-controls > #radioStart, #radioModal .radio-player-controls > #radioStop { flex-basis: 250px !important; width: 250px !important; min-height: 70px !important; font-size: 23px !important; }
}

/* Телефоны: компактная компоновка без горизонтального выхода за окно. */
@media screen and (max-width: 700px) {
    #radioModal.radio-modal { padding: 8px !important; }
    #radioModal .radio-modal-window { width: min(520px, 96vw) !important; max-width: 96vw !important; max-height: calc(100dvh - 16px) !important; padding: 62px 14px 18px !important; gap: 9px !important; border-radius: 22px !important; }
    #radioModal .radio-modal-window > .close-btn { top: 8px !important; right: 8px !important; width: 46px !important; height: 46px !important; min-width: 46px !important; font-size: 24px !important; }
    #radioModal .radio-player-art { width: 112px !important; height: 112px !important; flex-basis: 112px !important; }
    #radioModal .radio-onair { top: -14px !important; padding: 4px 10px !important; font-size: 10px !important; }
    #radioModal #radioModalTitle { font-size: 21px !important; }
    #radioModal .radio-player-status { min-height: 18px !important; font-size: 12px !important; }
    #radioModal .radio-equalizer { --eq-radius: 34px; width: 108px !important; height: 108px !important; min-width: 108px !important; min-height: 108px !important; max-width: 108px !important; max-height: 108px !important; margin: 2px auto 4px !important; }
    #radioModal .radio-equalizer i { width: 3px !important; height: 14px !important; margin: -7px 0 0 -1.5px !important; }
    #radioModal .radio-player-controls { gap: 10px !important; margin-top: 6px !important; }
    #radioModal .radio-player-controls > #radioStart, #radioModal .radio-player-controls > #radioStop { flex: 1 1 0 !important; width: auto !important; max-width: calc(50% - 5px) !important; min-height: 46px !important; padding: 8px 5px !important; font-size: 14px !important; border-radius: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
    #radioModal .radio-equalizer i { animation: none !important; }
}

/* === TV MODAL FINAL SIZE OVERRIDE: larger width and height on screens >= 1900px === */
@media screen and (min-width: 1900px) {
    #tvModal.tv-modal {
        padding: 4px !important;
    }
    #tvModal .tv-modal-window {
        width: calc(100vw - 8px) !important;
        max-width: calc(100vw - 8px) !important;
        min-width: 0 !important;
        height: 90dvh !important;
        max-height: 90dvh !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
        grid-template-columns: minmax(0, 4.2fr) minmax(440px, 1fr) !important;
        grid-template-rows: 64px minmax(0, 1fr) !important;
        column-gap: 30px !important;
        row-gap: 14px !important;
        padding: 66px clamp(30px, 2vw, 58px) 24px !important;
        overflow: hidden !important;
    }
    #tvModal .tv-modal-heading {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        padding: 0 76px !important;
    }
    #tvModal .tv-player-wrap {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    #tvModal .tv-player-wrap iframe,
    #tvModal .tv-player-wrap video,
    #tvModal .tv-native-player {
        width: 100% !important;
        height: 100% !important;
    }
    #tvModal .tv-program-section {
        grid-column: 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
    }
}

/* === FINAL OVERRIDE: TV modal for very wide screens (wins over all earlier rules) === */
@media screen and (min-width: 1900px) {
  #tvModal.tv-modal {
    padding: 1.2vh 0.6vw !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #tvModal .tv-modal-window {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 3.4fr) minmax(420px, 1fr) !important;
    grid-template-rows: 58px minmax(0, 1fr) !important;
    column-gap: 24px !important;
    row-gap: 12px !important;
    width: 99vw !important;
    max-width: 99vw !important;
    min-width: 0 !important;
    height: 96dvh !important;
    max-height: 96dvh !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 64px 24px 20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #tvModal .tv-modal-heading {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 76px !important;
    align-self: center !important;
  }

  #tvModal .tv-player-wrap {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
  }

  #tvModal .tv-player-wrap iframe,
  #tvModal .tv-player-wrap video,
  #tvModal .tv-native-player {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  #tvModal .tv-program-section {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: auto !important;
  }

  #tvModal .tv-program-list {
    max-height: calc(100% - 42px) !important;
    overflow-y: auto !important;
  }
}

/* === RADIO MODAL FINAL OVERRIDE: 1900px+ — taller, narrower, wider side margins === */
@media screen and (min-width: 1900px) {
    #radioModal.radio-modal {
        padding: 0.5dvh 1vw !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #radioModal .radio-modal-window {
        width: 88vw !important;
        max-width: 88vw !important;
        min-width: 0 !important;
        flex: 0 0 98dvh !important;
        height: 98dvh !important;
        max-height: 98dvh !important;
        min-height: 98dvh !important;
        box-sizing: border-box !important;
        padding: clamp(76px, 7dvh, 112px) clamp(48px, 6vw, 120px) clamp(34px, 4dvh, 64px) !important;
        gap: clamp(18px, 2.5dvh, 32px) !important;
        overflow: hidden !important;
    }
    #radioModal .radio-player-art {
        width: clamp(210px, 14vw, 270px) !important;
        height: clamp(210px, 14vw, 270px) !important;
        flex-basis: clamp(210px, 14vw, 270px) !important;
    }
    #radioModal .radio-equalizer {
        width: clamp(164px, 11vw, 210px) !important;
        height: clamp(164px, 11vw, 210px) !important;
        min-width: clamp(164px, 11vw, 210px) !important;
        min-height: clamp(164px, 11vw, 210px) !important;
        max-width: clamp(164px, 11vw, 210px) !important;
        max-height: clamp(164px, 11vw, 210px) !important;
    }
    #radioModal .radio-player-controls {
        gap: clamp(20px, 2vw, 36px) !important;
        margin-top: clamp(16px, 2dvh, 28px) !important;
    }
    #radioModal .radio-player-controls > #radioStart,
    #radioModal .radio-player-controls > #radioStop {
        flex-basis: clamp(250px, 18vw, 340px) !important;
        width: clamp(250px, 18vw, 340px) !important;
        max-width: calc(50% - 56px) !important;
        margin-left: 28px !important;
        margin-right: 28px !important;
        min-height: clamp(70px, 7dvh, 88px) !important;
        font-size: clamp(22px, 1.35vw, 26px) !important;
    }
}


/* === RADIO MODAL HARD OVERRIDE: 1900px+ ===
   Strong final selectors to force the actual modal window dimensions. */
@media screen and (min-width: 1900px) {
    html body #radioModal.radio-modal {
        padding: 0 !important;
        overflow: hidden !important;
        align-items: center !important;
        justify-content: center !important;
    }
    html body #radioModal .radio-modal-window {
        display: flex !important;
        box-sizing: border-box !important;
        width: 80vw !important;
        min-width: 80vw !important;
        max-width: 80vw !important;
        height: 99dvh !important;
        min-height: 99dvh !important;
        max-height: 99dvh !important;
        flex: 0 0 99dvh !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }
    html body #radioModal .radio-player-controls > #radioStart,
    html body #radioModal .radio-player-controls > #radioStop {
        margin-left: 36px !important;
        margin-right: 36px !important;
        max-width: calc(50% - 72px) !important;
    }
}

/* NextEmbed — выбор сезона, серии и аудиодорожки в первом окне фильма */
#movieModal .next-embed-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 12px 0 14px;
    color: inherit;
}
#movieModal .next-embed-choices label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
}
#movieModal .next-embed-choices select {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid rgba(22,230,255,.55);
    border-radius: 9px;
    background: #111923;
    color: #fff;
    font: inherit;
}
#movieModal .next-embed-status {
    padding: 9px 11px;
    border-radius: 8px;
    background: rgba(22,230,255,.08);
    color: inherit;
    font-size: 13px;
    line-height: 1.4;
}
#movieModal .next-embed-status.is-error { background: rgba(220,55,55,.13); color: #ffbcbc; }
#movieModal .prosmotr:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(1); }
#movieModal .next-embed-choices select:focus,
#movieModal .prosmotr:focus { outline: 3px solid #16e6ff; outline-offset: 2px; }

/* Компактная единая строка выбора в окне фильма */
#movieModal .next-embed-choices { gap: 6px; margin: 8px 0 12px; min-width: 0; }
#movieModal .next-embed-select-row { display: flex; flex-flow: row nowrap; gap: 8px; width: 100%; min-width: 0; align-items: end; }
#movieModal .next-embed-select-row > label { flex: 1 1 0; min-width: 0; width: auto; font-size: 12px; }
#movieModal .next-embed-select-row > label[hidden] { display: none !important; }
#movieModal .next-embed-select-row select { width: 100%; min-width: 0; min-height: 38px; padding: 5px 8px; font-size: 13px; border-radius: 8px; }
#movieModal .next-embed-status { padding: 5px 8px; font-size: 12px; }
@media (max-width: 520px) {
  #movieModal .next-embed-select-row { gap: 5px; }
  #movieModal .next-embed-select-row > label { font-size: 11px; }
  #movieModal .next-embed-select-row select { padding: 4px 3px; font-size: 11px; }
}

/* TV PLAYER 2026: full-screen viewing, archive lives inside player.php */
#tvModal.tv-modal.active { padding:0 !important; background:#000 !important; }
#tvModal .tv-modal-window {
    width:100vw !important; max-width:none !important;
    height:100vh !important; height:100dvh !important;
    max-height:none !important; margin:0 !important; padding:0 !important;
    border:0 !important; border-radius:0 !important; box-shadow:none !important;
    background:#000 !important; overflow:hidden !important; gap:0 !important;
}
#tvModal .tv-modal-heading, #tvModal .tv-program-section { display:none !important; }
#tvModal .tv-player-wrap {
    width:100% !important; height:100% !important; min-height:0 !important;
    max-height:none !important; flex:1 1 auto !important;
    aspect-ratio:auto !important; border-radius:0 !important;
    box-shadow:none !important; margin:0 !important;
}
#tvModal .tv-player-wrap iframe { width:100% !important; height:100% !important; border:0 !important; }
#tvModal .tv-modal-window > .close-btn {
    top:14px !important; right:14px !important; z-index:30 !important;
    width:48px !important; height:48px !important; min-width:48px !important;
    background:rgba(20,23,36,.72) !important; border:1px solid rgba(255,255,255,.3) !important;
    color:white !important; font-size:25px !important;
}

/* Full-window TV player: independent of legacy modal styles */
#tv-player-container.tv-player-container {
    display:none; position:fixed; left:0; top:0; right:0; bottom:0;
    width:100%; height:100%; height:100vh; z-index:2147483000;
    margin:0; padding:0; overflow:hidden; background:#000;
}
#tv-player-container.tv-player-container.active { display:block; }
#tv-player-container #tv-player-frame {
    display:block; width:100%; height:100%; margin:0; padding:0;
    border:0; background:#000; max-width:none; max-height:none;
}
#tv-player-container #tv-player-close {
    position:absolute; top:16px; right:16px; z-index:10;
    width:54px; height:54px; padding:0;
    border:1px solid rgba(255,255,255,.45); border-radius:50%;
    background:linear-gradient(150deg,rgba(255,255,255,.35),rgba(12,18,34,.88));
    box-shadow:inset 0 1px 2px rgba(255,255,255,.6),0 8px 25px rgba(0,0,0,.55);
    color:#fff; font-size:34px; line-height:48px; cursor:pointer;
}
#tv-player-container #tv-player-close:focus { outline:3px solid #f2d18b; outline-offset:3px; }
body.tv-player-open { overflow:hidden !important; }
@media(max-width:600px) {
    #tv-player-container #tv-player-close { width:44px; height:44px; top:10px; right:10px; font-size:29px; line-height:40px; }
}

/* Кнопка закрытия перенесена внутрь нижней панели player.php. */
#tv-player-container #tv-player-close { display:none !important; }

/* Header layout regression fix: preserve existing buttons, allow search to shrink first. */
.topbar { min-width:0 !important; max-width:100% !important; }
.topbar .mobile-controls { min-width:0 !important; max-width:100% !important; }
.topbar #search { min-width:125px !important; width:auto !important; flex:1 1 250px !important; max-width:none !important; box-sizing:border-box !important; }
.topbar #category,.topbar #list { min-width:0 !important; max-width:100% !important; }
.settings-menu { width:min(390px,calc(100vw - 24px)) !important; max-width:calc(100vw - 24px) !important; box-sizing:border-box !important; }
.settings-menu button { width:100% !important; min-width:0 !important; white-space:normal !important; overflow-wrap:anywhere !important; }
@media(max-width:700px) {
 .topbar { width:100% !important; min-width:0 !important; }
 .topbar .mobile-controls { width:100% !important; max-width:100% !important; min-width:0 !important; }
 .topbar #search { display:block !important; width:100% !important; min-width:0 !important; max-width:100% !important; flex:1 1 100% !important; min-height:48px !important; font-size:16px !important; }
 .topbar #mobileMenuBtn { min-width:56px !important; min-height:56px !important; font-size:29px !important; }
 .topbar #thFilm,.topbar #tvBtn,.topbar #thRad { width:100% !important; max-width:100% !important; flex:1 1 100% !important; }
 .topbar #category,.topbar #list { width:100% !important; max-width:100% !important; }
 .topbar .settings-menu-wrap { width:100% !important; }
 .topbar #settingsBtn { width:100% !important; max-width:100% !important; }
 .topbar .settings-menu { width:100% !important; max-width:100% !important; left:0 !important; right:auto !important; }
}

/* 2026-11-16 header settings: full-width theme and stable responsive menu */
.topbar .settings-menu #themeBtn {display:block !important;width:100% !important;max-width:none !important;min-width:0 !important;box-sizing:border-box !important;}
@media(min-width:1900px){.topbar .settings-menu-wrap {min-width:96px !important;}.topbar #settingsBtn{min-width:96px !important;min-height:78px !important;font-size:35px !important;}.topbar .settings-menu{width:460px !important;max-width:calc(100vw - 30px) !important;}.topbar .settings-menu button{font-size:23px !important;min-height:65px !important;}}
@media(max-width:900px) and (orientation:landscape){
 .topbar {position:sticky !important;top:0 !important;z-index:1000 !important;max-height:100dvh !important;}
 .topbar .mobile-controls{max-height:calc(100dvh - 64px) !important;overflow-y:auto !important;scrollbar-width:none !important;overscroll-behavior:contain !important;}
 .topbar .mobile-controls::-webkit-scrollbar{display:none !important;}
 .topbar .settings-menu-wrap,.topbar #settingsBtn,.topbar #search,.topbar #category,.topbar #list{box-sizing:border-box !important;min-width:0 !important;max-width:100% !important;}
 .topbar .settings-menu {max-height:calc(100dvh - 80px) !important;overflow-y:auto !important;}
}

/* 2026-11-16: mobile header is fixed; expanded controls overlay content. */
@media screen and (max-width:900px) {
 html,body {height:100% !important;min-height:0 !important;overflow:hidden !important;}
 body {display:flex !important;flex-direction:column !important;min-height:0 !important;}
 .topbar {position:relative !important;flex:0 0 auto !important;z-index:1500 !important;min-height:0 !important;margin:0 !important;padding:8px 12px !important;overflow:visible !important;}
 .topbar .logo-wrap {width:100% !important;display:flex !important;align-items:center !important;justify-content:space-between !important;}
 .topbar .mobile-controls {display:none !important;position:absolute !important;top:100% !important;left:0 !important;right:0 !important;width:100% !important;max-width:100% !important;max-height:calc(100dvh - 66px) !important;overflow-y:auto !important;overflow-x:hidden !important;scrollbar-width:none !important;box-sizing:border-box !important;padding:12px !important;z-index:1600 !important;background:rgba(18,22,31,.97) !important;box-shadow:0 15px 35px rgba(0,0,0,.5) !important;flex-direction:column !important;align-items:stretch !important;gap:9px !important;}
 .topbar .mobile-controls.open {display:flex !important;}
 .topbar .mobile-controls::-webkit-scrollbar,.movies-container::-webkit-scrollbar {display:none !important;}
 .topbar #search,.topbar #category,.topbar #list,.topbar #thFilm,.topbar #tvBtn,.topbar #thRad,.topbar .settings-menu-wrap,.topbar #settingsBtn {display:block;box-sizing:border-box !important;width:100% !important;max-width:100% !important;min-width:0 !important;flex:0 0 auto !important;}
 .topbar #search {min-height:44px !important;font-size:16px !important;}
 .topbar .settings-menu {position:relative !important;left:auto !important;right:auto !important;top:auto !important;width:100% !important;max-width:100% !important;box-sizing:border-box !important;max-height:40dvh !important;overflow-y:auto !important;}
 .topbar .settings-menu[hidden] {display:none !important;}
 .topbar .settings-menu #themeBtn {width:100% !important;}
 .movies-container {flex:1 1 auto !important;min-height:0 !important;height:auto !important;max-height:none !important;overflow-y:auto !important;overflow-x:hidden !important;margin:0 !important;scrollbar-width:none !important;overscroll-behavior:contain !important;-webkit-overflow-scrolling:touch !important;}
 .movies {height:auto !important;min-height:100% !important;grid-template-rows:none !important;grid-auto-rows:auto !important;align-content:start !important;}
}
@media screen and (max-width:900px) and (orientation:landscape) {
 .topbar {padding:5px 10px !important;}
 .topbar .logo {font-size:24px !important;}
 .topbar #mobileMenuBtn {min-height:42px !important;min-width:48px !important;}
 .topbar .mobile-controls {max-height:calc(100dvh - 50px) !important;}
 .topbar .mobile-controls #search,.topbar .mobile-controls #category,.topbar .mobile-controls #list,.topbar .mobile-controls button {min-height:40px !important;font-size:15px !important;}
 .movies-container {padding-top:0 !important;}
}

/* 2026-11-16: fixed circular settings button and consistent mobile portrait/landscape controls */
.topbar #settingsBtn { box-sizing:border-box !important; display:flex !important; align-items:center !important; justify-content:center !important; flex:0 0 auto !important; aspect-ratio:1/1 !important; width:62px !important; min-width:62px !important; max-width:62px !important; height:62px !important; min-height:62px !important; max-height:62px !important; padding:0 !important; border-radius:50% !important; font-size:30px !important; }
.topbar .settings-menu-wrap { width:auto !important; min-width:0 !important; max-width:100% !important; align-self:flex-start !important; }
@media(min-width:1900px) { .topbar #settingsBtn { width:88px !important; min-width:88px !important; max-width:58px !important; height:58px !important; min-height:88px !important; max-height:88px !important; font-size:40px !important; } }
@media(max-width:900px) {
 .topbar #mobileMenuBtn { box-sizing:border-box !important; min-width:60px !important; min-height:60px !important; font-size:32px !important; }
 .topbar #settingsBtn { width:58px !important; min-width:58px !important; max-width:58px !important; height:58px !important; min-height:58px !important; max-height:58px !important; font-size:29px !important; }
 .topbar .settings-menu-wrap {width:100% !important;}
 .topbar .mobile-controls {flex-direction:column !important;align-items:stretch !important;}
}
@media(max-width:900px) and (orientation:landscape) {
 .topbar {padding:8px 12px !important;}
 .topbar #mobileMenuBtn {min-width:60px !important;min-height:60px !important;font-size:32px !important;}
 .topbar .mobile-controls {max-height:calc(100dvh - 66px) !important;}
 .topbar .mobile-controls #search,.topbar .mobile-controls #category,.topbar .mobile-controls #list,.topbar .mobile-controls button:not(#settingsBtn) {min-height:48px !important;font-size:16px !important;}
}

/* 2026-11-16: centered mobile settings and larger 1900+ panel */
@media(max-width:900px) {
 .topbar .mobile-controls .settings-menu-wrap {align-self:center !important;width:100% !important;display:flex !important;flex-direction:column !important;align-items:center !important;}
 .topbar #settingsBtn {margin-left:auto !important;margin-right:auto !important;}
 .topbar .mobile-controls.settings-only > :not(.settings-menu-wrap) {display:none !important;}
 .topbar .mobile-controls.settings-only .settings-menu-wrap {display:flex !important;}
 .topbar .mobile-controls.settings-only .settings-menu {width:100% !important;}
}
@media(min-width:1900px) {
 .topbar .settings-menu {width:560px !important;min-width:560px !important;max-width:calc(100vw - 40px) !important;padding:24px !important;box-sizing:border-box !important;}
 .topbar .settings-menu button {font-size:27px !important;min-height:80px !important;}
 .topbar .settings-menu #themeBtn {display:flex !important;align-items:center !important;justify-content:center !important;text-align:center !important;width:100% !important;margin-left:auto !important;margin-right:auto !important;}
}

/* Stable remote focus: rounded card ring and poster glow. */
.remote-focused { outline: none !important; outline-offset: 0 !important; }
#search.remote-focused, #category.remote-focused, #list.remote-focused,
#thFilm.remote-focused, #tvBtn.remote-focused, #thRad.remote-focused,
#settingsBtn.remote-focused, #themeBtn.remote-focused {
  box-shadow: 0 0 12px rgba(145,115,255,.75), 0 0 25px rgba(119,87,255,.45) !important;
}
/* Poster-only glow: the card keeps its normal appearance. */
#movies .movie, #movies .movie img {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}
#movies .movie {
  outline: none !important;
  border-color: transparent !important;
  box-shadow: 0 5px 16px rgba(0,0,0,.22) !important;
  filter: none !important;
}
.light #movies .movie {
  box-shadow: 0 5px 16px rgba(30,40,60,.12) !important;
}
/* Clip the poster glow to the card, not to the poster area. */
#movies > .movie {
  overflow: hidden !important;
}
#movies .movie img { filter: none !important; }
#movies .movie:hover img,
#movies .movie:focus img,
#movies .movie.remote-focused img,
#movies[data-content-type] > .movie:hover > img,
#movies[data-content-type] > .movie:focus > img,
#movies[data-content-type] > .movie.remote-focused > img {
  border-color: #c9baff !important;
  box-shadow: 0 0 18px rgba(177,139,255,1),
              0 0 45px 5px rgba(164,119,255,.88),
              0 0 90px 18px rgba(145,100,255,.65),
              0 0 125px 24px rgba(119,87,255,.40) !important;
  filter: brightness(1.28) !important;
}

/* Muted blue-violet remote focus. Keep poster effects unchanged. */
html body #prevBtn.remote-focused,
html body #nextBtn.remote-focused,
html body #search.remote-focused,
html body #category.remote-focused,
html body #list.remote-focused,
html body #thFilm.remote-focused,
html body #tvBtn.remote-focused,
html body #thRad.remote-focused,
html body #settingsBtn.remote-focused,
html body #themeBtn.remote-focused,
html body #mobileMenuBtn.remote-focused,
html body #settingsMenu button.remote-focused {
    background: #53658f !important;
    background-image: linear-gradient(145deg, #62749e, #43547f) !important;
    color: #ffffff !important;
    border-color: #a4b9e9 !important;
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: 0 0 0 1px rgba(164,185,233,.65),
                0 0 12px rgba(160,190,255,.78),
                0 0 28px rgba(126,153,222,.62),
                0 0 46px rgba(126,153,222,.32),
                inset 0 1px 2px rgba(255,255,255,.12) !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}
html body #search.remote-focused::placeholder { color: #e0e8fa !important; }
html body .pagination { overflow: visible !important; }

/* Favorite feedback: independent of legacy rating popups. */
#favorite-notice {position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2147483647;display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 28px;border-radius:20px;background:rgba(27,24,43,.96);color:#f7f3ff;box-shadow:0 8px 40px rgba(0,0,0,.48);font-size:clamp(16px,2vw,26px);font-weight:600;opacity:0;visibility:hidden;pointer-events:none;}
#favorite-notice.visible {opacity:1;visibility:visible;}
#favorite-notice .favorite-notice-icon {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:#403366;color:#e2d3ff;font-size:38px;line-height:1;box-shadow:0 0 22px rgba(155,121,255,.35);}
#favorite-notice[data-status="added"] .favorite-notice-icon {background:#25483e;color:#a8ebce;box-shadow:0 0 22px rgba(125,216,177,.25);}
#favorite-notice[data-status="error"] .favorite-notice-icon {background:#57323e;color:#ffb5c3;}

/* Site-owned category and group menus; native controls remain data-only. */
#categoryData,#listData {display:none !important;}
html body .topbar .custom-select-trigger {font-weight:800 !important;border-radius:999px !important;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#fff;background:linear-gradient(145deg,#51348a,#30204f);border:1px solid #9577ce;}
html body .topbar #thFilm,html body .topbar #tvBtn,html body .topbar #thRad {font-weight:800 !important;border-radius:999px !important;}
html body .topbar #settingsBtn {width:45px !important;min-width:45px !important;max-width:45px !important;height:45px !important;min-height:45px !important;max-height:45px !important;font-size:24px !important;align-self:center !important;}
html body .topbar .settings-menu-wrap {align-self:center !important;min-width:0 !important;}
@media(min-width:1900px){html body .topbar #settingsBtn {width:72px !important;min-width:72px !important;max-width:72px !important;height:72px !important;min-height:72px !important;max-height:72px !important;font-size:35px !important;}}
@media(max-width:900px){html body .topbar #settingsBtn {width:48px !important;min-width:48px !important;max-width:48px !important;height:48px !important;min-height:48px !important;max-height:48px !important;}}
.carplay-select-menu {position:fixed;z-index:200000;box-sizing:border-box;padding:8px;overflow-y:auto;overflow-x:hidden;border:1px solid #8e74c1;border-radius:18px;background:#211831;box-shadow:0 12px 32px rgba(0,0,0,.55);}
html body .carplay-select-menu button {display:block;box-sizing:border-box;width:100%;min-height:42px;margin:0 0 4px;padding:9px 14px;border:1px solid transparent;border-radius:999px;background:transparent;color:#fff;text-align:left;font-size:16px;font-weight:800;outline:none !important;cursor:pointer;}
html body .carplay-select-menu button[aria-selected=true] {color:#dac9ff;}
html body .carplay-select-menu button.option-focused,html body .carplay-select-menu button:hover {background:#534782;border-color:#b4a2e2;color:white;}
@media(min-width:1900px){html body .carplay-select-menu button {min-height:62px;font-size:24px;}}
#favorite-notice {border-radius:999px;font-weight:800;}
#favorite-notice .favorite-notice-icon {font-weight:900;border-radius:50%;}


/* Circular, adaptive favorite feedback; no impact on header or card layout. */
html body #favorite-notice {
    box-sizing: border-box;
    width: 140px; height: 140px;
    min-width: 0; max-width: 90vw; max-height: 90vh;
    padding: 14px; gap: 8px;
    justify-content: center; border-radius: 50%;
    font-size: 15px; font-weight: 800; line-height: 1.2;
    text-align: center; color: #fff;
    border: 2px solid #a9e8bf;
    background: radial-gradient(circle at 40% 25%, #287c50, #103c29 80%);
    box-shadow: 0 0 26px rgba(65, 230, 127, .48), 0 8px 32px rgba(0,0,0,.5);
}
html body #favorite-notice .favorite-notice-icon {
    flex-shrink: 0; width: 44px; height: 44px;
    border-radius: 50%; font-size: 30px; font-weight: 900;
    background: rgba(255,255,255,.16); color: #fff; box-shadow: none;
}
html body #favorite-notice .favorite-notice-text { max-width: 100%; }
html body #favorite-notice[data-status="catalogue-error"],
html body #favorite-notice[data-status="empty"] {
    flex-direction:column;
    border-radius:50%;
    border-color:#ffc0c0;
    background:radial-gradient(ellipse at 30% 10%,#ff9eaa,#a3324b 30%,#501522 78%);
    box-shadow:0 0 26px rgba(255,76,90,.48),0 8px 32px rgba(0,0,0,.5);
}
html body #favorite-notice[data-status="already"], html body #favorite-notice[data-status="missing"] {
    border-color: #ffe39b; background: radial-gradient(circle at 40% 25%, #98701d, #50350a 80%);
    box-shadow: 0 0 26px rgba(255,197,65,.45), 0 8px 32px rgba(0,0,0,.5);
}
html body #favorite-notice[data-status="error"] {
    border-color: #ffc0c0; background: radial-gradient(circle at 40% 25%, #ae3745, #531923 80%);
    box-shadow: 0 0 26px rgba(255,76,90,.48), 0 8px 32px rgba(0,0,0,.5);
}
@media (min-width: 600px) and (min-height: 501px) {
    html body #favorite-notice {width: 170px; height: 170px; font-size: 18px;}
    html body #favorite-notice .favorite-notice-icon {width: 54px; height: 54px; font-size: 36px;}
}
@media (min-width: 1600px) and (min-height: 501px) {
    html body #favorite-notice {width: 205px; height: 205px; font-size: 22px; padding: 20px; gap: 12px;}
    html body #favorite-notice .favorite-notice-icon {width: 66px; height: 66px; font-size: 43px;}
}
@media (min-width: 3000px) and (min-height: 501px) {
    html body #favorite-notice {width: 310px; height: 310px; font-size: 32px; padding: 30px; gap: 16px;}
    html body #favorite-notice .favorite-notice-icon {width: 100px; height: 100px; font-size: 65px;}
}

/* Stable selector geometry; notification symbol colors only. */
html body #favorite-notice[data-status="added"] .favorite-notice-icon {color:#a4ffbc;background:#123b27;}
html body #favorite-notice[data-status="removed"] .favorite-notice-icon {color:#ff8189;background:#54242d;}
html body #favorite-notice[data-status="already"] .favorite-notice-icon {color:#ffe16c;background:#59400e;}
html body #favorite-notice[data-status="missing"],html body #favorite-notice[data-status="error"] {border-color:#ffc0c0;background:radial-gradient(circle at 40% 25%,#ae3745,#531923 80%);box-shadow:0 0 26px rgba(255,76,90,.48),0 8px 32px rgba(0,0,0,.5);}
html body #favorite-notice[data-status="missing"] .favorite-notice-icon,html body #favorite-notice[data-status="error"] .favorite-notice-icon {color:#ff929a;background:#54242d;}
@media(min-width:901px){
 html body .topbar #category,html body .topbar #list {box-sizing:border-box!important;width:180px!important;min-width:180px!important;max-width:180px!important;flex:0 0 180px!important;}
}
@media(min-width:1900px){
 html body .topbar #category,html body .topbar #list {width:250px!important;min-width:250px!important;max-width:250px!important;flex:0 0 250px!important;}
}
html body .carplay-select-menu button {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* Carplay 3: balanced header, poster-contained badges, live EPG and glossy notices. */
@media(min-width:901px){
 html body .topbar,html body .topbar .mobile-controls{gap:10px!important;column-gap:10px!important;display:flex!important;align-items:center!important;box-sizing:border-box!important;}
 html body .topbar .mobile-controls{flex:1 1 0!important;width:auto!important;flex-wrap:nowrap!important;}
 html body .topbar .mobile-controls > *{margin-left:0!important;margin-right:0!important;}
 html body .topbar #category,html body .topbar #list{width:15%!important;min-width:0!important;max-width:250px!important;flex:0 1 15%!important;}
 html body .topbar #search{min-width:0!important;flex:1 1 15%!important;}
 html body .topbar #thFilm,html body .topbar #tvBtn,html body .topbar #thRad{min-width:0!important;width:auto!important;flex:0 1 auto!important;white-space:nowrap!important;padding-left:1vw!important;padding-right:1vw!important;}
}
@media(min-width:1900px){html body .topbar,html body .topbar .mobile-controls{gap:16px!important;column-gap:16px!important;}}
html body .carplay-select-menu button{white-space:normal!important;overflow-wrap:break-word;}
#movies > .movie {position:relative!important;}
html body #movies > .movie > .archive,html body #movies > .movie > .rating{position:absolute!important;top:calc(var(--poster-top, 10px) + 6px)!important;bottom:auto!important;margin:0!important;z-index:12!important;box-sizing:border-box!important;background:rgba(13,19,30,.86)!important;border:1px solid rgba(255,255,255,.55)!important;box-shadow:0 2px 8px #0006!important;}
html body #movies > .movie > .archive{right:calc(var(--poster-right, 10px) + 6px)!important;left:auto!important;width:clamp(22px,2.5vw,48px)!important;height:clamp(22px,2.5vw,48px)!important;min-width:0!important;min-height:0!important;padding:0!important;border-radius:50%!important;font-size:clamp(12px,1.3vw,24px)!important;display:flex!important;align-items:center;justify-content:center;}
html body #movies > .movie > .rating{left:calc(var(--poster-left, 10px) + 6px)!important;right:auto!important;border-radius:999px!important;font-size:clamp(9px,1vw,20px)!important;padding:3px 6px!important;white-space:nowrap;}
.card-epg[hidden]{display:none!important;}
.card-epg{position:absolute;left:calc(var(--poster-left,10px) + 6px);right:calc(var(--poster-right,10px) + 6px);bottom:calc(var(--poster-bottom,10px) + 6px);z-index:11;background:rgba(10,15,26,.88);border-radius:8px;padding:4px 6px;color:#fff;font-size:clamp(9px,1vw,19px);line-height:1.2;pointer-events:none;box-sizing:border-box;}
.card-epg-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;}
.card-epg-track{height:5px;background:#ffffff35;border-radius:5px;overflow:hidden;margin-top:4px;margin-right:32px;}
.card-epg-track i{display:block;height:100%;border-radius:5px;}
.card-epg-percent{position:absolute;right:6px;bottom:2px;font-size:.8em;}
html body #favorite-notice{overflow:hidden;isolation:isolate;border-width:2px; background:radial-gradient(ellipse at 30% 10%,#79e8b7 0%,#21825a 28%,#164a39 68%,#09291f 100%);box-shadow:0 0 32px #49e6a36b,inset 0 2px 5px #ffffff70,inset 0 -12px 24px #0007,0 12px 35px #0008;}
html body #favorite-notice[data-status="already"]{background:radial-gradient(ellipse at 30% 10%,#ffe4a0,#a47825 30%,#52390e 78%);}
html body #favorite-notice[data-status="error"],html body #favorite-notice[data-status="missing"]{background:radial-gradient(ellipse at 30% 10%,#ff9eaa,#a3324b 30%,#501522 78%);}
html body #favorite-notice::before{content:"";position:absolute;left:13%;top:4%;width:74%;height:38%;border-radius:50%;background:linear-gradient(180deg,rgba(255,255,255,.38),rgba(255,255,255,0));pointer-events:none;z-index:-1;}
html body #favorite-notice .favorite-notice-icon{box-shadow:inset 0 2px 4px #ffffff55,0 4px 10px #0006;border:1px solid #ffffff45;text-shadow:0 0 9px currentColor;}
html body #favorite-notice .favorite-notice-text{text-shadow:0 2px 4px #0009;}

/* Carplay 5: fixed physical spacing; shrink controls, never their margins. */
@media screen and (min-width:901px) {
 html body .topbar {gap:0!important;column-gap:0!important;justify-content:flex-start!important;flex-wrap:nowrap!important;box-sizing:border-box!important;}
 html body .topbar .logo-wrap {flex:0 0 auto!important;margin:0 12px 0 0!important;}
 html body .topbar .logo {margin:0!important;}
 html body .topbar #mobileControls {display:flex!important;flex:1 1 0%!important;width:0!important;min-width:0!important;gap:0!important;column-gap:0!important;justify-content:flex-start!important;flex-wrap:nowrap!important;}
 html body .topbar #mobileControls > #search,
 html body .topbar #mobileControls > #list,
 html body .topbar #mobileControls > #category,
 html body .topbar #mobileControls > #thFilm,
 html body .topbar #mobileControls > #tvBtn,
 html body .topbar #mobileControls > #thRad,
 html body .topbar #mobileControls > .settings-menu-wrap {margin:0 0 0 0!important;box-sizing:border-box!important;min-width:0!important;transform:none!important;}
 html body .topbar #mobileControls > #search,
 html body .topbar #mobileControls > #list,
 html body .topbar #mobileControls > #category,
 html body .topbar #mobileControls > #thFilm,
 html body .topbar #mobileControls > #tvBtn,
 html body .topbar #mobileControls > #thRad {margin-right:12px!important;}
 html body .topbar #mobileControls > #search {flex:1 1 240px!important;width:0!important;padding-left:12px!important;padding-right:12px!important;}
 html body .topbar #mobileControls > #list, html body .topbar #mobileControls > #category {flex:0 1 180px!important;width:180px!important;padding-left:8px!important;padding-right:8px!important;}
 html body .topbar #mobileControls > #thFilm,html body .topbar #mobileControls > #tvBtn,html body .topbar #mobileControls > #thRad {flex:0 1 auto!important;padding-left:10px!important;padding-right:10px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 html body .topbar #mobileControls > .settings-menu-wrap {flex:0 0 auto!important;width:auto!important;}
}
@media screen and (min-width:1900px) {
 html body .topbar .logo-wrap {margin-right:20px!important;}
 html body .topbar #mobileControls > #search,html body .topbar #mobileControls > #list,html body .topbar #mobileControls > #category,html body .topbar #mobileControls > #thFilm,html body .topbar #mobileControls > #tvBtn,html body .topbar #mobileControls > #thRad {margin-right:20px!important;}
 html body .topbar #mobileControls > #list,html body .topbar #mobileControls > #category {flex-basis:250px!important;width:250px!important;}
}

/* Readable EPG overlay, inset within the poster. */
html body #movies .card-epg {left:calc(var(--poster-left,10px) + 9px);right:calc(var(--poster-right,10px) + 9px);bottom:calc(var(--poster-bottom,10px) + 12px);padding:7px 9px 8px;border-radius:10px;background:linear-gradient(160deg,rgba(29,40,60,.97),rgba(7,12,22,.96));border:1px solid rgba(180,201,240,.35);box-shadow:0 3px 12px rgba(0,0,0,.5);font-size:14px;line-height:1.2;}
html body #movies .card-epg-title {font-weight:800;white-space:normal;overflow:hidden;max-height:2.4em;word-wrap:break-word;text-shadow:0 1px 3px #000;}
html body #movies .card-epg-track {height:8px;margin:6px 0 0;border-radius:10px;background:#435064;box-shadow:inset 0 2px 3px #0008;}
html body #movies .card-epg-track i {border-radius:10px;background-image:linear-gradient(to bottom,rgba(255,255,255,.48),rgba(255,255,255,0) 60%,rgba(0,0,0,.12));box-shadow:0 0 7px rgba(255,255,255,.22);}
html body #movies .card-epg-percent {position:static;display:block;text-align:right;font-size:.82em;font-weight:800;margin-top:3px;}
@media(min-width:901px){html body #movies .card-epg{font-size:20px;bottom:calc(var(--poster-bottom,10px) + 18px);padding:9px 12px;}html body #movies .card-epg-track{height:11px;}}
@media(min-width:1600px){html body #movies .card-epg{font-size:26px;left:calc(var(--poster-left,10px) + 12px);right:calc(var(--poster-right,10px) + 12px);bottom:calc(var(--poster-bottom,10px) + 22px);padding:10px 13px;}html body #movies .card-epg-track{height:14px;}}
@media(min-width:3000px){html body #movies .card-epg{font-size:34px;}html body #movies .card-epg-track{height:18px;}}

/* Carplay 6: reserve EPG space inside TV poster, no separate panel. */
html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {
    padding: 3px 3px 36px !important;
    object-fit: contain !important;
    object-position: center center !important;
}
html body #movies .card-epg {
    left:calc(var(--poster-left,10px) + 7px); right:calc(var(--poster-right,10px) + 7px);
    bottom:calc(var(--poster-bottom,10px) + 6px);
    padding:0; margin:0; border:0; border-radius:0; background:none; box-shadow:none;
    font-size:11px; line-height:1.2; min-width:0;
}
html body #movies .card-epg-title {
    display:block; width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    max-height:1.2em; font-weight:700;
}
html body #movies .card-epg-line {display:flex; align-items:center; width:100%; min-width:0; margin-top:4px;}
html body #movies .card-epg-track {flex:1 1 0%; min-width:0; height:6px; margin:0;}
html body #movies .card-epg-percent {position:static; flex:0 0 auto; margin:0 0 0 5px; font-size:.9em; line-height:1; white-space:nowrap;}
@media(min-width:901px){
 html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {padding-bottom:45px!important;}
 html body #movies .card-epg {font-size:15px;bottom:calc(var(--poster-bottom,10px) + 8px);}
 html body #movies .card-epg-track {height:10px;}
}
@media(min-width:1600px){
 html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {padding-bottom:58px!important;}
 html body #movies .card-epg {font-size:19px;bottom:calc(var(--poster-bottom,10px) + 10px);left:calc(var(--poster-left,10px) + 10px);right:calc(var(--poster-right,10px) + 10px);}
 html body #movies .card-epg-track {height:13px;}
}
@media(min-width:3000px){
 html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {padding-bottom:84px!important;}
 html body #movies .card-epg {font-size:28px;bottom:calc(var(--poster-bottom,10px) + 14px);}
 html body #movies .card-epg-track {height:18px;}
}
/* Equal section widths. Search absorbs spare width first. */
@media(min-width:901px){
 html body .topbar #mobileControls > #search {flex:1 1 0%!important;min-width:48px!important;max-width:none!important;}
 html body .topbar #mobileControls > #list,html body .topbar #mobileControls > #category {flex:0 0 13%!important;width:13%!important;min-width:0!important;max-width:none!important;}
 html body .topbar #mobileControls > #thFilm,html body .topbar #mobileControls > #tvBtn,html body .topbar #mobileControls > #thRad {flex:0 0 11.5%!important;width:11.5%!important;min-width:0!important;max-width:none!important;padding-left:3px!important;padding-right:3px!important;box-sizing:border-box!important;text-align:center!important;}
 html body .topbar #mobileControls > .settings-menu-wrap {flex:0 0 auto!important;}
}

/* Carplay 8: channel sequence inside poster and slightly raised EPG. */
html body #movies .movie > .channel-number{position:absolute;left:calc(var(--poster-left,10px) + 6px);top:calc(var(--poster-top,10px) + 6px);z-index:12;padding:3px 7px;border-radius:999px;background:rgba(12,19,32,.85);border:1px solid rgba(165,150,255,.55);color:#fff;font-size:12px;font-weight:800;line-height:1.15;pointer-events:none;box-sizing:border-box;}
html body #movies .card-epg{bottom:calc(var(--poster-bottom,10px) + 10px);}
html body #movies[data-content-type="tv"] > .movie.has-card-epg > img{padding-bottom:40px!important;}
@media(min-width:901px){html body #movies .movie > .channel-number{font-size:17px;padding:4px 9px;}html body #movies .card-epg{bottom:calc(var(--poster-bottom,10px) + 14px);}html body #movies[data-content-type="tv"] > .movie.has-card-epg > img{padding-bottom:51px!important;}}
@media(min-width:1600px){html body #movies .movie > .channel-number{font-size:22px;padding:5px 11px;}html body #movies .card-epg{bottom:calc(var(--poster-bottom,10px) + 18px);}html body #movies[data-content-type="tv"] > .movie.has-card-epg > img{padding-bottom:66px!important;}}
@media(min-width:3000px){html body #movies .movie > .channel-number{font-size:32px;padding:7px 15px;}html body #movies .card-epg{bottom:calc(var(--poster-bottom,10px) + 26px);}html body #movies[data-content-type="tv"] > .movie.has-card-epg > img{padding-bottom:96px!important;}}

/* Carplay 9 — touch layout, isolated from television and desktop. */
@media screen and (max-width:900px) {
 html body .topbar {padding:8px 12px 10px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;background:#171b2b!important;border-bottom:1px solid #ffffff18;}
 html body.light .topbar {background:#f5f1ff!important;}
 html body .topbar .logo-wrap {height:auto!important;min-height:0!important;margin:0!important;}
 html body .topbar .logo {font-size:25px!important;line-height:1.15!important;margin:0!important;}
 html body .topbar #mobileMenuBtn {display:none!important;}
 html body .topbar #mobileControls,html body .topbar #mobileControls.open {display:grid!important;position:static!important;grid-template-columns:repeat(3,minmax(0,1fr)) 42px;gap:8px!important;padding:0!important;margin:0!important;width:100%!important;max-height:none!important;overflow:visible!important;background:none!important;box-shadow:none!important;}
 html body .topbar #mobileControls.settings-only > :not(.settings-menu-wrap) {visibility:visible!important;}
 html body .topbar #mobileControls > #search {grid-column:1/4;grid-row:1;width:100%!important;min-width:0!important;height:42px!important;min-height:42px!important;margin:0!important;border-radius:14px!important;font-size:16px!important;}
 html body .topbar #mobileControls > #thFilm,html body .topbar #mobileControls > #tvBtn,html body .topbar #mobileControls > #thRad {grid-row:2;width:100%!important;min-width:0!important;min-height:42px!important;height:42px!important;margin:0!important;padding:0 4px!important;border-radius:13px!important;font-size:14px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 html body .topbar #mobileControls > #thFilm {grid-column:1;}
 html body .topbar #mobileControls > #tvBtn {grid-column:2;}
 html body .topbar #mobileControls > #thRad {grid-column:3/5;}
 html body .topbar #mobileControls > #list,html body .topbar #mobileControls > #category {grid-row:3;width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;margin:0!important;font-size:14px!important;border-radius:12px!important;padding:0 8px!important;}
 html body .topbar #mobileControls > #list {grid-column:1/3;}
 html body .topbar #mobileControls > #category {grid-column:3/5;}
 html body .topbar #mobileControls > #list[style*="display: none"] ~ #category,html body .topbar #mobileControls > #list[style*="display:none"] ~ #category {grid-column:1/5;}
 html body .topbar #mobileControls > .settings-menu-wrap {grid-row:1;grid-column:4;position:static!important;width:42px!important;min-width:0!important;margin:0!important;align-self:center!important;}
 html body .topbar #settingsBtn {width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;min-height:42px!important;max-height:42px!important;font-size:22px!important;margin:0!important;}
 html body .topbar #settingsMenu {position:absolute!important;top:100%!important;left:12px!important;right:12px!important;width:auto!important;max-width:none!important;max-height:60vh!important;z-index:2000!important;padding:12px!important;border-radius:16px!important;}
 html body .movies-container {padding:10px 10px 14px!important;}
 html body #movies[data-content-type] {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;grid-template-rows:none!important;gap:10px!important;width:100%!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;}
 html body #movies[data-content-type] > .movie {display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;height:auto!important;min-height:0!important;max-height:none!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:7px!important;box-sizing:border-box!important;border-radius:15px!important;transform:none!important;overflow:hidden!important;}
 html body #movies[data-content-type] > .movie > img {display:block!important;width:100%!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:2/3;object-fit:cover!important;margin:0!important;padding:0!important;box-sizing:border-box!important;border-radius:10px!important;}
 html body #movies[data-content-type="tv"] > .movie > img,html body #movies[data-content-type="radio"] > .movie > img {aspect-ratio:1/1;object-fit:contain!important;padding:12px!important;}
 html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {padding:10px 8px 40px!important;}
 html body #movies[data-content-type] > .movie .movie-info {width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:8px 2px 3px!important;box-sizing:border-box!important;position:static!important;}
 html body #movies .movie-info h3 {font-size:14px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important;}
 html body #movies .movie-info p {font-size:11px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:3px 0 0!important;}
 html body #movies > .movie > .archive {width:34px!important;height:34px!important;font-size:17px!important;}
 html body #movies > .movie > .rating {font-size:11px!important;}
 html body #movies .card-epg {font-size:12px!important;bottom:calc(var(--poster-bottom,10px) + 8px)!important;}
 html body #movies .card-epg-track {height:7px!important;}
 html body .pagination {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px))!important;box-sizing:border-box!important;}
 html body .pagination button {min-width:0!important;min-height:42px!important;height:42px!important;flex:1 1 0!important;width:auto!important;font-size:14px!important;padding:0 5px!important;margin:0!important;border-radius:13px!important;}
 html body .pagination #pageInfo {font-size:15px!important;white-space:nowrap!important;flex:0 0 auto!important;}
 html body .carplay-select-menu {border-radius:14px!important;padding:6px!important;}
 html body .carplay-select-menu button {min-height:44px!important;font-size:15px!important;border-radius:10px!important;}
 html body #favorite-notice {width:132px!important;height:132px!important;font-size:14px!important;}
 html body #favorite-notice .favorite-notice-icon {width:43px!important;height:43px!important;font-size:28px!important;}
}
@media screen and (min-width:600px) and (max-width:900px) {
 html body #movies[data-content-type] {grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}
@media screen and (max-width:900px) and (orientation:landscape) {
 html body .topbar {padding:5px 10px!important;gap:4px!important;}
 html body .topbar #mobileControls {grid-template-columns:minmax(70px,2fr) repeat(5,minmax(0,1fr)) 38px;gap:5px!important;}
 html body .topbar #mobileControls > #search {grid-column:1;grid-row:1;}
 html body .topbar #mobileControls > #list {grid-column:2;grid-row:1;}
 html body .topbar #mobileControls > #category {grid-column:3;grid-row:1;}
 html body .topbar #mobileControls > #list[style*="display: none"] ~ #category,html body .topbar #mobileControls > #list[style*="display:none"] ~ #category {grid-column:2/4;}
 html body .topbar #mobileControls > #thFilm {grid-column:4;grid-row:1;}
 html body .topbar #mobileControls > #tvBtn {grid-column:5;grid-row:1;}
 html body .topbar #mobileControls > #thRad {grid-column:6;grid-row:1;}
 html body .topbar #mobileControls > .settings-menu-wrap {grid-column:7;grid-row:1;}
 html body .topbar #mobileControls > #search,html body .topbar #mobileControls > #list,html body .topbar #mobileControls > #category,html body .topbar #mobileControls > #thFilm,html body .topbar #mobileControls > #tvBtn,html body .topbar #mobileControls > #thRad {font-size:12px!important;height:38px!important;min-height:38px!important;}
 html body #movies[data-content-type] {grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}

/* Carplay 10: no EPG paint until poster geometry is ready. */
html body #movies .movie:not(.poster-measured) > .card-epg {visibility:hidden!important;}

/* Original player archive styles, scoped to INFO. */
#cardArchive{ position:fixed; inset:0; z-index:1000; display:none; align-items:center; justify-content:center; padding:3vh 3vw; background:rgba(2,5,12,.68); }
#cardArchive.open{ display:flex; }
#cardArchive .archive-dialog{ display:flex; flex-direction:column; width:min(1250px,96vw); height:min(790px,92vh); min-height:320px; color:#fff; border:1px solid rgba(255,255,255,.18); border-radius:22px; background:linear-gradient(140deg,rgba(27,35,55,.98),rgba(9,13,25,.98)); box-shadow:0 25px 100px rgba(0,0,0,.7); overflow:hidden; }
#cardArchive .archive-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:26px 32px 18px; }
#cardArchive .archive-eyebrow{ color:#f0be79; font-size:12px; font-weight:bold; letter-spacing:3px; }
#cardArchive .archive-head h2{ font-size:clamp(23px,2.6vw,38px); margin:6px 0; }
#cardArchive .archive-head p{ color:#aab7cf; margin:0; font-size:15px; }
#cardArchive .archive-close{ width:52px; height:52px; flex-shrink:0; border:1px solid #56617b; border-radius:14px; color:white; background:#28324a; font-size:32px; cursor:pointer; }
#cardArchive .archive-days{ display:flex; gap:10px; overflow-x:auto; padding:12px 32px 20px; flex-shrink:0; }
#cardArchive .archive-day{ flex:0 0 auto; min-width:108px; border:1px solid #3d4964; border-radius:14px; background:#1d2940; color:#d9e1f3; padding:12px 18px; cursor:pointer; font-size:15px; }
#cardArchive .archive-day span{ display:block; font-size:12px; opacity:.7; margin-bottom:5px; }
#cardArchive .archive-day.active,#cardArchive .archive-day:focus{ background:#f0be79; border-color:#f0be79; color:#141b2b; outline:2px solid transparent; }
#cardArchive .archive-content{ flex:1; min-height:0; overflow-y:auto; padding:20px 32px; background:rgba(3,7,17,.35); }
#cardArchive .archive-section-title{ font-size:20px; font-weight:700; margin-bottom:20px; }
#cardArchive .archive-empty{ border:1px dashed #53607c; border-radius:16px; padding:48px 20px; text-align:center; color:#e4eaf6; font-size:19px; }
#cardArchive .archive-empty span{ display:block; color:#9ba9c2; font-size:14px; margin-top:12px; }
#cardArchive .archive-foot{ padding:17px 32px; border-top:1px solid #37415a; display:flex; align-items:center; justify-content:space-between; gap:12px; color:#aeb9cd; font-size:13px; }
#cardArchive .archive-foot button{ padding:12px 20px; border:0; border-radius:12px; background:#e9b978; color:#192032; font-weight:700; cursor:pointer; }
#cardArchive button:focus{ outline:3px solid #fff; outline-offset:2px; }
@media (max-width:650px) {#cardArchive{ padding:0; }
#cardArchive .archive-dialog{ width:100vw; height:100vh; height:100dvh; border-radius:0; }
#cardArchive .archive-head{ padding:20px 16px 12px; }
#cardArchive .archive-days{ padding:12px 16px; }
#cardArchive .archive-day{ min-width:85px; padding:10px; }
#cardArchive .archive-content{ padding:20px 16px; }
#cardArchive .archive-foot{ padding:12px 16px; }
#cardArchive .archive-foot span{ display:none; }
#cardArchive .archive-foot button{ width:100%; }}
#cardArchive{ top:0; right:0; bottom:0; left:0; display:none; align-items:center; justify-content:center; padding:3vh 3vw; }
#cardArchive.open{ display:flex; }
#cardArchive .archive-dialog{ position:relative; top:auto; right:auto; bottom:auto; width:96vw; max-width:1250px; height:92vh; max-height:790px; border:1px solid rgba(255,255,255,.18); border-radius:22px; box-shadow:0 25px 100px rgba(0,0,0,.7); }
@media  (max-width:650px) {#cardArchive{ padding:0; }
#cardArchive .archive-dialog{ width:100%; max-width:none; height:100%; max-height:none; border-radius:0; }}
#cardArchive,#cardArchive.open{ position:fixed; left:0; top:0; right:0; bottom:0; z-index:1000; }
#cardArchive{ display:none; background:rgba(1,5,15,.76); padding:24px; align-items:center; justify-content:center; }
#cardArchive.open{ display:flex; }
#cardArchive .archive-dialog{ position:relative; display:flex; flex-direction:column; flex:0 1 auto; width:92%; max-width:1160px; height:84%; max-height:760px; min-height:300px; margin:auto; border:1px solid rgba(225,232,255,.20); border-radius:24px; overflow:hidden; background:linear-gradient(155deg,#202b43 0%,#101828 55%,#090f1c 100%); box-shadow:0 28px 95px rgba(0,0,0,.80),0 0 0 1px rgba(255,255,255,.04) inset; }
#cardArchive .archive-head{ padding:25px 30px 18px; border-bottom:1px solid rgba(255,255,255,.08); }
#cardArchive .archive-days{ padding:18px 30px; background:rgba(255,255,255,.025); }
#cardArchive .archive-day{ border-radius:12px; }
#cardArchive .archive-content{ flex:1; min-height:0; overflow:auto; padding:22px 30px; }
#cardArchive .archive-foot{ padding:17px 30px; }
#cardArchive .archive-close,#cardArchive .archive-foot button,#cardArchive .archive-day{ transition:background-color .15s,border-color .15s; }
#cardArchive .archive-close:hover{ background:#465477; }
#cardArchive .archive-foot button:hover{ background:#ffd19a; }
@media (max-width:700px) {#cardArchive{ padding:10px; }
#cardArchive .archive-dialog{ width:100%; height:94%; max-height:none; min-height:0; border-radius:16px; }
#cardArchive .archive-head{ padding:17px 16px 12px; }
#cardArchive .archive-days{ padding:12px 16px; }
#cardArchive .archive-content{ padding:16px; }
#cardArchive .archive-foot{ padding:12px 16px; }}
@media (max-height:520px) and (min-width:701px) {#cardArchive{ padding:8px; }
#cardArchive .archive-dialog{ height:96%; max-height:none; }
#cardArchive .archive-head{ padding:10px 20px; }
#cardArchive .archive-days{ padding:8px 20px; }
#cardArchive .archive-content{ padding:10px 20px; }
#cardArchive .archive-foot{ padding:8px 20px; }}
#cardArchive .archive-close,#cardArchive .archive-foot button{
  position:relative; overflow:hidden; border:1px solid rgba(255,255,255,.42) !important;
  color:#fff !important; background:linear-gradient(160deg,rgba(255,255,255,.35) 0%,rgba(160,190,225,.16) 39%,rgba(18,26,47,.78) 56%,rgba(9,14,30,.94) 100%) !important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.65),inset 0 -2px 5px rgba(0,0,0,.35),0 8px 24px rgba(0,0,0,.48) !important;
  text-shadow:0 1px 3px rgba(0,0,0,.65);
  -webkit-tap-highlight-color:transparent;
}
#cardArchive .archive-close:before,#cardArchive .archive-foot button:before{
  content:""; position:absolute; left:10%; right:10%; top:7%; height:38%; border-radius:100% 100% 50% 50%; pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.30),rgba(255,255,255,0));
}
#cardArchive button:focus{ outline:3px solid #ffda95 !important; outline-offset:3px; }
#cardArchive{ z-index:10010 !important; }
#cardArchive .archive-dialog{ margin:auto !important; }
#cardArchive button:focus{ outline:none !important; }
html body #cardArchive .archive-days,html body #cardArchive .archive-content{
    border-left:0 !important; border-right:0 !important;
    outline:0 !important; box-shadow:none !important;
}
html body #cardArchive,html body #cardArchive.open{
    left:0 !important; top:0 !important; right:0 !important; bottom:0 !important;
    width:100vw !important; height:100vh !important; padding:0 !important;
}
html body #cardArchive .archive-dialog{
    position:relative !important; left:0 !important; top:0 !important;
    width:100vw !important; max-width:none !important;
    height:100vh !important; max-height:none !important; min-height:0 !important;
    margin:0 !important; border-radius:0 !important;
    border:0 !important; flex:1 1 auto !important;
}
html body #cardArchive .archive-head{ padding:32px 4vw 24px !important; }
html body #cardArchive .archive-eyebrow{ font-size:19px !important; }
html body #cardArchive .archive-head h2{ font-size:clamp(32px,3.4vw,56px) !important; }
html body #cardArchive .archive-head p{ font-size:clamp(19px,1.7vw,29px) !important; }
html body #cardArchive .archive-close{ width:76px !important; height:76px !important; font-size:48px !important; }
html body #cardArchive .archive-days{ padding:22px 4vw !important; gap:16px !important; }
html body #cardArchive .archive-day{ min-width:145px !important; padding:20px 25px !important; font-size:24px !important; }
html body #cardArchive .archive-day span{ font-size:19px !important; }
html body #cardArchive .archive-day.active{ background:#5d7fa9 !important; color:white !important; border-color:#5d7fa9 !important; }
html body #cardArchive .archive-content{ padding:28px 4vw !important; }
html body #cardArchive .archive-section-title{ font-size:clamp(26px,2.3vw,40px) !important; }
html body #cardArchive .archive-empty{ font-size:clamp(24px,2vw,34px) !important; padding:55px 24px !important; }
html body #cardArchive .archive-empty span{ font-size:clamp(18px,1.5vw,26px) !important; }
html body #cardArchive .archive-foot{ padding:22px 4vw !important; font-size:23px !important; }
html body #cardArchive .archive-foot button{ min-height:66px !important; font-size:23px !important; padding:14px 30px !important; }
@media (max-width:850px) {html body #cardArchive .archive-head{ padding:18px 16px !important; }
html body #cardArchive .archive-days{ padding:12px 16px !important; gap:8px !important; }
html body #cardArchive .archive-day{ min-width:95px !important; padding:10px 12px !important; font-size:17px !important; }
html body #cardArchive .archive-day span{ font-size:13px !important; }
html body #cardArchive .archive-content{ padding:18px 16px !important; }
html body #cardArchive .archive-foot{ padding:12px 16px !important; }
html body #cardArchive .archive-foot button{ min-height:48px !important; font-size:17px !important; }}
html body #cardArchive .archive-days,html body #cardArchive .archive-content{
  outline:none !important; outline-width:0 !important; outline-offset:0 !important;
  -webkit-outline:none !important; box-shadow:none !important;
}
html body #cardArchive .archive-dialog:focus-within{
  outline:0 !important; outline-offset:0 !important;
}
@media  (max-width:700px) {html body #cardArchive .archive-head h2{font-size:27px !important;}
html body #cardArchive .archive-head p{font-size:14px !important;}
html body #cardArchive .archive-close{width:46px !important;height:46px !important;font-size:30px !important;}
html body #cardArchive .archive-section-title{font-size:22px !important;}
html body #cardArchive .archive-empty{font-size:19px !important;padding:22px 10px !important;}
html body #cardArchive .archive-empty span{font-size:14px !important;}}
@media  (max-height:520px) and (min-width:600px) {html body #cardArchive .archive-head{padding:8px 16px !important;}
html body #cardArchive .archive-days{padding:7px 16px !important;}
html body #cardArchive .archive-foot{padding:7px 16px !important;}}
html body #cardArchive,html body #cardArchive.open{width:100% !important;height:100% !important;}
html body #cardArchive .archive-dialog{width:100% !important;height:100% !important;max-width:none !important;max-height:none !important;}
html body #cardArchive .archive-dialog,html body #cardArchive .archive-days,html body #cardArchive .archive-content{
 border-color:transparent !important;
 box-shadow:none !important;
 -webkit-box-shadow:none !important;
}
html body #cardArchive .archive-day.active,html body #cardArchive .archive-day.active:focus{
 background:#547ca7 !important;color:#fff !important;border-color:#7396be !important;
}
html body #cardArchive{
 width:100% !important;height:100% !important;
 padding:2vh 0 !important;align-items:center !important;justify-content:center !important;
}
html body #cardArchive .archive-dialog{
 width:88% !important;max-width:88% !important;
 height:92% !important;max-height:92% !important;
 min-height:0 !important;
 border:1px solid rgba(159,183,216,.28) !important;
 border-radius:18px !important;
 display:flex !important;flex-direction:column !important;
 overflow:hidden !important;
}
html body #cardArchive .archive-head{padding:18px 3% 12px !important;}
html body #cardArchive .archive-head h2{font-size:30px !important;}
html body #cardArchive .archive-head p{font-size:20px !important;}
html body #cardArchive .archive-eyebrow{font-size:17px !important;}
html body #cardArchive .archive-close{width:58px !important;height:58px !important;font-size:36px !important;}
html body #cardArchive .archive-days{padding:12px 3% !important;gap:10px !important;}
html body #cardArchive .archive-day{min-width:115px !important;padding:13px 17px !important;font-size:20px !important;}
html body #cardArchive .archive-day span{font-size:16px !important;}
html body #cardArchive .archive-content{padding:18px 3% !important;}
html body #cardArchive .archive-section-title{font-size:28px !important;}
html body #cardArchive .archive-empty{font-size:25px !important;padding:28px 16px !important;}
html body #cardArchive .archive-empty span{font-size:19px !important;}
html body #cardArchive .archive-foot{padding:14px 3% !important;font-size:19px !important;}
html body #cardArchive .archive-foot button{font-size:20px !important;min-height:52px !important;}
@media  (min-width:2400px) {html body #cardArchive .archive-head h2{font-size:48px !important;}
html body #cardArchive .archive-day{font-size:28px !important;min-width:155px !important;}
html body #cardArchive .archive-day span{font-size:22px !important;}}
@media  (max-width:1899px) {html body #cardArchive .archive-head h2{font-size:34px !important;}}
@media  (max-width:1499px) {html body #cardArchive .archive-day{min-width:105px !important;font-size:19px !important;}}
@media  (max-width:1199px) {html body #cardArchive .archive-head h2{font-size:29px !important;}
html body #cardArchive .archive-head p{font-size:18px !important;}
html body #cardArchive .archive-day{font-size:17px !important;min-width:94px !important;}
html body #cardArchive .archive-day span{font-size:14px !important;}
html body #cardArchive .archive-empty{font-size:22px !important;}}
@media  (max-width:899px) {html body #cardArchive .archive-dialog{width:90% !important;max-width:90% !important;}
html body #cardArchive .archive-head{padding:14px 3% 9px !important;}
html body #cardArchive .archive-head h2{font-size:26px !important;}
html body #cardArchive .archive-head p{font-size:16px !important;}
html body #cardArchive .archive-close{width:44px !important;height:44px !important;font-size:29px !important;}
html body #cardArchive .archive-foot{font-size:14px !important;}
html body #cardArchive .archive-foot button{font-size:15px !important;min-height:44px !important;}}
@media  (max-width:699px) {html body #cardArchive .archive-dialog{width:94% !important;max-width:94% !important;height:94% !important;max-height:94% !important;}
html body #cardArchive .archive-head h2{font-size:22px !important;}
html body #cardArchive .archive-head p{font-size:13px !important;}
html body #cardArchive .archive-eyebrow{font-size:11px !important;}
html body #cardArchive .archive-day{min-width:85px !important;padding:9px 10px !important;font-size:14px !important;}
html body #cardArchive .archive-day span{font-size:11px !important;}
html body #cardArchive .archive-section-title{font-size:19px !important;}
html body #cardArchive .archive-empty{font-size:17px !important;}
html body #cardArchive .archive-empty span{font-size:13px !important;}
html body #cardArchive .archive-foot{font-size:12px !important;}
html body #cardArchive .archive-foot button{font-size:12px !important;padding:7px 10px !important;}}
@media  (max-height:480px) and (min-width:700px) {html body #cardArchive .archive-head{padding-top:7px !important;padding-bottom:5px !important;}
html body #cardArchive .archive-days{padding-top:5px !important;padding-bottom:5px !important;}}
@media  (min-width:1900px) {html body #cardArchive .archive-close{
   width:86px !important;height:86px !important;min-width:86px !important;
   font-size:57px !important;line-height:1 !important;
   display:flex !important;align-items:center !important;justify-content:center !important;padding:0 !important;
 }
html body #cardArchive #archiveBack{
   min-height:84px !important;min-width:280px !important;
   font-size:29px !important;font-weight:800 !important;padding:18px 36px !important;
 }}
@media  (min-width:1500px) and (max-width:1899px) {html body #cardArchive .archive-close{width:67px !important;height:67px !important;font-size:43px !important;display:flex !important;align-items:center !important;justify-content:center !important;}
html body #cardArchive #archiveBack{min-height:64px !important;font-size:23px !important;font-weight:800 !important;}}
#cardArchive .archive-days{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;justify-content:safe center;}
#cardArchive .archive-days .archive-day{flex:0 0 auto;min-width:73px;}
#cardArchive .archive-days .archive-day.active{outline:2px solid var(--accent);outline-offset:-2px;}
#cardArchive .archive-days .archive-day:disabled{opacity:.35;cursor:not-allowed;}
#cardArchive .archive-program-row{display:flex;align-items:center;gap:14px;width:100%;min-height:54px;padding:12px 14px;margin:0 0 7px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.06);color:#fff;text-align:left;cursor:pointer;}
#cardArchive .archive-program-row:hover:not(:disabled),#cardArchive .archive-program-row:focus-visible{background:rgba(255,255,255,.15);}
#cardArchive .archive-program-row:disabled{opacity:.42;cursor:default;}
#cardArchive .archive-program-now{background:rgba(23,171,108,.23);border-color:rgba(57,228,145,.85);box-shadow:inset 3px 0 #39e491;}
#cardArchive .archive-program-time{font-variant-numeric:tabular-nums;white-space:nowrap;color:#d4dce9;font-size:13px;}
#cardArchive .archive-program-name{flex:1;min-width:0;font-weight:600;}
#cardArchive .archive-program-badge{color:#76ffb6;font-size:11px;font-weight:800;white-space:nowrap;}
@media (max-width:650px){#cardArchive .archive-days{justify-content:flex-start}
#cardArchive .archive-program-row{gap:8px;flex-wrap:wrap}
#cardArchive .archive-program-badge{margin-left:auto}}
html body #cardArchive .archive-dialog{ width:calc(100% - 7vw) !important; max-width:1500px !important; }
html body #cardArchive .archive-days{ display:grid !important; grid-template-columns:repeat(11,minmax(0,1fr)); gap:7px !important; overflow:hidden !important; padding-left:3vw !important; padding-right:3vw !important; }
html body #cardArchive .archive-days .archive-day{ min-width:0 !important; width:100% !important; padding:12px 3px !important; }
html body #cardArchive .archive-programs{ overflow-y:auto; scroll-behavior:auto; }
html body #cardArchive .archive-program-row.archive-program-now{ border-color:#3bd9a5; background:rgba(30,130,95,.32); box-shadow:inset 3px 0 #3bd9a5; }
html body #cardArchive .archive-program-row:disabled{ opacity:.65 !important; cursor:not-allowed; }
@media (min-width:1600px) {html body #cardArchive .archive-program-row{ font-size:23px !important; min-height:68px !important; }
html body #cardArchive .archive-day{ font-size:20px !important; }
html body #cardArchive .archive-program-time{ font-size:21px !important; }}
@media (max-width:800px) {html body #cardArchive .archive-dialog{ width:100% !important; }
html body #cardArchive .archive-days{ overflow-x:auto !important; display:flex !important; }
html body #cardArchive .archive-days .archive-day{ min-width:78px !important; }}
html body #cardArchive .archive-program-row{ padding-left:clamp(20px,2.5vw,46px) !important; padding-right:clamp(20px,2.5vw,46px) !important; gap:clamp(16px,2vw,32px) !important; font-weight:800 !important; transition:background-color .16s,border-color .16s,transform .16s !important; }
html body #cardArchive .archive-program-time{ margin-left:10px !important; font-weight:800 !important; }
html body #cardArchive .archive-program-name{ margin-right:10px !important; font-weight:800 !important; }
html body #cardArchive .archive-program-row:hover:not(:disabled){ background:rgba(83,129,181,.35) !important; border-color:rgba(147,197,255,.75) !important; transform:translateX(3px); }
html body #cardArchive .archive-program-row:active:not(:disabled){ transform:scale(.995); }
html body #cardArchive .archive-program-row.archive-program-now{ background:rgba(22,139,97,.35) !important; border-color:#4aefb1 !important; box-shadow:inset 5px 0 #4aefb1 !important; }
@media (min-width:1600px) {html body #cardArchive .archive-program-name,html body #cardArchive .archive-program-time{ font-size:clamp(23px,1.45vw,30px) !important; }}
html body #cardArchive .archive-head h2{color:#e8bd64 !important;font-weight:900 !important;}
html body #cardArchive .archive-program-row{font-size:clamp(21px,1.65vw,34px) !important;min-height:clamp(65px,4.2vw,90px) !important;font-weight:900 !important;}
html body #cardArchive .archive-program-time,html body #cardArchive .archive-program-name{font-size:inherit !important;font-weight:900 !important;}
html body #cardArchive .archive-day.archive-today:not(.active){color:#f0be79 !important;border-color:#b99753 !important;}
html body #cardArchive .archive-day.archive-today.active{color:#f0be79 !important;border-color:#b99753 !important;background:#26384c !important;}
html body #cardArchive .archive-day.active:not(.archive-today){background:#406a98 !important;color:white !important;border-color:#8fc4fa !important;}
html body #cardArchive .archive-day:focus-visible{outline:3px solid #e8bd64 !important;outline-offset:2px !important;}
@media (min-width:801px){html body #cardArchive .archive-days{justify-content:center !important;}}
@media (max-width:650px){html body #cardArchive .archive-program-row{font-size:18px !important;min-height:60px !important;}
html body #cardArchive .archive-days{justify-content:flex-start !important;}}
html body #cardArchive .archive-program-row{display:grid !important;grid-template-columns:max-content minmax(0,1fr) auto;column-gap:20px !important;align-items:center;}
html body #cardArchive .archive-program-time{margin:0 !important;min-width:0;}
html body #cardArchive .archive-program-name{margin:0 !important;min-width:0;overflow-wrap:anywhere;}
@media (max-width:1899px) {html body #cardArchive .archive-program-row{font-size:17px !important;min-height:52px !important;padding:10px 15px !important;column-gap:18px !important;}
html body #cardArchive .archive-program-time,html body #cardArchive .archive-program-name{font-size:17px !important;}
html body #cardArchive .archive-day{font-size:15px !important;}}
@media (min-width:1900px) {html body #cardArchive .archive-program-row{font-size:31px !important;min-height:88px !important;column-gap:32px !important;padding:17px 35px !important;}
html body #cardArchive .archive-program-time,html body #cardArchive .archive-program-name{font-size:31px !important;}
html body #cardArchive .archive-day{font-size:25px !important;}}
@media (max-width:650px) {html body #cardArchive .archive-program-row{grid-template-columns:1fr !important;gap:5px !important;}
html body #cardArchive .archive-program-time,html body #cardArchive .archive-program-name{font-size:16px !important;}}
html body #cardArchive .archive-content{ display:flex !important; flex-direction:column !important; overflow:hidden !important; }
html body #cardArchive .archive-section-title{ flex:0 0 auto !important; }
html body #cardArchive #archivePrograms{ position:relative !important; flex:1 1 auto !important; min-height:0 !important; overflow-y:auto !important; overflow-x:hidden !important; scroll-behavior:auto !important; }
html body #cardArchive .archive-program-row{ display:grid !important; grid-template-columns:max-content minmax(0,1fr) auto !important; align-items:center !important; flex-wrap:nowrap !important; column-gap:0 !important; }
html body #cardArchive .archive-program-time{ white-space:nowrap !important; align-self:center !important; margin-left:8px !important; margin-right:18px !important; }
html body #cardArchive .archive-program-name{ min-width:0 !important; margin-left:0 !important; margin-right:12px !important; align-self:center !important; }
html body #cardArchive .archive-program-badge{ margin-left:10px !important; margin-right:6px !important; }
html body #cardArchive .archive-day,html body #cardArchive .archive-close,html body #cardArchive .archive-foot button{
 background:linear-gradient(145deg,rgba(255,255,255,.25),rgba(27,42,64,.23)) !important;
 color:#fff !important; border-color:rgba(255,255,255,.35) !important;
 backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
 box-shadow:inset 0 1px 3px rgba(255,255,255,.24),0 5px 18px rgba(0,0,0,.26) !important;
}
html body #cardArchive .archive-day:hover,html body #cardArchive .archive-close:hover,html body #cardArchive .archive-foot button:hover{ background:rgba(38,116,207,.63) !important; border-color:rgba(131,196,255,.85) !important; }
html body #cardArchive .archive-day.active,html body #cardArchive .archive-day.archive-today{ background:linear-gradient(145deg,rgba(255,255,255,.25),rgba(27,42,64,.23)) !important; }
html body #cardArchive .archive-day.archive-today{color:#f0be79 !important;}
@media (min-width:1900px) {html body #cardArchive .archive-program-row{ font-size:27px !important; min-height:76px !important; padding:13px 24px !important; }
html body #cardArchive .archive-program-time,html body #cardArchive .archive-program-name{ font-size:27px !important; line-height:1.2 !important; }
html body #cardArchive .archive-program-time{ margin-left:14px !important; margin-right:30px !important; }
html body #cardArchive .archive-day{font-size:29px !important;}
html body #cardArchive .archive-day span{font-size:22px !important;}}
@media (min-width:651px) and (max-width:1899px) {html body #cardArchive .archive-program-row{font-size:16px !important;min-height:50px !important;}
html body #cardArchive .archive-program-time,html body #cardArchive .archive-program-name{font-size:16px !important;line-height:1.25 !important;}}
@media (max-width:650px) {html body #cardArchive .archive-program-row{grid-template-columns:max-content minmax(0,1fr) auto !important;}
html body #cardArchive .archive-program-time{margin-left:3px !important;margin-right:9px !important;}
html body #cardArchive .archive-program-time,html body #cardArchive .archive-program-name{font-size:14px !important;}
html body #cardArchive .archive-program-badge{font-size:9px !important;}}
html body #cardArchive .archive-program-row{display:grid !important;grid-template-columns:max-content minmax(0,1fr) auto !important;align-items:center !important;}
html body #cardArchive .archive-program-time{white-space:nowrap !important;min-width:max-content !important;margin-left:10px !important;margin-right:24px !important;}
html body #cardArchive .archive-program-name{min-width:0 !important;margin-left:0 !important;margin-right:12px !important;overflow-wrap:normal !important;word-break:normal !important;}
@media (min-width:1900px) {html body #cardArchive .archive-dialog{width:96vw !important;max-width:2000px !important;}
html body #cardArchive .archive-program-row{grid-template-columns:max-content minmax(0,1fr) auto !important;min-height:78px !important;}
html body #cardArchive .archive-program-time{margin-left:18px !important;margin-right:42px !important;}}
#cardArchive{--accent:#c7a6ff;z-index:999999!important;box-sizing:border-box;color:white;font-family:Arial,sans-serif;}#cardArchive *,#cardArchive *:before,#cardArchive *:after{box-sizing:border-box;}#cardArchive button{font-family:inherit;}

@media(max-width:800px){html body #cardArchive .archive-days{display:flex!important;overflow-x:auto!important;justify-content:flex-start!important;}html body #cardArchive .archive-day{flex:0 0 78px!important;min-width:78px!important;}}
@media(max-width:650px){html body #cardArchive .archive-program-row{grid-template-columns:minmax(0,1fr) auto!important;gap:5px 8px!important;padding:10px!important;}html body #cardArchive .archive-program-time{grid-column:1;grid-row:1;margin:0!important;}html body #cardArchive .archive-program-name{grid-column:1/-1;grid-row:2;white-space:normal!important;overflow-wrap:break-word!important;margin:0!important;}html body #cardArchive .archive-program-badge{grid-column:2;grid-row:1;margin:0!important;}}
html body #cardArchive .archive-program-row:focus,html body #cardArchive .archive-day:focus,html body #cardArchive .archive-close:focus,html body #cardArchive .archive-foot button:focus{outline:2px solid #b9d8ff!important;outline-offset:-3px!important;}
html body #cardArchive .archive-content{min-height:0!important;}html body #cardArchive #archivePrograms{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}

/* INFO above EPG, visible on TV, desktop and touch screens. */
html body #movies .movie > .card-info-button{position:absolute!important;z-index:12;top:auto!important;left:auto!important;right:calc(var(--poster-right,10px) + 9px)!important;bottom:calc(var(--poster-bottom,10px) + 39px)!important;width:26px;height:26px;padding:0!important;margin:0!important;display:flex!important;align-items:center;justify-content:center;border-radius:50%;border:1px solid #ffffff85;background:#182438e8;color:#fff;font:bold 18px Arial,sans-serif;cursor:pointer;opacity:1!important;box-sizing:border-box;}
html body #movies .movie:not(.poster-measured) > .card-info-button{visibility:hidden!important;}
html body #movies .movie > .card-info-button:hover,html body #movies .movie > .card-info-button:focus{background:#456d9d;outline:2px solid #b9d8ff;}
@media(min-width:901px){html body #movies .movie > .card-info-button{bottom:calc(var(--poster-bottom,10px) + 54px)!important;width:32px;height:32px;font-size:22px;}}
@media(min-width:1600px){html body #movies .movie > .card-info-button{bottom:calc(var(--poster-bottom,10px) + 68px)!important;width:40px;height:40px;font-size:28px;}}
@media(min-width:3000px){html body #movies .movie > .card-info-button{bottom:calc(var(--poster-bottom,10px) + 96px)!important;width:54px;height:54px;font-size:36px;}}

html body #cardArchive .archive-dialog {background:linear-gradient(155deg,#18243c,#111827 60%,#211a39)!important;color:#fff!important;border:0!important;border-radius:22px!important;}
html body #cardArchive .archive-days {display:flex!important;justify-content:flex-start!important;align-items:center!important;overflow-x:auto!important;padding:12px 16px!important;gap:8px!important;box-sizing:border-box!important;}
html body #cardArchive .archive-day {flex:1 0 0!important;min-width:0!important;border-radius:18px!important;border:0!important;outline:none!important;background:linear-gradient(145deg,#35466b,#26334e)!important;box-shadow:none!important;transform:none!important;}
html body #cardArchive .archive-day.active,html body #cardArchive .archive-day.archive-today.active {background:linear-gradient(145deg,#6354a2,#344d80)!important;color:#fff!important;box-shadow:0 0 14px rgba(147,137,255,.65)!important;}
html body #cardArchive .archive-close,html body #cardArchive .archive-foot button {border:0!important;border-radius:28px!important;outline:none!important;background:linear-gradient(145deg,#465b88,#303858)!important;}
html body #cardArchive .archive-program-row {display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;text-align:left!important;gap:0!important;border:0!important;border-radius:13px!important;transform:none!important;outline:none!important;background:linear-gradient(110deg,#283753,#222b43)!important;box-shadow:none!important;}
html body #cardArchive .archive-program-time {flex:0 0 auto!important;white-space:nowrap!important;color:#a9cfff!important;margin:0 18px 0 0!important;}
html body #cardArchive .archive-program-name {flex:1 1 auto!important;min-width:0!important;white-space:normal!important;overflow-wrap:break-word!important;color:#fff!important;margin:0!important;}
html body #cardArchive .archive-program-badge {flex:0 0 auto!important;color:#8bf5cf!important;margin:0 0 0 10px!important;}
html body #cardArchive .archive-program-row.archive-program-now {background:linear-gradient(110deg,#145c61,#264b65)!important;box-shadow:0 0 9px rgba(59,221,199,.45)!important;}
html body #cardArchive .archive-day:focus,html body #cardArchive .archive-close:focus,html body #cardArchive .archive-foot button:focus,html body #cardArchive .archive-program-row:focus {outline:none!important;border-color:transparent!important;background:linear-gradient(120deg,#546ea0,#534582)!important;box-shadow:0 0 9px #9bbaff,0 0 20px rgba(153,126,255,.6)!important;transform:none!important;}
html body #cardArchive .archive-programs {padding:10px 14px!important;touch-action:pan-y;}
@media(max-width:800px){html body #cardArchive .archive-days {padding-left:calc(50% - 39px)!important;padding-right:calc(50% - 39px)!important;touch-action:pan-y;}html body #cardArchive .archive-day{flex:0 0 78px!important;min-width:78px!important;}html body #cardArchive .archive-program-row {padding:10px 8px!important;min-height:48px!important;}html body #cardArchive .archive-program-time {font-size:12px!important;margin-right:9px!important;}html body #cardArchive .archive-program-name {font-size:14px!important;}html body #cardArchive .archive-program-badge {font-size:9px!important;margin-left:5px!important;}}

html body #movies .movie > .card-info-button {background:linear-gradient(145deg,#59d8ff,#6659dc 55%,#b24cf2)!important;color:white!important;border:1px solid #b7eaff!important;box-shadow:0 0 10px rgba(100,148,255,.75),inset 0 1px 3px #ffffff80!important;bottom:calc(var(--poster-bottom,10px) + 47px)!important;}
@media(min-width:901px){html body #movies .movie > .card-info-button{bottom:calc(var(--poster-bottom,10px) + 64px)!important;}}
@media(min-width:1600px){html body #movies .movie > .card-info-button{bottom:calc(var(--poster-bottom,10px) + 80px)!important;}}
@media(min-width:3000px){html body #movies .movie > .card-info-button{bottom:calc(var(--poster-bottom,10px) + 112px)!important;}}

/* Carplay 15 — premium archive, scoped to INFO only. */
html body #cardArchive .archive-dialog{background:radial-gradient(ellipse at 50% 0%,#384563 0%,#172036 48%,#101522 100%)!important;border:1px solid #7185a4!important;box-shadow:inset 0 1px 0 #c2d5ef66,0 24px 80px #000a!important;border-radius:25px!important;}
html body #cardArchive .archive-head h2{color:#f4dfae!important;font-weight:800!important;text-shadow:0 2px 5px #0008;}
html body #cardArchive .archive-section-title{color:#dce8ff!important;font-weight:700!important;}
html body #cardArchive .archive-day,html body #cardArchive .archive-close,html body #cardArchive .archive-foot button,html body #cardArchive .archive-program-row{position:relative;outline:none!important;border:1px solid #899eb64d!important;border-radius:18px!important;background:linear-gradient(180deg,#7486a7 0%,#445675 48%,#303e5b 50%,#344565 100%)!important;box-shadow:inset 0 1px 1px #e6f2ff80,inset 0 -2px 3px #111b35a0,0 3px 8px #0005!important;color:#fff!important;font-weight:700!important;text-shadow:0 1px 3px #0009;transition:transform .12s ease,filter .12s ease,box-shadow .12s ease;}
html body #cardArchive .archive-program-row{background:linear-gradient(180deg,#3c4b66,#29364e 49%,#222e44 51%,#2a3751)!important;}
html body #cardArchive .archive-day.active,html body #cardArchive .archive-day.archive-today.active{background:linear-gradient(180deg,#a399db,#6554a2 49%,#44377b 51%,#65509d)!important;color:#fff!important;box-shadow:inset 0 1px 1px #fff9,0 0 14px #9c82ff80!important;}
html body #cardArchive .archive-program-row.archive-program-now{background:linear-gradient(180deg,#397d83,#24595e 49%,#19464e 51%,#285d67)!important;}
html body #cardArchive .archive-day:focus,html body #cardArchive .archive-close:focus,html body #cardArchive .archive-foot button:focus,html body #cardArchive .archive-program-row:focus{outline:none!important;border-color:transparent!important;background:linear-gradient(180deg,#899dd4,#596eaa 49%,#424c88 51%,#6159a2)!important;box-shadow:inset 0 1px 2px #fff9,0 0 9px #bccdff,0 0 22px #957aff99!important;}
html body #cardArchive .archive-day:active,html body #cardArchive .archive-close:active,html body #cardArchive .archive-foot button:active,html body #cardArchive .archive-program-row:active:not(:disabled){transform:scale(.975)!important;filter:brightness(1.2);box-shadow:inset 0 3px 9px #0008,0 0 8px #b8b2ff!important;}
html body #cardArchive .archive-program-row:disabled{opacity:.55!important;}
html body #cardArchive .archive-program-time{color:#b9d8ff!important;font-weight:700!important;}
html body #cardArchive .archive-program-name{color:white!important;font-weight:800!important;overflow-wrap:break-word!important;}
html body #cardArchive .archive-days{padding-top:16px!important;padding-bottom:16px!important;}
@media(min-width:901px){html body #cardArchive .archive-program-row{min-height:58px!important;}html body #cardArchive .archive-program-time,html body #cardArchive .archive-program-name{font-size:21px!important;}html body #cardArchive .archive-day{font-size:19px!important;}html body #cardArchive .archive-day span{font-size:16px!important;}}
@media(min-width:1600px){html body #cardArchive .archive-program-row{min-height:74px!important;}html body #cardArchive .archive-program-time,html body #cardArchive .archive-program-name{font-size:29px!important;}html body #cardArchive .archive-day{font-size:24px!important;}html body #cardArchive .archive-day span{font-size:20px!important;}html body #cardArchive .archive-foot button{font-size:23px!important;}}
@media(min-width:3000px){html body #cardArchive .archive-program-row{min-height:104px!important;}html body #cardArchive .archive-program-time,html body #cardArchive .archive-program-name{font-size:40px!important;}html body #cardArchive .archive-day{font-size:33px!important;}html body #cardArchive .archive-day span{font-size:28px!important;}}
@media(max-width:800px){html body #cardArchive .archive-program-time{font-size:12px!important;min-width:0!important;}html body #cardArchive .archive-program-name{font-size:14px!important;}html body #cardArchive .archive-day{font-size:14px!important;}html body #cardArchive .archive-day span{font-size:12px!important;}html body #cardArchive .archive-program-row{border-radius:12px!important;}}

/* Carplay 16: fast INFO navigation; preserve premium appearance. */
html body #cardArchive .archive-program-row {transition:none!important; -webkit-backdrop-filter:none!important;backdrop-filter:none!important;}
html body #cardArchive .archive-days,html body #cardArchive #archivePrograms {scroll-behavior:auto!important;}
@media (max-width:900px), (pointer:coarse) and (max-width:1100px){
 html body #cardArchive .archive-dialog {width:100%!important;max-width:100%!important;}
 html body #cardArchive .archive-days {display:flex!important;box-sizing:border-box!important;width:100%!important;padding:10px 8px!important;gap:0!important;overflow:hidden!important;touch-action:pan-y;}
 html body #cardArchive .archive-days .archive-day:not(.active){display:none!important;}
 html body #cardArchive .archive-days .archive-day.active{display:flex!important;flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:none!important;align-items:center!important;justify-content:center!important;flex-direction:row!important;gap:12px!important;font-size:20px!important;}
 html body #cardArchive .archive-days .archive-day.active span{font-size:20px!important;}
 html body #cardArchive .archive-overlay,html body #cardArchive .archive-content{touch-action:pan-y;}
}

/* Carplay 17: overlays are shown only after stable layout coordinates exist. */
html body #movies > .movie:not(.poster-measured) > .archive,
html body #movies > .movie:not(.poster-measured) > .rating,
html body #movies > .movie:not(.poster-measured) > .channel-number,
html body #movies > .movie:not(.poster-measured) > .card-info-button,
html body #movies > .movie:not(.poster-measured) > .card-epg {visibility:hidden!important;}
html body #movies > .movie > .archive,
html body #movies > .movie > .rating,
html body #movies > .movie > .channel-number,
html body #movies > .movie > .card-info-button,
html body #movies > .movie > .card-epg {transition:none!important;animation:none!important;}

/* Carplay 21: keep archive gloss without expensive live background blur. */
html body.card-archive-visible #movies {visibility:hidden!important;}
html body #cardArchive {background:#111827!important;}
html body #cardArchive,html body #cardArchive .archive-dialog,html body #cardArchive button {
 -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
 animation:none!important;transition:none!important;
}
html body #cardArchive .archive-programs {position:relative;scroll-behavior:auto!important;}

/* Carplay 22: inexpensive remote focus, no native focus/scroll per programme. */
@media(min-width:901px){
 html body #cardArchive .archive-programs {outline:none!important;overflow-anchor:none;}
 html body #cardArchive .archive-program-row {box-shadow:inset 0 1px 0 #aab9d24d!important;text-shadow:none!important;filter:none!important;}
 html body #cardArchive .archive-program-row.archive-program-now {box-shadow:inset 3px 0 #4aefb1!important;}
 html body #cardArchive .archive-program-row.archive-remote-focus {background:linear-gradient(180deg,#899dd4,#596eaa 49%,#424c88 51%,#6159a2)!important;border-color:#bccdff!important;box-shadow:inset 0 0 0 1px #bccdff,0 0 6px #957aff!important;outline:none!important;}
}

/* CarPlay 23: compact landscape viewport, including split-screen. */
.compact-scroll,.archive-click-days > button {display:none;}
.archive-click-days {display:contents;}
@media screen and (orientation:landscape) and (max-height:650px) and (max-width:1600px) {
 html,html body {height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important;}
 html body {display:flex!important;flex-direction:column!important;}
 html body .topbar {position:relative!important;display:flex!important;flex-direction:row!important;flex:0 0 auto!important;align-items:center!important;gap:0!important;width:100%!important;height:auto!important;min-height:0!important;padding:5px 7px!important;margin:0!important;box-sizing:border-box!important;}
 html body .topbar .logo-wrap {flex:0 0 auto!important;width:auto!important;min-width:0!important;margin:0 7px 0 0!important;}
 html body .topbar .logo {font-size:clamp(16px,2.5vw,26px)!important;}
 html body .topbar #mobileMenuBtn {display:none!important;}
 html body .topbar #mobileControls,html body .topbar #mobileControls.open {display:flex!important;position:static!important;flex-direction:row!important;flex:1 1 0!important;min-width:0!important;width:0!important;max-width:none!important;gap:5px!important;overflow:visible!important;align-items:center!important;padding:0!important;margin:0!important;background:none!important;box-shadow:none!important;}
 html body .topbar #mobileControls > #search,html body .topbar #mobileControls > #list,html body .topbar #mobileControls > #category,html body .topbar #mobileControls > #thFilm,html body .topbar #mobileControls > #tvBtn,html body .topbar #mobileControls > #thRad {box-sizing:border-box!important;height:34px!important;min-height:34px!important;max-height:34px!important;margin:0!important;padding:0 5px!important;min-width:0!important;max-width:none!important;width:auto!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 html body .topbar #mobileControls > #search {flex:1 1 0!important;min-width:30px!important;}
 html body .topbar #mobileControls > #list,html body .topbar #mobileControls > #category {flex:0 1 15%!important;min-width:34px!important;}
 html body .topbar #mobileControls > #thFilm,html body .topbar #mobileControls > #tvBtn,html body .topbar #mobileControls > #thRad {flex:0 0 64px!important;min-width:64px!important;}
 html body .topbar #mobileControls > .settings-menu-wrap {flex:0 0 34px!important;width:34px!important;min-width:34px!important;margin:0!important;}
 html body .topbar #settingsBtn {width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;min-height:34px!important;max-height:34px!important;font-size:20px!important;}
 html body .movies-container {position:relative!important;flex:1 1 0!important;width:100%!important;height:0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;margin:0!important;padding:7px!important;box-sizing:border-box!important;scrollbar-width:auto!important;}
 html body .movies-container::-webkit-scrollbar {display:block!important;width:9px!important;}
 html body .movies-container::-webkit-scrollbar-thumb {background:#7785ab;border-radius:6px;}
 html body #movies[data-content-type] {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:auto!important;align-content:start!important;align-items:start!important;gap:7px!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;}
 html body #movies[data-content-type] > .movie {position:relative!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;box-sizing:border-box!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:5px!important;margin:0!important;overflow:hidden!important;transform:none!important;}
 html body #movies[data-content-type] > .movie > img {display:block!important;flex:none!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;max-width:none!important;aspect-ratio:2/3!important;object-fit:cover!important;box-sizing:border-box!important;margin:0!important;padding:0!important;}
 html body #movies[data-content-type="tv"] > .movie > img,html body #movies[data-content-type="radio"] > .movie > img {aspect-ratio:1/1!important;object-fit:contain!important;padding:28px 5px 5px!important;}
 html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {padding:28px 5px 30px!important;}
 html body #movies[data-content-type] > .movie > .movie-info {position:static!important;flex:none!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:5px 1px!important;box-sizing:border-box!important;}
 html body #movies .movie-info h3 {font-size:12px!important;line-height:1.25!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 html body #movies .movie-info p {font-size:10px!important;line-height:1.2!important;margin:2px 0 0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 html body #movies > .movie > .archive,html body #movies .movie > .card-info-button {width:23px!important;height:23px!important;min-width:0!important;min-height:0!important;font-size:14px!important;}
 html body #movies .movie > .card-info-button {top:calc(var(--poster-top,5px) + 4px)!important;bottom:auto!important;right:calc(var(--poster-right,5px) + 30px)!important;}
 html body #movies .movie > .channel-number {font-size:10px!important;padding:3px 5px!important;}
 html body #movies .card-epg {font-size:10px!important;padding:0!important;bottom:calc(var(--poster-bottom,5px) + 5px)!important;left:calc(var(--poster-left,5px) + 4px)!important;right:calc(var(--poster-right,5px) + 4px)!important;}
 html body #movies .card-epg-track {height:5px!important;}
 html body #movies .card-epg-line {margin-top:3px!important;}
 html body .pagination {position:relative!important;inset:auto!important;display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:5px 8px!important;box-sizing:border-box!important;}
 html body .pagination button {height:32px!important;min-height:32px!important;font-size:12px!important;padding:0 10px!important;margin:0!important;}
 html body .pagination #pageInfo {font-size:13px!important;white-space:nowrap!important;}
 html body .pagination .compact-scroll {display:flex!important;flex:0 0 auto!important;gap:4px;}
 html body .pagination .compact-scroll button {flex:none!important;width:36px!important;min-width:36px!important;}
 html body #cardArchive .archive-dialog {width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;}
 html body #cardArchive .archive-click-days {display:flex!important;align-items:center;gap:5px;padding:0 8px;min-width:0;}
 html body #cardArchive .archive-click-days > button {display:block!important;flex:0 0 42px;height:36px;font-size:25px;border-radius:12px;background:#405580;color:white;border:1px solid #819ac0;}
 html body #cardArchive .archive-days {flex:1 1 0!important;width:0!important;min-width:0!important;padding:4px!important;overflow-x:auto!important;justify-content:flex-start!important;}
 html body #cardArchive .archive-program-row {min-height:38px!important;padding:6px 9px!important;}
 html body #cardArchive .archive-program-time,html body #cardArchive .archive-program-name {font-size:13px!important;}
 html body #cardArchive .archive-head,html body #cardArchive .archive-foot {padding:5px 10px!important;}
 html body #cardArchive .archive-programs {scrollbar-width:auto!important;}
 html body #cardArchive .archive-programs::-webkit-scrollbar {width:9px!important;display:block!important;}
 html body #cardArchive .archive-programs::-webkit-scrollbar-thumb {background:#7785ab;border-radius:6px;}
}
@media screen and (orientation:landscape) and (max-height:650px) and (min-width:900px) and (max-width:1600px) {html body #movies[data-content-type] {grid-template-columns:repeat(6,minmax(0,1fr))!important;}}
@media screen and (orientation:landscape) and (max-height:650px) and (max-width:600px) {
 html body .topbar {flex-direction:column!important;align-items:stretch!important;}
 html body .topbar #mobileControls,html body .topbar #mobileControls.open {width:100%!important;flex:0 0 auto!important;}
 html body .topbar #mobileControls > #thFilm,html body .topbar #mobileControls > #tvBtn,html body .topbar #mobileControls > #thRad {flex-basis:49px!important;min-width:49px!important;font-size:10px!important;}
 html body #movies[data-content-type] {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
html body #tv-player-container.tv-player-container {width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;left:0!important;right:0!important;top:0!important;bottom:0!important;}
html body #tv-player-container #tv-player-frame {position:absolute!important;left:0!important;top:0!important;width:100%!important;height:100%!important;}

/* Carplay 24: red INFO badge, centered at the poster's top on compact screens. */
html body #movies .movie > .card-info-button {
 background:#ae1939!important;
 background:linear-gradient(180deg,#ff8491 0%,#ed3854 47%,#af1435 50%,#810e2c 100%)!important;
 border:1px solid #ffb6c4!important;
 color:#fff!important;
 font-family:Arial,sans-serif!important;
 font-weight:800!important;
 line-height:1!important;
 text-shadow:0 1px 2px #650c24!important;
 box-shadow:inset 0 1px 2px #ffffff99,0 0 6px #ef345777!important;
 outline:none!important;
}
html body #movies .movie > .card-info-button:focus,
html body #movies .movie > .card-info-button:hover {border-color:#fff!important;box-shadow:inset 0 1px 2px #fff9,0 0 8px #ff829e!important;}
html body #movies .movie > .card-info-button:active {background:#98132e!important;box-shadow:inset 0 2px 4px #57091e!important;}
@media screen and (max-width:900px), screen and (orientation:landscape) and (max-height:650px) and (max-width:1600px) {
 html body #movies[data-content-type="tv"] > .movie > .card-info-button {
  top:calc(var(--poster-top,7px) + 4px)!important;
  left:50%!important;right:auto!important;bottom:auto!important;
  transform:translateX(-50%)!important;
  width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;
  max-width:26px!important;max-height:26px!important;font-size:18px!important;
 }
 html body #movies[data-content-type="tv"] > .movie > img {padding-top:34px!important;}
}
@media screen and (orientation:landscape) and (max-height:650px) and (max-width:1600px) {
 html body #movies[data-content-type="tv"] > .movie > .card-info-button {width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;max-width:23px!important;max-height:23px!important;font-size:16px!important;}
 html body #movies[data-content-type="tv"] > .movie > img {padding-top:30px!important;}
}

/* Carplay 25: reserve the top badge strip inside phone TV posters,
   including channels with EPG (whose older selector is more specific). */
@media screen and (max-width:900px) and (orientation:portrait) {
 html body #movies[data-content-type="tv"] > .movie > img,
 html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {
  padding-top:42px!important;
  object-fit:contain!important;
  object-position:center center!important;
 }
}
@media screen and (max-width:900px) and (orientation:landscape) and (min-height:651px) {
 html body #movies[data-content-type="tv"] > .movie > img,
 html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {
  padding-top:42px!important;
  object-fit:contain!important;
  object-position:center center!important;
 }
}

/* Carplay 26: small top inset for INFO and channel number on compact screens. */
@media screen and (max-width:900px), screen and (orientation:landscape) and (max-height:650px) and (max-width:1600px) {
 html body #movies[data-content-type="tv"] > .movie > .card-info-button {top:calc(var(--poster-top,7px) + 9px)!important;}
 html body #movies[data-content-type="tv"] > .movie > .channel-number {top:calc(var(--poster-top,10px) + 11px)!important;}
}
/* Keep the extra inset clear of the logo in compact landscape. */
@media screen and (orientation:landscape) and (max-height:650px) and (max-width:1600px) {
 html body #movies[data-content-type="tv"] > .movie > img,
 html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {padding-top:35px!important;}
}

/* Carplay 27: one aligned TV badge row on every viewport. */
html body #movies[data-content-type="tv"] > .movie > .channel-number,
html body #movies[data-content-type="tv"] > .movie > .card-info-button,
html body #movies[data-content-type="tv"] > .movie > .archive {
 position:absolute!important;top:calc(var(--poster-top,10px) + 9px)!important;bottom:auto!important;
 width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;max-width:26px!important;max-height:26px!important;
 box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
 padding:0!important;margin:0!important;line-height:1!important;border-radius:50%!important;transform:none!important;font-size:14px!important;
}
html body #movies[data-content-type="tv"] > .movie > .channel-number {left:calc(var(--poster-left,10px) + 6px)!important;right:auto!important;font-size:10px!important;}
html body #movies[data-content-type="tv"] > .movie > .card-info-button {left:50%!important;right:auto!important;transform:translateX(-50%)!important;font-size:18px!important;}
html body #movies[data-content-type="tv"] > .movie > .archive {right:calc(var(--poster-right,10px) + 6px)!important;left:auto!important;}
html body #movies[data-content-type="tv"] > .movie > img,
html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {padding-top:42px!important;object-fit:contain!important;object-position:center center!important;}
@media screen and (min-width:901px) {
 html body #movies[data-content-type="tv"] > .movie > .channel-number,
html body #movies[data-content-type="tv"] > .movie > .card-info-button,
html body #movies[data-content-type="tv"] > .movie > .archive {top:calc(var(--poster-top,10px) + 9px)!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important;font-size:19px!important;}
 html body #movies[data-content-type="tv"] > .movie > .channel-number {font-size:14px!important;}
 html body #movies[data-content-type="tv"] > .movie > .card-info-button {font-size:23px!important;}
 html body #movies[data-content-type="tv"] > .movie > img,html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {padding-top:50px!important;}
}
@media screen and (min-width:1600px) {
 html body #movies[data-content-type="tv"] > .movie > .channel-number,
html body #movies[data-content-type="tv"] > .movie > .card-info-button,
html body #movies[data-content-type="tv"] > .movie > .archive {top:calc(var(--poster-top,10px) + 10px)!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;font-size:24px!important;}
 html body #movies[data-content-type="tv"] > .movie > .channel-number {font-size:17px!important;}
 html body #movies[data-content-type="tv"] > .movie > .card-info-button {font-size:30px!important;}
 html body #movies[data-content-type="tv"] > .movie > img,html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {padding-top:62px!important;}
}
@media screen and (min-width:3000px) {
 html body #movies[data-content-type="tv"] > .movie > .channel-number,
html body #movies[data-content-type="tv"] > .movie > .card-info-button,
html body #movies[data-content-type="tv"] > .movie > .archive {top:calc(var(--poster-top,10px) + 14px)!important;width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important;max-width:60px!important;max-height:60px!important;font-size:32px!important;}
 html body #movies[data-content-type="tv"] > .movie > .channel-number {font-size:23px!important;}
 html body #movies[data-content-type="tv"] > .movie > .card-info-button {font-size:40px!important;}
 html body #movies[data-content-type="tv"] > .movie > img,html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {padding-top:84px!important;}
}
@media screen and (orientation:landscape) and (max-height:650px) and (max-width:1600px) {
 html body #movies[data-content-type="tv"] > .movie > .channel-number,
html body #movies[data-content-type="tv"] > .movie > .card-info-button,
html body #movies[data-content-type="tv"] > .movie > .archive {top:calc(var(--poster-top,10px) + 9px)!important;width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;max-width:23px!important;max-height:23px!important;font-size:13px!important;}
 html body #movies[data-content-type="tv"] > .movie > .channel-number {font-size:9px!important;}
 html body #movies[data-content-type="tv"] > .movie > .card-info-button {font-size:16px!important;}
 html body #movies[data-content-type="tv"] > .movie > img,html body #movies[data-content-type="tv"] > .movie.has-card-epg > img {padding-top:38px!important;}
}

/* Foreground request lock: lightweight, no blur or layout changes. */
#carplay-busy{display:none!important;position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;z-index:2147483646!important;background:rgba(7,10,20,.52);align-items:center;justify-content:center;touch-action:none;cursor:wait;}
#carplay-busy.visible{display:flex!important;}
#carplay-busy .carplay-busy-panel{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px 28px;border:1px solid #a98cf5;border-radius:22px;background:#242039;color:white;font:bold 18px Arial,sans-serif;box-shadow:0 0 18px #9069df66;}
#carplay-busy .carplay-busy-spinner{display:block;width:42px;height:42px;border:5px solid #514563;border-top-color:#d5baff;border-radius:50%;animation:carplayBusySpin .8s linear infinite;box-sizing:border-box;}
@keyframes carplayBusySpin{to{transform:rotate(360deg);}}
@media(min-width:1600px){#carplay-busy .carplay-busy-panel{font-size:28px;padding:30px 42px;}#carplay-busy .carplay-busy-spinner{width:64px;height:64px;border-width:7px;}}

/* Future programmes remain navigable, but cannot be played before broadcast. */
html body #cardArchive .archive-program-row[aria-disabled="true"]{opacity:.55!important;cursor:not-allowed;}
html body #cardArchive .archive-program-row[aria-disabled="true"].archive-remote-focus{opacity:1!important;}
/* Carplay 30: approved VIP movie details; player and grid controls untouched. */
html body:not(.light) {background:linear-gradient(145deg,#230914,#09070b 65%,#10070c)!important;}
html body:not(.light) .topbar {background:linear-gradient(180deg,#350c19,#16060c)!important;}
/* Match the catalogue header palette; leave light mode and player overlays unchanged. */
html body:not(.light) > .pagination {background:#16060c!important;background:linear-gradient(0deg,#350c19,#16060c)!important;}
/* Carplay 35: single film-details layout, isolated from player and TV archive. */
html body #movieModal.active.vip-details-view {display:flex!important;position:fixed!important;inset:0!important;align-items:center!important;justify-content:center!important;padding:0!important;}
html body #movieModal.vip-details-view .modal-window {position:relative!important;display:block!important;width:92vw!important;max-width:92vw!important;height:var(--vip-modal-height,84vh)!important;max-height:94vh!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important;border:1px solid #b77be7!important;border-radius:24px!important;background:linear-gradient(145deg,#211425,#0b0811)!important;box-shadow:0 0 18px #a143d877,inset 0 0 12px #b77be733!important;}
html body #movieModal .modal-content.vip-film-details.aktivstan {--vip-gap:14px;--vip-button:52px;--vip-font:19px;--vip-close:42px;position:absolute!important;top:0!important;left:0!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;background:transparent!important;color:#f5eff5!important;font:normal var(--vip-font)/1.35 Arial,sans-serif!important;}
html body #movieModal .vip-film-details .vip-poster {position:absolute!important;top:var(--vip-gap)!important;left:var(--vip-gap)!important;width:var(--vip-poster-width,28%)!important;height:var(--vip-poster-height,65%)!important;max-height:none!important;margin:0!important;overflow:visible!important;display:block!important;box-sizing:border-box!important;}
html body #movieModal .vip-film-details .vip-poster #modalPoster {position:static!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;object-fit:contain!important;object-position:center bottom!important;border-radius:16px!important;box-shadow:0 0 12px #ae67dcaa!important;-webkit-box-reflect:below 2px linear-gradient(transparent 94%,#ffffff38);}
html body #movieModal .vip-film-details .vip-film-info {position:absolute!important;top:var(--vip-gap)!important;left:calc(var(--vip-poster-width,28%) + 2 * var(--vip-gap))!important;right:var(--vip-gap)!important;bottom:calc(var(--vip-button) + 3 * var(--vip-gap))!important;display:flex!important;flex-direction:column!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;min-width:0!important;margin:0!important;padding:0!important;overflow:hidden!important;}
html body #movieModal .vip-film-details .vip-film-info #modalTitle {display:block!important;flex:0 0 auto!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0 0 8px!important;padding:0 var(--vip-close) 5px 0!important;font:bold 1.55em/1.15 Arial,sans-serif!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;text-overflow:clip!important;text-align:left!important;color:white!important;border:0!important;background:none!important;}
html body #movieModal .vip-film-details .vip-meta {display:flex!important;flex-wrap:wrap!important;flex:0 0 auto!important;align-items:center!important;margin:0 0 10px!important;padding:0!important;min-height:0!important;font:600 .85em/1.2 Arial,sans-serif!important;color:#f2e9f8!important;}
html body #movieModal .vip-film-details .vip-meta>span:not([hidden]) {display:inline-flex!important;align-items:center!important;padding: .32em .65em!important;margin:0 .35em .3em 0!important;border:1px solid #9773b2!important;border-radius:12px!important;background:linear-gradient(#51385f,#23182e)!important;box-shadow:inset 0 1px 2px #ffffff33!important;}
html body #movieModal .vip-film-details .vip-meta>span:nth-child(3){color:#ffd16c!important;}
html body #movieModal .vip-film-details .vip-meta>[hidden],html body #movieModal .vip-film-details [hidden]{display:none!important;}
html body #movieModal .vip-film-details .vip-description {display:block!important;flex:1 1 0px!important;height:0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;margin:0!important;padding:10px!important;box-sizing:border-box!important;font:normal 1em/1.38 Arial,sans-serif!important;white-space:pre-wrap!important;text-align:left!important;text-indent:0!important;word-wrap:break-word!important;overscroll-behavior:contain;}
html body #movieModal .vip-film-details #modalDescription {display:inline!important;margin:0!important;padding:0!important;font:inherit!important;white-space:inherit!important;text-indent:0!important;}
html body #movieModal .vip-film-details .vip-description::-webkit-scrollbar{width:7px;}
html body #movieModal .vip-film-details .vip-description::-webkit-scrollbar-thumb{background:#b94bea;border-radius:7px;}
html body #movieModal .vip-film-details #nextEmbedChoices {flex:0 0 auto!important;display:flex!important;flex-direction:column!important;width:100%!important;margin:8px 0 0!important;padding:0!important;max-height:48%!important;overflow:auto!important;}
html body #movieModal .vip-film-details #nextEmbedChoices[hidden]{display:none!important;}
html body #movieModal .vip-film-details .next-embed-select-row {display:flex!important;flex-wrap:nowrap!important;align-items:center!important;width:100%!important;gap:0!important;}
html body #movieModal .vip-film-details .next-embed-select-row>label {flex:1 1 0!important;min-width:0!important;margin:0 5px 0 0!important;padding:0!important;font-size:inherit!important;}
html body #movieModal .vip-film-details .next-embed-select-row>label:last-child{margin-right:0!important;}
html body #movieModal .vip-film-details .next-embed-status {font-size:.75em!important;line-height:1.2!important;margin:0!important;padding:0!important;max-height:2.4em;overflow:auto;}
html body #movieModal .vip-film-details .vip-footer {position:absolute!important;left:var(--vip-gap)!important;right:var(--vip-gap)!important;bottom:var(--vip-gap)!important;height:var(--vip-button)!important;display:flex!important;align-items:stretch!important;gap:0!important;}
html body #movieModal .vip-film-details .vip-footer .vip-action,html body #movieModal .vip-film-details .vip-film-info select {box-sizing:border-box!important;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important;padding:0 8px!important;border:1px solid #b58ad3!important;border-radius:20px!important;background:linear-gradient(#765092,#49305e 46%,#24152e 51%,#422354)!important;box-shadow:inset 0 1px 3px #fff8,0 0 8px #a74cf766!important;font:600 .87em/1.15 Arial,sans-serif!important;color:#fff!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;transform:none!important;cursor:pointer;}
html body #movieModal .vip-film-details .vip-footer .vip-action {flex:1 1 0!important;width:0!important;height:100%!important;margin:0 0 0 var(--vip-gap)!important;}
html body #movieModal .vip-film-details .vip-footer #arxivda {flex:0 0 auto!important;width:var(--vip-poster-width,28%)!important;margin-left:0!important;}
html body #movieModal .vip-film-details .vip-footer .prosmotr {flex:1.5 1 0!important;}
html body #movieModal .vip-film-details .vip-footer #leikda{color:#9ce4b7!important;}
html body #movieModal .vip-film-details .vip-footer #leiknet{color:#ee94a6!important;}
html body #movieModal .vip-film-details .vip-footer #arxivda[aria-pressed=true]{color:#f6a4bd!important;}
html body #movieModal .vip-film-details .vip-film-info select {display:block!important;width:100%!important;height:calc(var(--vip-button) * .76)!important;margin:0!important;background-color:#302331!important;}
html body #movieModal .vip-film-details select option{background:#302331;color:white;}
html body #movieModal .vip-film-details .vip-footer .vip-action:focus,html body #movieModal .vip-film-details .vip-film-info select:focus {background:linear-gradient(#ff53ba,#c90079 48%,#770044 51%,#a90066)!important;border-color:#fff!important;outline:2px solid #fff!important;outline-offset:-3px!important;box-shadow:0 0 13px #ff149d,inset 0 0 6px #fff7!important;}
html body #movieModal.vip-details-view .modal-window>.close-btn {position:absolute!important;top:8px!important;right:8px!important;left:auto!important;width:42px!important;height:42px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:24px!important;z-index:5!important;}
html body .vip-select-popup{z-index:2147483646!important;}
@media(min-width:1500px){html body #movieModal .modal-content.vip-film-details.aktivstan{--vip-close:70px;--vip-font:30px;}html body #movieModal.vip-details-view .modal-window>.close-btn{width:60px!important;height:60px!important;font-size:34px!important;}}
@media(min-width:3000px){html body #movieModal .modal-content.vip-film-details.aktivstan{--vip-close:100px;--vip-font:54px;}html body #movieModal.vip-details-view .modal-window>.close-btn{width:88px!important;height:88px!important;font-size:48px!important;}}
@media(orientation:landscape) and (max-height:650px) and (max-width:1600px){html body #movieModal.vip-details-view .modal-window{width:98vw!important;max-width:98vw!important;max-height:98vh!important;}html body #movieModal .modal-content.vip-film-details.aktivstan{--vip-font:15px;--vip-close:34px;}html body #movieModal .vip-film-details .vip-meta{margin-bottom:3px!important;}html body #movieModal .vip-film-details .vip-film-info #modalTitle{margin-bottom:3px!important;}html body #movieModal.vip-details-view .modal-window>.close-btn{width:30px!important;height:30px!important;font-size:18px!important;}}
@media(max-width:900px) and (orientation:portrait){
html body #movieModal.vip-details-view .modal-window{width:100vw!important;max-width:100vw!important;height:100vh!important;height:100dvh!important;max-height:none!important;border-radius:0!important;border:0!important;}
html body #movieModal .modal-content.vip-film-details.aktivstan{--vip-font:16px;--vip-close:34px;}
html body #movieModal .vip-film-details .vip-poster{left:0!important;top:0!important;width:100%!important;height:var(--vip-poster-height,30vh)!important;overflow:hidden!important;}
html body #movieModal .vip-film-details .vip-poster #modalPoster{object-fit:cover!important;object-position:center 30%!important;border-radius:0!important;-webkit-box-reflect:none!important;}
html body #movieModal .vip-film-details .vip-film-info{top:calc(var(--vip-poster-height,30vh) + var(--vip-gap))!important;left:var(--vip-gap)!important;right:var(--vip-gap)!important;bottom:calc(2 * var(--vip-button) + 3 * var(--vip-gap))!important;}
html body #movieModal .vip-film-details .vip-film-info #modalTitle{padding-right:0!important;font-size:1.35em!important;}
html body #movieModal .vip-film-details .vip-meta{margin-bottom:4px!important;}
html body #movieModal .vip-film-details .next-embed-select-row{flex-wrap:wrap!important;}
html body #movieModal .vip-film-details .next-embed-select-row>label{flex:1 1 40%!important;margin:2px!important;}
html body #movieModal .vip-film-details .vip-footer{height:calc(2 * var(--vip-button) + var(--vip-gap))!important;display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:1fr 1fr!important;gap:var(--vip-gap)!important;}
html body #movieModal .vip-film-details .vip-footer .vip-action,html body #movieModal .vip-film-details .vip-footer #arxivda{width:100%!important;height:100%!important;margin:0!important;font-size:14px!important;}
}
/* Keep native viewport edges and keyboard focus visible on older engines. */
html body #movieModal.active.vip-details-view {top:0!important;right:0!important;bottom:0!important;left:0!important;overflow:hidden!important;width:100%!important;height:100%!important;}
html body #movieModal .vip-film-details .vip-description:focus{outline:1px solid #c18be8!important;outline-offset:-1px!important;}
html body #movieModal .vip-film-details .vip-footer .vip-action[aria-disabled=true]{opacity:.6;}
@media(max-width:900px) and (orientation:portrait){html body #movieModal.vip-details-view .modal-window{width:100%!important;max-width:none!important;flex:0 0 100%!important;}}

/* Carplay 36: compact inner spacing for the movie synopsis only. */
@media(min-width:1500px){html body #movieModal .vip-film-details .vip-description{padding:12px!important;}}
@media(max-width:900px) and (orientation:portrait), (orientation:landscape) and (max-height:650px) and (max-width:1600px){html body #movieModal .vip-film-details .vip-description{padding:8px!important;}}

/* Carplay 37: full-width views badge on portrait phones only. */
@media (max-width:900px) and (orientation:portrait) {
 html body #movieModal .vip-film-details .vip-meta > span:nth-child(4):not([hidden]) {
  flex:0 0 100%!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:0 0 .3em!important;
  justify-content:center!important;
 }
}

/* Carplay 38: restore readable original title gradient, with solid fallback. */
html body #movieModal .vip-film-details .vip-film-info #modalTitle {
 color:#f5f8ff!important;
 -webkit-text-fill-color:#f5f8ff!important;
 font-weight:900!important;
 letter-spacing:-.035em!important;
 text-shadow:none!important;
 filter:drop-shadow(0 4px 16px rgba(92,153,255,.2))!important;
}
@supports ((-webkit-background-clip:text) or (background-clip:text)) {
 html body #movieModal .vip-film-details .vip-film-info #modalTitle {
  background:linear-gradient(100deg,#ffffff 0%,#bcecff 48%,#c8b6ff 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
 }
}

/* Carplay 39: rounded poster and cross-browser reflection, without layout changes. */
html body #movieModal .vip-film-details .vip-poster {
 --vip-reflection: var(--vip-gap, 12px);
 border-radius:16px!important;
 overflow:visible!important;
}
html body #movieModal .vip-film-details .vip-poster #modalPoster {
 border-radius:16px!important;
 -webkit-box-reflect:none!important;
}
html body #movieModal .vip-film-details .vip-poster .vip-poster-reflection {
 position:absolute!important;top:calc(100% + 2px)!important;left:0!important;
 width:100%!important;height:var(--vip-reflection)!important;
 overflow:hidden!important;pointer-events:none!important;opacity:.34!important;
 border-radius:16px 16px 0 0!important;
 -webkit-mask-image:linear-gradient(to bottom,#000,transparent)!important;
 mask-image:linear-gradient(to bottom,#000,transparent)!important;
}
html body #movieModal .vip-film-details .vip-poster .vip-poster-reflection img {
 position:absolute!important;left:0!important;top:0!important;display:block!important;
 width:100%!important;height:var(--vip-poster-height,65vh)!important;
 min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
 margin:0!important;padding:0!important;object-fit:contain!important;object-position:center bottom!important;
 transform:scaleY(-1)!important;border-radius:16px!important;box-shadow:none!important;
}
@media(max-width:900px) and (orientation:portrait) {
 html body #movieModal .vip-film-details .vip-poster {--vip-reflection:6px;}
 html body #movieModal .vip-film-details .vip-poster #modalPoster,
 html body #movieModal .vip-film-details .vip-poster .vip-poster-reflection img {
 object-fit:cover!important;object-position:center 30%!important;border-radius:16px!important;
 }
}

/* Carplay 40: inset movie-details close control on large screens only. */
@media screen and (min-width:1900px) {
 html body #movieModal.vip-details-view .modal-window>.close-btn {
  top:20px!important;right:20px!important;
  width:60px!important;height:60px!important;
  min-width:60px!important;max-width:60px!important;
  min-height:60px!important;max-height:60px!important;
  font-size:34px!important;
 }
 html body #movieModal .modal-content.vip-film-details.aktivstan {--vip-close:90px;}
}
@media screen and (min-width:3000px) {
 html body #movieModal.vip-details-view .modal-window>.close-btn {
  top:30px!important;right:30px!important;
  width:88px!important;height:88px!important;
  min-width:88px!important;max-width:88px!important;
  min-height:88px!important;max-height:88px!important;
  font-size:48px!important;
 }
 html body #movieModal .modal-content.vip-film-details.aktivstan {--vip-close:130px;}
}

/* Carplay 41: remote-safe selector buttons and rounded focus. */
html body #movieModal .vip-film-details .vip-film-info .vip-select-trigger {box-sizing:border-box!important;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important;padding:0 8px!important;border:1px solid #b58ad3!important;border-radius:20px!important;background:linear-gradient(#765092,#49305e 46%,#24152e 51%,#422354)!important;box-shadow:inset 0 1px 3px #fff8,0 0 8px #a74cf766!important;font:600 .87em/1.15 Arial,sans-serif!important;color:#fff!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;transform:none!important;cursor:pointer;}
html body #movieModal .vip-film-details .vip-film-info select.vip-select-data {display:none!important;}
html body #movieModal .vip-film-details .vip-film-info .vip-select-trigger {display:block!important;width:100%!important;height:calc(var(--vip-button) * .76)!important;margin:0!important;text-align:left!important;}
html body #movieModal .vip-film-details .vip-footer .vip-action:focus,html body #movieModal .vip-film-details .vip-film-info .vip-select-trigger:focus {outline:none!important;background:linear-gradient(#ff53ba,#c90079 48%,#770044 51%,#a90066)!important;border-color:#fff!important;box-shadow:0 0 13px #ff149d,inset 0 0 0 2px #fff,inset 0 0 6px #fff7!important;}
/* Rounded image clipping independent of reflection wrapper. */
html body #movieModal .vip-film-details .vip-poster #modalPoster {
 border-radius:16px!important;
 -webkit-clip-path:inset(0 round 16px);clip-path:inset(0 round 16px);
}
html body #movieModal .vip-film-details .vip-footer button:focus,
html body #movieModal .vip-film-details .vip-select-trigger:focus {outline:0!important;}

/* Carplay 42: round the actual painted poster, not its letterbox. */
html body #movies[data-content-type="film"] > .movie > img,
html body #movies[data-content-type="radio"] > .movie > img {
 border-radius:16px!important;
 overflow:hidden!important;
 -webkit-clip-path:inset(var(--poster-clip, 0px 0px 0px 0px) round 16px)!important;
 clip-path:inset(var(--poster-clip, 0px 0px 0px 0px) round 16px)!important;
}
html body #movieModal .vip-film-details .vip-poster #modalPoster {
 border-radius:16px!important;
 -webkit-clip-path:inset(var(--poster-clip, 0px 0px 0px 0px) round 16px)!important;
 clip-path:inset(var(--poster-clip, 0px 0px 0px 0px) round 16px)!important;
}

/* Carplay 44: movie-only custom selector popup, native controls never shown. */
html body #movieModal .vip-film-details #nextEmbedChoices select {display:none!important;visibility:hidden!important;pointer-events:none!important;}
html body #movieModal .vip-film-details #nextEmbedChoices .vip-select-trigger[hidden] {display:none!important;}
html body .carplay-select-menu.vip-select-popup {background:#211325!important;border:1px solid #b58ad3!important;border-radius:18px!important;box-shadow:0 0 16px #a74cf788!important;padding:8px!important;}
html body .carplay-select-menu.vip-select-popup button {background:linear-gradient(#765092,#49305e 46%,#24152e 51%,#422354)!important;border:1px solid #b58ad3!important;border-radius:14px!important;color:#fff!important;outline:0!important;white-space:normal!important;}
html body .carplay-select-menu.vip-select-popup button.option-focused {background:linear-gradient(#ff53ba,#c90079 48%,#770044 51%,#a90066)!important;border-color:white!important;box-shadow:inset 0 0 0 1px white,0 0 7px #ff149d!important;}

/* Carplay 45: explicit remote highlight scoped to movie details only. */
html body #movieModal.active .vip-film-details.aktivstan .vip-footer button.vip-remote-focused,
html body #movieModal.active .vip-film-details.aktivstan .vip-film-info .vip-select-trigger.vip-remote-focused,
html body #movieModal.active.vip-details-view .modal-window > .close-btn.vip-remote-focused {
 background:linear-gradient(#ff53ba,#c90079 48%,#770044 51%,#a90066)!important;
 border-color:#fff!important;
 outline:none!important;
 box-shadow:0 0 13px #ff149d,inset 0 0 0 2px #fff,inset 0 0 6px #fff7!important;
}

/* Carplay 46: keep the movie poster glow outside its clip-path.
   Reuse measured poster bounds and the existing TV glow; no new JS. */
html body #movies[data-content-type="film"] > .movie:hover::before,
html body #movies[data-content-type="film"] > .movie:focus::before,
html body #movies[data-content-type="film"] > .movie.remote-focused::before {
 content: "";
 position: absolute;
 top: var(--poster-top, 10px);
 right: var(--poster-right, 10px);
 bottom: var(--poster-bottom, 35px);
 left: var(--poster-left, 10px);
 border-radius: 16px;
 pointer-events: none;
 box-shadow: 0 0 18px rgba(177,139,255,1),
             0 0 45px 5px rgba(164,119,255,.88),
             0 0 90px 18px rgba(145,100,255,.65),
             0 0 125px 24px rgba(119,87,255,.40);
}

/* Account form integrated into existing header settings dropdown */
#carplayAccountPanel[hidden]{display:none!important}
#carplayAccountPanel{padding:8px 6px 12px}
#carplayInlineLogin label{display:block;color:inherit;font-size:13px;margin:9px 0 4px}
#carplayInlineLogin input{display:block;width:100%;box-sizing:border-box;border:1px solid #777;border-radius:7px;padding:10px;background:#15151a;color:#fff;font-size:16px}
#carplayLoginError{color:#ff9b9b;font-size:13px;margin-top:7px}
.carplay-auth-status{padding:8px;font-size:13px}
.light #carplayInlineLogin input{background:#fff;color:#222}

/* Restricted / guest content marker */
.movie { position: relative; }
.carplay-locked-mark { position:absolute; top:40%; left:50%; transform:translate(-50%,-50%); z-index:5; display:flex; align-items:center; justify-content:center; width:76px; height:76px; border-radius:50%; background:rgba(0,0,0,.72); color:#fff; font-size:46px; line-height:1; pointer-events:none; box-shadow:0 3px 18px rgba(0,0,0,.5); }
#radioStart[hidden], #radioStop[hidden] { display:none !important; }

/* v046: center guest lock in the poster area, overriding older card badge rules. */
html body #movies > .movie { position:relative !important; }
html body #movies > .movie > .carplay-locked-mark {
 position:absolute !important;
 top:40% !important; left:50% !important; right:auto !important; bottom:auto !important;
 transform:translate(-50%,-50%) !important;
 width:58px !important; height:58px !important;
 padding:0 !important; margin:0 !important;
 display:flex !important; align-items:center !important; justify-content:center !important;
 border-radius:50% !important; background:rgba(0,0,0,.72) !important;
 font-size:36px !important; line-height:1 !important;
 z-index:30 !important; pointer-events:none !important;
}

/* v076: Active radio poster uses the same violet focus glow as films. */
html body #movies[data-content-type="radio"] > .movie.radio-active > img,
html body #movies[data-content-type="radio"] > .movie.radio-active:focus > img {
 border-color:#c9baff !important;
 box-shadow:0 0 18px rgba(177,139,255,1),0 0 45px 5px rgba(164,119,255,.88),0 0 90px 18px rgba(145,100,255,.65) !important;
 filter:brightness(1.28) !important;
}

/* v077: Radio uses the same selected-poster effect as film, independent of modal focus. */
html body #movies[data-content-type="radio"] > .movie.radio-active::before,
html body #movies[data-content-type="radio"] > .movie.selected::before {
 content:"";position:absolute;top:var(--poster-top,10px);right:var(--poster-right,10px);
 bottom:var(--poster-bottom,35px);left:var(--poster-left,10px);border-radius:16px;
 pointer-events:none;box-shadow:0 0 18px rgba(177,139,255,1),0 0 45px 5px rgba(164,119,255,.88),0 0 90px 18px rgba(145,100,255,.65) !important;
}
html body #movies[data-content-type="radio"] > .movie.radio-active > img,
html body #movies[data-content-type="radio"] > .movie.selected > img {
 filter:brightness(1.28) !important;
 border-color:#c9baff !important;
 box-shadow:0 0 18px rgba(177,139,255,1),0 0 45px 5px rgba(164,119,255,.88),0 0 90px 18px rgba(145,100,255,.65) !important;
}
/* Explicit TV remote focus: not just mouse hover or :focus. */
html body #radioModal.active .radio-player-controls > button.radio-remote-focused,
html body #radioModal.active .radio-player-controls > button:focus,
html body #radioModal.active .radio-modal-window > .close-btn.radio-remote-focused,
html body #radioModal.active .radio-modal-window > .close-btn:focus {
 outline:3px solid #f1d4ff !important;outline-offset:3px !important;
 border-color:#fff !important;filter:brightness(1.22) !important;
 box-shadow:0 0 0 4px rgba(165,94,255,.65),0 0 28px rgba(175,98,255,.95),inset 0 0 7px rgba(255,255,255,.5) !important;
}

/* v078: persistent radio selection, visible even when focus moves to the modal.
   The poster is clipped and its parent hides overflow, so outside box-shadows
   alone cannot produce a visible selection. Use an inset ring and inner glow. */
html body #movies[data-content-type="radio"] > .movie.radio-active,
html body #movies[data-content-type="radio"] > .movie[aria-selected="true"] {
  border:3px solid #d7adff !important;
  background:rgba(113,53,182,.28) !important;
  box-shadow:inset 0 0 0 3px rgba(211,160,255,.90),
             inset 0 0 25px rgba(160,83,255,.85),
             0 0 20px rgba(160,83,255,.85) !important;
}
html body #movies[data-content-type="radio"] > .movie.radio-active > img,
html body #movies[data-content-type="radio"] > .movie[aria-selected="true"] > img {
  filter:brightness(1.32) saturate(1.18) !important;
  outline:4px solid #c997ff !important;
  outline-offset:-4px !important;
  box-shadow:inset 0 0 20px rgba(174,103,255,.9),
             0 0 20px rgba(174,103,255,.9) !important;
}
html body #movies[data-content-type="radio"] > .movie.radio-active::after,
html body #movies[data-content-type="radio"] > .movie[aria-selected="true"]::after {
  content:"" !important;
  position:absolute !important;
  top:var(--poster-top,10px) !important;
  right:var(--poster-right,10px) !important;
  bottom:var(--poster-bottom,35px) !important;
  left:var(--poster-left,10px) !important;
  border:4px solid rgba(206,158,255,.95) !important;
  border-radius:16px !important;
  box-shadow:inset 0 0 24px rgba(155,71,255,.8) !important;
  pointer-events:none !important;
  z-index:2 !important;
}

/* v079: Samsung radio remote focus: no native yellow square, violet glow. */
html body #radioModal.active #radioStart,
html body #radioModal.active #radioStop {
  outline:none !important; outline-width:0 !important; -webkit-tap-highlight-color:transparent !important;
}
html body #radioModal.active #radioStart:focus,
html body #radioModal.active #radioStop:focus,
html body #radioModal.active #radioStart.radio-remote-focused,
html body #radioModal.active #radioStop.radio-remote-focused {
  outline:none !important; outline-offset:0 !important;
  border:2px solid #c6a3ff !important;
  box-shadow:0 0 12px 3px rgba(175,112,255,.75),
             0 0 30px 8px rgba(136,65,235,.65),
             inset 0 0 14px rgba(216,180,255,.3) !important;
  filter:brightness(1.14) !important;
}
/* Restore animated visualizer on desktop and mobile during playback. */
@media screen and (max-width:1599px) {
  #radioModal.is-playing .radio-equalizer i {
    animation:radio-eq-clean 520ms ease-in-out infinite alternate !important;
    animation-delay:calc(var(--bar) * -23ms) !important;
    opacity:1 !important;
  }
}

/* v080: Radio selection uses the SAME poster glow geometry as films (v046).
   Keep it while the modal has remote focus; do not add a different outer card frame. */
html body #movies[data-content-type="radio"] > .movie.radio-active,
html body #movies[data-content-type="radio"] > .movie[aria-selected="true"] {
    border-color:transparent !important;
    background:transparent !important;
    box-shadow:0 5px 16px rgba(0,0,0,.22) !important;
}
html body #movies[data-content-type="radio"] > .movie.radio-active::before,
html body #movies[data-content-type="radio"] > .movie[aria-selected="true"]::before {
    content:"" !important;
    position:absolute !important;
    top:var(--poster-top,10px) !important;
    right:var(--poster-right,10px) !important;
    bottom:var(--poster-bottom,35px) !important;
    left:var(--poster-left,10px) !important;
    border-radius:16px !important;
    pointer-events:none !important;
    box-shadow:0 0 18px rgba(177,139,255,1),
               0 0 45px 5px rgba(164,119,255,.88),
               0 0 90px 18px rgba(145,100,255,.65),
               0 0 125px 24px rgba(119,87,255,.40) !important;
}
html body #movies[data-content-type="radio"] > .movie.radio-active::after,
html body #movies[data-content-type="radio"] > .movie[aria-selected="true"]::after {
    content:none !important;
    display:none !important;
}
html body #movies[data-content-type="radio"] > .movie.radio-active > img,
html body #movies[data-content-type="radio"] > .movie[aria-selected="true"] > img {
    outline:none !important;
    border-color:#c9baff !important;
    box-shadow:0 0 18px rgba(177,139,255,1),
               0 0 45px 5px rgba(164,119,255,.88),
               0 0 90px 18px rgba(145,100,255,.65),
               0 0 125px 24px rgba(119,87,255,.40) !important;
    filter:brightness(1.28) !important;
}
/* JavaScript controls the bars at a low fixed rate, avoiding broken CSS var animation. */
html body #radioModal .radio-equalizer i,
html body #radioModal.is-playing .radio-equalizer i {
    animation:none !important;
    transition:transform 115ms linear, opacity 115ms linear !important;
}

/* v081: Radio poster selection uses the exact film focus glow for the currently
   selected radio, including when the remote moves focus without clicking. */
html body #movies[data-content-type="radio"] > .movie.radio-active::before {
 content:"" !important; position:absolute !important;
 top:var(--poster-top,10px) !important; right:var(--poster-right,10px) !important;
 bottom:var(--poster-bottom,35px) !important; left:var(--poster-left,10px) !important;
 border-radius:16px !important; pointer-events:none !important;
 box-shadow:0 0 18px rgba(177,139,255,1),0 0 45px 5px rgba(164,119,255,.88),
 0 0 90px 18px rgba(145,100,255,.65),0 0 125px 24px rgba(119,87,255,.40) !important;
}

/* v082: Visualizer bars follow the full circumference, not the small inner ring.
   JavaScript measures the actual responsive circle, including Tizen and mobile. */
html body #radioModal .radio-equalizer { overflow: visible !important; }
html body #radioModal .radio-equalizer i {
  height: 24px !important; margin-top: -12px !important;
  transform-origin: 50% 50% !important;
}
@media screen and (max-width:600px) {
  html body #radioModal .radio-equalizer i {height:18px !important;margin-top:-9px !important;}
}

/* v083: Bars originate at the circle centre and reach its rim on all screens.
   Height is calculated from the actual rendered diameter in funktion.js. */
html body #radioModal .radio-equalizer i {
  top:50% !important; left:50% !important;
  transform-origin:50% 100% !important;
  border-radius:4px 4px 1px 1px !important;
}

/* v084: Center the entire radio visualizer independently of the parent layout.
   Older Tizen engines may position a fixed-width flex child off-centre. */
html body #radioModal #radioVisualizer.radio-equalizer {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    -webkit-transform: none !important;
    transform: none !important;
}

/* v085 — Radio modal: responsive by viewport WIDTH AND HEIGHT.
   Keep controls inside the window and reachable on Tizen, carplay and mobile.
   Do not change equalizer animation, focus behavior or playback logic. */
html body #radioModal.radio-modal {
    box-sizing:border-box !important;
    height:100vh !important;
    max-height:100vh !important;
    padding:12px !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    align-items:safe center !important;
}
html body #radioModal .radio-modal-window {
    box-sizing:border-box !important;
    flex:0 1 auto !important;
    width:92vw !important;
    min-width:0 !important;
    max-width:980px !important;
    height:auto !important;
    min-height:0 !important;
    max-height:calc(100vh - 24px) !important;
    padding:62px 24px 24px !important;
    margin:auto !important;
    gap:12px !important;
    justify-content:flex-start !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
}
html body #radioModal .radio-player-art {
    flex:0 0 150px !important;
    width:150px !important;height:150px !important;
}
html body #radioModal #radioModalTitle {
    font-size:26px !important;
    line-height:1.18 !important;
    overflow-wrap:break-word !important;
    max-width:100% !important;
}
html body #radioModal .radio-equalizer {
    flex:0 0 auto !important;
    width:148px !important;height:148px !important;
    min-width:148px !important;min-height:148px !important;
    max-width:148px !important;max-height:148px !important;
}
html body #radioModal .radio-player-controls {
    display:flex !important;flex-direction:row !important;
    flex-wrap:nowrap !important;justify-content:center !important;
    flex:0 0 auto !important;
    width:100% !important;max-width:100% !important;
    gap:16px !important;
    margin:8px auto 0 !important;
    padding:0 0 4px !important;
    box-sizing:border-box !important;
}
html body #radioModal .radio-player-controls > #radioStart,
html body #radioModal .radio-player-controls > #radioStop {
    box-sizing:border-box !important;
    flex:1 1 0 !important;
    width:auto !important;
    min-width:0 !important;
    max-width:260px !important;
    min-height:58px !important;
    height:auto !important;
    margin:0 !important;
    padding:10px 12px !important;
    font-size:20px !important;
    white-space:nowrap !important;
}
@media screen and (min-width:1600px) and (min-height:850px) {
    html body #radioModal .radio-modal-window {
        width:82vw !important;max-width:1500px !important;
        max-height:calc(100vh - 32px) !important;
        padding:72px 44px 30px !important;gap:18px !important;
    }
    html body #radioModal .radio-player-art {width:200px !important;height:200px !important;flex-basis:200px !important;}
    html body #radioModal .radio-equalizer {width:190px !important;height:190px !important;min-width:190px !important;min-height:190px !important;max-width:190px !important;max-height:190px !important;}
    html body #radioModal #radioModalTitle {font-size:34px !important;}
    html body #radioModal .radio-player-controls > #radioStart,
    html body #radioModal .radio-player-controls > #radioStop {max-width:330px !important;min-height:76px !important;font-size:25px !important;}
}
@media screen and (max-height:760px) {
    html body #radioModal.radio-modal {padding:6px !important;}
    html body #radioModal .radio-modal-window {
        max-height:calc(100vh - 12px) !important;
        padding:48px 18px 14px !important;gap:7px !important;
    }
    html body #radioModal .radio-player-art {width:105px !important;height:105px !important;flex-basis:105px !important;}
    html body #radioModal .radio-equalizer {width:108px !important;height:108px !important;min-width:108px !important;min-height:108px !important;max-width:108px !important;max-height:108px !important;}
    html body #radioModal #radioModalTitle {font-size:21px !important;}
    html body #radioModal .radio-player-controls {margin-top:4px !important;gap:10px !important;}
    html body #radioModal .radio-player-controls > #radioStart,
    html body #radioModal .radio-player-controls > #radioStop {min-height:48px !important;font-size:17px !important;}
}
@media screen and (max-height:480px) {
    html body #radioModal .radio-modal-window {padding-top:40px !important;gap:4px !important;}
    html body #radioModal .radio-player-art {width:64px !important;height:64px !important;flex-basis:64px !important;}
    html body #radioModal .radio-equalizer {width:66px !important;height:66px !important;min-width:66px !important;min-height:66px !important;max-width:66px !important;max-height:66px !important;}
    html body #radioModal #radioModalTitle {font-size:17px !important;}
    html body #radioModal .radio-player-controls > #radioStart,
    html body #radioModal .radio-player-controls > #radioStop {min-height:42px !important;font-size:15px !important;}
}
@media screen and (max-width:600px) {
    html body #radioModal.radio-modal {padding:6px !important;}
    html body #radioModal .radio-modal-window {
        width:calc(100vw - 12px) !important;max-width:calc(100vw - 12px) !important;
        max-height:calc(100vh - 12px) !important;
        padding:50px 12px 14px !important;gap:8px !important;
        border-radius:20px !important;
    }
    html body #radioModal .radio-player-art {width:110px !important;height:110px !important;flex-basis:110px !important;}
    html body #radioModal .radio-equalizer {width:108px !important;height:108px !important;min-width:108px !important;min-height:108px !important;max-width:108px !important;max-height:108px !important;}
    html body #radioModal #radioModalTitle {font-size:20px !important;}
    html body #radioModal .radio-player-controls {gap:8px !important;}
    html body #radioModal .radio-player-controls > #radioStart,
    html body #radioModal .radio-player-controls > #radioStop {max-width:none !important;min-height:46px !important;font-size:15px !important;padding:8px 4px !important;}
    html body #radioModal .radio-modal-window > .close-btn {top:7px !important;right:8px !important;width:40px !important;height:40px !important;min-width:40px !important;}
}

/* v058: Keep translated loading text inside the busy panel on all screens. */
#carplay-busy .carplay-busy-panel{box-sizing:border-box;max-width:calc(100vw - 32px);min-width:0;text-align:center;overflow-wrap:break-word;word-break:normal;}
#carplay-busy .carplay-busy-panel > span:last-child{display:block;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.35;}
@media(max-width:480px){#carplay-busy .carplay-busy-panel{padding:16px 18px;font-size:16px;}}

/* v059: equipment options float over the settings panel and adjacent controls. */
html body #settingsDeviceOptions.carplay-picker-options:not([hidden]) {
  position:fixed !important; z-index:2147483000 !important; box-sizing:border-box !important;
  overflow-y:auto !important; overflow-x:hidden !important;
  padding:7px !important; border:1px solid rgba(178,151,246,.75) !important;
  border-radius:15px !important; background:#29213f !important;
  box-shadow:0 15px 35px rgba(0,0,0,.65) !important;
}
html body #settingsDeviceOptions.carplay-picker-options[hidden] {display:none !important;}
/* v060: Day/night has the same button design as Language in Settings. */
html body .topbar .settings-menu #themeBtn {
  display:block !important;
  box-sizing:border-box !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:3px 0 !important;
  padding:11px 10px !important;
  border:0 !important;
  border-radius:9px !important;
  background:#29232f !important;
  color:#fff !important;
  font-family:inherit !important;
  font-size:14px !important;
  font-weight:600 !important;
  line-height:normal !important;
  letter-spacing:normal !important;
  text-transform:none !important;
  text-align:left !important;
  justify-content:initial !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}
html body .topbar .settings-menu #themeBtn:hover {background:#05DCF0 !important;color:#111 !important;}
html body.light .topbar .settings-menu #themeBtn {background:#f0f2f7 !important;color:#222 !important;}
html body.light .topbar .settings-menu #themeBtn:hover {background:#05DCF0 !important;color:#111 !important;}
@media(min-width:1900px) {
  html body .topbar .settings-menu #themeBtn {font-size:23px !important;min-height:65px !important;}
}
@media(min-width:1900px) and (min-height:1000px) {
  html body .topbar .settings-menu #themeBtn {font-size:27px !important;min-height:80px !important;}
}

/* v061: Restore language dialog styling lost in v058; retain v060 settings. */
/* Central country picker, independent of settings menu clipping. */
.carplay-country-overlay[hidden]{display:none!important}
.carplay-country-overlay{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(8,5,20,.78)!important;padding:18px!important;box-sizing:border-box!important}
.carplay-country-window{position:relative;width:min(540px,94vw);max-height:85vh;overflow:auto;border:2px solid #8c70cb;border-radius:22px;background:#201a35;color:#fff;padding:26px;box-shadow:0 15px 65px #000a}
.carplay-country-heading{font-size:clamp(20px,2vw,29px);font-weight:700;margin-bottom:20px;text-align:center}
.carplay-country-close{position:absolute;right:12px;top:10px;min-width:38px!important;width:38px!important;height:38px!important}
.carplay-country-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.carplay-country-choice{min-height:60px!important;width:100%!important;padding:12px!important;font-size:clamp(16px,1.6vw,23px)!important;border-radius:13px!important;background:#453468!important;color:#fff!important;border:1px solid #7359a4!important}
.carplay-country-choice.is-selected,.carplay-country-choice:focus{outline:3px solid #d1b6ff!important;background:#7252a4!important}
@media(max-width:550px){.carplay-country-options{grid-template-columns:1fr}.carplay-country-window{padding:20px}}

/* Country picker: circular flag icons, no system emoji font dependency. */
.carplay-country-choice{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important}
.carplay-country-flag{display:block!important;flex:none!important;width:38px!important;height:38px!important;border-radius:50%!important;object-fit:cover!important;border:2px solid rgba(255,255,255,.65)!important;box-shadow:0 2px 8px rgba(0,0,0,.4)!important}
@media(min-width:1900px){.carplay-country-flag{width:48px!important;height:48px!important}}

/* v32: country dialog layout and consistent focus, all screen sizes */
.carplay-country-window{width:min(680px,94vw)!important;max-height:min(85vh,780px)!important;padding:48px 32px 30px!important;box-sizing:border-box!important}
.carplay-country-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.carplay-country-choice{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:16px!important;min-height:78px!important;padding:14px 18px!important;text-align:left!important;box-sizing:border-box!important}
.carplay-country-flag{width:46px!important;height:46px!important;min-width:46px!important;flex:0 0 46px!important;margin:0!important}
.carplay-country-choice:focus-visible{outline:3px solid #d1b6ff!important;outline-offset:2px!important}
.carplay-country-close.close-btn{position:absolute!important;right:14px!important;top:12px!important;z-index:2!important;min-width:42px!important;width:42px!important;height:42px!important;padding:0!important}
@media(min-width:1900px){.carplay-country-window{width:min(840px,88vw)!important;padding:64px 46px 42px!important}.carplay-country-choice{min-height:100px!important;font-size:27px!important}.carplay-country-flag{width:60px!important;height:60px!important;min-width:60px!important;flex-basis:60px!important}}
@media(max-width:600px){.carplay-country-window{width:96vw!important;padding:55px 16px 20px!important}.carplay-country-options{grid-template-columns:1fr!important;gap:10px!important}.carplay-country-choice{min-height:60px!important;padding:9px 14px!important}.carplay-country-flag{width:38px!important;height:38px!important;min-width:38px!important;flex-basis:38px!important}}

/* v35: country dialog close control, top-right like other modals.
   Override broad .topbar .settings-menu button rules that stretched it. */
html body .topbar .settings-menu #carplayCountryClose.carplay-country-close.close-btn {
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  bottom:auto!important;
  left:auto!important;
  float:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  margin:0!important;
  padding:0!important;
  border-radius:50%!important;
  text-align:center!important;
  font-size:26px!important;
  line-height:1!important;
  z-index:5!important;
}
@media (min-width:1900px) {
  html body .topbar .settings-menu #carplayCountryClose.carplay-country-close.close-btn {
    width:54px!important;min-width:54px!important;max-width:54px!important;
    height:54px!important;min-height:54px!important;max-height:54px!important;
    font-size:30px!important;
  }
}

/* v43: fullscreen centered country dialog on desktop and TV.
   Direct body child: avoid dropdown and topbar positioning rules. */
html body > #carplayLanguagePanel.carplay-country-overlay {
  position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  margin:0!important;padding:24px!important;box-sizing:border-box!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:rgba(4,3,12,.88)!important;z-index:2147483000!important;
  visibility:visible!important;opacity:1!important;transform:none!important;
}
html body > #carplayLanguagePanel[hidden] {display:none!important;}
html body > #carplayLanguagePanel .carplay-country-window {
  position:relative!important;display:block!important;flex:none!important;
  width:700px!important;max-width:calc(100vw - 48px)!important;
  max-height:calc(100vh - 48px)!important;overflow:auto!important;
  margin:auto!important;padding:62px 36px 36px!important;
  background:#211936!important;border:2px solid #8d6cce!important;
  border-radius:24px!important;box-shadow:0 24px 90px rgba(0,0,0,.85)!important;
  transform:none!important;
}
html body > #carplayLanguagePanel .carplay-country-choice {
  outline:0!important;outline-offset:0!important;
  border:2px solid #7b60b7!important;border-radius:16px!important;
  background:#493578!important;color:#fff!important;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.12)!important;
}
html body > #carplayLanguagePanel .carplay-country-choice:focus,
html body > #carplayLanguagePanel .carplay-country-choice.is-selected {
  outline:0!important;border-color:#b8a3ff!important;
  background:#6950ab!important;box-shadow:0 0 0 2px rgba(133,105,255,.6),0 0 20px rgba(129,102,255,.55)!important;
}
html body > #carplayLanguagePanel #carplayCountryClose.carplay-country-close {
  position:absolute!important;right:16px!important;left:auto!important;top:14px!important;
  width:48px!important;min-width:48px!important;max-width:48px!important;
  height:48px!important;min-height:48px!important;max-height:48px!important;
  padding:0!important;margin:0!important;border-radius:50%!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  z-index:10!important;
}
@media screen and (min-width:1900px) {
 html body > #carplayLanguagePanel .carplay-country-window {width:980px!important;padding:82px 55px 55px!important;}
 html body > #carplayLanguagePanel .carplay-country-choice {min-height:118px!important;font-size:30px!important;}
 html body > #carplayLanguagePanel .carplay-country-flag {width:66px!important;height:66px!important;min-width:66px!important;flex-basis:66px!important;}
 html body > #carplayLanguagePanel .carplay-country-heading {font-size:36px!important;}
}
@media screen and (max-width:600px) {
 html body > #carplayLanguagePanel .carplay-country-window {width:100%!important;padding:62px 16px 22px!important;}
}


/* v062: Theme uses the exact settings-row visual treatment; no bottom glow. */
html body .topbar .settings-menu #themeBtn,
html body.light .topbar .settings-menu #themeBtn {
  display:block !important;
  width:100% !important;
  box-sizing:border-box !important;
  margin:3px 0 !important;
  padding:11px 10px !important;
  border:0 !important;
  border-radius:9px !important;
  background-image:none !important;
  box-shadow:none !important;
  text-shadow:none !important;
  outline:none !important;
  text-align:left !important;
  font-family:inherit !important;
  font-weight:600 !important;
  letter-spacing:normal !important;
  transform:none !important;
  filter:none !important;
}
html body .topbar .settings-menu #themeBtn {background:#29232f !important;color:#fff !important;}
html body.light .topbar .settings-menu #themeBtn {background:#f0f2f7 !important;color:#222 !important;}
html body .topbar .settings-menu #themeBtn:hover,
html body.light .topbar .settings-menu #themeBtn:hover {background:#05DCF0 !important;color:#111 !important;}
html body .topbar .settings-menu #themeBtn:focus,
html body .topbar .settings-menu #themeBtn:focus-visible,
html body .topbar .settings-menu #themeBtn.remote-focused {
  outline:none !important;
  box-shadow:0 0 0 2px rgba(164,185,233,.75) !important;
}

/* v063: equal outer widths for direct Settings buttons, including theme. */
html body .topbar .settings-menu .settings-menu-section > button:not(.carplay-country-close) {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

/* v064: The theme is a normal settings-menu button, not a header toggle.
   Match adjacent Language/Quality/About buttons in all states, including TV focus. */
html body .topbar .settings-menu .settings-menu-section > #themeBtn {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  box-sizing:border-box !important;
  margin:3px 0 !important;
  padding:11px 10px !important;
  border:0 !important;
  border-radius:9px !important;
  font-family:inherit !important;
  font-size:14px !important;
  font-weight:600 !important;
  line-height:normal !important;
  text-align:left !important;
  background:#29232f !important;
  background-image:none !important;
  color:#fff !important;
  box-shadow:none !important;
  outline:none !important;
  transform:none !important;
  filter:none !important;
}
html body.light .topbar .settings-menu .settings-menu-section > #themeBtn {background:#f0f2f7 !important;color:#222 !important;}
html body .topbar .settings-menu .settings-menu-section > #themeBtn:hover {background:#05DCF0 !important;color:#111 !important;}
html body .topbar .settings-menu .settings-menu-section > #themeBtn:focus,
html body .topbar .settings-menu .settings-menu-section > #themeBtn:focus-visible,
html body .topbar .settings-menu .settings-menu-section > #themeBtn.remote-focused {
  background:#53658f !important;
  background-image:linear-gradient(145deg,#62749e,#43547f) !important;
  color:#fff !important;
  border-color:#a4b9e9 !important;
  box-shadow:0 0 0 1px rgba(164,185,233,.65),0 0 12px rgba(160,190,255,.78),0 0 28px rgba(126,153,222,.62),0 0 46px rgba(126,153,222,.32) !important;
}
@media (min-width:1900px) {
  html body .topbar .settings-menu .settings-menu-section > #themeBtn {font-size:27px !important;min-height:80px !important;}
}


/* v065: TV account form readability; scoped to settings login only. */
#settingsMenu #carplayInlineLogin input {
  min-height:48px;
  padding:12px 14px;
  font-size:18px;
  line-height:1.35;
  box-sizing:border-box;
}
#settingsMenu #carplayInlineLogin input:focus,
#settingsMenu #carplayInlineLogin input.remote-focused {
  outline:none !important;
  border-color:#a4b9e9 !important;
  box-shadow:0 0 0 2px rgba(164,185,233,.65),0 0 15px rgba(160,190,255,.65) !important;
}
@media screen and (min-width:1600px) {
  #settingsMenu #carplayInlineLogin label {font-size:24px !important;margin:16px 0 8px !important;}
  #settingsMenu #carplayInlineLogin input {min-height:76px !important;padding:17px 20px !important;font-size:29px !important;border-radius:11px !important;}
  #settingsMenu #carplayLoginError {font-size:22px !important;}
}
/* v065: identical TV focus to the other settings-menu buttons. The previous
   #themeBtn-only declarations were overridden by more specific theme rules. */
html body .topbar #settingsMenu .settings-menu-section > #themeBtn:focus,
html body .topbar #settingsMenu .settings-menu-section > #themeBtn:focus-visible,
html body .topbar #settingsMenu .settings-menu-section > #themeBtn.remote-focused {
  background:#53658f !important;
  background-image:linear-gradient(145deg,#62749e,#43547f) !important;
  color:#fff !important;
  border-color:#a4b9e9 !important;
  outline:none !important;
  box-shadow:0 0 0 1px rgba(164,185,233,.65),
             0 0 12px rgba(160,190,255,.78),
             0 0 28px rgba(126,153,222,.62),
             0 0 46px rgba(126,153,222,.32),
             inset 0 1px 2px rgba(255,255,255,.12) !important;
  opacity:1 !important;
}

/* v066: TV remote selection must use the same focus state as adjacent
   Settings controls, in BOTH themes. Keep selector specificity above the
   legacy #themeBtn and body.light overrides. */
html body .topbar #settingsMenu .settings-menu-section > button#themeBtn.remote-focused,
html body .topbar #settingsMenu .settings-menu-section > button#themeBtn:focus,
html body .topbar #settingsMenu .settings-menu-section > button#themeBtn:focus-visible,
html body.light .topbar #settingsMenu .settings-menu-section > button#themeBtn.remote-focused,
html body.light .topbar #settingsMenu .settings-menu-section > button#themeBtn:focus,
html body.light .topbar #settingsMenu .settings-menu-section > button#themeBtn:focus-visible {
  background: #53658f !important;
  background-image: linear-gradient(145deg,#62749e,#43547f) !important;
  color: #fff !important;
  border-color: #a4b9e9 !important;
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(164,185,233,.65),
              0 0 12px rgba(160,190,255,.78),
              0 0 28px rgba(126,153,222,.62),
              0 0 46px rgba(126,153,222,.32),
              inset 0 1px 2px rgba(255,255,255,.12) !important;
  opacity: 1 !important;
  filter: none !important;
}

/* v068: Samsung Tizen 1900+ — settings theme focus must retain the
   same visible highlight as the adjacent settings actions. */
@media screen and (min-width:1900px) {
  html body .topbar #settingsMenu.settings-menu .settings-menu-section > button#themeBtn:is(:focus, :focus-visible, :active, .remote-focused),
  html body.light .topbar #settingsMenu.settings-menu .settings-menu-section > button#themeBtn:is(:focus, :focus-visible, :active, .remote-focused) {
    background:linear-gradient(145deg,#62749e,#43547f) !important;
    color:#fff !important;
    border:1px solid #a4b9e9 !important;
    outline:none !important;
    box-shadow:0 0 0 1px rgba(164,185,233,.65),0 0 12px rgba(160,190,255,.78),0 0 28px rgba(126,153,222,.62),0 0 46px rgba(126,153,222,.32),inset 0 1px 2px rgba(255,255,255,.12) !important;
    opacity:1 !important;
    filter:none !important;
  }
}

/* v069: Samsung TV 1900+ — the theme button is INSIDE settings, not a topbar
   category button. Override legacy global 1900px #themeBtn dimensions, and
   use simple :focus / .remote-focused selectors supported by older Tizen. */
@media screen and (min-width:1900px) {
  html body .topbar #settingsMenu.settings-menu .settings-menu-section > button#themeBtn {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    min-height:80px !important;
    margin:3px 0 !important;
    padding:11px 10px !important;
    border-radius:9px !important;
    box-sizing:border-box !important;
  }
  html body .topbar #settingsMenu.settings-menu .settings-menu-section > button#themeBtn:focus,
  html body .topbar #settingsMenu.settings-menu .settings-menu-section > button#themeBtn:focus-visible,
  html body .topbar #settingsMenu.settings-menu .settings-menu-section > button#themeBtn.remote-focused,
  html body.light .topbar #settingsMenu.settings-menu .settings-menu-section > button#themeBtn:focus,
  html body.light .topbar #settingsMenu.settings-menu .settings-menu-section > button#themeBtn.remote-focused {
    background:#53658f !important;
    background-image:linear-gradient(145deg,#62749e,#43547f) !important;
    color:#fff !important;
    border:1px solid #a4b9e9 !important;
    outline:none !important;
    box-shadow:0 0 0 1px rgba(164,185,233,.65),0 0 12px rgba(160,190,255,.78),0 0 28px rgba(126,153,222,.62) !important;
  }
}

/* v070: Theme is an ordinary Settings action. The old #themeBtn id was
   also styled as a TOP BAR navigation button in many 1900px rules.
   The new id intentionally inherits the same .settings-menu button styling
   and .remote-focused styling as Language / Quality / About. */

/* Keep actual space between country buttons, including Samsung TV. */
html body #carplayLanguagePanel .carplay-country-options {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  column-gap:20px !important;
  row-gap:20px !important;
  padding:6px !important;
  box-sizing:border-box !important;
}
html body #carplayLanguagePanel .carplay-country-options > .carplay-country-choice {
  box-sizing:border-box !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
}
@media screen and (max-width:600px) {
  html body #carplayLanguagePanel .carplay-country-options {
    grid-template-columns:1fr !important;
    row-gap:12px !important;
    column-gap:0 !important;
  }
}

/* v072: Samsung Tizen large-screen language choices.
   Do not rely on CSS grid gap: older TV engines may ignore it. */
@media screen and (min-width:1900px) {
  html body #carplayLanguagePanel .carplay-country-options {
    column-gap:0 !important;
    row-gap:0 !important;
    gap:0 !important;
    padding:8px 0 !important;
  }
  html body #carplayLanguagePanel .carplay-country-options > .carplay-country-choice {
    width:calc(100% - 24px) !important;
    max-width:calc(100% - 24px) !important;
    margin-left:12px !important;
    margin-right:12px !important;
    margin-top:10px !important;
    margin-bottom:10px !important;
    box-sizing:border-box !important;
  }
}

/* Archive and favorites hearts reflect saved membership on every card. */
html body #movies > .movie > .archive.arxivdob,
html body #movies > .movie > .archive.arxivdob:hover,
html body #movies > .movie > .archive.arxivdob:focus {
  color:#ff394f !important;
  text-shadow:0 0 8px rgba(255,57,79,.75) !important;
}
html body #movies > .movie > .archive.arxivudal,
html body #movies > .movie > .archive.arxivudal:hover,
html body #movies > .movie > .archive.arxivudal:focus {
  color:#39ef78 !important;
  text-shadow:0 0 8px rgba(57,239,120,.75) !important;
}
html body #movieModal .vip-film-details .vip-footer #arxivda[aria-pressed="false"] {
  color:#ff5261 !important;
}
html body #movieModal .vip-film-details .vip-footer #arxivda[aria-pressed="true"] {
  color:#39ef78 !important;
}

/* Catalogue loading leaves settings interactive. */
#carplay-busy.visible {
    pointer-events: none !important;
    touch-action: auto;
}
html.carplay-touch-device body .topbar #settingsMenu {
    max-height: var(--settings-available-height, 65vh) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}
html.carplay-touch-device body #settingsMenu #carplayInlineLogin input {
    font-size: 16px !important;
}

/* Radio occupies the full available screen on touchscreen phones. */
html.carplay-touch-device body #radioModal.radio-modal {
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    align-items: stretch !important;
}
html.carplay-touch-device body #radioModal.radio-modal > .radio-modal-window {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 56px 16px 16px !important;
    padding: calc(56px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
        calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)) !important;
    justify-content: flex-start !important;
    justify-content: safe center !important;
}
html.carplay-touch-device body #radioModal .radio-modal-window > #closeRadioModal {
    top: calc(8px + env(safe-area-inset-top)) !important;
    right: calc(8px + env(safe-area-inset-right)) !important;
}
html.carplay-touch-device body #radioModal .radio-player-status {
    min-height: 2.7em !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
html.carplay-touch-device body #radioModal .radio-equalizer {
    transition: none !important;
}

/* Account actions in the settings menu. */
html body .topbar #settingsMenu #carplayInlineLogin button[type="submit"] {
    margin-top: 12px !important;
    min-height: 44px;
    text-align: center !important;
    font-weight: 800 !important;
    color: #fff !important;
    background: linear-gradient(145deg, #2858c6, #5430a3) !important;
    border: 1px solid #969ef5 !important;
}
html body .topbar #settingsMenu #carplayInlineLogin button[type="submit"]:not(:disabled):hover,
html body .topbar #settingsMenu #carplayInlineLogin button[type="submit"]:not(:disabled):focus,
html body .topbar #settingsMenu #carplayInlineLogin button[type="submit"].remote-focused {
    background: linear-gradient(145deg, #3868db, #653ebc) !important;
    box-shadow: 0 0 0 2px #bfc5ff !important;
}
html body .topbar #settingsMenu #carplayInlineLogin button[type="submit"]:disabled {
    cursor: default;
    opacity: .55;
    box-shadow: none !important;
}

/* Header branding and responsive space for the catalogue controls. */
html body .topbar .carplay-brand {
    flex: 0 0 auto;
    width: 150px;
    width: clamp(112px, 9.5vw, 168px);
    line-height: 0 !important;
}
html body .topbar .carplay-brand img {
    display: block;
    width: 100%;
    height: auto;
}
html body .topbar .carplay-brand img.carplay-brand-light,
html body.light .topbar .carplay-brand img.carplay-brand-dark { display: none; }
html body.light .topbar .carplay-brand img.carplay-brand-light { display: block; }

html body .topbar #settingsBtn,
html body .topbar #settingsBtn:focus,
html body .topbar #settingsBtn.remote-focused {
    color: #ff5b63 !important;
    background: linear-gradient(155deg, #7b2234, #382035) !important;
    border-color: #ec566c !important;
}
html body .topbar #settingsBtn:hover,
html body .topbar #settingsBtn[aria-expanded="true"] {
    color: #fff !important;
    background: linear-gradient(155deg, #a52c46, #641d36) !important;
}

@media (min-width: 901px) {
    html body .topbar #mobileControls,
    html body .topbar #mobileControls.open {
        gap: 0 !important;
        column-gap: 0 !important;
        justify-content: flex-end !important;
    }
    html body .topbar #mobileControls > #search {
        flex: 1 1 0px !important;
        width: 0 !important;
        min-width: 56px !important;
        max-width: none !important;
    }
    html body .topbar #mobileControls > #list,
    html body .topbar #mobileControls > #category {
        flex: 0 0 auto !important;
        width: 148px !important;
        width: clamp(122px, 12vw, 220px) !important;
        min-width: 0 !important;
        max-width: none !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    html body .topbar #mobileControls > #thFilm,
    html body .topbar #mobileControls > #tvBtn,
    html body .topbar #mobileControls > #thRad {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 90px !important;
        min-width: clamp(84px, 8vw, 162px) !important;
        max-width: none !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-left: clamp(8px, .85vw, 18px) !important;
        padding-right: clamp(8px, .85vw, 18px) !important;
        text-overflow: clip !important;
    }
    html body .topbar #mobileControls > #search,
    html body .topbar #mobileControls > #list,
    html body .topbar #mobileControls > #category,
    html body .topbar #mobileControls > #thFilm,
    html body .topbar #mobileControls > #tvBtn,
    html body .topbar #mobileControls > #thRad {
        font-size: 17px !important;
        font-size: clamp(14px, 1.17vw, 28px) !important;
    }
    html body .topbar #mobileControls > #search { margin: 0 !important; }
    html body .topbar #mobileControls > #list,
    html body .topbar #mobileControls > #category,
    html body .topbar #mobileControls > #thFilm,
    html body .topbar #mobileControls > #tvBtn,
    html body .topbar #mobileControls > #thRad,
    html body .topbar #mobileControls > .settings-menu-wrap {
        margin: 0 0 0 8px !important;
        margin-left: clamp(6px, .65vw, 16px) !important;
    }
}
@media (min-width: 1900px) {
    html body .topbar .carplay-brand { width: 150px; }
}
@media (max-width: 900px) {
    html body .topbar .carplay-brand { width: clamp(114px, 18vw, 152px); }
    html body .topbar #mobileControls > #thFilm,
    html body .topbar #mobileControls > #tvBtn,
    html body .topbar #mobileControls > #thRad {
        white-space: normal !important;
        text-overflow: clip !important;
        line-height: 1.1 !important;
    }
}
@media (max-width: 900px) and (max-height: 650px) and (orientation: landscape) {
    html body .topbar #mobileControls,
    html body .topbar #mobileControls.open {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) 34px;
    }
    html body .topbar #mobileControls > #search { grid-area: 1 / 1 / 2 / 6; }
    html body .topbar #mobileControls > #list { grid-area: 2 / 1 / 3 / 2; }
    html body .topbar #mobileControls > #category { grid-area: 2 / 2 / 3 / 3; }
    html body .topbar #mobileControls > #list[style*="display:none"] ~ #category,
    html body .topbar #mobileControls > #list[style*="display: none"] ~ #category { grid-column: 1 / 3; }
    html body .topbar #mobileControls > #thFilm { grid-area: 2 / 3 / 3 / 4; }
    html body .topbar #mobileControls > #tvBtn { grid-area: 2 / 4 / 3 / 5; }
    html body .topbar #mobileControls > #thRad { grid-area: 2 / 5 / 3 / 7; }
    html body .topbar #mobileControls > .settings-menu-wrap { grid-area: 1 / 6 / 2 / 7; }
    html body .topbar #mobileControls > #search,
    html body .topbar #mobileControls > #list,
    html body .topbar #mobileControls > #category,
    html body .topbar #mobileControls > #thFilm,
    html body .topbar #mobileControls > #tvBtn,
    html body .topbar #mobileControls > #thRad {
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (min-width: 700px) and (orientation: landscape) {
    html.carplay-tv-header body .topbar {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        gap: 0 !important;
    }
    html.carplay-tv-header body .topbar .logo-wrap {
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 10px 0 0 !important;
    }
    html.carplay-tv-header body .topbar .carplay-brand { width: 116px; }
    html.carplay-tv-header body .topbar #mobileControls,
    html.carplay-tv-header body .topbar #mobileControls.open {
        display: flex !important;
        flex: 1 1 0px !important;
        width: 0 !important;
        flex-flow: row nowrap !important;
        gap: 0 !important;
        column-gap: 0 !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > .settings-menu-wrap {
        flex: 0 0 auto !important;
        width: auto !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #search {
        flex: 1 1 0px !important;
        width: 0 !important;
        min-width: 48px !important;
        max-width: none !important;
        margin: 0 !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #list,
    html.carplay-tv-header body .topbar #mobileControls > #category {
        flex: 0 0 96px !important;
        width: 96px !important;
        min-width: 96px !important;
        max-width: none !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #thFilm,
    html.carplay-tv-header body .topbar #mobileControls > #tvBtn,
    html.carplay-tv-header body .topbar #mobileControls > #thRad {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 64px !important;
        max-width: none !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        white-space: nowrap !important;
        text-overflow: clip !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #list,
    html.carplay-tv-header body .topbar #mobileControls > #category,
    html.carplay-tv-header body .topbar #mobileControls > #thFilm,
    html.carplay-tv-header body .topbar #mobileControls > #tvBtn,
    html.carplay-tv-header body .topbar #mobileControls > #thRad,
    html.carplay-tv-header body .topbar #mobileControls > .settings-menu-wrap {
        margin: 0 0 0 8px !important;
    }
}
@media (min-width: 1000px) and (orientation: landscape) {
    html.carplay-tv-header body .topbar .carplay-brand { width: 128px; }
    html.carplay-tv-header body .topbar #mobileControls > #list,
    html.carplay-tv-header body .topbar #mobileControls > #category {
        flex-basis: 146px !important;
        width: 146px !important;
        min-width: 146px !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #thFilm,
    html.carplay-tv-header body .topbar #mobileControls > #tvBtn,
    html.carplay-tv-header body .topbar #mobileControls > #thRad {
        min-width: 105px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}
@media (min-width: 1600px) and (orientation: landscape) {
    html.carplay-tv-header body .topbar .carplay-brand { width: 148px; }
    html.carplay-tv-header body .topbar #mobileControls > #list,
    html.carplay-tv-header body .topbar #mobileControls > #category {
        flex-basis: 185px !important;
        width: 185px !important;
        min-width: 185px !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #thFilm,
    html.carplay-tv-header body .topbar #mobileControls > #tvBtn,
    html.carplay-tv-header body .topbar #mobileControls > #thRad { min-width: 150px !important; }
}
/* A TV can display a large panel with a smaller CSS viewport. */
@media (min-width: 700px) and (orientation: landscape) {
    html.carplay-tv-header body .topbar .carplay-brand { width: 144px; }
    html.carplay-tv-header body .topbar #mobileControls > .settings-menu-wrap #settingsBtn {
        width: 50px !important; min-width: 50px !important; max-width: 50px !important;
        height: 50px !important; min-height: 50px !important; max-height: 50px !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #search,
    html.carplay-tv-header body .topbar #mobileControls > #list,
    html.carplay-tv-header body .topbar #mobileControls > #category,
    html.carplay-tv-header body .topbar #mobileControls > #thFilm,
    html.carplay-tv-header body .topbar #mobileControls > #tvBtn,
    html.carplay-tv-header body .topbar #mobileControls > #thRad {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #list,
    html.carplay-tv-header body .topbar #mobileControls > #category,
    html.carplay-tv-header body .topbar #mobileControls > #thFilm,
    html.carplay-tv-header body .topbar #mobileControls > #tvBtn,
    html.carplay-tv-header body .topbar #mobileControls > #thRad {
        font-size: 16px !important;
    }
}
@media (min-width: 1100px) and (orientation: landscape) {
    html.carplay-tv-header body .topbar .carplay-brand { width: 204px; }
    html.carplay-tv-header body .topbar #mobileControls > #list,
    html.carplay-tv-header body .topbar #mobileControls > #category {
        flex-basis: 156px !important;
        width: 156px !important;
        min-width: 156px !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #search,
    html.carplay-tv-header body .topbar #mobileControls > #list,
    html.carplay-tv-header body .topbar #mobileControls > #category,
    html.carplay-tv-header body .topbar #mobileControls > #thFilm,
    html.carplay-tv-header body .topbar #mobileControls > #tvBtn,
    html.carplay-tv-header body .topbar #mobileControls > #thRad {
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #list,
    html.carplay-tv-header body .topbar #mobileControls > #category,
    html.carplay-tv-header body .topbar #mobileControls > #thFilm,
    html.carplay-tv-header body .topbar #mobileControls > #tvBtn,
    html.carplay-tv-header body .topbar #mobileControls > #thRad {
        font-size: 21px !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #thFilm,
    html.carplay-tv-header body .topbar #mobileControls > #tvBtn,
    html.carplay-tv-header body .topbar #mobileControls > #thRad { min-width: 118px !important; }
    html.carplay-tv-header body .topbar #mobileControls > .settings-menu-wrap #settingsBtn {
        width: 64px !important; min-width: 64px !important; max-width: 64px !important;
        height: 64px !important; min-height: 64px !important; max-height: 64px !important;
        font-size: 29px !important;
    }
}
@media (min-width: 1600px) and (orientation: landscape) {
    html.carplay-tv-header body .topbar .carplay-brand { width: 254px; }
    html.carplay-tv-header body .topbar #mobileControls > #list,
    html.carplay-tv-header body .topbar #mobileControls > #category {
        flex-basis: 218px !important;
        width: 218px !important;
        min-width: 218px !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #search,
    html.carplay-tv-header body .topbar #mobileControls > #list,
    html.carplay-tv-header body .topbar #mobileControls > #category,
    html.carplay-tv-header body .topbar #mobileControls > #thFilm,
    html.carplay-tv-header body .topbar #mobileControls > #tvBtn,
    html.carplay-tv-header body .topbar #mobileControls > #thRad {
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #list,
    html.carplay-tv-header body .topbar #mobileControls > #category,
    html.carplay-tv-header body .topbar #mobileControls > #thFilm,
    html.carplay-tv-header body .topbar #mobileControls > #tvBtn,
    html.carplay-tv-header body .topbar #mobileControls > #thRad {
        font-size: 27px !important;
    }
    html.carplay-tv-header body .topbar #mobileControls > #thFilm,
    html.carplay-tv-header body .topbar #mobileControls > #tvBtn,
    html.carplay-tv-header body .topbar #mobileControls > #thRad { min-width: 184px !important; }
    html.carplay-tv-header body .topbar #mobileControls > .settings-menu-wrap #settingsBtn {
        width: 80px !important; min-width: 80px !important; max-width: 80px !important;
        height: 80px !important; min-height: 80px !important; max-height: 80px !important;
        font-size: 36px !important;
    }
}

@media (min-width: 700px) and (max-width: 799px) and (orientation: landscape) {
    html.carplay-tv-header body .topbar #mobileControls > #list,
    html.carplay-tv-header body .topbar #mobileControls > #category {
        flex-basis: 90px !important;
        width: 90px !important;
        min-width: 90px !important;
    }
}
/* Enlarge only the header controls and their settings panel. */
@media (min-width: 901px) {
    html:not(.carplay-tv-header) body .topbar .carplay-brand {
        width: 172px;
        width: clamp(126px, 10.3vw, 196px);
    }
    html:not(.carplay-tv-header) body .topbar #mobileControls > #search,
    html:not(.carplay-tv-header) body .topbar #mobileControls > #category,
    html:not(.carplay-tv-header) body .topbar #mobileControls > #list,
    html:not(.carplay-tv-header) body .topbar #mobileControls > #thFilm,
    html:not(.carplay-tv-header) body .topbar #mobileControls > #tvBtn,
    html:not(.carplay-tv-header) body .topbar #mobileControls > #thRad,
    html:not(.carplay-tv-header) body .topbar #settingsBtn {
        min-height: 62px !important;
        min-height: clamp(48px, 3.6vw, 84px) !important;
    }
    html:not(.carplay-tv-header) body .topbar #settingsBtn {
        min-width: 62px !important;
        min-width: clamp(48px, 3.6vw, 84px) !important;
    }
    html body .topbar #settingsMenu {
        width: 570px !important;
        max-width: calc(100vw - 28px) !important;
    }
}
@media (min-width: 1900px) {
    html:not(.carplay-tv-header) body .topbar #settingsBtn {
        min-width: 78px !important;
        min-height: 78px !important;
    }
    html body .topbar #settingsMenu { width: 720px !important; }
}
@media (max-width: 900px) and (orientation: portrait) {
    html:not(.carplay-tv-header) body .topbar .carplay-brand {
        width: 136px;
        width: clamp(126px, 22vw, 164px);
    }
    html:not(.carplay-tv-header) body .topbar #mobileControls,
    html:not(.carplay-tv-header) body .topbar #mobileControls.open {
        grid-template-columns: repeat(3, minmax(0, 1fr)) 48px;
    }
    html:not(.carplay-tv-header) body .topbar #mobileControls > #search,
    html:not(.carplay-tv-header) body .topbar #mobileControls > #category,
    html:not(.carplay-tv-header) body .topbar #mobileControls > #list,
    html:not(.carplay-tv-header) body .topbar #mobileControls > #thFilm,
    html:not(.carplay-tv-header) body .topbar #mobileControls > #tvBtn,
    html:not(.carplay-tv-header) body .topbar #mobileControls > #thRad,
    html:not(.carplay-tv-header) body .topbar #settingsBtn { min-height: 48px !important; }
    html:not(.carplay-tv-header) body .topbar #mobileControls > .settings-menu-wrap,
    html:not(.carplay-tv-header) body .topbar #settingsBtn { min-width: 48px !important; }
}

html body .topbar #mobileControls > #search {
    border-radius: 999px !important;
}


/* Keep day navigation in chronological order while Arabic rows read right to left. */
html body #cardArchive[dir="rtl"] .archive-days,
html body #cardArchive[dir="rtl"] .archive-click-days {direction:ltr;}
html body #cardArchive[dir="rtl"] .archive-program-name {text-align:right!important;}
html body #cardArchive[dir="rtl"] .archive-program-time {direction:ltr;margin-left:12px!important;margin-right:0!important;}

/* Settings and contact options */
html body .topbar #settingsMenu {
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: calc(100vh - 100px);
    padding: 15px !important;
    background: linear-gradient(155deg, #252639, #191621 70%);
    color: #f8f6ff;
    border-color: #776995;
}
html body.light .topbar #settingsMenu {
    background: linear-gradient(155deg, #f9faff, #ece9f6);
    border-color: #aaa0c3;
    color: #252039;
}
html body #settingsMenu .settings-menu-section + .settings-menu-section {
    border-top-color: rgba(149,132,179,.28);
    margin-top: 12px;
    padding-top: 12px;
}
html body #settingsMenu .settings-menu-title {
    color: #82eff8;
    font-size: 18px !important;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.3;
}
html body.light #settingsMenu .settings-menu-title {color:#125d72;}
html body #settingsMenu button {
    font-size: 20px !important;
    font-weight: 750;
    line-height: 1.25;
    min-height: 50px;
    white-space: normal;
    overflow-wrap: break-word;
}
html body #settingsMenu .carplay-auth-status {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 14px;
    margin: 9px 0;
    padding: 11px 13px;
    border: 1px solid #776995;
    border-radius: 12px;
    background: #302541;
    color: #e9e2fa;
}
html body.light #settingsMenu .carplay-auth-status {background:#e9e0fa;color:#342357;}
html body #settingsMenu .carplay-account-id-label {font-size:16px;font-weight:700;}
html body #settingsMenu .carplay-account-id-value {
    font-size: 32px;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    color: #c0f9ff;
    overflow-wrap: anywhere;
}
html body #settingsMenu .carplay-account-balance {
    display:flex;
    flex:0 0 100%;
    min-width:0;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:baseline;
    margin-top:8px;
    padding-top:9px;
    border-top:1px solid rgba(149,132,179,.56);
}
html body #settingsMenu .carplay-account-balance-value {
    max-width:100%;
    font-size:26px;
    font-variant-numeric:tabular-nums;
    color:#c0f9ff;
    overflow-wrap:break-word;
}
html body.light #settingsMenu .carplay-account-id-value,
html body.light #settingsMenu .carplay-account-balance-value {color:#1b536d;}
html body #settingsMenu .carplay-account-balance-value.carplay-account-balance-low {color:#ff7279;}
html body.light #settingsMenu .carplay-account-balance-value.carplay-account-balance-low {color:#b4182b;}
@media(min-width:1900px) {
    html body #settingsMenu .settings-menu-title {font-size:22px !important;}
    html body #settingsMenu button {font-size:26px !important;min-height:62px;}
    html body #settingsMenu .carplay-account-id-label {font-size:22px;}
    html body #settingsMenu .carplay-account-id-value {font-size:46px;}
    html body #settingsMenu .carplay-account-balance-value {font-size:34px;}
}
@media(max-width:600px) {
    html body .topbar #settingsMenu {padding:10px !important;}
    html body #settingsMenu .settings-menu-title {font-size:16px !important;}
    html body #settingsMenu button {font-size:19px !important;}
    html body #settingsMenu .carplay-account-id-value {font-size:28px;}
    html body #settingsMenu .carplay-account-balance-value {font-size:23px;}
}
/* Keep the settings dialogs centered on TV, including engines without CSS inset. */
html body #appSettingsModal,
html body #settingsInfoModal,
html body #quickContactModal {
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    left:0;
    width:100vw;
    box-sizing:border-box;
    padding:16px;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(6,8,19,.76);
}
html body #appSettingsModal.active,
html body #settingsInfoModal.active,
html body #quickContactModal.active {display:flex;}
html body #appSettingsModal {z-index:2147482998;}
html body #settingsInfoModal,
html body #quickContactModal {z-index:2147482999;}

html body #appSettingsModal .modal-window,
html body #quickContactModal .quick-contact-window {
    position:relative;
    box-sizing:border-box;
    width:100%;
    max-height:100%;
    margin:auto;
    overflow:auto;
    border:1px solid #7569a1;
    border-radius:25px;
    background:linear-gradient(150deg,#2a3153,#1d1b33 60%,#26203f);
    color:#f7f6ff;
    box-shadow:0 22px 60px rgba(0,0,0,.55);
    text-align:center;
}
html body #appSettingsModal .modal-window {max-width:570px;padding:58px 24px 24px;}
html body #quickContactModal .quick-contact-window {max-width:980px;padding:56px 38px 34px;}
html body #appSettingsModal #appSettingsTitle,
html body #quickContactModal #quickContactTitle {margin:0 28px 20px;color:#c3f5ff;font-size:30px;line-height:1.2;}
html body #quickContactModal #quickContactQrError {margin:16px 0 0;}
html body #appSettingsModal .app-settings-choices {display:flex;flex-direction:column;}
html body #appSettingsModal .app-settings-choices > button {
    display:block;
    width:100%;
    min-height:48px;
    margin:0;
    padding:9px 14px;
    border:1px solid #696f9c;
    border-radius:10px;
    background:#322d49;
    color:#f8f6ff;
    line-height:1.2;
    font-family:inherit;
    font-size:18px;
    font-weight:700;
    text-align:left;
    white-space:normal;
    cursor:pointer;
}
html body #appSettingsModal .app-settings-choices > button + button {margin-top:8px;}
html body #appSettingsModal .app-settings-choices > button:hover {background:#3c3858;}
html body #quickContactModal .quick-contact-grid {display:flex;width:100%;}
html body #quickContactModal .quick-contact-card {
    display:flex;
    flex:1 1 0;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    min-height:82px;
    min-width:0;
    padding:20px 18px 16px;
    border:1px solid #696f9c;
    border-radius:20px;
    background:linear-gradient(145deg,#363f63,#30274b);
    color:#f8f6ff;
    font-size:21px;
    overflow-wrap:break-word;
}
html body #quickContactModal .quick-contact-card + .quick-contact-card {margin-left:24px;}
html body #quickContactModal .quick-contact-qr {
    display:block;
    width:100%;
    max-width:305px;
    margin-bottom:12px;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
}
html body #quickContactModal .quick-contact-qr:empty {display:none;}
html body #quickContactModal .quick-contact-qr svg {display:block;width:100%;height:auto;background:white;}
html body.light #appSettingsModal .modal-window,
html body.light #quickContactModal .quick-contact-window {background:#f3f2fc;color:#29243d;border-color:#a69ac4;}
html body.light #appSettingsModal #appSettingsTitle,
html body.light #quickContactModal #quickContactTitle {color:#274e69;}
html body.light #appSettingsModal .app-settings-choices > button,
html body.light #quickContactModal .quick-contact-card {background:#e5def5;color:#2d214a;border-color:#aaa0c2;}
@media(min-width:1900px) {
    html body #appSettingsModal .modal-window {max-width:720px;padding:68px 36px 32px;}
    html body #appSettingsModal .app-settings-choices > button {min-height:57px;font-size:23px;}
    html body #quickContactModal .quick-contact-window {max-width:1200px;padding:68px 48px 40px;}
    html body #appSettingsModal #appSettingsTitle,
    html body #quickContactModal #quickContactTitle {font-size:38px;}
    html body #quickContactModal .quick-contact-card {padding:24px 20px 18px;font-size:24px;}
    html body #quickContactModal .quick-contact-card + .quick-contact-card {margin-left:28px;}
    html body #quickContactModal .quick-contact-qr {max-width:385px;}
}
@media(max-width:600px) {
    html body #appSettingsModal,
    html body #quickContactModal {padding:12px;}
    html body #appSettingsModal .modal-window,
    html body #quickContactModal .quick-contact-window {padding:54px 14px 18px;border-radius:22px;}
    html body #appSettingsModal #appSettingsTitle,
    html body #quickContactModal #quickContactTitle {font-size:22px;margin-bottom:14px;}
    html body #quickContactModal .quick-contact-card {padding:10px 8px;font-size:14px;border-radius:15px;}
    html body #quickContactModal .quick-contact-card + .quick-contact-card {margin-left:12px;}
}
@media(max-height:460px) {
    html body #quickContactModal .quick-contact-window {padding-top:48px;padding-bottom:14px;}
    html body #quickContactModal #quickContactTitle {font-size:22px;margin-bottom:12px;}
    html body #quickContactModal .quick-contact-qr {max-width:170px;max-width:min(170px,43vh);margin-bottom:8px;}
}

/* Reserve room for Settings and let search take only the remaining space. */
@media (min-width:901px) {
    html body .topbar {
        box-sizing:border-box !important;
        min-width:0 !important;
        padding-right:14px !important;
    }
    html body .topbar #mobileControls {
        min-width:0 !important;
        max-width:100% !important;
    }
    html body .topbar #mobileControls > #search {
        flex:1 1 0px !important;
        min-width:0 !important;
        width:0 !important;
        max-width:none !important;
        box-sizing:border-box !important;
    }
    html body .topbar #mobileControls > .settings-menu-wrap {
        flex-shrink:0 !important;
        margin-right:0 !important;
    }
}
@media (min-width:901px) {
    html body .topbar #mobileControls > #thFilm,
    html body .topbar #mobileControls > #tvBtn,
    html body .topbar #mobileControls > #thRad {
        min-width:0 !important;
        max-width:15vw !important;
        overflow:hidden;
        text-overflow:ellipsis;
    }
}

/* Keep the scroll buttons visible outside the scrollable settings content. */
html body .topbar #settingsMenu:not([hidden]),
html.carplay-touch-device body .topbar #settingsMenu:not([hidden]) {
    display:flex !important;
    flex-direction:column;
    box-sizing:border-box;
    max-height:var(--settings-available-height,65vh) !important;
    padding:0 !important;
    overflow:hidden !important;
}
html body #settingsMenuContent {
    flex:1 1 auto;
    min-height:0;
    padding:14px;
    overflow:auto;
    overscroll-behavior:contain;
}
html body #settingsMenuScroll[hidden] {display:none !important;}
html body #settingsMenuScroll {
    display:flex;
    justify-content:flex-end;
    flex:0 0 auto;
    padding:3px 9px;
    border-top:1px solid #776995;
    background:#252337;
}
html body.light #settingsMenuScroll {background:#f0edf7;}
html body #settingsMenu #settingsMenuScroll button {
    flex:0 0 54px;
    width:54px !important;
    min-height:35px !important;
    margin:0 0 0 8px;
    padding:0;
    text-align:center;
}
@media(max-height:500px), (max-width:600px) {
    html body #settingsMenuContent {padding:8px 10px;}
}

/* Settings dialogs share a right-aligned close button and oval focus targets. */
html body #appSettingsModal .modal-window {max-width:980px;padding:68px 42px 36px;}
html body #appSettingsModal #appSettingsTitle {font-size:35px;margin-bottom:24px;}
html body #appSettingsModal .app-settings-choices > button {
    min-height:64px;
    padding:11px 24px;
    font-size:22px;
    border-radius:999px !important;
}
html body #appSettingsModal .app-settings-choices > button + button {margin-top:12px;}
html body #appSettingsModal .app-settings-choices > button:focus,
html body #settingsMenu button:focus,
html body #settingsMenu button.remote-focused {
    background:linear-gradient(135deg,#515da1,#434482) !important;
    color:#fff !important;
    border-color:#acbaff !important;
    outline:none !important;
    box-shadow:inset 0 1px 1px rgba(232,237,255,.28),
               0 0 12px rgba(154,168,255,.76),
               0 5px 28px rgba(115,137,255,.55) !important;
}
html body #settingsMenu button {border-radius:999px !important;}
html body #appSettingsModal #closeAppSettings,
html body #settingsInfoModal #closeSettingsInfo,
html body #quickContactModal #closeQuickContact,
html body > #carplayLanguagePanel #carplayCountryClose.carplay-country-close {
    position:absolute !important;
    top:12px !important;
    right:12px !important;
    bottom:auto !important;
    left:auto !important;
    border-radius:999px !important;
}
html body #appSettingsModal #closeAppSettings:focus,
html body #settingsInfoModal #closeSettingsInfo:focus,
html body #quickContactModal #closeQuickContact:focus,
html body > #carplayLanguagePanel #carplayCountryClose:focus {
    outline:none !important;
    box-shadow:inset 0 0 0 2px #ffd9e5,0 0 20px rgba(255,104,141,.82) !important;
}

/* The outer language window stays put. Only the grid of languages can scroll. */
html body > #carplayLanguagePanel .carplay-country-window {
    display:flex !important;
    flex-direction:column;
    overflow:hidden !important;
    padding:0 !important;
}
html body > #carplayLanguagePanel .carplay-country-header {
    position:relative;
    flex:0 0 auto;
    padding:18px 72px;
    min-height:72px;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    border-bottom:1px solid #5b487c;
}
html body > #carplayLanguagePanel .carplay-country-heading {
    margin:0 !important;
    line-height:1.25;
}
html body > #carplayLanguagePanel .carplay-country-status:empty {display:none;}
html body > #carplayLanguagePanel .carplay-country-options {
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto !important;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding:8px !important;
    gap:0 !important;
}
html body > #carplayLanguagePanel .carplay-country-options > .carplay-country-choice {
    width:calc(100% - 16px) !important;
    max-width:calc(100% - 16px) !important;
    border-radius:999px !important;
    margin-top:7px !important;
    margin-bottom:7px !important;
    margin-left:8px !important;
    margin-right:8px !important;
    gap:0 !important;
}
html body > #carplayLanguagePanel .carplay-country-choice > .carplay-country-flag {
    margin-left:0 !important;
    margin-right:16px !important;
}
html body > #carplayLanguagePanel .carplay-country-choice > span {
    min-width:0;
    overflow-wrap:break-word;
    margin-left:2px !important;
    margin-right:0 !important;
}
@media(min-width:1900px) {
    html body #appSettingsModal .modal-window {max-width:1240px;padding:86px 60px 48px;}
    html body #appSettingsModal #appSettingsTitle {font-size:44px;margin-bottom:28px;}
    html body #appSettingsModal .app-settings-choices > button {min-height:78px;font-size:29px;}
    html body #appSettingsModal .app-settings-choices > button + button {margin-top:15px;}
    html body > #carplayLanguagePanel .carplay-country-header {min-height:86px;}
    html body > #carplayLanguagePanel .carplay-country-choice > .carplay-country-flag {margin-right:22px !important;}
}
@media(min-width:2560px) {
    html body .topbar #settingsMenu {width:880px !important;}
    html body #settingsMenu .settings-menu-title {font-size:25px !important;}
    html body #settingsMenu button {font-size:30px !important;min-height:68px;}
    html body #settingsMenu .carplay-account-id-label {font-size:25px;}
    html body #settingsMenu .carplay-account-balance-value {font-size:38px;}
    html body #appSettingsModal .modal-window {max-width:1500px;padding:92px 68px 54px;}
    html body #appSettingsModal #appSettingsTitle {font-size:50px;}
    html body #appSettingsModal .app-settings-choices > button {min-height:90px;font-size:34px;}
}
@media(max-width:600px), (max-height:460px) {
    html body #appSettingsModal {padding:8px;}
    html body #appSettingsModal .modal-window {padding:58px 18px 22px;}
    html body #appSettingsModal #appSettingsTitle {font-size:26px;margin-bottom:16px;}
    html body #appSettingsModal .app-settings-choices > button {min-height:54px;padding:9px 16px;font-size:20px;}
    html body > #carplayLanguagePanel .carplay-country-header {min-height:64px;padding:12px 62px;}
    html body > #carplayLanguagePanel #carplayCountryClose.carplay-country-close {
        top:10px !important;
        width:42px !important;
        min-width:42px !important;
        max-width:42px !important;
        height:42px !important;
        min-height:42px !important;
        max-height:42px !important;
    }
}

/* Header playlist: explicit remote focus, including native focus and open menu. */
html body .topbar #mobileControls > #list:focus,
html body .topbar #mobileControls > #list.remote-focused,
html body .topbar #mobileControls > #list[aria-expanded="true"] {
    background:linear-gradient(145deg,#62749e,#43547f) !important;
    color:#fff !important;
    border-color:#d8c6ff !important;
    box-shadow:inset 0 0 0 2px #d8c6ff,0 0 12px #9260ff !important;
    outline:none !important;
}

/* Empty categories use the same circular red denial feedback as favorites. */
html body #favorite-notice[data-status="empty"] {
    border-color:#ffc0c0;
    background:radial-gradient(ellipse at 30% 10%,#ff9eaa,#a3324b 30%,#501522 78%);
    box-shadow:0 0 26px rgba(255,76,90,.48),0 8px 32px rgba(0,0,0,.5);
}
html body #favorite-notice[data-status="empty"] .favorite-notice-icon {color:#ff929a;background:#54242d;}
#carplay-busy, #carplay-busy.visible {display:none!important;}
/* Scoped information pages; no changes to header or playback. */
#settingsInfoModal [hidden]{display:none!important}
html body #settingsInfoModal.guide-expanded .settings-info-window{width:94%;max-width:1050px;max-height:94vh;box-sizing:border-box;overflow:auto;padding:55px 28px 20px;background:#202039;color:#fff;border:1px solid #8174bd;border-radius:24px;display:block;text-align:center}
#settingsInfoModal .guide-hero{background:linear-gradient(140deg,#343169,#251b43 60%,#164951);border-radius:18px;padding:20px;color:#fff}
#settingsInfoModal h3{font-size:26px;color:#b5eaff;margin:8px 0 12px}
#settingsInfoModal p{font-size:19px;line-height:1.45;margin:10px 0}
#settingsInfoModal .guide-site{display:block;font-size:36px;color:#90ecff;margin:10px 0;overflow-wrap:break-word}
#settingsInfoModal .guide-brand{width:220px;max-width:90%;height:auto}
#settingsInfoModal .guide-qr{width:155px;height:155px;max-width:100%;background:#fff;border:7px solid white;border-radius:12px}
#settingsInfoModal .guide-msx{width:185px;max-width:80%;height:auto}
#settingsInfoModal .guide-picture{max-width:100%;max-height:34vh;width:auto;height:auto;border-radius:10px}
#settingsInfoModal .guide-flow{padding:14px;background:#33365b;border:1px solid #8279ad;border-radius:12px;font-size:20px;color:#fff;overflow-wrap:break-word}
#settingsInfoModal .guide-nav{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:12px}
#settingsInfoModal .guide-nav button{margin:4px 9px;padding:10px 18px;background:#393362;border:1px solid #998bd6;border-radius:30px;color:#fff;font-size:18px;min-height:42px}
#settingsInfoModal .guide-nav button:focus{outline:2px solid #bbd8ff;background:#4f659b;box-shadow:0 0 12px #a8bfff}
#settingsInfoModal .guide-nav button:disabled{opacity:.4}
@media(min-width:1900px){html body #settingsInfoModal.guide-expanded .settings-info-window{max-width:1450px;padding:75px 40px 28px}#settingsInfoModal h3{font-size:36px}#settingsInfoModal p,#settingsInfoModal .guide-flow{font-size:27px}#settingsInfoModal .guide-nav button{font-size:25px;min-height:60px}#settingsInfoModal .guide-msx{width:250px}}
@media(max-width:600px){html body #settingsInfoModal.guide-expanded .settings-info-window{padding:48px 12px 12px}#settingsInfoModal h3{font-size:20px}#settingsInfoModal p,#settingsInfoModal .guide-flow{font-size:15px}#settingsInfoModal .guide-hero{padding:12px}#settingsInfoModal .guide-site{font-size:27px}}

/* Full-height information dialogs only. Keep the player and header unchanged. */
html body #settingsInfoModal.guide-expanded {padding:10px 16px;}
html body #settingsInfoModal.guide-expanded .settings-info-window {
    position:relative;width:100%;max-width:92vw;height:calc(100vh - 20px);
    max-height:100%;min-height:0;margin:auto;padding:52px 30px 20px;
    display:block;overflow:auto;box-sizing:border-box;
}
#settingsInfoModal.guide-expanded #settingsInfoTitle {font-size:32px;line-height:1.15;margin:0 50px 14px;}
#settingsInfoModal.guide-expanded h3 {font-size:30px;line-height:1.2;}
#settingsInfoModal.guide-expanded p {font-size:22px;line-height:1.4;}
#settingsInfoModal.guide-expanded .guide-hero {padding:26px;}
#settingsInfoModal.guide-expanded .guide-site {font-size:46px;}
#settingsInfoModal.guide-expanded .guide-brand {width:300px;}
#settingsInfoModal.guide-expanded .guide-qr {width:210px;height:210px;}
#settingsInfoModal.guide-expanded .guide-msx {width:245px;}
#settingsInfoModal.guide-expanded .guide-picture {max-height:40vh;max-width:100%;}
#settingsInfoModal.guide-expanded .guide-flow {font-size:24px;}
#settingsInfoModal.guide-expanded .guide-nav button {font-size:22px;min-height:50px;}
#settingsInfoModal.guide-expanded #guideCounter {font-size:22px;}
#settingsInfoModal .guide-hold {display:flex;align-items:center;text-align:left;padding:14px 20px;margin:12px auto;border:2px solid #bf9aff;border-radius:20px;background:#352650;color:#fff;}
#settingsInfoModal .guide-hold-key {flex:0 0 auto;width:94px;height:94px;box-sizing:border-box;border:3px solid #c9d7ff;border-radius:50%;background:#4a5790;text-align:center;font-size:30px;font-weight:bold;padding-top:15px;margin-right:20px;}
#settingsInfoModal .guide-hold-key span {display:block;font-size:17px;}
#settingsInfoModal .guide-hold-copy {flex:1;min-width:0;}
#settingsInfoModal .guide-hold-copy strong {font-size:24px;color:#d7c1ff;}
#settingsInfoModal .guide-hold-copy p {margin:6px 0;}
#settingsInfoModal .guide-hold-hearts {font-size:30px;line-height:1.1;color:#ff789a;}
#settingsInfoModal .guide-hold-hearts span {display:inline-block;margin-right:18px;}
@media(min-width:1900px) {
    html body #settingsInfoModal.guide-expanded {padding:14px 22px;}
    html body #settingsInfoModal.guide-expanded .settings-info-window {height:calc(100vh - 28px);padding:70px 48px 24px;}
    #settingsInfoModal.guide-expanded #settingsInfoTitle {font-size:46px;}
    #settingsInfoModal.guide-expanded h3 {font-size:40px;}
    #settingsInfoModal.guide-expanded p,#settingsInfoModal.guide-expanded .guide-flow {font-size:30px;}
    #settingsInfoModal.guide-expanded .guide-site {font-size:62px;}
    #settingsInfoModal.guide-expanded .guide-brand {width:400px;}
    #settingsInfoModal.guide-expanded .guide-qr {width:280px;height:280px;}
    #settingsInfoModal.guide-expanded .guide-msx {width:330px;}
    #settingsInfoModal.guide-expanded .guide-nav button {font-size:29px;min-height:66px;}
    #settingsInfoModal.guide-expanded #guideCounter {font-size:30px;}
    #settingsInfoModal .guide-hold-copy strong {font-size:34px;}
    #settingsInfoModal .guide-hold-key {width:130px;height:130px;font-size:42px;padding-top:22px;}
    #settingsInfoModal .guide-hold-key span {font-size:23px;}
}
@media(max-width:600px), (max-height:650px) {
    html body #settingsInfoModal.guide-expanded {padding:6px;}
    html body #settingsInfoModal.guide-expanded .settings-info-window {height:calc(100vh - 12px);max-width:100%;padding:44px 12px 12px;}
    #settingsInfoModal.guide-expanded #settingsInfoTitle {font-size:24px;margin:0 30px 8px;}
    #settingsInfoModal.guide-expanded h3 {font-size:22px;}
    #settingsInfoModal.guide-expanded p,#settingsInfoModal.guide-expanded .guide-flow {font-size:17px;}
    #settingsInfoModal.guide-expanded .guide-site {font-size:34px;}
    #settingsInfoModal.guide-expanded .guide-brand {width:220px;}
    #settingsInfoModal.guide-expanded .guide-qr {width:150px;height:150px;}
    #settingsInfoModal.guide-expanded .guide-msx {width:160px;}
    #settingsInfoModal.guide-expanded .guide-picture {max-height:29vh;}
    #settingsInfoModal.guide-expanded .guide-nav button {font-size:17px;min-height:42px;}
    #settingsInfoModal .guide-hold {padding:10px;}
    #settingsInfoModal .guide-hold-key {width:64px;height:64px;font-size:20px;padding-top:8px;margin-right:10px;}
    #settingsInfoModal .guide-hold-key span {font-size:12px;}
    #settingsInfoModal .guide-hold-copy strong {font-size:18px;}
}

/* Information and settings presentation only — revision 14. */
html body #appSettingsModal .modal-window,html body #settingsInfoModal.guide-expanded .settings-info-window{background:#24213e;background:linear-gradient(145deg,#30244f,#191f39 55%,#173d46);border:2px solid #8d79cb;box-shadow:0 12px 45px rgba(0,0,0,.55);color:#fff}
html body #appSettingsModal .app-settings-choices > button{background:#40376b;background:linear-gradient(110deg,#51418a,#303e68);border:1px solid #a08be0;color:#fff;border-radius:18px}
html body #appSettingsModal .app-settings-choices > button[data-settings-action="quality"]{background:linear-gradient(110deg,#236b88,#394c91)}
html body #appSettingsModal .app-settings-choices > button[data-settings-action="about"]{background:linear-gradient(110deg,#67438e,#433a70)}
html body #appSettingsModal .app-settings-choices > #settingsQuickContact{background:linear-gradient(110deg,#176e68,#285679)}
html body #appSettingsModal .app-settings-choices > button:focus,html body #appSettingsModal .app-settings-choices > button.remote-focused{background:#586ca6;outline:2px solid #fff;box-shadow:0 0 18px #a9bfff;color:#fff}
#settingsInfoModal.guide-expanded [data-guide-page]{padding:16px;border:1px solid #716ba7;border-radius:20px;background:#292b48}
#settingsInfoModal.guide-expanded h3{color:#a7efff;text-shadow:0 2px 8px #10142e}
#settingsInfoModal.guide-expanded .guide-flow{background:#394b79;border-color:#8da9ea;color:#fff}
#settingsInfoModal.guide-expanded .guide-nav button{background:#45447e;border:1px solid #a3a5ef}
#settingsInfoModal.guide-expanded .guide-nav button:focus,#settingsInfoModal.guide-expanded .guide-nav button.remote-focused{background:#5275a9;outline:2px solid #fff;box-shadow:0 0 12px #b4ccff}
#settingsInfoModal .guide-important{padding:10px 16px;margin:10px auto 14px;background:#174b4c;border:2px solid #6ce2bc;border-radius:16px;color:#fff}
#settingsInfoModal .guide-important strong{font-size:1.5em;color:#9fffe0}
#settingsInfoModal .guide-important p{margin:5px 0}
#settingsInfoModal .guide-setup-layout{display:flex;align-items:center;justify-content:center;text-align:left}
#settingsInfoModal .guide-settings-photo{width:52%;height:auto;max-height:44vh;object-fit:contain;border-radius:12px;margin-right:18px}
#settingsInfoModal .guide-setting-list{flex:1;min-width:0;font-size:21px}
#settingsInfoModal .guide-setting-list > div{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;margin:5px 0;background:#364567;border:1px solid #6f88b4;border-radius:10px}
#settingsInfoModal .guide-setting-list b{color:#b9eaff;text-align:right;margin-left:12px}
#settingsInfoModal .guide-setting-list .guide-setting-critical{background:#18534b;border:2px solid #77ebc4}
#settingsInfoModal .guide-setting-critical b{color:#a4ffdb}
#settingsInfoModal.guide-expanded p.guide-note{font-size:17px;color:#c9d8ef}
@media(min-width:1900px){#settingsInfoModal .guide-setting-list{font-size:29px}#settingsInfoModal .guide-setting-list > div{padding:12px 16px}#settingsInfoModal.guide-expanded p.guide-note{font-size:24px}#settingsInfoModal .guide-important strong{font-size:36px}}
@media(max-width:750px){#settingsInfoModal .guide-setup-layout{display:block}#settingsInfoModal .guide-settings-photo{width:100%;max-height:none;margin:0 auto 8px;display:block}#settingsInfoModal .guide-setting-list{font-size:16px}#settingsInfoModal.guide-expanded [data-guide-page]{padding:8px}#settingsInfoModal.guide-expanded p.guide-note{font-size:14px}}

/* Revision 15 — full-height guide, fixed bottom navigation, TV-safe flex layout. */
html body #settingsInfoModal.guide-expanded .settings-info-window {
    display:flex;flex-direction:column;align-items:stretch;gap:0;
    overflow:hidden;padding:3vh 3vw 2vh;
}
html body #settingsInfoModal.guide-expanded #settingsInfoTitle {
    flex:0 0 auto;font-size:4.5vh;line-height:1.12;margin:0 60px 1.5vh;
}
html body #settingsInfoModal.guide-expanded [data-guide-panel] {
    flex:1 1 0;min-height:0;box-sizing:border-box;display:flex;flex-direction:column;
    align-items:stretch;justify-content:center;overflow:hidden;
}
html body #settingsInfoModal.guide-expanded [data-guide-page] {
    flex:1 1 0;min-height:0;box-sizing:border-box;display:flex;flex-direction:column;
    align-items:center;justify-content:center;padding:1.5vh 2vw;overflow:hidden;
}
html body #settingsInfoModal.guide-expanded [hidden]{display:none!important}
html body #settingsInfoModal.guide-expanded h3 {flex:0 0 auto;font-size:4.1vh;line-height:1.12;margin:0 0 1.2vh;}
html body #settingsInfoModal.guide-expanded p {flex:0 0 auto;font-size:3.25vh;line-height:1.22;margin:0.8vh 0;max-width:100%;}
html body #settingsInfoModal.guide-expanded .guide-flow {flex:0 0 auto;font-size:3.1vh;line-height:1.18;padding:1vh 1.5vw;margin:0.7vh 0;max-width:100%;box-sizing:border-box;}
html body #settingsInfoModal.guide-expanded .guide-msx,
html body #settingsInfoModal.guide-expanded .guide-picture {flex:0 1 auto;min-height:0;object-fit:contain;width:auto;max-width:100%;height:auto;max-height:34vh;margin:0.5vh auto;}
html body #settingsInfoModal.guide-expanded .guide-msx {height:28vh;}
html body #settingsInfoModal.guide-expanded .guide-nav {flex:0 0 auto;display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;margin:1.5vh 0 0;padding:0.5vh 0;min-height:8vh;}
html body #settingsInfoModal.guide-expanded .guide-nav button {flex:0 0 auto;box-sizing:border-box;min-height:7.2vh;min-width:16vw;font-size:3.3vh;font-weight:700;line-height:1.15;padding:1vh 2vw;margin:0 1vw;border-radius:999px!important;border:2px solid #a9b8f3;background:#45447e;background:linear-gradient(135deg,#554c9c,#344e83);color:#fff;outline:none!important;}
html body #settingsInfoModal.guide-expanded .guide-nav button:focus,
html body #settingsInfoModal.guide-expanded .guide-nav button.remote-focused,
html body #appSettingsModal .app-settings-choices > button:focus,
html body #appSettingsModal .app-settings-choices > button.remote-focused {outline:none!important;outline-offset:0!important;border-radius:999px!important;border-color:#e4f3ff!important;background:#426ca5;background:linear-gradient(135deg,#3d86c6,#6054ac);box-shadow:inset 0 0 0 2px #b6daff,0 0 14px #8abaff!important;}
html body #settingsInfoModal.guide-expanded .guide-nav button:disabled{opacity:.4;box-shadow:none!important;}
html body #settingsInfoModal.guide-expanded #guideCounter{font-size:3vh;white-space:nowrap;}
html body #settingsInfoModal.guide-expanded .guide-hero{align-items:center;padding:1.5vh 2vw;}
html body #settingsInfoModal.guide-expanded .guide-brand{flex:0 1 auto;min-height:0;width:30vw;max-height:12vh;object-fit:contain;}
html body #settingsInfoModal.guide-expanded .guide-site{font-size:5vh;margin:1vh 0;}
html body #settingsInfoModal.guide-expanded .guide-qr{flex:0 1 auto;min-height:0;width:25vh;height:25vh;object-fit:contain;box-sizing:border-box;}
html body #settingsInfoModal.guide-expanded .guide-important{flex:0 0 auto;margin:0 0 1vh;padding:0.7vh 1vw;max-width:100%;box-sizing:border-box;}
html body #settingsInfoModal.guide-expanded .guide-important strong{font-size:3.6vh;}
html body #settingsInfoModal.guide-expanded .guide-important p{font-size:2.8vh;margin:0.3vh 0;}
html body #settingsInfoModal.guide-expanded .guide-setup-layout{flex:0 1 auto;min-height:0;width:100%;display:flex;align-items:center;}
html body #settingsInfoModal.guide-expanded .guide-settings-photo{width:49%;max-height:36vh;object-fit:contain;margin:0 1vw 0 0;}
html body #settingsInfoModal.guide-expanded .guide-setting-list{font-size:2.55vh;}
html body #settingsInfoModal.guide-expanded .guide-setting-list > div{padding:0.55vh 0.7vw;margin:0.35vh 0;}
html body #settingsInfoModal.guide-expanded p.guide-note{font-size:2.35vh;}
html body #settingsInfoModal.guide-expanded .guide-hold{flex:0 0 auto;box-sizing:border-box;width:100%;padding:1vh 1vw;margin:0.6vh 0;}
html body #settingsInfoModal.guide-expanded .guide-hold-key{width:10vh;height:10vh;font-size:3.6vh;padding-top:1.3vh;margin-right:1.4vw;}
html body #settingsInfoModal.guide-expanded .guide-hold-key span{font-size:2vh;}
html body #settingsInfoModal.guide-expanded .guide-hold-copy strong{font-size:3.1vh;}
html body #settingsInfoModal.guide-expanded .guide-hold-copy p{font-size:2.8vh;margin:0.5vh 0;}
html body #settingsInfoModal.guide-expanded .guide-hold-hearts{font-size:3vh;}
html body #settingsInfoModal.guide-expanded #closeSettingsInfo:focus,
html body #settingsInfoModal.guide-expanded #closeSettingsInfo.remote-focused {outline:none!important;border-radius:50%!important;box-shadow:0 0 12px #a9caff!important;}
@media(max-aspect-ratio: 1/1){
    html body #settingsInfoModal.guide-expanded h3{font-size:4.5vw;}
    html body #settingsInfoModal.guide-expanded p,html body #settingsInfoModal.guide-expanded .guide-flow{font-size:3.7vw;}
    html body #settingsInfoModal.guide-expanded .guide-nav button{font-size:4vw;min-width:26vw;}
    html body #settingsInfoModal.guide-expanded .guide-setup-layout{flex-direction:column;}
    html body #settingsInfoModal.guide-expanded .guide-settings-photo{width:85%;max-height:20vh;margin:0;}
    html body #settingsInfoModal.guide-expanded .guide-setting-list{width:100%;font-size:3.4vw;}
    html body #settingsInfoModal.guide-expanded .guide-important p,html body #settingsInfoModal.guide-expanded p.guide-note,html body #settingsInfoModal.guide-expanded .guide-hold-copy p{font-size:3.3vw;}
}
/* Override legacy compact-screen modal display rules as well. */
html body #settingsInfoModal.guide-expanded .settings-info-window{display:flex!important;overflow:hidden!important;flex-direction:column!important;}
html body #settingsInfoModal.guide-expanded .settings-info-window{padding:3vh 3vw 2vh!important;}

/* Compact settings: override the legacy movie-dialog padding on mobile only. */
@media (max-width:900px), (max-height:500px) and (max-width:1899px) {
    html body #appSettingsModal {align-items:flex-start!important;justify-content:center!important;padding:6px!important;}
    html body #appSettingsModal > .modal-window.settings-info-window {
        display:block!important;position:relative!important;top:0!important;transform:none!important;
        width:100%!important;max-width:570px!important;min-height:0!important;height:auto!important;
        max-height:calc(100vh - 12px)!important;max-height:calc(100dvh - 12px)!important;
        margin:0 auto!important;padding:10px 12px 12px!important;overflow:visible!important;
        box-sizing:border-box!important;border-radius:18px!important;
    }
    html body #appSettingsModal #appSettingsTitle {
        margin:0 38px 10px!important;font-size:22px!important;line-height:32px!important;
        overflow-wrap:break-word;
    }
    html body #appSettingsModal #closeAppSettings {top:7px!important;right:8px!important;width:32px!important;height:32px!important;min-width:0!important;min-height:0!important;padding:0!important;}
    html body #appSettingsModal .app-settings-choices {display:flex!important;flex-direction:column!important;gap:0!important;margin:0!important;padding:0!important;}
    html body #appSettingsModal .app-settings-choices > button {
        box-sizing:border-box!important;min-height:42px!important;height:auto!important;
        margin:0 0 6px!important;padding:7px 12px!important;font-size:16px!important;line-height:1.15!important;
        white-space:normal!important;overflow-wrap:break-word;
    }
    html body #appSettingsModal .app-settings-choices > button:last-child {margin-bottom:0!important;}
    html body #appSettingsModal .app-settings-choices > #carplayTimeOffsetButton {padding-inline-end:2.5em!important;}
    html body #appSettingsModal .app-settings-choices > button[hidden] {display:none!important;}
    /* Keep the optional time list independently scrollable without moving the main menu. */
    html body #appSettingsModal #carplayTimeOffsetDropdown:not([hidden]) {
        position:absolute;top:48px;left:12px;right:12px;z-index:101;margin:0;
        padding:6px;background:#28203d;border:1px solid #8c75bf;border-radius:12px;
    }
    html body.light #appSettingsModal #carplayTimeOffsetDropdown:not([hidden]) {background:#f6f1ff;}
    html body #appSettingsModal #carplayTimeOffsetOptions {max-height:calc(100vh - 130px);max-height:calc(100dvh - 130px);}
}
@media (max-width:900px) and (max-height:440px), (max-width:1899px) and (max-height:440px) {
    html body #appSettingsModal > .modal-window.settings-info-window {padding:5px 10px 7px!important;}
    html body #appSettingsModal #appSettingsTitle {font-size:18px!important;line-height:30px!important;margin-bottom:4px!important;}
    html body #appSettingsModal .app-settings-choices > button {min-height:30px!important;font-size:14px!important;padding:4px 9px!important;margin-bottom:4px!important;}
}
@media (orientation:landscape) and (max-height:380px) and (max-width:1899px) {
    html body #appSettingsModal .app-settings-choices {display:block!important;font-size:0;}
    html body #appSettingsModal .app-settings-choices > button {display:inline-block!important;vertical-align:top;width:48%!important;margin:0 1% 6px!important;min-height:38px!important;}
    html body #appSettingsModal .app-settings-choices > button[hidden] {display:none!important;}
}

/* Revision 25: settings-related mobile dialogs fill the viewport, not the content. */
@media (max-width:900px) and (orientation:portrait), (max-width:900px) and (max-height:500px), (max-width:1899px) and (max-height:440px) {
    html body #appSettingsModal.modal, html body #settingsInfoModal.modal,
    html body #quickContactModal.modal, html body #carplayLanguagePanel.carplay-country-overlay {
        position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;
        width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
        margin:0!important;padding:5px!important;align-items:stretch!important;justify-content:center!important;
        box-sizing:border-box!important;transform:none!important;background:rgba(8,7,17,.96)!important;
    }
    html body #appSettingsModal.modal > .modal-window.settings-info-window,
    html body #settingsInfoModal.modal > .modal-window.settings-info-window,
    html body #settingsInfoModal.modal.guide-expanded > .modal-window.settings-info-window,
    html body #quickContactModal.modal > .quick-contact-window,
    html body #carplayLanguagePanel.carplay-country-overlay > .carplay-country-window {
        position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
        width:100%!important;min-width:0!important;max-width:none!important;
        height:100%!important;min-height:0!important;max-height:none!important;flex:1 1 auto!important;
        margin:0!important;box-sizing:border-box!important;border-radius:18px!important;transform:none!important;
        box-shadow:0 0 12px rgba(133,105,208,.22)!important;align-self:stretch!important;
    }
    html body #appSettingsModal.modal > .modal-window.settings-info-window {
        display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
        padding:12px 12px 8px!important;overflow:visible!important;
    }
    html body #appSettingsModal #appSettingsTitle {flex:0 0 auto!important;margin:0 38px 12px!important;}
    html body #appSettingsModal .app-settings-choices {flex:0 0 auto!important;min-height:0!important;}
    html body #appSettingsModal .app-settings-choices > button {min-height:38px!important;margin-bottom:6px!important;}
    html body #settingsInfoModal.modal.guide-expanded > .modal-window.settings-info-window {padding:12px 10px 8px!important;}
    html body #quickContactModal.modal > .quick-contact-window {padding:12px 10px 8px!important;overflow:auto!important;}
    html body #quickContactModal #quickContactTitle {margin:0 38px 12px!important;}
    html body #carplayLanguagePanel[hidden] {display:none!important;}
    html body.light #appSettingsModal.modal, html body.light #settingsInfoModal.modal, html body.light #quickContactModal.modal {background:rgba(220,217,232,.96)!important;}
}
@media (max-width:900px) and (orientation:portrait) and (min-height:500px) {
    html body #appSettingsModal .app-settings-choices > button {min-height:44px!important;font-size:16px!important;}
    html body #quickContactModal .quick-contact-grid {flex-direction:column!important;}
    html body #quickContactModal .quick-contact-card {flex:0 0 auto!important;min-height:0!important;margin:0 0 8px!important;padding:8px!important;}
    html body #quickContactModal .quick-contact-qr {max-width:16vh!important;margin-bottom:4px!important;}
}
@media (max-width:1899px) and (max-height:440px) and (orientation:landscape) {
    html body #appSettingsModal.modal > .modal-window.settings-info-window {padding:5px 10px!important;}
    html body #appSettingsModal .app-settings-choices {display:block!important;}
    html body #appSettingsModal .app-settings-choices > button {display:inline-block!important;vertical-align:top;width:48%!important;margin:0 1% 5px!important;min-height:34px!important;}
    html body #appSettingsModal .app-settings-choices > button[hidden] {display:none!important;}
}

/* Rounded dialog surfaces. Keep video dimensions and playback unchanged. */
html body #movieModal .modal-window,
html body #movieModal.vip-details-view .modal-window,
html body #radioModal .radio-modal-window,
html body #tvModal.tv-modal .tv-modal-window,
html body #cardArchive .archive-dialog,
html body #appSettingsModal .settings-info-window,
html body #settingsInfoModal.guide-expanded .settings-info-window,
html body #settingsInfoModal .settings-info-window,
html body #quickContactModal .quick-contact-window,
html body #carplayLanguagePanel .carplay-country-window {border-radius:22px!important;background-clip:padding-box;}
@media(max-width:900px), (max-height:440px) and (max-width:1899px) {
html body #movieModal.vip-details-view .modal-window,
html body #radioModal .radio-modal-window,
html body #tvModal.tv-modal .tv-modal-window,
html body #cardArchive .archive-dialog {border-radius:16px!important;}
html body #appSettingsModal.modal > .modal-window.settings-info-window,
html body #settingsInfoModal.modal > .modal-window.settings-info-window,
html body #settingsInfoModal.modal.guide-expanded > .modal-window.settings-info-window,
html body #quickContactModal.modal > .quick-contact-window,
html body #carplayLanguagePanel.carplay-country-overlay > .carplay-country-window {border-radius:18px!important;}
}


/* CarPlay page styles (index.php). */

/* Радио: увеличенное окно для экранов с доступной шириной от 1900px. */
html.radio-screen-1900 body #radioModal.radio-modal {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: center !important;
}
html.radio-screen-1900 body #radioModal.radio-modal > .radio-modal-window {
    display: flex !important;
    flex: none !important;
    width: 80vw !important;
    min-width: 80vw !important;
    max-width: 80vw !important;
    height: 90vh !important;
    height: 90dvh !important;
    min-height: 90vh !important;
    min-height: 90dvh !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    padding: 62px 5vw 28px !important;
    gap: 12px !important;
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}
/* Уменьшаем высоту окна, одновременно увеличивая логотип и эквалайзер. */
html.radio-screen-1900 body #radioModal .radio-player-art {
    width: 320px !important;
    height: 320px !important;
    flex: 0 0 320px !important;
}
html.radio-screen-1900 body #radioModal .radio-equalizer {
    --eq-radius: 82px !important;
    width: 250px !important;
    height: 250px !important;
    min-width: 250px !important;
    min-height: 250px !important;
    max-width: 250px !important;
    max-height: 250px !important;
    margin: 2px auto !important;
}
html.radio-screen-1900 body #radioModal .radio-equalizer i {
    width: 5px !important;
    height: 22px !important;
    margin: -11px 0 0 -2.5px !important;
}
html.radio-screen-1900 body #radioModal .radio-player-controls {
    position: absolute !important;
    top: 65% !important;
    left: 48px !important;
    right: 48px !important;
    width: auto !important;
    height: 0 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    z-index: 5 !important;
}
html.radio-screen-1900 body #radioModal .radio-player-controls > #radioStart,
html.radio-screen-1900 body #radioModal .radio-player-controls > #radioStop {
    position: absolute !important;
    top: 0 !important;
    pointer-events: auto !important;
}
html.radio-screen-1900 body #radioModal .radio-player-controls > #radioStart {
    left: 0 !important;
    right: auto !important;
}
html.radio-screen-1900 body #radioModal .radio-player-controls > #radioStop {
    right: 0 !important;
    left: auto !important;
}
html.radio-screen-1900 body #radioModal .radio-player-controls > #radioStart,
html.radio-screen-1900 body #radioModal .radio-player-controls > #radioStop {
    flex: 0 0 340px !important;
    width: 340px !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 88px !important;
    height: 88px !important;
    margin: 0 !important;
    padding: 18px 30px !important;
    font-size: 27px !important;
    box-sizing: border-box !important;
}
/* Дополнительная настройка радио для экранов от 1900px. */
html.radio-screen-1900 body #radioModal .radio-modal-window > #closeRadioModal {
    top: 18px !important;
    right: 22px !important;
    left: auto !important;
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    min-height: 82px !important;
    font-size: 44px !important;
    line-height: 1 !important;
    display: grid !important;
    place-items: center !important;
}
html.radio-screen-1900 body #radioModal #radioModalTitle {
    font-weight: 900 !important;
    margin: 18px 0 22px !important;
    line-height: 1.2 !important;
}
html.radio-screen-1900 body #radioModal .radio-player-art {
    margin-bottom: 18px !important;
}
html.radio-screen-1900 body #radioModal .radio-player-status {
    margin-top: 2px !important;
    margin-bottom: 8px !important;
}
html.radio-screen-1900 body #radioModal .radio-equalizer {
    margin-top: 18px !important;
    margin-bottom: 20px !important;
}
#settingsDeviceButton { display:flex; align-items:center; justify-content:space-between; direction:ltr; }
#settingsDeviceLabel.has-device-avatar, #settingsDeviceOptions .carplay-device-option.has-device-avatar {
    display:flex; align-items:center; justify-content:flex-start; min-width:0; text-align:left; direction:ltr;
}
#settingsDeviceLabel.has-device-avatar { flex:1 1 auto; }
#settingsDeviceLabel .carplay-device-avatar, #settingsDeviceOptions .carplay-device-avatar {margin-right:.7em;}
.carplay-device-avatar { display:block; flex:0 0 auto; width:1.65em; height:1.65em; border-radius:25%; object-fit:cover; }
.carplay-device-avatar-label { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#mobileControls {--device-avatar-size:42px;}
html body .topbar #mobileControls > #carplayHeaderAvatar {
    box-sizing:border-box; position:relative; display:block; flex:0 0 42px !important; align-self:center;
    width:42px !important; height:42px !important;
    min-width:0 !important; min-height:0 !important; max-width:none !important; max-height:none !important;
    padding:0 !important; margin:0 !important; border:0; border-radius:50% !important;
    background:#342258 !important; overflow:hidden; cursor:pointer;
    -webkit-appearance:none; appearance:none;
}
html body .topbar #mobileControls > #carplayHeaderAvatar::after {
    content:""; position:absolute; top:0; right:0; bottom:0; left:0;
    border:1px solid #c6a8ff; border-radius:50%; pointer-events:none;
}
html body .topbar #mobileControls > #carplayHeaderAvatar[hidden] {display:none !important;}
/* Keep the reserved avatar footprint; only the image layer changes after loading. */
html body .topbar #mobileControls > #carplayHeaderAvatar > .carplay-header-avatar-placeholder {
    position:absolute; top:0; left:0; display:block; width:100%; height:100%;
    border-radius:50%; pointer-events:none;
}

html body .topbar #mobileControls > #carplayHeaderAvatar > img {
    position:absolute; top:0; left:0; display:block !important;
    width:100% !important; height:100% !important;
    max-width:none !important; max-height:none !important;
    margin:0 !important; padding:0 !important;
    border-radius:50% !important; object-fit:cover;
}
html body .topbar #mobileControls > #carplayHeaderAvatar:focus,
html body .topbar #mobileControls > #carplayHeaderAvatar.remote-focused,
html body .topbar #mobileControls > #carplayHeaderAvatar.is-open {
    outline:none !important;
    box-shadow:0 0 0 3px #d8c6ff, 0 0 14px #9260ff !important;
}
html body .topbar #mobileControls > #carplayHeaderAvatar:focus::after,
html body .topbar #mobileControls > #carplayHeaderAvatar.remote-focused::after,
html body .topbar #mobileControls > #carplayHeaderAvatar.is-open::after {
    border:3px solid #fff !important;
    box-shadow:inset 0 0 8px #9260ff !important;
}
@media (max-width:900px) and (orientation:portrait) {
    html body .topbar #mobileControls.has-header-device-avatar > #search {width:calc(100% - var(--device-avatar-size) - 8px) !important;}
    #carplayHeaderAvatar {
        grid-area:1 / 1 / 2 / 4; justify-self:right;
    }
}
@media (max-width:900px) and (min-height:651px) and (orientation:landscape) {
    html body .topbar #mobileControls.has-header-device-avatar > #search {width:calc(100% - var(--device-avatar-size) - 6px) !important;}
    #carplayHeaderAvatar {
        grid-area:1 / 1 / 2 / 2; justify-self:right;
    }
}
@media (min-width:901px) {
    html body .topbar #mobileControls.has-header-device-avatar > #search {
        min-width:48px !important; flex:1 1 0 !important;
    }
    html body .topbar #mobileControls.has-header-device-avatar > :is(#search,#list,#category,#thFilm,#tvBtn,#thRad) {
        margin-inline:0 !important;
    }
}
html body #appSettingsModal .app-settings-choices > #carplayTimeOffsetButton {
    position:relative; padding-inline-end:2.5em;
}
html body #appSettingsModal .app-settings-choices > #carplayTimeOffsetButton,
html body #appSettingsModal .app-settings-choices > #settingsThemeToggle {
    margin-top:12px;
}
@media (min-width:1900px) {
    html body #appSettingsModal .app-settings-choices > #carplayTimeOffsetButton,
    html body #appSettingsModal .app-settings-choices > #settingsThemeToggle {margin-top:15px;}
}
#carplayTimeOffsetButton::after {
    content:"▾"; position:absolute; inset-inline-end:1em; top:50%; transform:translateY(-50%);
}
#carplayTimeOffsetButton[aria-expanded="true"]::after {content:"▴";}
#carplayTimeOffsetDropdown {margin-top:6px;}
#carplayTimeOffsetButton[hidden], #carplayTimeOffsetDropdown[hidden], #carplayTimeOffsetStatus:empty {display:none !important;}
#carplayTimeOffsetOptions {
    box-sizing:border-box; max-height:210px; max-height:clamp(110px, 27vh, 300px); overflow-y:auto;
    padding:5px; border:1px solid #8c75bf; border-radius:12px; background:#28203d;
}
#carplayTimeOffsetOptions button {
    display:block; box-sizing:border-box; width:100%; min-height:1.65em; margin:0;
    padding:.35em .65em; border:0; border-radius:8px; background:transparent; color:#fff;
    font-family:inherit; font-size:21px !important; font-size:clamp(18px, 1.55vw, 28px) !important; font-weight:700;
    font-variant-numeric:tabular-nums; text-align:center;
}
#carplayTimeOffsetOptions button[aria-selected="true"] {background:#47326c;}
#carplayTimeOffsetOptions button:focus {outline:2px solid #ccafff; outline-offset:-2px;}
.light #carplayTimeOffsetOptions {background:#f6f1ff;}
.light #carplayTimeOffsetOptions button {color:#281644;}
.light #carplayTimeOffsetOptions button[aria-selected="true"] {background:#e0d1ff;}
#appSettingsModal .settings-info-window {max-height:calc(100vh - 24px); overflow-y:auto;}
#carplayClock {
    position:absolute; right:16px; right:clamp(12px, 1.75vw, 52px); top:50%; transform:translateY(-50%);
    display:block; direction:ltr; white-space:nowrap;
    color:#f7f2ff; text-shadow:0 2px 6px #0009;
    font-family:Inter, "Segoe UI", Arial, sans-serif;
    font-size:22px; font-size:clamp(16px, 1.34vw, 25px); font-weight:700; line-height:1;
    font-variant-numeric:tabular-nums; letter-spacing:.025em;
}
#carplayClockDay {margin-right:.24em;}
#carplayClockSlot {order:2;}
#carplayClock[hidden] {display:none !important;}
.light #carplayClock {color:#382258; text-shadow:none;}
@media (max-width:900px) {
    #carplayClock {position:static; transform:none; font-size:17px; font-size:clamp(14px, 1.8vw, 18px);}
}
@media (min-width:1900px) {
    #carplayClock {right:34px; font-size:40px;}
    #carplayTimeOffsetOptions {max-height:300px;}
    #carplayTimeOffsetOptions button {font-size:36px !important;}
}
@media (min-width:2560px) {
    #carplayClock {right:48px; font-size:50px;}
    #carplayTimeOffsetOptions {max-height:380px;}
    #carplayTimeOffsetOptions button {font-size:44px !important;}
}
@media (max-width:600px), (max-width:950px) and (max-height:600px) and (pointer:coarse) {
    #carplayClockSlot {display:none !important;}
}
@keyframes device-avatar-pulse { 50% { filter:brightness(1.24); transform:scale(.93); } }
@keyframes header-device-avatar-pulse { 50% { filter:brightness(1.24); } }
@media (prefers-reduced-motion: no-preference) {
    .carplay-device-avatar.is-animated { animation: device-avatar-pulse 2.6s ease-in-out infinite; }
    #carplayHeaderAvatar > .is-animated { animation-name:header-device-avatar-pulse; }
}
/* Keep the catalogue controls inside the visible TV viewport. */
html.carplay-tv-safe body .topbar,
html.carplay-tv-safe body .movies-container {
    box-sizing:border-box !important; width:100% !important; max-width:100% !important;
    padding-left:3vw !important; padding-right:3vw !important;
}
html.carplay-tv-safe body .topbar {padding-top:1.8vh !important;}
html.carplay-tv-safe body .topbar #mobileControls {min-width:0 !important;}
html.carplay-tv-safe body .topbar #mobileControls > #search {min-width:0 !important; flex:1 1 0 !important;}
html.carplay-tv-safe body .topbar #mobileControls > #list,
html.carplay-tv-safe body .topbar #mobileControls > #category,
html.carplay-tv-safe body .topbar #mobileControls > #thFilm,
html.carplay-tv-safe body .topbar #mobileControls > #tvBtn,
html.carplay-tv-safe body .topbar #mobileControls > #thRad {margin-left:0 !important; margin-right:0 !important;}
html.carplay-tv-safe body #movies {box-sizing:border-box !important; max-width:100% !important; min-width:0 !important;}
html.carplay-tv-safe body .pagination {
    padding-left:3vw !important; padding-right:3vw !important;
    box-sizing:border-box !important;
}
html.carplay-tv-safe body #carplayClock {right:3vw;}
html.carplay-overscan body .topbar,
html.carplay-overscan body .movies-container,
html.carplay-overscan body .pagination {
    box-sizing:border-box !important;
    padding-left:5vw !important;
    padding-right:5vw !important;
}
html.carplay-overscan body .topbar {
    padding-top:5vh !important;
    min-width:0 !important;
}
@media (min-width:901px) {
html.carplay-overscan body .topbar #mobileControls {
    flex:1 1 0px !important;
    width:0 !important;
    max-width:100% !important;
}
html.carplay-overscan body .topbar #mobileControls > .settings-menu-wrap {
    flex:0 0 auto !important;
    margin-right:0 !important;
}
html.carplay-overscan body .topbar #mobileControls > #list,
html.carplay-overscan body .topbar #mobileControls > #category {
    min-width:0 !important;
    width:auto !important;
    flex:0 1 auto !important;
    max-width:14vw !important;
}
}
html.carplay-overscan body #carplayClock {right:5vw;}
html.carplay-overscan body .pagination {padding-bottom:2vh !important;}
html.carplay-overscan body #movieModal .modal-window,
html.carplay-overscan body #cardArchive .archive-dialog {
    max-height:88vh !important;
    max-width:90vw !important;
}

/* Space between the search, avatar and buttons in the single-row header. */
@media (min-width:901px) {
    html body > .topbar #mobileControls,
    html body > .topbar #mobileControls.open {
        --header-control-gap:8px;
        gap:var(--header-control-gap) !important;
    }
    html.carplay-tv-header body > .topbar #mobileControls,
    html.carplay-tv-header body > .topbar #mobileControls.open {
        gap:var(--header-control-gap) !important;
    }
    html body > .topbar #mobileControls > #search {
        flex:1 1 0px !important;
        width:0 !important;
        min-width:0 !important;
    }
}
@media (min-width:901px) and (max-width:1200px) {
    html body > .topbar #mobileControls {--header-control-gap:5px;}
}
@media (min-width:1900px) {
    html body > .topbar #mobileControls {--header-control-gap:12px;}
}
#carplayLoginError.is-denied {
    margin:14px 0 4px;
    color:#ff4d63;
    font-size:clamp(19px, 1.6vw, 32px) !important;
    font-weight:800;
    line-height:1.25;
    text-align:center;
}
html body #settingsDeviceOptions.carplay-picker-options:not([hidden]) {
    padding:8px !important;
    border-radius:20px !important;
    background:#282037 !important;
}
html body #settingsDeviceOptions > .carplay-device-option {
    display:flex !important;
    align-items:center;
    justify-content:flex-start;
    box-sizing:border-box;
    width:100% !important;
    min-width:0 !important;
    min-height:46px;
    margin:0;
    padding:6px 12px;
    border:1px solid #7558a4;
    border-radius:14px;
    background:linear-gradient(145deg,#473365,#312447);
    color:#fff;
    font:700 16px/1.25 system-ui,sans-serif;
    font-size:clamp(15px, 1.18vw, 28px);
    text-align:start;
    cursor:pointer;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    -webkit-appearance:none;
    appearance:none;
}
html body #settingsDeviceOptions > .carplay-device-option + .carplay-device-option {margin-top:6px;}
html body #settingsDeviceOptions > .carplay-device-option[aria-selected="true"] {
    border-color:#c6a8ff;
    background:linear-gradient(145deg,#694993,#49316f);
}
html body #settingsDeviceOptions > .carplay-device-option.device-remote-focused,
html body #settingsDeviceOptions > .carplay-device-option:focus,
html body #settingsDeviceOptions > .carplay-device-option:hover {
    outline:0;
    border-color:#fff !important;
    background:linear-gradient(145deg,#8059b7,#563387) !important;
    color:#fff !important;
    box-shadow:inset 0 0 0 2px #e2d0ff !important;
}
html body #settingsDeviceOptions .carplay-device-avatar {
    width:1.7em;
    height:1.7em;
    padding:0 !important;
    border-radius:50%;
}
html body #settingsDeviceOptions .carplay-device-avatar-label {flex:1 1 auto;}
@media (min-width:1900px) {
    html body #settingsDeviceOptions.carplay-picker-options:not([hidden]) {
        padding:14px !important;
        border-radius:24px !important;
    }
    html body #settingsDeviceOptions > .carplay-device-option {
        min-height:80px;
        min-height:clamp(80px, 4.5vw, 145px);
        padding:10px 20px;
        font-size:32px;
        font-size:clamp(32px, 1.8vw, 58px);
        border-radius:18px;
    }
    html body #settingsDeviceOptions > .carplay-device-option + .carplay-device-option {
        margin-top:10px;
    }
}

/* The header and pager take their actual height from the same layout as the grid. */
html,
html body {
    height:100vh !important;
    height:100dvh !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:hidden !important;
    scrollbar-gutter:auto;
}
html body {
    display:flex !important;
    flex-direction:column !important;
}
html body > .topbar,
html body > .pagination {
    flex:0 0 auto !important;
}
html body > .pagination {
    position:relative !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
}
html body > .movies-container {
    --carplay-columns:6;
    --carplay-rows:2;
    flex:1 1 0px !important;
    height:0 !important;
    min-height:0 !important;
    max-height:none !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
}
html body > .movies-container > #movies {
    display:grid !important;
    box-sizing:border-box !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    grid-template-columns:repeat(var(--carplay-columns),minmax(0,1fr)) !important;
    grid-template-rows:repeat(var(--carplay-rows),minmax(0,1fr)) !important;
    gap:10px !important;
    padding:5px !important;
    align-content:stretch !important;
    align-items:stretch !important;
}
html body > .movies-container > #movies > .movie {
    display:flex !important;
    flex-direction:column !important;
    box-sizing:border-box !important;
    width:100% !important;
    height:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    max-height:100% !important;
    margin:0 !important;
}
html body > .movies-container > #movies[data-content-type] > .movie > img {
    flex:1 1 0px !important;
    box-sizing:border-box !important;
    height:0 !important;
    min-height:0 !important;
    max-height:none !important;
    aspect-ratio:auto !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
}
html body > .movies-container > #movies[data-content-type] > .movie > .movie-info {
    position:static !important;
    box-sizing:border-box !important;
    flex:0 0 auto !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
}
@media (min-width:1900px) and (max-width:2199.98px) {
    html body > .movies-container > #movies[data-content-type="tv"] > .movie > .movie-info {
        flex:0 0 78px !important;
        height:78px !important;
        min-height:78px !important;
        max-height:78px !important;
    }
}
@media (max-width:900px) {
    html body > .movies-container {--carplay-columns:4;}
    html body > .movies-container > #movies {padding:0 !important; gap:8px !important;}
}
@media (max-width:600px) {
    html body > .movies-container {--carplay-columns:2;}
}
@media (max-width:600px) and (max-height:520px) {
    html body > .movies-container {--carplay-rows:1;}
}
@media (min-width:500px) and (max-width:600px) and (orientation:landscape) {
    html body > .movies-container {--carplay-columns:3;}
}
@media (max-width:1899.98px) and (max-height:650px), (min-width:2200px) and (max-height:850px) {
    html body > .movies-container > #movies[data-content-type="tv"] > .movie > .channel-number,
    html body > .movies-container > #movies[data-content-type="tv"] > .movie > .card-info-button,
    html body > .movies-container > #movies[data-content-type="tv"] > .movie > .archive {
        top:calc(var(--poster-top,5px) + 3px) !important;
        width:22px !important; min-width:22px !important; max-width:22px !important;
        height:22px !important; min-height:22px !important; max-height:22px !important;
        font-size:12px !important;
    }
    html body > .movies-container > #movies[data-content-type="tv"] > .movie > .channel-number {
        width:auto !important;
        max-width:none !important;
        padding:0 4px !important;
    }
    html body > .movies-container > #movies[data-content-type="tv"] > .movie > img {
        padding-top:25px !important;
        padding-top:clamp(25px, 5vh, 35px) !important;
    }
    html body > .movies-container > #movies[data-content-type="tv"] > .movie.has-card-epg > img {
        padding-bottom:24px !important;
        padding-bottom:clamp(20px, 5vh, 34px) !important;
    }
    html body > .movies-container > #movies[data-content-type="tv"] .card-epg {
        bottom:calc(var(--poster-bottom,5px) + 3px) !important;
        font-size:clamp(10px, 2.2vh, 16px) !important;
    }
    html body > .movies-container > #movies[data-content-type] > .movie {
        padding:5px !important;
    }
    html body > .movies-container > #movies[data-content-type] > .movie > .movie-info {
        padding:3px 4px !important;
    }
    html body > .movies-container > #movies[data-content-type] > .movie > .movie-info h3 {
        display:block !important;
        font-size:clamp(12px, 2.7vh, 19px) !important;
        line-height:1.15 !important;
        white-space:nowrap !important;
        text-overflow:ellipsis !important;
    }
    html body > .movies-container > #movies[data-content-type] > .movie > .movie-info p {
        font-size:clamp(10px, 2.2vh, 16px) !important;
        line-height:1.15 !important;
    }
}
html body > .movies-container > #movies[data-content-type] > .movie > img,
html body > .movies-container > #movies[data-content-type="tv"] > .movie.has-card-epg > img {
    width:100% !important;
    max-width:100% !important;
    padding-left:5px !important;
    padding-right:5px !important;
}
html body > .movies-container > #movies[data-content-type="tv"] > .movie > img,
html body > .movies-container > #movies[data-content-type="tv"] > .movie.has-card-epg > img,
html body > .movies-container > #movies[data-content-type="radio"] > .movie > img {
    object-fit:contain !important;
    object-position:center !important;
}

/* Single responsive header layout; overrides legacy viewport-specific widths. */
html body > header.topbar.topbar {--cp-gap:clamp(4px,.48vw,14px);--cp-h:clamp(34px,3.4vw,82px);--cp-font:clamp(12px,1.18vw,30px);display:flex!important;flex-direction:row!important;align-items:center!important;gap:var(--cp-gap)!important;box-sizing:border-box!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important;}
html body > header.topbar.topbar > .logo-wrap {flex:0 0 auto!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;}
html body > header.topbar.topbar .carplay-brand {width:clamp(90px,12vw,300px)!important;max-width:100%!important;margin:0!important;}
html body > header.topbar.topbar #mobileMenuBtn {display:none!important;}
html body > header.topbar.topbar #mobileControls.mobile-controls {display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;position:static!important;flex:1 1 0%!important;width:0!important;min-width:0!important;max-width:none!important;height:auto!important;max-height:none!important;gap:var(--cp-gap)!important;column-gap:var(--cp-gap)!important;row-gap:var(--cp-gap)!important;margin:0!important;padding:0!important;overflow:visible!important;background:none!important;box-shadow:none!important;}
html body > header.topbar.topbar #mobileControls.mobile-controls > :is(#search,#list,#category,#thFilm,#tvBtn,#thRad,#carplayHeaderAvatar,.settings-menu-wrap),
html body > header.topbar.topbar #mobileControls.mobile-controls > .settings-menu-wrap #settingsBtn {box-sizing:border-box!important;min-width:0!important;max-width:none!important;width:auto!important;height:var(--cp-h)!important;min-height:var(--cp-h)!important;max-height:var(--cp-h)!important;margin:0!important;padding:0 5px!important;font-size:var(--cp-font)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;border-radius:999px!important;transform:none!important;}
html body > header.topbar.topbar #mobileControls.mobile-controls > #search {flex:2 1 0%!important;min-width:55px!important;padding-inline:10px!important;order:0;}
html body > header.topbar.topbar #mobileControls.mobile-controls > #carplayHeaderAvatar {flex:0 0 var(--cp-h)!important;width:var(--cp-h)!important;min-width:var(--cp-h)!important;max-width:var(--cp-h)!important;padding:0!important;order:1;}
html body > header.topbar.topbar #mobileControls.mobile-controls > #list {flex:1.5 1 0%!important;order:2;}
html body > header.topbar.topbar #mobileControls.mobile-controls > #category {flex:1.5 1 0%!important;order:3;}
html body > header.topbar.topbar #mobileControls.mobile-controls > #thFilm {flex:1 1 0%!important;order:4;}
html body > header.topbar.topbar #mobileControls.mobile-controls > #tvBtn {flex:1 1 0%!important;order:5;}
html body > header.topbar.topbar #mobileControls.mobile-controls > #thRad {flex:1 1 0%!important;order:6;}
html body > header.topbar.topbar #mobileControls.mobile-controls > .settings-menu-wrap {flex:0 0 var(--cp-h)!important;width:var(--cp-h)!important;overflow:visible!important;padding:0!important;order:7;}
html body > header.topbar.topbar #mobileControls.mobile-controls > .settings-menu-wrap #settingsBtn {width:100%!important;padding:0!important;font-size:calc(var(--cp-h)*.53)!important;}
html body > header.topbar.topbar #mobileControls.mobile-controls > select,
html body > header.topbar.topbar #mobileControls.mobile-controls > [hidden] {display:none!important;}
@media(max-width:1100px) {
 html body > header.topbar.topbar {--cp-h:clamp(32px,5vw,46px);--cp-font:clamp(12px,1.8vw,16px);}
 html body > header.topbar.topbar #mobileControls.mobile-controls {flex-wrap:wrap!important;--cp-reserved:calc(var(--cp-h) + var(--cp-gap));}
 html body > header.topbar.topbar #mobileControls.mobile-controls.has-header-device-avatar {--cp-reserved:calc(2 * (var(--cp-h) + var(--cp-gap)));}
 html body > header.topbar.topbar #mobileControls.mobile-controls > #search {flex:0 0 calc(100% - var(--cp-reserved))!important;min-width:0!important;}
 html body > header.topbar.topbar #mobileControls.mobile-controls > .settings-menu-wrap {order:1;}
 html body > header.topbar.topbar #mobileControls.mobile-controls > :is(#list,#category,#thFilm,#tvBtn,#thRad) {min-width:0!important;}
 html body > header.topbar.topbar #settingsMenu {position:absolute!important;top:100%!important;left:auto!important;right:8px!important;width:min(440px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;}
}
@media(max-width:600px) and (orientation:portrait) {
 html body > header.topbar.topbar {flex-direction:column!important;align-items:stretch!important;--cp-h:38px;}
 html body > header.topbar.topbar #mobileControls.mobile-controls {flex:0 0 auto!important;width:100%!important;}
 html body > header.topbar.topbar #mobileControls.mobile-controls > #category {flex:0 0 100%!important;}
 html body > header.topbar.topbar #mobileControls.mobile-controls.has-playlist > :is(#list,#category) {flex:0 0 calc((100% - var(--cp-gap))/2)!important;}
 html body > header.topbar.topbar #mobileControls.mobile-controls > :is(#thFilm,#tvBtn,#thRad) {flex:1 1 25%!important;}
}
@media(max-height:480px) and (orientation:landscape) {
 html body > header.topbar.topbar {--cp-h:30px;--cp-font:12px;--cp-gap:4px;padding-block:4px!important;}
}
html body #favorite-notice[data-status="catalogue-error"],html body #favorite-notice[data-status="empty"] {width:clamp(120px,19vmin,310px)!important;height:clamp(120px,19vmin,310px)!important;flex-direction:column!important;border-radius:50%!important;padding:12px!important;border-color:#ffc0c0!important;background:radial-gradient(ellipse at 30% 10%,#ff9eaa,#a3324b 30%,#501522 78%)!important;box-shadow:0 0 26px rgba(255,76,90,.48),0 8px 32px rgba(0,0,0,.5)!important;}
html body #favorite-notice[data-status="catalogue-error"] .favorite-notice-icon,html body #favorite-notice[data-status="empty"] .favorite-notice-icon {color:#ffb6bd;background:#54242d;}

/* Settings and profile controls retain a circular footprint at every viewport. */
html body > header.topbar.topbar {padding-right:max(12px,env(safe-area-inset-right,0px))!important;}
html.carplay-tv-safe body > header.topbar.topbar {padding-right:max(12px,3vw,env(safe-area-inset-right,0px))!important;}
html.carplay-overscan body > header.topbar.topbar {padding-right:max(12px,5vw,env(safe-area-inset-right,0px))!important;}
html body > header.topbar.topbar #mobileControls.mobile-controls > .settings-menu-wrap {
 flex:0 0 var(--cp-h)!important;width:var(--cp-h)!important;min-width:var(--cp-h)!important;max-width:var(--cp-h)!important;
 height:var(--cp-h)!important;min-height:var(--cp-h)!important;max-height:var(--cp-h)!important;
 margin:0 0 0 auto!important;align-self:center!important;display:flex!important;align-items:center!important;justify-content:center!important;
}
html body > header.topbar.topbar #mobileControls.mobile-controls > .settings-menu-wrap > #settingsBtn {
 flex:0 0 var(--cp-h)!important;width:var(--cp-h)!important;min-width:var(--cp-h)!important;max-width:var(--cp-h)!important;
 height:var(--cp-h)!important;min-height:var(--cp-h)!important;max-height:var(--cp-h)!important;
 aspect-ratio:1/1!important;border-radius:50%!important;box-sizing:border-box!important;padding:0!important;margin:0!important;
 display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;
}

/* Large-screen header: same proportions as desktop, compatible with older TV engines.
   Explicit selectors, flex margins instead of flex-gap, no clamp(), :is(), or aspect-ratio dependency. */
@media (min-width:1900px) {
html body > header.topbar.topbar.topbar {display:flex!important; flex-flow:row nowrap!important; align-items:center!important; justify-content:flex-start!important; width:100%!important; max-width:100%!important; min-width:0!important; height:auto!important; min-height:0!important; max-height:none!important; box-sizing:border-box!important; padding:12px 3vw!important; margin:0!important; gap:0!important; overflow:visible!important;}
html body > header.topbar.topbar.topbar > .logo-wrap {flex:0 0 auto!important; width:auto!important; min-width:0!important; max-width:none!important; margin:0 10px 0 0!important; padding:0!important;}
html body > header.topbar.topbar.topbar .carplay-brand {width:12vw!important; max-width:300px!important; min-width:0!important; height:auto!important; margin:0!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.open {display:flex!important; flex:1 1 0px!important; flex-flow:row nowrap!important; align-items:center!important; justify-content:flex-start!important; position:static!important; width:0!important; min-width:0!important; max-width:none!important; height:auto!important; min-height:0!important; max-height:none!important; margin:0!important; padding:0!important; gap:0!important; overflow:visible!important; background:none!important; box-shadow:none!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #search,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #list,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #category,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #thFilm,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #tvBtn,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #thRad,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #carplayHeaderAvatar,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {box-sizing:border-box!important; width:0!important; min-width:0!important; max-width:none!important; height:80px!important; min-height:80px!important; max-height:80px!important; margin:0 0 0 9px!important; padding:0 6px!important; border-radius:999px!important; font-size:27px!important; line-height:normal!important; white-space:nowrap!important; overflow:hidden!important; text-overflow:ellipsis!important; transform:none!important; align-self:center!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #search {flex:2 1 0px!important; margin-left:0!important; padding:0 12px!important; order:0;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #list,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #category {flex:1.5 1 0px!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #thFilm,html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #tvBtn,html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #thRad {flex:1 1 0px!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #carplayHeaderAvatar,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {flex:0 0 80px!important; width:80px!important; min-width:80px!important; max-width:80px!important; border-radius:50%!important; padding:0!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap {display:flex!important; align-items:center!important; justify-content:center!important; overflow:visible!important; position:relative!important; margin-left:9px!important; order:7;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {display:flex!important; align-items:center!important; justify-content:center!important; position:static!important; float:none!important; margin:0!important; font-size:36px!important; line-height:1!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > [hidden],
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > select {display:none!important;}
}
@media (min-width:2560px) {
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #search,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #list,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #category,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #thFilm,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #tvBtn,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #thRad,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #carplayHeaderAvatar,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {height:100px!important; min-height:100px!important; max-height:100px!important; font-size:34px!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #carplayHeaderAvatar,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {flex-basis:100px!important; width:100px!important; min-width:100px!important; max-width:100px!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {font-size:48px!important;}
}
@media (min-width:2200px) { html body > header.topbar.topbar.topbar {padding-left:5vw!important; padding-right:5vw!important;} }

/* TV header: keep the round playlist avatar, hide the redundant named picker.
   Keep the named picker available if no avatar is available. */
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.has-header-device-avatar > #list {display:none!important;}
@media(max-width:600px) and (orientation:portrait) {
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.has-header-device-avatar > #category {flex:0 0 100%!important;}
}
@media (min-width:1900px) {
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #carplayHeaderAvatar {order:1!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > #category {order:3!important;}
}

/* Settings button: no conflicting width/height or flex shrink. */
@media (max-width:1899px) {
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {box-sizing:border-box!important;flex:0 0 46px!important;width:46px!important;min-width:46px!important;max-width:46px!important;height:46px!important;min-height:46px!important;max-height:46px!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {font-size:24px!important;}
}
@media (min-width:1101px) and (max-width:1899px) {
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {box-sizing:border-box!important;flex:0 0 56px!important;width:56px!important;min-width:56px!important;max-width:56px!important;height:56px!important;min-height:56px!important;max-height:56px!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {font-size:30px!important;}
}
@media (min-width:1600px) and (max-width:1899px) {
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {box-sizing:border-box!important;flex:0 0 64px!important;width:64px!important;min-width:64px!important;max-width:64px!important;height:64px!important;min-height:64px!important;max-height:64px!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {font-size:34px!important;}
}
@media (max-width:600px) {
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {box-sizing:border-box!important;flex:0 0 38px!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {font-size:20px!important;}
}
@media (max-width:1899px) and (max-height:480px) and (orientation:landscape) {
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {box-sizing:border-box!important;flex:0 0 30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {font-size:16px!important;}
}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap {overflow:visible!important;flex-direction:row!important;position:relative!important;visibility:visible!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {display:flex!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;padding:0!important;margin:0!important;line-height:1!important;visibility:visible!important;pointer-events:auto!important;position:relative!important;outline:none!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn:focus,
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn.remote-focused {background:linear-gradient(145deg,#62749e,#43547f)!important;color:#fff!important;border-color:#c2d8ff!important;box-shadow:0 0 0 2px #c2d8ff,0 0 15px #91baff!important;outline:none!important;}
@media (max-width:1899px) {
html body > header.topbar.topbar.topbar {padding-right:12px!important;}
html body > header.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsMenu:not([hidden]) {position:fixed!important;left:auto!important;right:12px!important;top:var(--cp-settings-top,60px)!important;bottom:auto!important;width:570px!important;max-width:calc(100vw - 24px)!important;min-width:0!important;z-index:10020!important;}
}

/* Revision 25: one square footprint, including legacy TV browsers. */
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {width:46px!important;min-width:46px!important;max-width:46px!important;height:46px!important;min-height:46px!important;max-height:46px!important;flex:0 0 46px!important;box-sizing:border-box!important;}
@media (max-width:600px) {
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;flex:0 0 38px!important;box-sizing:border-box!important;}
}
@media (min-width:1101px) {
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {width:56px!important;min-width:56px!important;max-width:56px!important;height:56px!important;min-height:56px!important;max-height:56px!important;flex:0 0 56px!important;box-sizing:border-box!important;}
}
@media (min-width:1600px) {
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {width:64px!important;min-width:64px!important;max-width:64px!important;height:64px!important;min-height:64px!important;max-height:64px!important;flex:0 0 64px!important;box-sizing:border-box!important;}
}
@media (min-width:1900px) {
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {width:80px!important;min-width:80px!important;max-width:80px!important;height:80px!important;min-height:80px!important;max-height:80px!important;flex:0 0 80px!important;box-sizing:border-box!important;}
}
@media (min-width:2560px) {
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {width:100px!important;min-width:100px!important;max-width:100px!important;height:100px!important;min-height:100px!important;max-height:100px!important;flex:0 0 100px!important;box-sizing:border-box!important;}
}
@media (max-width:1899px) and (max-height:480px) and (orientation:landscape) {
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap,
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;flex:0 0 30px!important;box-sizing:border-box!important;}
}
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap {align-self:center!important;align-items:center!important;justify-content:center!important;display:flex!important;flex-direction:row!important;padding:0!important;overflow:visible!important;transform:none!important;}
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {display:flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;border-radius:50%!important;padding:0!important;margin:0!important;line-height:1!important;transform:none!important;clip-path:none!important;appearance:none;-webkit-appearance:none;cursor:pointer;pointer-events:auto!important;}
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn:focus, html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn.remote-focused {outline:none!important;box-shadow:inset 0 0 0 2px #c2d8ff,0 0 6px #91baff!important;}
html body > header.topbar.topbar.topbar.topbar {padding-top:10px!important;padding-bottom:10px!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:visible!important;}
@media(max-width:1899px) {html body > header.topbar.topbar.topbar.topbar {padding-right:14px!important;}}
@media(max-width:1899px) and (max-height:480px) and (orientation:landscape) {html body > header.topbar.topbar.topbar.topbar {padding-top:7px!important;padding-bottom:7px!important;}}

html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap > #settingsBtn {flex:0 0 auto!important;aspect-ratio:1/1!important; border-width:1px!important;border-style:solid!important;transition:background .15s,box-shadow .15s!important; -webkit-transform:none!important;transform:none!important;}
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > .settings-menu-wrap {flex-shrink:0!important; margin-right:0!important;}

/* Settings geometry follows the actual row height, including legacy TV engines. */
html body #mobileControls#mobileControls > #carplaySettingsWrap {display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;overflow:visible!important;position:relative!important;}
html body #mobileControls#mobileControls > #carplaySettingsWrap > #settingsBtn {display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;border-radius:50%!important;line-height:1!important;outline:none!important;pointer-events:auto!important;}
html body #mobileControls#mobileControls > #carplaySettingsWrap > #settingsBtn:focus,
html body #mobileControls#mobileControls > #carplaySettingsWrap > #settingsBtn.remote-focused {outline:none!important;box-shadow:inset 0 0 0 2px #c2d8ff,inset 0 0 9px #91baff!important;}
html body > header.topbar.topbar.topbar.topbar {position:relative!important;z-index:8000!important;overflow:visible!important;}
html body > header.topbar.topbar.topbar.topbar #mobileControls.mobile-controls {overflow:visible!important;}
html body #mobileControls#mobileControls > #carplaySettingsWrap > #settingsMenu:not([hidden]) {position:fixed!important;z-index:10020!important;left:auto!important;bottom:auto!important;min-width:0!important;transform:none!important;}
/* Catalogue and header must be separate stacking contexts on every viewport.
   Keep the settings popup in its original DOM location for remote navigation. */
html body > .movies-container {position:relative!important; z-index:0!important;}
html body > header.topbar.topbar.topbar.topbar#carplayCatalogueHeader {
    position:relative!important; z-index:8000!important; overflow:visible!important;
}
html body > header.topbar.topbar.topbar.topbar#carplayCatalogueHeader.carplay-settings-open {
    z-index:24000!important; overflow:visible!important;
    -webkit-transform:none!important; transform:none!important;
    -webkit-filter:none!important; filter:none!important;
}
html body > header#carplayCatalogueHeader.carplay-settings-open #mobileControls#mobileControls,
html body > header#carplayCatalogueHeader.carplay-settings-open #carplaySettingsWrap {
    overflow:visible!important; -webkit-transform:none!important; transform:none!important;
}
html body > header#carplayCatalogueHeader.carplay-settings-open #settingsMenu#settingsMenu:not([hidden]) {
    z-index:24001!important; overflow:hidden!important; top:var(--cp-settings-top,60px)!important;
    -webkit-transform:none!important; transform:none!important;
}
/* Older TV compositors may paint a masked scrolling layer over a fixed popup. */
html body > header#carplayCatalogueHeader.carplay-settings-open ~ .movies-container {
    -webkit-mask-image:none!important; mask-image:none!important;
}
/* Revision 32: compact catalogue edges, with a separate gap before settings.
   Keep the existing small-screen layout and all vertical sizing. */
@media (min-width:1501px) {
    html, html body { scrollbar-gutter:auto; }
    html body > header#carplayCatalogueHeader.topbar.topbar.topbar.topbar,
    html body > .pagination.pagination {
        box-sizing:border-box!important;
        width:100%!important; max-width:100%!important; min-width:0!important;
        margin-left:0!important; margin-right:0!important;
        padding-left:14px!important; padding-right:14px!important;
    }
    html body > .movies-container.movies-container {
        box-sizing:border-box!important;
        width:100%!important; max-width:100%!important; min-width:0!important;
        margin-left:0!important; margin-right:0!important;
        padding-left:4px!important; padding-right:4px!important;
    }
    html body > .movies-container > #movies#movies {
        box-sizing:border-box!important; width:100%!important; max-width:100%!important; min-width:0!important;
        margin-left:0!important; margin-right:0!important;
        padding-left:0!important; padding-right:0!important;
    }
    html body #carplayClock#carplayClock {right:14px;}
}
/* Revision 34: header labels never determine flex item width. */
html body > header#carplayCatalogueHeader.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > #category,
html body > header#carplayCatalogueHeader.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > #list {
    box-sizing:border-box!important; min-width:0!important; white-space:nowrap!important;
    overflow:hidden!important; text-overflow:ellipsis!important; transition:none!important;
}
@media (min-width:601px), (orientation:landscape) {
    html body > header#carplayCatalogueHeader.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > #category,
    html body > header#carplayCatalogueHeader.topbar.topbar.topbar.topbar #mobileControls.mobile-controls.mobile-controls.mobile-controls > #list {
        width:0!important; flex-basis:0px!important;
    }
}

/* Revision 37: reserve the brand footprint before either theme image loads. */
html body > header#carplayCatalogueHeader .carplay-brand {
    position:relative!important; box-sizing:border-box!important;
    flex:0 0 auto!important; padding:0!important; line-height:0!important;
    transition:none!important;
}
html body > header#carplayCatalogueHeader > .logo-wrap {transition:none!important;}
html body > header#carplayCatalogueHeader .carplay-brand::before {
    content:""; display:block; padding-top:22.1867%; pointer-events:none;
}
html body > header#carplayCatalogueHeader .carplay-brand > img {
    position:absolute!important; top:0!important; left:0!important;
    width:100%!important; height:100%!important; object-fit:contain!important;
    margin:0!important; padding:0!important; transition:none!important;
}

/* Movie layout (formerly funktion.js). */

        #movieModal .modal-info2 {
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
            height: 90vh;
            max-height: calc(100vh - 24px);
            min-height: 0;
            overflow: hidden;
        }

        #movieModal .modal-info2 #zapfilm {
            flex: 1 1 0;
            min-height: 0;
            width: 100%;
            overflow: hidden;
        }

        #movieModal .modal-info2 #zapfilm > #player {
            position: relative !important;
            inset: auto !important;
            width: 100% !important;
            height: 100% !important;
            min-height: 0 !important;
        }
        #movieModal .movie-player-loading {
            display:flex; align-items:center; justify-content:center;
            width:100%; min-height:220px; color:#fff; font:700 16px system-ui;
            background:#05070b; text-align:center; padding:24px;
        }

        #movieModal .modal-info2 .modal-buttons {
            position: relative;
            flex: 0 0 auto;
            width: 100%;
            box-sizing: border-box;
            overflow: visible;
        }

        #movieModal .wixprosm,
        #movieModal .wixprosm2 {
            min-width: 150px;
            min-height: 48px;
            padding: 12px 25px;
            border: 2px solid #16e6ff;
            border-radius: 14px;
            background: linear-gradient(145deg, #080a0f, #171b24);
            color: #fff;
            font: 700 15px/1.2 system-ui, sans-serif;
            letter-spacing: .3px;
            cursor: pointer;
            box-shadow: 0 7px 20px rgba(0,0,0,.24);
            transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
        }

        #movieModal .wixprosm,
        #movieModal .wixprosm2 {
            background: linear-gradient(145deg, #080a0f, #171b24);
            border-color: #16e6ff;
            color: #fff;
            box-shadow: 0 0 9px rgba(22,230,255,.45), inset 0 1px 0 rgba(255,255,255,.12);
        }

        #movieModal .wixprosm:hover,
        #movieModal .wixprosm2:hover {
            transform: translateY(-2px);
            filter: brightness(1.08);
            box-shadow: 0 11px 25px rgba(0,0,0,.3);
        }

        #movieModal .wixprosm:active,
        #movieModal .wixprosm2:active {
            transform: scale(.97);
        }

        @media (max-width: 480px) {
            #movieModal .modal-info2 {
                height: calc(100vh - 20px);
                max-height: calc(100vh - 20px);
            }

            #movieModal .wixprosm,
            #movieModal .wixprosm2 {
                min-width: 0;
                flex: 1 1 0;
                padding: 12px 14px;
            }
        }
    
/* Static markup styles. */
#categoryData { display:none !important; }
html body #quickContactModal a.quick-contact-card { text-decoration:none; }

#carplay-favorite-diagnostic { position:fixed;z-index:2147483647;left:4%;right:4%;bottom:8%;padding:18px;background:#211c25;color:#fff;border:2px solid #ffb347;border-radius:12px;font:18px/1.5 sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;max-height:45vh;overflow:auto; }

/* Privacy policy: allow long translated labels and keep the last button reachable. */
html body #appSettingsModal .app-settings-choices > #settingsPrivacyPolicy {
    white-space:normal!important;overflow-wrap:break-word;word-wrap:break-word;height:auto!important;
}
@media (max-width:900px), (max-width:1899px) and (max-height:500px) {
    html body #appSettingsModal.modal {overflow-y:auto!important;overflow-x:hidden!important;}
}


/* Privacy policy uses the same layered settings dialog, with a fixed close
   button and an independently scrolling text region. No catalogue layout changes. */
html body #privacyPolicyModal.modal {
    position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;
    box-sizing:border-box;display:none;align-items:center;justify-content:center;
    padding:16px;background:rgba(6,8,19,.76);z-index:2147482999;
}
html body #privacyPolicyModal.modal.active {display:flex;}
html body #privacyPolicyModal > .privacy-policy-window {
    position:relative;top:auto;left:auto;transform:none;display:flex;flex-direction:column;
    box-sizing:border-box;width:94%;max-width:1050px;height:86vh;min-height:0;
    max-height:100%;margin:auto;padding:20px 28px 20px;gap:0;overflow:hidden;
    border:2px solid #8d79cb;border-radius:22px;background:#24213e;
    background:linear-gradient(145deg,#30244f,#191f39 55%,#173d46);
    color:#fff;box-shadow:0 12px 45px rgba(0,0,0,.55);
}
html body #privacyPolicyModal #privacyPolicyTitle {
    flex:0 0 auto;min-height:48px;margin:0 58px 12px;line-height:1.2;
    font-size:30px;text-align:center;color:#c3f5ff;overflow-wrap:break-word;
}
html body #privacyPolicyModal #closePrivacyPolicy {
    position:absolute!important;top:12px!important;right:12px!important;left:auto!important;bottom:auto!important;
    display:flex;align-items:center;justify-content:center;width:48px;height:48px;
    min-width:0;min-height:0;padding:0;margin:0;border-radius:50%;font-size:26px;
}
html body #privacyPolicyModal #closePrivacyPolicy:focus {outline:2px solid #fff;box-shadow:0 0 20px rgba(255,104,141,.82);}
html body #privacyPolicyBody {
    flex:1 1 auto;min-height:0;overflow:auto;box-sizing:border-box;padding:12px 18px;
    text-align:left;font-size:20px;line-height:1.55;border:1px solid #8174bd;border-radius:14px;
    background:rgba(15,13,31,.38);-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
    overflow-wrap:break-word;word-wrap:break-word;touch-action:pan-y;
}
html body #privacyPolicyBody[dir="rtl"] {text-align:right;}
html body #privacyPolicyBody:focus {outline:2px solid #bac9ff;outline-offset:-2px;}
html body #privacyPolicyBody p {margin:0 0 1em;color:inherit;font-size:inherit;line-height:inherit;}
html body #privacyPolicyBody .privacy-draft {padding:10px 12px;background:#382d24;color:#ffdfa1;border:1px solid #c9a35a;border-radius:10px;}
html body #privacyPolicyBody .privacy-contact {border-top:1px solid #8174bd;padding-top:12px;}
html body.light #privacyPolicyModal > .privacy-policy-window {background:#f3f2fc;color:#29243d;border-color:#a69ac4;}
html body.light #privacyPolicyModal #privacyPolicyTitle {color:#274e69;}
html body.light #privacyPolicyBody {background:#fff;border-color:#aaa0c2;}
html body.light #privacyPolicyBody .privacy-draft {background:#fff0d6;color:#644300;}
@media(min-width:1900px){html body #privacyPolicyModal > .privacy-policy-window {max-width:1450px;padding:30px 42px;}html body #privacyPolicyModal #privacyPolicyTitle {font-size:42px;}html body #privacyPolicyBody {font-size:28px;padding:18px 26px;}}
@media(max-width:900px),(max-height:500px) and (max-width:1899px){
    html body #privacyPolicyModal.modal {padding:6px;}
    html body #privacyPolicyModal > .privacy-policy-window {width:100%;height:calc(100vh - 12px);height:calc(100dvh - 12px);max-width:720px;padding:12px 10px 10px;border-radius:18px;}
    html body #privacyPolicyModal #privacyPolicyTitle {font-size:22px;min-height:34px;margin:0 36px 8px;}
    html body #privacyPolicyModal #closePrivacyPolicy {top:7px!important;right:8px!important;width:32px;height:32px;font-size:20px;}
    html body #privacyPolicyBody {font-size:16px;padding:10px 12px;}
}
