.desktop-home-layout{ display:block; }
.desktop-rail{ display:none; }

@media (min-width: 1200px){
  body .bottom-nav{ display:none; }
  body:not(.home-page){
    padding-bottom:0;
  }
  body:not(.home-page) .topbar{
    left:50%;
    right:auto;
    width:min(1700px, calc(100vw - 20px));
    box-sizing:border-box;
    transform:translateX(-50%);
    top:0;
    min-height:70px;
    border-radius:0 0 10px 10px;
    border:1px solid rgba(255,255,255,0.1);
    background:rgba(6,7,13,0.9);
    padding:0 18px;
    z-index:120;
  }
  body:not(.home-page) .topbar.topbar--hidden{ transform:translateX(-50%); }
  body:not(.home-page) .wrap,
  body:not(.home-page) .page,
  body:not(.home-page) .account-shell{
    max-width:1700px;
    box-sizing:border-box;
    margin-left:auto;
    margin-right:auto;
  }
  body.search-fun .wrap{
    padding:0 !important;
  }
  body.search-fun .desktop-home-layout{
    grid-template-columns:240px minmax(0, 1fr) 500px;
  }
  body.search-fun .desktop-rail{
    max-height:none;
  }
  body.search-fun .desktop-rail-right{
    overflow:visible;
  }
  body.feed-page .wrap{
    padding-top:0;
  }
  body.shortlist-page .wrap,
  body:not(.home-page):not(.search-fun):not(.feed-page) .wrap,
  body:not(.home-page):not(.search-fun):not(.feed-page) .page,
  body:not(.home-page):not(.search-fun):not(.feed-page) .account-shell{
    padding-top:0;
  }
  body.search-fun .grid,
  body.feed-page .grid,
  body.shortlist-page #gridMovies.grid,
  body.shortlist-page #gridTv.grid{
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:24px;
  }
  body.feed-page .case-3d,
  body.search-fun .case-3d,
  body.shortlist-page .case-3d{
    max-width:none;
  }
  body.feed-page .case-3d::before,
  body.search-fun .case-3d::before,
  body.shortlist-page .case-3d::before{
    padding-top:calc(150% + 14px);
  }
  body.feed-page .topbar-blu,
  body.search-fun .topbar-blu,
  body.shortlist-page .topbar-blu{
    height:20px;
  }
  body.feed-page .topbar-blu::before,
  body.search-fun .topbar-blu::before,
  body.shortlist-page .topbar-blu::before{
    height:13px;
  }
  body.feed-page .edge-right,
  body.search-fun .edge-right,
  body.shortlist-page .edge-right{
    right:-5px;
    width:5px;
  }
  body.feed-page .edge-bottom,
  body.search-fun .edge-bottom,
  body.shortlist-page .edge-bottom{
    height:6px;
  }
  body.feed-page .front .poster,
  body.search-fun .front .poster,
  body.shortlist-page .front .poster{
    top:20px;
    bottom:15px;
  }
  body.search-fun .search-header{
    left:auto;
    right:auto;
    width:100%;
    transform:none;
    box-sizing:border-box;
    position:static;
    top:auto;
    margin-bottom:10px;
    border-radius:12px;
    box-shadow:none;
  }
  body.search-fun .filters-wrap{
    left:auto;
    right:auto;
    width:100%;
    transform:none;
    box-sizing:border-box;
    position:static;
    bottom:auto;
    margin-top:0;
    border-radius:12px;
    overflow:hidden;
  }
  body.search-fun .filters-wrap.is-hidden{
    transform:none;
    opacity:1;
    pointer-events:auto;
  }
  body.search-fun .search-header-spacer{
    display:none !important;
    height:0 !important;
  }
  body.search-fun .search-dock-desktop{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom:12px;
  }
  body.search-fun .search-dock-desktop .filters-panel .f-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
  body.search-fun .search-dock-desktop .filters-wrap,
  body.search-fun .search-dock-desktop .filters-panel{
    overflow-x:hidden;
  }
  body.search-fun .search-dock-desktop .filters-panel{
    max-height:none;
    overflow-y:visible;
  }
  body.search-fun .search-dock-desktop .filters-panel .f-box{
    width:100%;
  }
  body.search-fun .search-dock-desktop .filters-actions{
    justify-content:space-between;
  }
  body.search-fun .grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:28px;
  }
  body.search-fun .suggested-row{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:16px;
  }
  body.search-fun .suggested-row .suggested-card:first-of-type{
    grid-column:1;
  }
  body.search-fun #btnShuffleSearch{
    grid-column:1;
  }
  body.search-fun #btnCustomSearch{
    grid-column:2;
  }
  body.search-fun[data-media="tv"] .grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:28px;
  }

  body.home-page{
    background:
      radial-gradient(circle at 15% 0%, rgba(234,192,92,0.1), transparent 32%),
      radial-gradient(circle at 90% 10%, rgba(74,96,160,0.16), transparent 40%),
      #05060a;
    padding-bottom:0;
  }
  body.home-page .bottom-nav{ display:none; }
  body.home-page .desktop-nav-home{ display:none; }
  body.home-page .topbar{
    left:50%;
    right:auto;
    width:min(1700px, calc(100vw - 20px));
    box-sizing:border-box;
    transform:translateX(-50%);
    top:0;
    min-height:70px;
    border-radius:0 0 10px 10px;
    border:1px solid rgba(255,255,255,0.1);
    background:rgba(6,7,13,0.9);
    padding:0 18px;
    z-index:120;
  }
  body.home-page .topbar.topbar--hidden{ transform:translateX(-50%); }
  .desktop-home-layout{
    width:100%;
    max-width:1700px;
    box-sizing:border-box;
    margin:0 auto;
    padding:64px 10px 28px 10px;
    display:grid;
    grid-template-columns:260px minmax(0, 1fr) 360px;
    gap:18px;
    align-items:start;
  }
  .desktop-rail{
    display:flex;
    flex-direction:column;
    gap:10px;
    position:sticky;
    top:74px;
    max-height:calc(100vh - 88px);
  }
  .desktop-page-main{
    min-width:0;
  }
  .desktop-page-main .wrap,
  .desktop-page-main .page{
    max-width:none;
    margin-left:0;
    margin-right:0;
  }
  .desktop-rail-left{
    display:flex;
    flex-direction:column;
    background:rgba(12,13,22,0.94);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:14px;
    padding:14px;
    overflow-y:auto;
    overflow-x:hidden;
  }
  .desktop-user-block{
    margin-bottom:12px;
    padding-bottom:10px;
    border-bottom:1px solid rgba(255,255,255,0.1);
  }
  .desktop-account-title{
    color:#9da8c9;
    font-size:11px;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin:2px 0 8px;
    padding:0 2px;
  }
  .desktop-account-links{
    display:flex;
    flex-direction:column;
    gap:6px;
  }
  .desktop-account-item{
    width:100%;
    justify-content:flex-start;
  }
  .desktop-nav-item img.desktop-account-avatar{
    width:20px;
    height:20px;
    border-radius:50%;
    object-fit:cover;
    filter:none;
    opacity:1;
    border:1px solid rgba(255,255,255,0.5);
    flex:0 0 auto;
  }
  .desktop-nav-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 10px;
    box-sizing:border-box;
    min-width:0;
    border-radius:10px;
    color:#dde2f5;
    text-decoration:none;
    font-size:15px;
    border:1px solid transparent;
    transition:background .2s ease, border-color .2s ease, color .2s ease;
  }
  .desktop-nav-item img{
    width:16px;
    height:16px;
    opacity:0.9;
    object-fit:contain;
  }
  .desktop-nav-item img[src$=".svg"]{
    filter:invert(1);
    opacity:0.8;
  }
  .desktop-nav-item:hover{
    background:rgba(255,255,255,0.06);
    border-color:rgba(255,255,255,0.12);
    color:#ffdd71;
  }
  .desktop-nav-item--curated{
    font-size:14px;
    padding:8px 10px;
  }
  .desktop-nav-tag{
    margin-left:6px;
    font-size:10px;
    color:#ffdd71;
    border:1px solid rgba(255,221,113,0.45);
    border-radius:999px;
    padding:1px 6px;
  }
  .desktop-rail-divider{
    height:1px;
    margin:10px 2px;
    background:rgba(255,255,255,0.1);
  }
  .desktop-curated-title{
    color:#9da8c9;
    font-size:11px;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin:2px 0 8px;
    padding:0 2px;
  }
  .desktop-curated-nav{
    display:flex;
    flex-direction:column;
    gap:6px;
  }
  .desktop-logout-wrap{
    margin-top:auto;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,0.1);
  }
  .desktop-logout-form{
    margin:0;
  }
  .desktop-logout-btn{
    width:100%;
    box-sizing:border-box;
    border:0;
    background:transparent;
    cursor:pointer;
    text-align:left;
    color:#dce3f9;
    font:inherit;
  }
  .home{
    max-width:none;
    margin:0;
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.08);
    overflow:hidden;
    background:#070910;
    box-shadow:0 24px 48px rgba(0,0,0,0.42);
  }
  .hero-wrap{
    width:100%;
    margin-left:0;
    min-height:390px;
    height:52vh;
    max-height:530px;
    padding-top:0;
    overflow:visible;
  }
  .hero-chip{
    top:20px;
    right:20px;
    background:rgba(17,19,30,0.55);
    font-size:13px;
  }
  .hero{
    height:100%;
    padding:28px 34px 136px;
    max-width:95%;
    margin-top:0;
  }
  .hero-content{ gap:14px; }
  .hero-left{
    display:flex;
    align-items:center;
    gap:24px;
    min-width:0;
    flex:1 1 auto;
  }
  .hero-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
  }
  .hero-poster-wrap{
    width:140px;
    flex:0 0 140px;
    border:2px solid rgba(99,173,255,0.6);
    border-radius:4px;
    overflow:hidden;
    box-shadow:0 12px 28px rgba(0,0,0,0.45);
    background:rgba(0,0,0,0.35);
    display:block;
    align-self:start;
    transform:translateY(25px);
    z-index:3;
  }
  .hero-poster{
    display:block;
    width:100%;
    aspect-ratio:2/3;
    object-fit:cover;
  }
  .hero-text{
    width:auto;
    flex:1 1 auto;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:8px;
  }
  .hero-title{
    font-size:54px;
    line-height:1;
    text-shadow:0 4px 20px rgba(0,0,0,0.45);
    word-break:break-word;
  }
  .hero-meta{
    font-size:19px;
    color:#f2f5ff;
    text-shadow:0 2px 12px rgba(0,0,0,0.4);
  }
  .hero-link{ font-size:20px; }
  .hero-trailer{
    gap:10px;
    flex:0 0 auto;
  }
  .hero-trailer-icon{
    width:68px;
    height:68px;
    border-width:3px;
  }
  .hero-trailer-icon::after{
    border-top-width:12px;
    border-bottom-width:12px;
    border-left-width:16px;
    margin-left:3px;
  }
  .hero-trailer-label{ font-size:19px; }
  .home-controls{ padding:18px 32px 8px; z-index: 1000000000000; }
  .shelf{ padding:24px 32px 14px; }
  .shelf-title{ font-size:30px; }
  .shelf-sub{ font-size:15px; }
  .shelf-link{ font-size:20px; }
  .shelf-row{ gap:18px; padding-bottom:18px; }
  .shelf-card,
  .shelf-placeholder,
  .case-3d.case-tv{ width:190px; }
  .rank-badge{
    min-width:30px;
    height:30px;
    font-size:16px;
  }
  .home-footer{
    margin-top:56px;
    padding:0 32px 32px;
  }
  .desktop-rail-right{
    background:rgba(12,13,22,0.94);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:14px;
    padding:16px;
    overflow:auto;
  }
  .desktop-rail-search{
    display:flex;
    align-items:center;
    gap:8px;
    border:1px solid rgba(255,255,255,0.14);
    border-radius:999px;
    padding:7px 10px;
    background:rgba(255,255,255,0.04);
    margin-bottom:14px;
  }
  .desktop-rail-search img{
    width:14px;
    height:14px;
    filter:invert(1);
    opacity:0.8;
  }
  .desktop-rail-search input{
    border:0;
    outline:none;
    width:100%;
    background:transparent;
    color:#f2f5ff;
    font-size:15px;
  }
  .desktop-rail-search-btn{
    border:0;
    border-radius:999px;
    background:var(--brand, #ffdd71);
    color:#1f1706;
    font-weight:700;
    font-size:12px;
    padding:6px 10px;
    cursor:pointer;
  }
  .desktop-go-premium{
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:999px;
    min-height:42px;
    font-size:15px;
    font-weight:700;
    text-decoration:none;
    background:linear-gradient(145deg, #ffe38f, #e8c05a);
    color:#201502;
    border:1px solid rgba(255,255,255,0.5);
    margin-bottom:12px;
  }
  .desktop-shortlist-panel{
    border:1px solid rgba(255,255,255,0.08);
    border-radius:12px;
    background:#0f1422;
    padding:12px;
  }
  .desktop-right-links{
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-top:4px;
  }
  .desktop-right-links .desktop-nav-item{
    font-size:14px;
    padding:8px 10px;
  }
  .desktop-shortlist-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
  }
  .desktop-shortlist-head h3{
    margin:0;
    font-size:17px;
    color:#f3f6ff;
  }
  .desktop-shortlist-head a{
    color:#ffdd71;
    text-decoration:none;
    font-size:13px;
  }
  .desktop-shortlist-list{
    display:flex;
    flex-direction:column;
    gap:8px;
    min-height:60px;
  }
  .desktop-shortlist-item{
    position:relative;
    display:block;
    border-radius:10px;
    border:1px solid rgba(255,255,255,0.08);
    background:rgba(255,255,255,0.03);
    padding:0;
  }
  .desktop-shortlist-link{
    display:flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    color:#dce3f9;
    padding:6px;
    border-radius:10px;
  }
  .desktop-shortlist-item img{
    width:48px;
    height:72px;
    object-fit:cover;
    border-radius:6px;
    background:#090b12;
    flex:0 0 auto;
  }
  .desktop-shortlist-item strong{
    display:block;
    font-size:13px;
    line-height:1.3;
    font-weight:600;
    color:#f3f5fe;
  }
  .desktop-shortlist-item span{
    display:block;
    font-size:12px;
    color:#9ca7c9;
    margin-top:2px;
  }
  .desktop-shortlist-remove{
    position:absolute;
    right:6px;
    top:6px;
    width:22px;
    height:22px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,0.25);
    background:rgba(8,10,18,0.75);
    color:#ffdd71;
    font-size:18px;
    line-height:1;
    padding:0;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .desktop-shortlist-remove:hover{
    background:rgba(255,221,113,0.2);
  }
  .desktop-shortlist-empty{
    margin:0;
    color:#9ca7c9;
    font-size:13px;
    line-height:1.4;
  }
  .desktop-right-ad{
    margin-top:12px;
  }
  .desktop-right-ad .case-3d.ad-card.ad-wide{
    width:100%;
    max-width:none;
  }
  body.my-lists-page .lists-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
  body.my-lists-page .preview-row{
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:thin;
  }
  .desktop-home-layout{ scroll-padding-top:90px; }
}
