/* Local preview: search spacing and first-grid switch; original covers retained. */
body.home .slider-content { padding: 50px 0 50px; }
body.home .slider-content .hero-buttons a.btn-slider { display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; border-radius: 10px !important; background: linear-gradient(180deg, #f21d27 0%, #e50914 52%, #d30a14 100%) !important; box-shadow: 0 5px 14px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.16) !important; transform: translateY(0) !important; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important; }
body.home .slider-content .hero-buttons a.btn-slider:not(.btn-slider--launcher) { padding-left: 27px !important; padding-right: 27px !important; }
body.home .slider-content .hero-buttons a.btn-slider.btn-slider--launcher { gap: 9px; padding-left: 38.5px !important; padding-right: 38.5px !important; background: linear-gradient(180deg, #30d36d 0%, #22c55e 52%, #1db557 100%) !important; }
body.home .slider-content .hero-buttons a.btn-slider svg { width: 16px; height: 16px; flex: 0 0 16px; }
body.home .slider-content .hero-buttons a.btn-slider:focus-visible { outline: 2px solid #ff9a94 !important; outline-offset: 4px; }
body.home .slider-content .hero-buttons a.btn-slider.btn-slider--launcher:focus-visible { outline-color: #8df2af !important; }
@media (hover: hover) {
 body.home .slider-content .hero-buttons a.btn-slider:hover { transform: translateY(-2px) !important; filter: brightness(1.04); box-shadow: 0 8px 18px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.24), inset 0 -1px 0 rgba(0,0,0,.16) !important; }
}
body.home .slider-content .hero-buttons a.btn-slider:active { transform: translateY(0) !important; filter: brightness(.98); }
body.home .slider { margin-bottom: 0; }
body.home .page.homepage { padding-top: 16px; }
body.home .hp-search { margin: 0 0 18px; }
body.home .hp-search__form { flex-direction: row; align-items: center; min-height: 56px; padding: 5px; border: 1px solid #2c2c2c; border-radius: 12px; background: #191919; box-sizing: border-box; transition: border-color .15s ease; }
body.home .hp-search__form:focus-within { border-color: #eb2d1c; box-shadow: 0 0 0 1px #eb2d1c; }
body.home .hp-search .hp-search__form input.hp-search__input { min-width: 0; height: 44px; padding: 10px 8px !important; font-size: 16px !important; line-height: 24px; border: 0 !important; border-radius: 0 !important; background: transparent !important; background-color: transparent !important; box-shadow: none !important; box-sizing: border-box; }
body.home .hp-search .hp-search__input::placeholder { color: #aaa !important; }
body.home .hp-search .hp-search__btn { height: 44px; min-height: 44px; padding: 0 26px !important; border-radius: 8px !important; }
.su-search-icon { width: 20px; height: 20px; flex: 0 0 20px; margin: 0 4px 0 12px; color: #aaa; pointer-events: none; }
body.home .homepage .su-feed-header { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 24px; }
.su-feed-toggle { display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px; padding: 5px; border: 1px solid #2c2c2c; border-radius: 14px; background: #242424; }
.su-feed-toggle a { appearance: none; border: 0; border-radius: 10px; background: transparent; color: #bfbfbf; padding: 10px 16px; font: 600 15px/1.4 Arial, sans-serif; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.su-feed-toggle a:hover { color: #fff; background: #303030; }
.su-feed-toggle a[aria-current="true"] { color: #fff; background: #e92014; }
.su-feed-toggle a:focus-visible { outline: 2px solid #ff857c; outline-offset: 3px; }
.su-nsfw-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 0 6px 12px; border: 0; background: transparent; color: #b9b9b9; font: 600 14px/1.4 Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.su-nsfw-switch:hover, .su-nsfw-switch[aria-checked="true"] { color: #eee; }
.su-switch-track { display: inline-flex; align-items: center; width: 40px; height: 24px; padding: 3px; box-sizing: border-box; background: #363638; border-radius: 99px; transition: background .15s ease; }
.su-switch-thumb { width: 18px; height: 18px; background: #bdbdbf; border-radius: 50%; transform: translateX(0); transition: transform .15s ease, background .15s ease; }
.su-nsfw-switch[aria-checked="true"] .su-switch-track { background: #219450; }
.su-nsfw-switch[aria-checked="true"] .su-switch-thumb { background: #fff; transform: translateX(16px); }
.su-nsfw-switch:focus-visible { outline: 2px solid #ff857c; outline-offset: 4px; border-radius: 6px; }
html.su-hide-nsfw .homepage [data-adult="1"], html.su-hide-nsfw [data-adult-shortcut="1"] { display: none !important; }
#su-empty { padding: 50px 20px; border-radius: 12px; border: 1px solid #383838; color: #bbb; text-align: center; }
#su-empty[hidden] { display: none; }
#su-grid { min-height: 200px; }
.hp-search__dropdown { z-index: 100; }
#main_menu.su-menu-open { display: block; }
@media (max-width: 991px) {
 body.home .slider-content { padding: 34px 0 40px; }
 .su-feed-toggle a { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 600px) {
 body.home .slider-content { padding: 26px 0 38px; }
 body.home .hp-search .hp-search__form input.hp-search__input { padding-left: 6px !important; padding-right: 6px !important; }
 body.home .hp-search .hp-search__btn { padding: 0 16px !important; }
 .su-search-icon { margin-left: 8px; margin-right: 2px; }
 body.home .homepage .su-feed-header { gap: 16px; }
 .su-feed-toggle { width: 100%; box-sizing: border-box; }
 .su-feed-toggle a { flex: 1; padding: 12px 8px; font-size: 14px; }
 body.home .slider-content .hero-buttons { flex-direction: row; flex-wrap: wrap; gap: 10px; }
 body.home .slider-content .hero-buttons .btn-slider { padding: 13px 18px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .su-feed-toggle a, body.home .hp-search__form, .su-switch-track, .su-switch-thumb { transition: none; } }
@media (prefers-reduced-motion: reduce) {
 body.home .slider-content .hero-buttons a.btn-slider,
 body.home .slider-content .hero-buttons a.btn-slider:hover,
 body.home .slider-content .hero-buttons a.btn-slider:active { transition: none !important; transform: none !important; }
}

/* Quiet secondary actions, shared by homepage, search, categories and library. */
body.home .homepage .homepage-category__btn .su-load-more {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 48px;
 min-width: 168px;
 padding: 12px 26px;
 border: 1px solid #353535 !important;
 border-radius: 9px;
 background: #282828;
 color: #ededed;
 font: 600 14px/1.4 Arial, sans-serif;
 text-decoration: none;
 cursor: pointer;
 box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
 transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
body.home .homepage .homepage-category__btn .su-load-more::after {
 width: 6px;
 height: 6px;
 margin-left: 12px;
 border-right-color: #a6a6a6;
 border-bottom-color: #a6a6a6;
 transition: border-color .16s ease;
}
@media (hover: hover) {
 body.home .homepage .homepage-category__btn .su-load-more:not(:disabled):not([aria-disabled="true"]):hover {
  background: #303030;
  border-color: #bd4339 !important;
  color: #fff;
 }
 body.home .homepage .homepage-category__btn .su-load-more:not(:disabled):not([aria-disabled="true"]):hover::after {
  border-right-color: #ff675c;
  border-bottom-color: #ff675c;
 }
}
body.home .homepage .homepage-category__btn .su-load-more:focus-visible {
 background: #303030;
 border-color: #bd4339 !important;
 color: #fff;
 outline: 2px solid #f16a60 !important;
 outline-offset: 3px;
}
body.home .homepage .homepage-category__btn .su-load-more:focus-visible::after {
 border-right-color: #ff675c;
 border-bottom-color: #ff675c;
}
body.home .homepage .homepage-category__btn .su-load-more:not(:disabled):not([aria-disabled="true"]):active {
 background: #242424;
 border-color: #a6372e !important;
}
body.home .homepage .homepage-category__btn .su-load-more:is(:disabled,[aria-disabled="true"]) {
 opacity: .5;
 cursor: default;
 box-shadow: none;
}
body.home .homepage .homepage-category__btn .su-load-more[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
 body.home .homepage .homepage-category__btn .su-load-more,
 body.home .homepage .homepage-category__btn .su-load-more::after { transition: none; }
}

/* Website-only controls and display filtering. */
#su-home-feed > .homepage-category > .category-title { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.su-feed-toggle a { display:inline-flex; text-decoration:none !important; }
.su-nsfw-switch[hidden] { display:none !important; }
.su-feed-header { display:flex; align-items:center; gap:16px 24px; margin-bottom:24px; flex-wrap:wrap; }
.su-nsfw-switch { border:0 !important; background:transparent !important; box-shadow:none !important; }
html.su-hide-nsfw [data-su-adult="1"], html.su-hide-nsfw .hp-catbar__card--adult,
html.su-hide-nsfw .su-adult-shortcut,
html.su-hide-nsfw .su-ch-card:has(a[href$="/category/adult/"]),
html.su-hide-nsfw .su-cat__more-pill[href$="/category/adult/"] { display:none !important; }
.su-related-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.su-related-heading h2 { margin-bottom:0; }
.su-related-heading { margin-bottom:18px; }
.su-browse-status { color:#aaa; font-size:13px; margin:8px 0 16px; }
.su-browse-status:empty { display:none; }
/* Announce routine refreshes without moving the page; errors remain visible. */
[aria-busy="true"] > .su-browse-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.su-cat__head > .su-nsfw-switch { order:2; }
.su-cat__head > .su-cat__search-wrap { order:3; }
.su-library-toolbar__right { gap:18px; }
#su-library-hidden[hidden], .su-section-related[hidden] { display:none !important; }
.su-feed-toggle a:focus-visible { outline:2px solid #ff857c; outline-offset:3px; }
.su-feed-toggle a[aria-current="true"] { background:#e92014; color:#fff; }
@media(max-width:600px) { .su-feed-header { gap:12px; } .su-feed-toggle a { flex:1; justify-content:center; } }

/* Fixed tracks keep a partially filtered row aligned with the row above it. */
body.home .homepage [data-su-section] .homepage-cover-items {
 align-content: start;
 align-items: start;
}
body.home .homepage [data-su-section] .homepage-cover-items > .cover-item { min-width: 0; }
@media (min-width: 641px) {
 body.home .homepage [data-su-section] .homepage-cover-items {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 2%;
  row-gap: 25px;
  justify-content: start;
  margin-bottom: 25px;
 }
 body.home .homepage [data-su-section] .homepage-cover-items > .cover-item { margin-bottom: 0; }
}
@media (min-width: 641px) and (max-width: 990px) {
 body.home .homepage [data-su-section] .homepage-cover-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
