:root {
  --blue: #3f86f5;
  --blue-dark: #2f73dd;
  --page: #f4f6f9;
  --ink: #212529;
  --muted: #6c757d;
  --line: #d9dee5;
  --card: #fff;
  --dark: #343a40;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fff;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.sidebar-toggle {
  position: fixed;
  left: -9999px;
  opacity: 0;
}

.main-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 250px;
  overflow-y: auto;
  color: #2f80e7;
  background: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
  transition: transform .2s ease;
}

.brand-link {
  display: grid;
  width: 250px;
  height: 111px;
  place-items: center;
  border-bottom: 1px solid #e7e7e7;
  background: #fff;
}

.brand-link img {
  width: 231px;
  height: 101px;
  object-fit: contain;
}

.brand-wordmark {
  display: grid;
  width: 231px;
  height: 101px;
  place-items: center;
  color: var(--blue-dark);
  font-size: 36px;
  font-weight: 800;
}

.latest-domain {
  display: block;
  width: 250px;
  min-height: 39px;
  padding: 7px 10px;
  color: #333;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
  padding: 20px 8px;
}

.nav-link {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-radius: 4px;
  color: #3f83d8;
  font-size: 17px;
}

.nav-link:hover,
.nav-home {
  color: #fff;
  background: var(--blue);
}

.nav-icon {
  width: 22px;
  flex: 0 0 22px;
  color: currentColor;
  text-align: center;
  font-size: 18px;
  line-height: 1;
}

.page-shell {
  min-width: 0;
  margin-left: 250px;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 57px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #dee2e6;
  background: #fff;
}

.menu-button {
  display: grid;
  width: 46px;
  height: 40px;
  cursor: pointer;
  place-items: center;
  color: #555;
  font-size: 19px;
}

.header-search {
  display: flex;
  width: 260px;
  height: 40px;
}

.header-search input {
  min-width: 0;
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d8dde3;
  border-radius: 3px 0 0 3px;
  background: #f4f6f9;
  outline: 0;
}

.header-search button,
.search-hero button {
  width: 48px;
  border: 0;
  border-radius: 0 3px 3px 0;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
}

.content-wrapper {
  min-height: calc(100vh - 57px);
  padding-top: 1px;
  background: var(--page);
}

.search-hero {
  padding: 0 16px 12px;
}

.search-hero h1 {
  margin: 0;
  color: #62676d;
  text-align: center;
  font-size: 68px;
  font-weight: 300;
  line-height: 1.25;
}

.search-hero form {
  display: flex;
  width: min(600px, 100%);
  height: 49px;
  margin: 0 auto;
}

.search-hero input {
  min-width: 0;
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #d4d8dc;
  border-radius: 4px 0 0 4px;
  background: #fff;
  font-size: 20px;
  outline: 0;
}

.tag-cloud {
  padding: 8px 18px 16px;
}

.tag-wrap {
  line-height: 0;
}

.tag-wrap span {
  display: inline-block;
  margin: 1px 3px 1px 0;
}

.tag-badge {
  display: inline-block;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}

