/* Small behavior-only adjustment; original theme CSS remains unchanged otherwise. */
@media all and (min-width: 1201px){#left .verticalDynamic{position:sticky;top:70px}}


/* EgyBest 1.0.5: fake Vidstream player and season/episode navigation. */
html { scroll-behavior: smooth; }
#ebFakePlayer { scroll-margin-top: 76px; }
.eb-watch-jump { display:block!important; width:100%; box-sizing:border-box; margin:9px 0 0!important; font-weight:700!important; }
.eb-fake-player-box .pda { padding:10px; }
.eb-fake-player { position:relative; display:block; width:100%; aspect-ratio:16 / 9; min-height:230px; max-height:620px; overflow:hidden; background:#000 url(vidstream.png) center center / cover no-repeat; border:1px solid #111; box-sizing:border-box; text-decoration:none!important; cursor:pointer; }
.eb-fake-player:focus-visible { outline:3px solid #00a1cb; outline-offset:3px; }
.eb-fake-player-play { position:absolute; width:100px; height:100px; top:50%; left:50%; transform:translate(-50%,-50%); border-radius:50%; background:#fff; box-shadow:0 2px 12px rgba(0,0,0,.35); transition:transform .16s ease,box-shadow .16s ease; }
.eb-fake-player-play:after { content:""; position:absolute; left:40px; top:27px; width:0; height:0; border-top:23px solid transparent; border-bottom:23px solid transparent; border-left:36px solid #050505; }
.eb-fake-player:hover .eb-fake-player-play { transform:translate(-50%,-50%) scale(1.06); box-shadow:0 4px 18px rgba(0,0,0,.5); }
.eb-episodes-box .pda { padding:12px; }
.eb-series-back { margin:0 0 12px; }
.eb-episode-navigation { display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; margin:0 0 16px; }
.eb-episode-navigation .btn { margin:0; }
.eb-season-block { margin:0 0 20px; }
.eb-season-title { margin:0 0 10px; padding:0 0 8px; border-bottom:2px solid #e31b23; font-size:18px; line-height:1.5; font-weight:700; }
.eb-season-title a { color:inherit; text-decoration:none; }
.eb-episode-button-grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:8px; }
.eb-episode-button { min-width:0; min-height:42px; display:flex; align-items:center; justify-content:center; padding:8px 5px; box-sizing:border-box; border:1px solid #ddd; border-radius:3px; background:#f8f8f8; color:#06c; font-size:13px; font-weight:700; text-align:center; text-decoration:none!important; overflow-wrap:anywhere; }
.eb-episode-button:hover,.eb-episode-button:focus-visible { border-color:#10bf46; background:#10bf46; color:#fff!important; }
.eb-episode-button.is-current { border-color:#e31b23; background:#e31b23; color:#fff!important; }
.eb-related-row .movie { vertical-align:top; }
@media (max-width:900px) { .eb-episode-button-grid { grid-template-columns:repeat(6,minmax(0,1fr)); } }
@media (max-width:700px) {
 .eb-fake-player { min-height:200px; }
 .eb-fake-player-play { width:72px; height:72px; }
 .eb-fake-player-play:after { left:29px; top:20px; border-top-width:16px; border-bottom-width:16px; border-left-width:25px; }
 .eb-episode-button-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
 .eb-episode-button { min-height:40px; padding:6px 3px; font-size:12px; }
 .eb-episode-navigation { flex-direction:column; }
 .eb-episode-navigation .btn { display:block; width:100%; box-sizing:border-box; }
}
@media (max-width:420px) { .eb-episode-button-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .eb-fake-player { min-height:180px; } }
.movie_cover .eb-watch-jump { display:block!important; width:100%; box-sizing:border-box; }

/* EgyBest 1.0.6 — complete single page, keeping the original EgyBest header and sidebars. */
.eb-single-overview .movieTable { width:100%; table-layout:fixed; }
.eb-single-overview .movieTable .movie_title { display:block!important; }
.eb-single-overview .movie_title h1 { margin:6px 0 12px; font-size:1.55em; line-height:1.5; font-weight:700; text-align:right; overflow-wrap:anywhere; }
.eb-single-overview .movie_cover { width:300px; vertical-align:top; }
.eb-single-overview .movie_img { width:100%; }
.eb-single-overview .movie_img img { display:block; width:100%; height:auto; min-height:0; max-height:none; object-fit:contain; }
.eb-single-overview .eb-single-facts-cell { vertical-align:top; min-width:0; }
.eb-single-overview .eb-meta-table { display:table!important; width:100%; border-collapse:collapse; border-spacing:0; table-layout:auto; }
.eb-single-overview .eb-meta-table tbody { display:table-row-group!important; }
.eb-single-overview .eb-meta-table tr { display:table-row!important; border:1px solid #ddd; }
.eb-single-overview .eb-meta-table th,
.eb-single-overview .eb-meta-table td { display:table-cell!important; padding:10px 12px; border:1px solid #ddd; vertical-align:middle; text-align:right; overflow-wrap:anywhere; }
.eb-single-overview .eb-meta-table th { width:100px; min-width:86px; white-space:normal; color:#111; font-weight:700; background:#f7f7f7; }
.eb-single-overview .eb-meta-table td { background:#fff; }
.eb-single-overview .eb-meta-table a { color:#06c; }
.eb-watch-jump { min-height:46px; display:flex!important; align-items:center; justify-content:center; }
.eb-single-story-box .eb-single-story { margin:0; padding:12px 14px; background:#fff; color:#444; font-size:15px; line-height:1.9; text-align:right; overflow-wrap:anywhere; }
.eb-cast-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.eb-cast-item { display:flex!important; align-items:center; flex-direction:row; gap:9px; width:auto!important; min-width:0; height:102px; margin:0!important; padding:4px; box-sizing:border-box; direction:rtl; overflow:hidden; }
.eb-cast-item img { flex:0 0 82px; width:82px!important; height:82px!important; margin:0!important; border:0!important; border-radius:50%; object-fit:cover; background:#e6e7e8; }
.eb-cast-item span { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:5px; text-align:right; overflow-wrap:anywhere; }
.eb-cast-item a { font-size:14px; font-weight:700; line-height:1.5; }
.eb-cast-item small { color:#888; font-size:12px; }
.eb-fake-player-box .pda { padding:10px; }
.eb-fake-player { background-color:#000!important; background-image:url(vidstream.png)!important; background-position:center center!important; background-size:cover!important; }
.eb-fake-player-box .hd strong { font-weight:700; }
.eb-server-table { display:table!important; width:100%; table-layout:auto; border-collapse:collapse; border-spacing:0; }
.eb-server-table thead { display:table-header-group!important; }
.eb-server-table tbody { display:table-row-group!important; }
.eb-server-table tr { display:table-row!important; }
.eb-server-table th,.eb-server-table td { display:table-cell!important; padding:10px 8px!important; border:1px solid #ddd!important; text-align:center!important; vertical-align:middle; }
.eb-server-table th { background:#eee!important; color:#222!important; font-weight:700; }
.eb-server-table td { background:#fff; }
.eb-server-table .btn { min-width:90px; margin:0; }
.eb-series-back { margin:0 0 12px; }
.eb-episode-navigation { display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; margin:0 0 16px; }
.eb-episode-navigation .btn { margin:0; }
.eb-season-block { margin:0 0 22px; }
.eb-season-title { margin:0 0 10px; padding:0 0 8px; border-bottom:2px solid #e31b23; font-size:18px; line-height:1.5; font-weight:700; }
.eb-season-title a { color:inherit; text-decoration:none; }
.eb-carousel-shell { position:relative; min-width:0; }
.eb-horizontal-track { display:flex; flex-direction:row; direction:rtl; align-items:flex-start; gap:12px; overflow-x:auto; overflow-y:hidden; padding:5px 24px 13px; scroll-behavior:smooth; scroll-snap-type:x proximity; scrollbar-width:thin; scrollbar-color:#999 #eee; }
.eb-horizontal-track::-webkit-scrollbar { height:8px; }
.eb-horizontal-track::-webkit-scrollbar-track { background:#eee; }
.eb-horizontal-track::-webkit-scrollbar-thumb { background:#999; border-radius:8px; }
.eb-episode-poster-card { display:flex; flex:0 0 150px; width:150px; flex-direction:column; align-items:stretch; gap:5px; color:#06c!important; text-align:center; text-decoration:none!important; scroll-snap-align:start; overflow:hidden; }
.eb-episode-poster-card img { display:block; width:100%; height:210px; object-fit:cover; background:#eee; }
.eb-episode-card-title { font-size:14px; font-weight:700; line-height:1.45; }
.eb-episode-card-subtitle { display:-webkit-box; min-height:34px; overflow:hidden; -webkit-line-clamp:2; -webkit-box-orient:vertical; font-size:12px; color:#555; line-height:1.4; }
.eb-episode-poster-card.is-current img { outline:3px solid #e31b23; outline-offset:-3px; }
.eb-carousel-arrow { position:absolute; z-index:3; top:78px; display:flex; align-items:center; justify-content:center; width:34px; height:56px; padding:0; border:0; border-radius:3px; background:rgba(255,255,255,.9); color:#078bd3; font-size:38px; line-height:1; cursor:pointer; box-shadow:0 1px 5px rgba(0,0,0,.17); }
.eb-carousel-prev { right:0; }
.eb-carousel-next { left:0; }
.eb-carousel-arrow:hover,.eb-carousel-arrow:focus-visible { background:#06c; color:#fff; outline:0; }
.eb-related-track { align-items:flex-start; }
.eb-related-track .movie { display:block; flex:0 0 145px; width:145px!important; max-width:145px; margin:0; scroll-snap-align:start; }
.eb-related-track .movie img { max-width:100%; }
.eb-related-track .movie .title { display:block; }
@media(max-width:1100px) {
 .eb-single-overview .movie_cover { width:260px; }
 .eb-cast-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .eb-episode-poster-card { flex-basis:135px; width:135px; }
 .eb-episode-poster-card img { height:190px; }
}
@media(max-width:700px) {
 .eb-single-overview .movieTable { table-layout:auto; }
 .eb-single-overview .movie_cover { width:38%; min-width:120px; }
 .eb-single-overview .movie_img { max-width:100%; }
 .eb-single-overview .movie_title h1 { font-size:1.15em; line-height:1.55; }
 .eb-single-overview .eb-meta-table th,.eb-single-overview .eb-meta-table td { padding:7px 6px; font-size:12px; }
 .eb-single-overview .eb-meta-table th { width:78px; min-width:70px; }
 .eb-watch-jump { padding:9px 4px!important; font-size:12px!important; white-space:normal; }
 .eb-single-story-box .eb-single-story { padding:8px; font-size:13px; }
 .eb-cast-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
 .eb-cast-item { height:76px; gap:6px; padding:2px; }
 .eb-cast-item img { flex-basis:58px; width:58px!important; height:58px!important; }
 .eb-cast-item a { font-size:12px; }
 .eb-cast-item small { font-size:11px; }
 .eb-fake-player { aspect-ratio:16/9; min-height:190px; }
 .eb-server-table th,.eb-server-table td { padding:7px 4px!important; font-size:12px; }
 .eb-server-table .btn { min-width:0; padding:7px 8px; font-size:12px; }
 .eb-horizontal-track { gap:8px; padding-right:22px; padding-left:22px; }
 .eb-episode-poster-card { flex-basis:110px; width:110px; }
 .eb-episode-poster-card img { height:156px; }
 .eb-episode-card-title { font-size:12px; }
 .eb-episode-card-subtitle { font-size:11px; }
 .eb-carousel-arrow { top:55px; width:28px; height:48px; font-size:32px; }
 .eb-episode-navigation { flex-direction:column; }
 .eb-episode-navigation .btn { display:block; width:100%; box-sizing:border-box; }
 .eb-related-track .movie { flex-basis:110px; width:110px!important; max-width:110px; }
}
@media(max-width:420px) {
 .eb-single-overview .movie_cover { width:35%; min-width:108px; }
 .eb-single-overview .movie_img img { min-height:0; }
 .eb-single-overview .movie_title h1 { font-size:1em; }
 .eb-cast-grid { grid-template-columns:1fr; }
 .eb-episode-poster-card { flex-basis:98px; width:98px; }
 .eb-episode-poster-card img { height:140px; }
}

/* EgyBest 1.0.7 — constrain the full page layout to the viewport. The previous
   table-based outer layout could expand to the combined intrinsic width of cast
   names and metadata links, producing a horizontal scrollbar on desktop. */
html, body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  /* clip constrains horizontal overflow without creating a scroll container,
     so position:sticky continues to follow the document scroll. */
  overflow-x: clip;
}
#body.table.full {
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  box-sizing: border-box;
}
#main, #left, #right,
#main > .mbox,
#main .pda,
#main .hd {
  min-width: 0;
  box-sizing: border-box;
}
#main > .mbox {
  width: 100%;
  max-width: 100%;
}
#main .movieTable {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}
#main .movie_cover {
  width: 300px;
  max-width: 300px;
  min-width: 0;
}
#main .eb-single-facts-cell {
  width: auto;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
#main .eb-meta-table,
#main .eb-server-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}
#main .eb-meta-table th,
#main .eb-meta-table td,
#main .eb-meta-table a,
#main .eb-server-table th,
#main .eb-server-table td {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#main .eb-meta-table th { width: 100px; }
#main .eb-cast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  max-width: 100%;
}
#main .eb-cast-item,
#main .eb-cast-item span,
#main .eb-cast-item a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#main .eb-horizontal-track { min-width: 0; max-width: 100%; }

/* Desktop: explicit three-column grid keeps the right menu, content and left
   link column within the page width while retaining the original appearance. */
@media (min-width: 921px) {
  #body.table.full {
    display: grid !important;
    grid-template-columns: 170px minmax(0, 1fr) 300px;
    gap: 10px;
    margin: 70px auto 10px;
    table-layout: auto;
    direction: rtl;
    align-items: start;
  }
  #body > #right {
    position: sticky !important;
    top: 70px;
    height: max-content;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    overflow-x: clip;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    right: auto !important;
    left: auto !important;
    grid-column: 1;
    grid-row: 1;
    width: 170px !important;
    min-width: 0 !important;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    align-self: start;
  }
  #body > #main {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible;
  }
  #body > #left {
    position: sticky !important;
    top: 70px;
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    align-self: start;
    height: max-content;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    overflow-x: clip;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  #right #menu,
  #left .verticalDynamic { max-width: 100%; box-sizing: border-box; }
  /* The outer sidebar is sticky. Keeping its inner list static prevents the
     list and its parent from competing for the same sticky scroll range. */
  #left .verticalDynamic { position: static !important; top: auto !important; }
}

/* Tablet navigation follows the original compact-menu behavior. */
@media (min-width: 921px) and (max-width: 1200px) {
  #body.table.full { grid-template-columns: 45px minmax(0, 1fr) 170px; }
  #body > #right { width: 45px !important; }
  #body > #right #menu { width: 45px !important; overflow: hidden; white-space: nowrap; }
  #body > #left { width: 170px; }
  #left .ba, #left .ba a, #left .ba .td { display: block; width: auto; margin-bottom: 5px; }
  #main .movie_cover { width: 260px; max-width: 260px; }
}

/* Smaller screens retain the theme's stacked/mobile layout. */
@media (max-width: 920px) {
  #body.table.full { display: block; width: 100%; max-width: 100%; table-layout: auto; }
  #body > #right, #body > #main, #body > #left {
    min-width: 0;
    max-width: 100%;
    width: auto;
    box-sizing: border-box;
  }
  #main .movie_cover { width: 38%; max-width: 38%; min-width: 0; }
  #main .movie_img, #main .movie_img img { width: 100%; max-width: 100%; height: auto; }
  #main .movieTable { table-layout: fixed; }
  #main .eb-single-facts-cell { width: auto; min-width: 0; }
  #main .eb-meta-table { table-layout: fixed; }
}
@media (max-width: 700px) {
  #main .movie_cover { width: 38%; max-width: 38%; min-width: 0; }
  #main .eb-cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #main .eb-single-overview .movie_title h1 { font-size: 1.1em; }
}
@media (max-width: 420px) {
  #main .eb-cast-grid { grid-template-columns: 1fr; }
}

/* Account for the legacy 5px body padding at narrow viewport sizes. */
body { box-sizing: border-box; }
#head, #head .viewport { max-width: 100%; box-sizing: border-box; }
#body.table.full { box-sizing: border-box; }

/* On phones, stack poster and details rather than squeezing the metadata into
   a narrow side-by-side column. The desktop/tablet split remains unchanged. */
@media (max-width: 700px) {
  #main .eb-single-overview > .movieTable,
  #main .eb-single-overview > .movieTable > tbody,
  #main .eb-single-overview > .movieTable > tbody > tr {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
  }
  #main .eb-single-overview > .movieTable > tbody > tr > .movie_cover,
  #main .eb-single-overview > .movieTable > tbody > tr > .eb-single-facts-cell {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
  }
  #main .eb-single-overview .movie_cover { text-align: center; }
  #main .eb-single-overview .movie_img {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  #main .eb-single-overview .movie_img img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
  }
  #main .eb-single-overview .movie_cover .eb-watch-jump {
    width: 100%;
    max-width: 300px;
    margin: 10px auto 0 !important;
  }
  #main .eb-single-overview .movie_title h1 {
    margin: 8px 0;
    font-size: 1.2em;
    text-align: center;
  }
  #main .eb-single-overview .eb-meta-table { width: 100%; table-layout: fixed; }
  #main .eb-single-overview .eb-meta-table th { width: 90px; min-width: 90px; }
  #main .eb-cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #main .eb-server-list-box .pda { overflow-x: auto; }
  #main .eb-server-table { min-width: 490px; }
}
@media (max-width: 420px) {
  #main .eb-cast-grid { grid-template-columns: 1fr; }
  #main .eb-single-overview .eb-meta-table th { width: 82px; min-width: 82px; }
}


/* EgyBest 1.0.8 — restore sticky right navigation and left category sidebar. */
@media (min-width: 921px) {
  #body > #right, #body > #left { position: sticky !important; top: 70px; }
  #left .verticalDynamic { position: static !important; }
}


/* EgyBest 1.1.1 — pagination spacing scoped to archive/collection page links. */
#main .eb-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  margin: 18px auto;
  padding: 8px 10px;
  box-sizing: border-box;
  clear: both;
}
#main .eb-pagination > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 36px;
  min-height: 40px;
  margin: 0 !important;
  padding: 0 11px;
  box-sizing: border-box;
  line-height: 1.2;
  text-align: center;
}
#main .eb-pagination-ellipsis { display: inline-block; padding: 0 5px; line-height: 40px; }
@media (max-width: 420px) {
  #main .eb-pagination { gap: 5px; padding-right: 4px; padding-left: 4px; }
  #main .eb-pagination > .btn { min-width: 33px; min-height: 38px; padding: 0 8px; }
}

/* EgyBest 1.1.3.2 — tidy server spacing on the watch/servers page only. */
#main .eb-watch-controls {
  padding: 14px !important;
  box-sizing: border-box;
}
#main .eb-watch-server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  box-sizing: border-box;
}
#main .eb-watch-server-grid > .eb-watch-server-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0 !important;
  padding: 9px 8px;
  box-sizing: border-box;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
#main .eb-watch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  box-sizing: border-box;
}
#main .eb-watch-actions > .btn {
  display: flex !important;
  flex: 1 1 160px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px 12px;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  line-height: 1.45;
}
@media (max-width: 700px) {
  #main .eb-watch-controls { padding: 10px !important; }
  #main .eb-watch-server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }
  #main .eb-watch-server-grid > .eb-watch-server-btn {
    min-height: 44px;
    padding: 9px 6px;
    font-size: 13px;
  }
  #main .eb-watch-actions { gap: 8px; }
  #main .eb-watch-actions > .btn { flex: 1 1 130px; }
}



/* EgyBest 1.1.5 — member library and community ratings; scoped to the new feature blocks. */
#main .eb-library-save-form { margin: 8px 0 0; width: 100%; }
#main .eb-library-save-button { display:flex!important; align-items:center; justify-content:center; width:100%; min-height:42px; box-sizing:border-box; white-space:normal; line-height:1.45; }
#main .eb-member-rating-inner { display:flex; flex-direction:column; align-items:center; gap:14px; }
#main .eb-member-rating-summary { display:flex; align-items:center; justify-content:center; gap:9px; flex-wrap:wrap; font-size:17px; }
#main .eb-rating-star { color:#f4b400; font-size:36px; line-height:1; }
#main .eb-rating-votes, #main .eb-rating-login-text { color:#666; font-size:13px; }
#main .eb-rating-member { display:flex; align-items:center; gap:10px; width:min(100%,420px); padding:10px 12px; border:1px solid #ddd; border-radius:8px; background:#fff; box-sizing:border-box; }
#main .eb-rating-member img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
#main .eb-rating-form { width:min(100%,520px); text-align:center; }
#main .eb-rating-form fieldset { border:0; padding:0; margin:0 0 14px; min-width:0; }
#main .eb-rating-form legend { width:100%; margin-bottom:9px; font-weight:700; }
#main .eb-rating-options { display:flex; align-items:stretch; justify-content:center; gap:8px; flex-wrap:wrap; }
#main .eb-rating-options label { display:flex; flex-direction:column; gap:2px; align-items:center; justify-content:center; min-width:52px; padding:8px 7px; border:1px solid #ddd; border-radius:8px; background:#fff; cursor:pointer; }
#main .eb-rating-options label.is-selected { border-color:#f4b400; background:#fff9df; }
#main .eb-rating-options input { margin:0 0 3px; accent-color:#0bb84a; }
#main .eb-rating-options span { color:#f4b400; font-size:17px; letter-spacing:-1px; }
#main .eb-rating-options small { font-size:11px; color:#555; }
#main .eb-member-library-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px 12px; align-items:start; }
#main .eb-member-library-item { min-width:0; text-align:center; }
#main .eb-member-library-card { display:block; color:#06c; text-decoration:none; }
#main .eb-member-library-card .eb-card-poster-frame { display:block; overflow:hidden; aspect-ratio:2/3; background:#eee; }
#main .eb-member-library-card img { display:block; width:100%; height:100%; object-fit:cover; }
#main .eb-member-library-card .title { display:block; padding:6px 2px; line-height:1.45; overflow-wrap:anywhere; }
#main .eb-library-remove-button { display:flex!important; width:100%; min-height:36px; padding:7px 5px; font-size:12px; justify-content:center; }
#main .eb-series-library-action { text-align:center; }
@media (max-width:1100px) { #main .eb-member-library-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:700px) { #main .eb-member-library-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 8px; } }
@media (max-width:420px) { #main .eb-member-library-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } #main .eb-rating-options { gap:5px; } #main .eb-rating-options label { min-width:43px; padding:7px 4px; } }

/* EgyBest 1.1.5.1 — fix member library route metadata, sidebar contact glyph, and action spacing. */
#menu a.eb-contact-menu-link { display:block; padding:6px 4px; font-size:1em; border-bottom:1px solid #eee; color:#06c; text-decoration:none; }
#menu a.eb-contact-menu-link:hover { color:#ff1000; }
#main .movieTable td.movie_cover .eb-watch-jump {
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100%;
  box-sizing:border-box;
  margin:0 0 14px !important;
  clear:both;
}
#main .movieTable td.movie_cover .eb-library-save-form {
  display:block;
  width:100%;
  margin:0 !important;
  padding:0 !important;
  clear:both;
}
#main .movieTable td.movie_cover .eb-library-save-button {
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:42px;
  margin:0 !important;
  box-sizing:border-box;
  white-space:normal;
  line-height:1.45;
}


/* EgyBest 1.1.6: keep desktop login control slightly farther right without touching other header items. */
@media (min-width: 921px) {
  #head .table.viewport > .viewport_left { position: relative; left: 16px; }
}

/* Single-page download list: show five rows, with a separate link to all download servers. */
.eb-download-more-wrap { display:flex; justify-content:center; margin:12px 0 2px; }
.eb-download-more { display:inline-flex!important; align-items:center; justify-content:center; min-width:150px; max-width:100%; margin:0!important; box-sizing:border-box; }
