@@ -61,6 +61,7 @@ body[data-display=app] {
6161
6262/* pages/duckplayer/app/components/Components.module.css */
6363.Components_main {
64+ background-color : # 000 ;
6465 color : white;
6566 max-width : 3840px ;
6667 margin : 0 auto;
@@ -112,7 +113,7 @@ body[data-display=app] {
112113 text-decoration : none;
113114}
114115[data-layout = mobile ] .Button_button {
115- background-color : # 2f2f2f ;
116+ background-color : rgba ( 255 , 255 , 255 , 0.12 ) ;
116117}
117118.Button_button : hover ,
118119.Button_button : focus-visible {
@@ -188,7 +189,7 @@ body[data-display=app] {
188189.SwitchBarMobile_switchBar {
189190 display : grid;
190191 border-radius : 8px ;
191- background : # 2f2f2f ;
192+ background : rgba ( 255 , 255 , 255 , 0.12 ) ;
192193 padding-inline : 16px ;
193194 height : 100% ;
194195 line-height : 1.1 ;
@@ -518,6 +519,9 @@ body[data-display=app] {
518519 .Wordmark_mobile_logo {
519520 height : 100px ;
520521 }
522+ [data-youtube-error = true ] .Wordmark_mobile_logo {
523+ height : 44px ;
524+ }
521525}
522526.Wordmark_mobile_logoSvg img {
523527 display : block;
@@ -589,6 +593,127 @@ body[data-display=app] {
589593 }
590594}
591595
596+ /* pages/duckplayer/app/components/YouTubeError.module.css */
597+ .YouTubeError_error {
598+ align-items : center;
599+ background : rgba (0 , 0 , 0 , 0.6 );
600+ display : grid;
601+ height : 100% ;
602+ justify-items : center;
603+ }
604+ .YouTubeError_error .YouTubeError_desktop {
605+ height : var (--frame-height );
606+ overflow : hidden;
607+ position : relative;
608+ z-index : 1 ;
609+ }
610+ .YouTubeError_error .YouTubeError_mobile {
611+ border-radius : var (--inner-radius );
612+ height : 100% ;
613+ overflow : auto;
614+ text-size-adjust : 100% ;
615+ -webkit-text-size-adjust : 100% ;
616+ }
617+ @media screen and (min-width : 600px ) and (min-height : 600px ) {
618+ .YouTubeError_error .YouTubeError_mobile {
619+ aspect-ratio : 16 / 9 ;
620+ }
621+ }
622+ .YouTubeError_desktop {
623+ border-top-left-radius : var (--outer-radius );
624+ border-top-right-radius : var (--outer-radius );
625+ border-bottom-right-radius : 0 ;
626+ border-bottom-left-radius : 0 ;
627+ }
628+ .YouTubeError_container {
629+ column-gap : 24px ;
630+ display : flex;
631+ flex-flow : row;
632+ margin : 0 ;
633+ max-width : 680px ;
634+ padding : 0 40px ;
635+ row-gap : 4px ;
636+ }
637+ .YouTubeError_mobile .YouTubeError_container {
638+ flex-flow : column;
639+ padding : 0 24px ;
640+ }
641+ @media screen and (min-height : 320px ) {
642+ .YouTubeError_mobile .YouTubeError_container {
643+ margin : 16px 0 ;
644+ }
645+ }
646+ @media screen and (min-width : 375px ) and (min-height : 400px ) {
647+ .YouTubeError_mobile .YouTubeError_container {
648+ margin : 36px 0 ;
649+ }
650+ }
651+ .YouTubeError_content {
652+ display : flex;
653+ flex-direction : column;
654+ gap : 4px ;
655+ margin : 16px 0 ;
656+ }
657+ @media screen and (min-width : 600px ) {
658+ .YouTubeError_content {
659+ margin : 24px 0 ;
660+ }
661+ }
662+ .YouTubeError_icon {
663+ align-self : center;
664+ display : flex;
665+ justify-content : center;
666+ }
667+ .YouTubeError_icon ::before {
668+ content : " " ;
669+ display : block;
670+ background : url ('data:image/svg+xml,<svg fill="none" viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg">%0A <path fill="red" d="M47.5 70.802c1.945 0 3.484-1.588 3.841-3.5C53.076 58.022 61.218 51 71 51h4.96c2.225 0 4.04-1.774 4.04-4 0-.026-.007-9.022-1.338-14.004a8.02 8.02 0 0 0-5.659-5.658C68.014 26 48 26 48 26s-20.015 0-25.004 1.338a8.01 8.01 0 0 0-5.658 5.658C16 37.986 16 48.401 16 48.401s0 10.416 1.338 15.405a8.01 8.01 0 0 0 5.658 5.658c4.99 1.338 24.504 1.338 24.504 1.338"/>%0A <path fill="%23fff" d="m41.594 58 16.627-9.598-16.627-9.599z"/>%0A <path fill="%23EB102D" d="M87 71c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16"/>%0A <path fill="%23fff" d="M73 77.8a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-2.039-4.4c-.706 0-1.334-.49-1.412-1.12l-.942-8.75c-.079-.7.55-1.33 1.412-1.33h1.962c.785 0 1.492.63 1.413 1.33l-.942 8.75c-.157.63-.784 1.12-1.49 1.12Z"/>%0A <path fill="%23CCC" d="M92.501 59c.298 0 .595.12.823.354.454.468.454 1.23 0 1.698l-2.333 2.4a1.145 1.145 0 0 1-1.65 0 1.227 1.227 0 0 1 0-1.698l2.333-2.4c.227-.234.524-.354.822-.354zm-1.166 10.798h3.499c.641 0 1.166.54 1.166 1.2s-.525 1.2-1.166 1.2h-3.499c-.641 0-1.166-.54-1.166-1.2s.525-1.2 1.166-1.2m-1.982 8.754c.227-.234.525-.354.822-.354h.006c.297 0 .595.12.822.354l2.332 2.4c.455.467.455 1.23 0 1.697a1.145 1.145 0 0 1-1.65 0l-2.332-2.4a1.227 1.227 0 0 1 0-1.697"/>%0A</svg>%0A' ) no-repeat;
671+ height : 48px ;
672+ width : 48px ;
673+ }
674+ @media screen and (max-width : 320px ) {
675+ .YouTubeError_icon {
676+ display : none;
677+ }
678+ }
679+ @media screen and (min-width : 600px ) and (min-height : 600px ) {
680+ .YouTubeError_icon {
681+ justify-content : start;
682+ }
683+ .YouTubeError_icon ::before {
684+ background-image : url ('data:image/svg+xml,<svg fill="none" viewBox="0 0 128 96" xmlns="http://www.w3.org/2000/svg">%0A <path fill="%23888" d="M16.912 31.049a1.495 1.495 0 0 1 2.114-2.114l1.932 1.932 1.932-1.932a1.495 1.495 0 0 1 2.114 2.114l-1.932 1.932 1.932 1.932a1.495 1.495 0 0 1-2.114 2.114l-1.932-1.933-1.932 1.933a1.494 1.494 0 1 1-2.114-2.114l1.932-1.932zM.582 52.91a1.495 1.495 0 0 1 2.113-2.115l1.292 1.292 1.291-1.292a1.495 1.495 0 1 1 2.114 2.114L6.1 54.2l1.292 1.292a1.495 1.495 0 1 1-2.113 2.114l-1.292-1.292-1.292 1.292a1.495 1.495 0 1 1-2.114-2.114l1.292-1.291zm104.972-15.452a1.496 1.496 0 0 1 2.114-2.114l1.291 1.292 1.292-1.292a1.495 1.495 0 0 1 2.114 2.114l-1.292 1.291 1.292 1.292a1.494 1.494 0 1 1-2.114 2.114l-1.292-1.292-1.291 1.292a1.495 1.495 0 0 1-2.114-2.114l1.292-1.292zM124.5 54c-.825 0-1.5-.675-1.5-1.5s.675-1.5 1.5-1.5 1.5.675 1.5 1.5-.675 1.5-1.5 1.5M24 67c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2" opacity=".2"/>%0A <path fill="red" d="M63.5 70.802c1.945 0 3.484-1.588 3.841-3.5C69.076 58.022 77.218 51 87 51h4.96c2.225 0 4.04-1.774 4.04-4 0-.026-.007-9.022-1.338-14.004a8.02 8.02 0 0 0-5.659-5.658C84.014 26 64 26 64 26s-20.014 0-25.004 1.338a8.01 8.01 0 0 0-5.658 5.658C32 37.986 32 48.401 32 48.401s0 10.416 1.338 15.405a8.01 8.01 0 0 0 5.658 5.658c4.99 1.338 24.504 1.338 24.504 1.338"/>%0A <path fill="%23fff" d="m57.594 58 16.627-9.598-16.627-9.599z"/>%0A <path fill="%23EB102D" d="M103 71c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16"/>%0A <path fill="%23fff" d="M89 77.8a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-2.039-4.4c-.706 0-1.334-.49-1.412-1.12l-.942-8.75c-.079-.7.55-1.33 1.412-1.33h1.962c.785 0 1.492.63 1.413 1.33l-.942 8.75c-.157.63-.784 1.12-1.49 1.12Z"/>%0A <path fill="%23CCC" d="M108.501 59c.298 0 .595.12.823.354.454.468.454 1.23 0 1.698l-2.333 2.4a1.145 1.145 0 0 1-1.65 0 1.226 1.226 0 0 1 0-1.698l2.332-2.4c.228-.234.525-.354.823-.354zm-1.166 10.798h3.499c.641 0 1.166.54 1.166 1.2s-.525 1.2-1.166 1.2h-3.499c-.641 0-1.166-.54-1.166-1.2s.525-1.2 1.166-1.2m-1.982 8.754c.227-.234.525-.354.822-.354h.006c.297 0 .595.12.822.354l2.333 2.4c.454.467.454 1.23 0 1.697a1.146 1.146 0 0 1-1.651 0l-2.332-2.4a1.226 1.226 0 0 1 0-1.697"/>%0A</svg>%0A' );
685+ height : 96px ;
686+ width : 128px ;
687+ }
688+ }
689+ .YouTubeError_heading {
690+ color : # fff ;
691+ font-size : 20px ;
692+ font-weight : 700 ;
693+ line-height : calc (24 / 20 );
694+ margin : 0 ;
695+ }
696+ .YouTubeError_messages {
697+ color : # ccc ;
698+ font-size : 16px ;
699+ line-height : calc (24 / 16 );
700+ }
701+ div .YouTubeError_messages {
702+ display : flex;
703+ flex-direction : column;
704+ gap : 24px ;
705+ }
706+ div .YouTubeError_messages p {
707+ margin : 0 ;
708+ }
709+ p .YouTubeError_messages {
710+ margin : 0 ;
711+ }
712+ ul .YouTubeError_messages li {
713+ list-style : disc;
714+ margin-left : 24px ;
715+ }
716+
592717/* pages/duckplayer/app/components/MobileApp.module.css */
593718body [data-display = app ] {
594719 padding : 8px ;
@@ -626,6 +751,7 @@ html[data-focus-mode=on] .MobileApp_hideInFocus {
626751 --inner-radius : 12px ;
627752 --logo-width : 157px ;
628753 --inner-padding : 8px ;
754+ --mobile-buttons-padding : 8px ;
629755 position : relative;
630756 max-width : 100vh ;
631757 margin : 0 auto;
@@ -681,6 +807,15 @@ html[data-focus-mode=on] .MobileApp_embed {
681807 grid-area : switch;
682808 height : 44px ;
683809}
810+ .MobileApp_detachedControls {
811+ grid-area : detached;
812+ display : flex;
813+ flex-flow : column;
814+ gap : 8px ;
815+ padding : 8px ;
816+ background : # 2f2f2f ;
817+ border-radius : 12px ;
818+ }
684819@media screen and (min-width : 425px ) and (max-height : 600px ) {
685820 .MobileApp_main {
686821 grid-template-rows : max-content auto max-content max-content 12px max-content auto;
@@ -774,6 +909,71 @@ html[data-focus-mode=on] .MobileApp_embed {
774909 justify-content : end;
775910 }
776911}
912+ @media screen and (max-width : 599px ) {
913+ .MobileApp_main [data-youtube-error = true ] {
914+ --bg-color : transparent;
915+ --inner-padding : 4px ;
916+ grid-template-areas : "logo" "gap3" "embed" "gap4" "switch" "buttons" ;
917+ grid-template-rows : max-content 16px auto 12px max-content max-content;
918+ }
919+ .MobileApp_main [data-youtube-error = true ] .MobileApp_embed {
920+ background : # 2f2f2f ;
921+ border-radius : var (--outer-radius );
922+ padding : 4px ;
923+ }
924+ .MobileApp_main [data-youtube-error = true ] .MobileApp_switch {
925+ background : # 2f2f2f ;
926+ padding : 8px 8px 0 8px ;
927+ height : 60px ;
928+ max-height : 60px ;
929+ border-top-left-radius : var (--outer-radius );
930+ border-top-right-radius : var (--outer-radius );
931+ transition : all 0.3s ;
932+ }
933+ .MobileApp_main [data-youtube-error = true ] .MobileApp_buttons {
934+ background : # 2f2f2f ;
935+ padding : 8px ;
936+ transition : all 0.3s ;
937+ }
938+ .MobileApp_main [data-youtube-error = true ]: has ([data-state = completed ]) .MobileApp_buttons {
939+ border-radius : var (--outer-radius );
940+ }
941+ .MobileApp_main [data-youtube-error = true ]: has ([data-state = completed ]) .MobileApp_switch {
942+ background : transparent;
943+ max-height : 0 ;
944+ }
945+ }
946+ @media screen and (max-width : 599px ) and (max-height : 599px ) {
947+ .MobileApp_main [data-youtube-error = true ] {
948+ max-width : unset;
949+ grid-template-rows : 0 0 auto 12px 0 max-content;
950+ }
951+ .MobileApp_main [data-youtube-error = true ] : is (.MobileApp_logo , .MobileApp_switch ) {
952+ display : none;
953+ }
954+ .MobileApp_main [data-youtube-error = true ] .MobileApp_buttons {
955+ border-radius : var (--outer-radius );
956+ }
957+ }
958+ @media screen and (min-width : 600px ) and (max-height : 450px ) {
959+ .MobileApp_main [data-youtube-error = true ] {
960+ grid-template-areas : "embed" "buttons" "gap5" ;
961+ grid-template-rows : auto max-content 8px ;
962+ }
963+ .MobileApp_main [data-youtube-error = true ] .MobileApp_buttons {
964+ border-radius : var (--outer-radius );
965+ display : block;
966+ }
967+ }
968+ @media screen and (max-height : 320px ) {
969+ .MobileApp_main [data-youtube-error = true ] .MobileApp_embed {
970+ overflow-y : auto;
971+ }
972+ .MobileApp_main [data-youtube-error = true ] .MobileApp_buttons {
973+ bottom : 0 ;
974+ position : sticky;
975+ }
976+ }
777977
778978/* pages/duckplayer/app/components/MobileButtons.module.css */
779979.MobileButtons_buttons {
0 commit comments