.tag-color-0 { background: #dc3545; }
.tag-color-1 { background: #28a745; }
.tag-color-2 { background: #6f42c1; }
.tag-color-3 { background: #17a2b8; }
.tag-color-4 { background: #fd7e14; }
.tag-color-5 { background: #6c757d; }
.tag-color-6 { background: #20c997; }
.tag-color-7 { background: #e83e8c; }
.tag-color-8 { background: #007bff; }
.tag-color-9 { background: #343a40; }

.app-directory {
  padding: 0 12px 12px;
}

.app-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 4px;
  max-width: 1140px;
  margin-inline: auto;
}

.app-slot {
  display: flex;
  width: 76px;
  min-height: 97px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  text-align: center;
  font-size: 14px;
}

.app-art {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  font-size: 22px;
}

.link-section {
  padding: 0 8px 14px;
}

.link-section h2 {
  margin: 0 0 6px;
  padding: 4px 0 5px;
  border-bottom: 1px solid #8db4d8;
  font-size: 18px;
  font-weight: 500;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
}

.link-grid a {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 4px;
  color: #fff;
  background: var(--dark);
  text-align: center;
  line-height: 1.2;
}

.engine-flinks {
  display: none;
}

.content-main {
  padding: 0 15px 30px;
}

.page-heading {
  margin: 0 0 12px;
  padding: 6px 0;
  border-bottom: 1px solid #cad2da;
  font-size: 18px;
  font-weight: 500;
}

.page-heading span {
  margin-left: 6px;
}

.masonry-grid {
  column-count: 4;
  column-gap: 20px;
}

.video-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  break-inside: avoid;
  border-radius: 4px;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
  vertical-align: top;
}

.card-meta {
  position: relative;
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 7px 38px 7px 10px;
  border-bottom: 1px solid #e3e7ea;
  color: #277abf;
  font-size: 13px;
}

.card-meta em {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #f07848;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.poster-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  display: block;
  padding: 12px 10px 14px;
  color: #343a40;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 16px 0 4px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #fff;
}

.pagination [aria-current="page"] {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.return-home {
  margin: 10px 0 0;
  padding: 9px 0;
  border-top: 1px solid #ccd4dc;
  font-size: 24px;
  font-weight: 600;
}

.detail-card,
.play-card {
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 24px;
  padding: 16px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-copy h1,
.play-card h1 {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.35;
}

.detail-copy h2 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.detail-meta {
  color: var(--muted);
}

.detail-blurb {
  max-height: 180px;
  overflow: hidden;
}

.play-line-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.play-line-list a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 6px 13px;
  border-radius: 4px;
  color: #fff;
  background: var(--blue);
}

.play-card {
  max-width: 1200px;
  margin-inline: auto;
}

.play-card h1 {
  margin: 0;
  padding: 10px 14px;
}

.play-line-tabs {
  margin: 12px;
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.player-shell iframe,
.player-shell video,
.player-shell embed,
.player-shell object,
.player-shell > div {
  width: 100% !important;
  height: 100% !important;
}

.related-title {
  margin: 0 0 12px;
  padding: 8px;
  background: #fff;
  font-size: 22px;
}

.bottom-tag-cloud {
  padding-top: 18px;
  padding-bottom: 22px;
}

.main-footer {
  min-height: 198px;
  padding: 16px 12px 28px;
  border-top: 1px solid #dee2e6;
  background: #fff;
  color: #212529;
  text-align: center;
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  width: 231px;
  height: 101px;
  object-fit: contain;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  margin-top: 8px;
  font-size: 14px;
}

.main-footer p {
  margin: 6px 0 0;
  font-size: 14px;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .masonry-grid {
    column-count: 3;
  }

  .link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .main-sidebar {
    transform: translateX(-100%);
  }

  .sidebar-toggle:checked ~ .main-sidebar {
    transform: translateX(0);
  }

  .sidebar-toggle:checked ~ .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgba(0, 0, 0, .35);
  }

  .page-shell {
    margin-left: 0;
  }

  .main-header {
    height: 71px;
    padding: 15px 8px;
  }

  .header-search {
    width: 238px;
  }

  .content-wrapper {
    min-height: calc(100vh - 71px);
  }

  .search-hero {
    padding: 0 15px 12px;
  }

  .search-hero h1 {
    font-size: 54px;
  }

  .search-hero form {
    height: 49px;
  }

  .search-hero input {
    font-size: 18px;
  }

  .tag-cloud {
    padding-right: 15px;
    padding-left: 15px;
  }

  .tag-badge {
    font-size: 15px;
  }

  .link-section {
    padding-right: 15px;
    padding-left: 15px;
  }

  .link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .link-grid a {
    min-height: 34px;
    padding: 5px 4px;
    font-size: 15px;
  }

  .content-main {
    padding-right: 15px;
    padding-left: 15px;
  }

  .masonry-grid {
    column-count: 1;
  }

  .video-card {
    margin-bottom: 12px;
  }

  .detail-card {
    grid-template-columns: 1fr;
  }

  .play-card h1 {
    font-size: 20px;
  }

  .footer-contact {
    display: grid;
  }
}

@media (max-width: 360px) {
  .header-search {
    width: calc(100vw - 76px);
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Geometry and appearance captured from the selected public source. */
.tag-cloud { padding: 0 8px; }
.tag-wrap { line-height: 24px; }
.tag-wrap > span { display: contents; margin: 0; }
.tag-badge { margin: 0 0 2px 2px; min-height: 24px; padding: 4px 6.4px; font-size: 16px; line-height: 16px; text-align: center; }
.app-directory { padding: 0; }
.app-grid { width: min(1140px,100%); margin: 5px auto; padding: 0 7.5px; gap: 0; }
.app-slot { width: 76px; min-height: 97px; gap: 0; justify-content: flex-start; color: #007cfa; font-size: 14px; font-weight: 600; line-height: 21px; }
.app-slot img { width: 50px; height: 50px; margin: 13px; border: 2px solid gray; border-radius: 30%; object-fit: cover; }
.link-section { padding: 0 16px; margin: 9px 0 16px; }
.link-grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 0; }
.link-grid a { min-height: 30px; height: 30px; padding: 0; margin: 1px; font-size: 18px; line-height: 30px; border-radius: 3px; background: #4c4c4c; color: #fff; white-space: nowrap; overflow: hidden; }
.link-grid a:hover { background: #007cfa; color: #fff; }
.main-footer { text-align: center; font-size: 13px; color: #212529; }
.main-footer > a:first-of-type { display: block; margin-bottom: 5px; }
.main-footer > a:first-of-type img { display: block; margin: 0 auto; width: 231px; height: 101px; object-fit: contain; }
.main-footer .footer-menu-link { display: inline-block; font-size: 13px; }
@media (max-width:1000px) { .link-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:768px) {
  .app-grid { padding:0 7.5px; }
  .app-slot { width: 60px; min-height:78px; font-size:12px; line-height:18px; }
  .app-slot img { margin:5px; }
  .tag-cloud { padding:0 8px; }
  .tag-badge { font-size:16px; }
  .link-section { padding:0 8px; }
  .link-grid a { padding:0; font-size:18px; line-height:30px; }
}

/* Source float widths deliberately leave the final line's remaining space. */
.link-section { padding: 0 8px; }
.link-grid { display: block; overflow: hidden; width:100%; padding:0 8px; }
.link-grid a { float:left; display:inline-block; width:10.9885%; }
@media (max-width:1000px) { .link-grid a { width:32.7%; } }
