/* imdb template — based on movie-template-imdb (Bootstrap 3 + FA 4 + Roboto Condensed) */
/* Bootstrap 3, FontAwesome 4, Roboto Condensed font loaded from CDN in HTML */

html, body {
  font-size: 100%;
  font-family: 'Roboto Condensed', sans-serif;
  background: #fff;
}

ul li, ol li {
  font-size: 14px;
}

p {
  margin: 0;
  font-size: 0.9em;
}

h1, h2, h3, h4, h5, h6, a {
  font-family: 'Roboto Condensed', sans-serif;
  margin: 0;
}

ul, label {
  margin: 0;
  padding: 0;
}

body a:hover {
  text-decoration: none;
}

/* ============ Header ============ */
[class~="header"] {
  padding: 1em 0;
  border-top: 3px solid #FF8D1B;
}

[class~="w3layouts_logo"] {
  float: left;
}

[class~="w3layouts_logo"] a {
  display: block;
  text-decoration: none;
}

[class~="w3layouts_logo"] a h1 {
  font-size: 2.8em;
  color: #212121;
  text-transform: uppercase;
  font-weight: 900;
  padding-bottom: .3em;
}

[class~="w3layouts_logo"] a h1 span {
  color: #FF8D1B;
  font-size: .3em;
  display: block;
  font-weight: 300;
  letter-spacing: 5px;
  text-align: right;
  line-height: 0;
}

[class~="w3_search"] {
  float: left;
  width: 40%;
  margin-left: 5em;
  margin-top: .7em;
}

[class~="w3_search"] input[type="text"] {
  outline: none;
  border: none;
  background: #EFEFEF;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: #999;
  width: 78%;
  float: left;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
}

[class~="w3_search"] input[type="submit"] {
  outline: none;
  border: none;
  background: #212121;
  padding: 10px 0;
  font-size: 14px;
  color: #fff;
  width: 22%;
  cursor: pointer;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
}

[class~="w3_search"] input[type="submit"]:hover {
  background: #FF8D1B;
}

/* ============ Nav ============ */
[class~="movies_nav"] {
  background: #FF8D1B;
}

[class~="movies_nav"] [class~="navbar-default"] {
  background: none;
  border: none;
}

[class~="movies_nav"] [class~="navbar"] {
  margin-bottom: 0;
}

[class~="movies_nav"] [class~="navbar-default"] [class~="navbar-nav"] > li > a {
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
}

[class~="movies_nav"] [class~="navbar-nav"] > li {
  border-right: 1px dotted rgba(255,255,255,.5);
}

[class~="movies_nav"] [class~="navbar-default"] [class~="navbar-nav"] > li > a:hover,
[class~="movies_nav"] [class~="navbar-default"] [class~="navbar-nav"] > li > a:focus,
[class~="movies_nav"] [class~="navbar-default"] [class~="navbar-nav"] > [class~="active"] > a,
[class~="movies_nav"] [class~="navbar-default"] [class~="navbar-nav"] > [class~="active"] > a:hover,
[class~="movies_nav"] [class~="navbar-default"] [class~="navbar-nav"] > [class~="active"] > a:focus {
  color: #fff;
  background-color: #212121;
}

[class~="movies_nav"] [class~="navbar-nav"] {
  float: none;
  margin: 0;
}

[class~="movies_nav"] [class~="navbar-left"] {
  float: none !important;
}

[class~="movies_nav"] [class~="navbar-right"] {
  float: none !important;
  margin-right: 0;
}

[class~="movies_nav"] [class~="navbar-toggle"] [class~="icon-bar"] {
  background-color: #fff;
}

[class~="movies_nav"] [class~="navbar-toggle"] {
  border-color: rgba(255,255,255,.3);
}

/* ============ Banner / Carousel ============ */
[class~="banner"] {
  background: #f5f5f5;
}

[class~="carousel-indicators"] [class~="active"] {
  background: #FF8D1B;
}

/* ============ Section wrappers ============ */
[class~="section-block"] {
  padding: 2em 0;
}

[class~="section-block"] h2[class~="section-title"] {
  font-size: 1.8em;
  color: #212121;
  font-weight: 700;
  margin-bottom: 1em;
  padding-bottom: .5em;
  border-bottom: 3px solid #FF8D1B;
  display: inline-block;
}

/* ============ Movie cards (BossV output) ============ */
[class~="movie-grid-section"] {
  padding: 2em 0;
  box-shadow: 0 0 1px #999;
  margin-bottom: 1.5em;
}

[class~="movie-section-heading"] {
  font-size: 1.6em;
  color: #212121;
  font-weight: 700;
  margin-bottom: .8em;
  padding-bottom: .4em;
  border-left: 4px solid #FF8D1B;
  padding-left: .5em;
}

/* ============ Single page (detail) ============ */
[class~="single-page"] {
  padding: 2em 0;
}

[class~="breadcrumb"] {
  background: none;
  padding-left: 0;
  font-size: 0.85em;
}

[class~="breadcrumb"] > [class~="active"] {
  color: #FF8D1B;
}

[class~="breadcrumb"] > li + li::before {
  color: #999;
}

[class~="movie-detail-left"] {
  border-right: 1px solid #eee;
  padding-right: 2em;
}

[class~="movie-poster-img"] {
  width: 100%;
  max-width: 240px;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  margin-bottom: 1em;
}

[class~="movie-info-box"] {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 1em;
  margin-bottom: 1em;
}

[class~="movie-info-box"] h3 {
  font-size: 1.6em;
  color: #212121;
  font-weight: 700;
  margin-bottom: .3em;
}

[class~="movie-info-box"] [class~="movie-genre"] {
  color: #FF8D1B;
  font-size: .9em;
  margin-bottom: .5em;
}

[class~="movie-meta-list"] {
  list-style: none;
  padding: 0;
  margin: .8em 0;
}

[class~="movie-meta-list"] li {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  font-size: .9em;
  color: #555;
}

[class~="movie-meta-list"] li strong {
  color: #212121;
  min-width: 60px;
  display: inline-block;
}

[class~="movie-rating"] {
  display: flex;
  align-items: center;
  margin: .8em 0;
}

[class~="movie-rating"] [class~="stars"] {
  color: #FF8D1B;
  font-size: 1.2em;
  margin-right: .5em;
}

[class~="movie-rating"] [class~="score"] {
  font-size: 1.4em;
  font-weight: 700;
  color: #212121;
}

[class~="movie-synopsis"] {
  font-size: .95em;
  color: #555;
  line-height: 1.7;
  margin: .8em 0;
}

[class~="btn-watch"] {
  background: #FF8D1B;
  color: #fff;
  padding: 10px 25px;
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-right: 10px;
}

[class~="btn-watch"]:hover {
  background: #212121;
  color: #fff;
  text-decoration: none;
}

/* Single right sidebar */
[class~="single-right"] h3 {
  font-size: 1.4em;
  color: #212121;
  font-weight: 700;
  margin-bottom: 1em;
  border-bottom: 2px solid #FF8D1B;
  padding-bottom: .3em;
}

[class~="single-right-grids"] {
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid #eee;
  overflow: hidden;
}

[class~="single-right-grid-left"] img {
  width: 100%;
}

[class~="single-right-grid-right"] a[class~="title"] {
  font-size: .9em;
  color: #212121;
  font-weight: 600;
  display: block;
  margin-bottom: .3em;
}

[class~="single-right-grid-right"] a[class~="title"]:hover {
  color: #FF8D1B;
}

[class~="single-right-grid-right"] p {
  font-size: .8em;
  color: #999;
  margin: .2em 0;
}

/* Episode list */
[class~="episode-box"] {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 1em;
  margin-top: 1.5em;
}

[class~="episode-box"] h4 {
  font-size: 1.2em;
  color: #212121;
  margin-bottom: .8em;
  border-bottom: 2px solid #FF8D1B;
  padding-bottom: .4em;
}

[class~="ep-btns"] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

[class~="ep-btns"] a {
  display: inline-block;
  padding: 5px 12px;
  background: #fff;
  color: #212121;
  border: 1px solid #ddd;
  text-decoration: none;
  font-size: .85em;
  transition: all .3s;
}

[class~="ep-btns"] a:hover,
[class~="ep-btns"] a[class~="active"] {
  background: #FF8D1B;
  border-color: #FF8D1B;
  color: #fff;
}

/* Player */
[class~="player-wrap"] {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  margin-bottom: 1em;
}

[class~="player-wrap"] iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ Search ============ */
[class~="search-results-header"] {
  padding: 1.5em 0 .5em;
  border-bottom: 2px solid #FF8D1B;
  margin-bottom: 1.5em;
}

[class~="search-results-header"] h1 {
  font-size: 1.6em;
  color: #212121;
  font-weight: 700;
}

/* ============ Rank ============ */
[class~="rank-heading"] {
  font-size: 1.6em;
  color: #212121;
  font-weight: 700;
  border-left: 4px solid #FF8D1B;
  padding-left: .5em;
  margin: 1.5em 0 1em;
}

/* ============ 404 ============ */
[class~="error-page"] {
  text-align: center;
  padding: 5em 0;
}

[class~="error-code"] {
  font-size: 8rem;
  color: #FF8D1B;
  font-weight: 900;
  line-height: 1;
  margin-bottom: .5em;
}

[class~="error-page"] p {
  font-size: 1.2em;
  color: #555;
  margin-bottom: 1.5em;
}

/* ============ Sitemap ============ */
[class~="sitemap-block"] {
  padding: 1.5em 0;
}

[class~="sitemap-block"] h2 {
  font-size: 1.3em;
  color: #212121;
  font-weight: 700;
  border-bottom: 2px solid #FF8D1B;
  padding-bottom: .4em;
  margin-bottom: .8em;
}

[class~="sitemap-links"] {
  list-style: none;
  padding: 0;
}

[class~="sitemap-links"] li {
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}

[class~="sitemap-links"] a {
  color: #555;
  font-size: .9em;
}

[class~="sitemap-links"] a:hover {
  color: #FF8D1B;
  text-decoration: none;
}

/* ============ News ============ */
[class~="news-card"] {
  margin-bottom: 2em;
  background: #f9f9f9;
  border: 1px solid #eee;
}

[class~="news-card"] img {
  width: 100%;
}

[class~="news-card-body"] {
  padding: 1em;
}

[class~="news-card-title"] a {
  font-size: 1em;
  color: #212121;
  font-weight: 700;
}

[class~="news-card-title"] a:hover {
  color: #FF8D1B;
}

[class~="news-card-text"] {
  color: #777;
  font-size: .85em;
  margin-top: .5em;
}

[class~="news-card-footer"] {
  background: #efefef;
  padding: .5em 1em;
  font-size: .8em;
  color: #999;
}

/* Article */
[class~="article-hero"] {
  margin-bottom: 1.5em;
}

[class~="article-hero"] img {
  width: 100%;
  border-radius: 4px;
}

[class~="article-meta"] {
  color: #999;
  font-size: .85em;
  margin-bottom: 1em;
  padding-bottom: .8em;
  border-bottom: 1px solid #eee;
}

[class~="article-meta"] a {
  color: #FF8D1B;
}

[class~="article-content"] {
  color: #555;
  line-height: 1.8;
  font-size: .95em;
}

[class~="article-content"] img {
  max-width: 100%;
  margin: 1em 0;
}

/* ============ Footer ============ */
[class~="footer"] {
  background: #212121;
  color: #999;
  padding: 2em 0;
  text-align: center;
  margin-top: 2em;
}

[class~="footer"] p {
  color: #999;
  font-size: .9em;
}

[class~="footer"] a {
  color: #aaa;
}

[class~="footer"] a:hover {
  color: #FF8D1B;
}

[class~="friendly-links"] {
  margin-top: .8em;
  font-size: .85em;
}

[class~="friendly-links"] a {
  margin: 0 8px;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  [class~="w3layouts_logo"] {
    float: none;
    text-align: center;
    margin-bottom: .5em;
  }

  [class~="w3_search"] {
    float: none;
    width: 90%;
    margin: 0 auto .5em;
  }

  [class~="movie-detail-left"] {
    border-right: none;
    padding-right: 15px;
  }

  [class~="movie-poster-img"] {
    max-width: 200px;
  }
}

/* site-slogan: 随机口号展示栏 */
[class~="site-slogan"] {
    text-align: center;
    padding: 6px 16px;
    font-size: 13px;
    opacity: 0.65;
    background: transparent;
    pointer-events: none;
}
[class~="site-slogan"] p { margin: 0; line-height: 1.4; }


/* Bootstrap nav horizontal layout */
[class~="navbar"] { display: flex !important; align-items: center; flex-wrap: wrap; padding: 0.5rem 1rem; }
[class~="navbar-nav"] { display: flex !important; flex-direction: row !important; list-style: none; padding: 0; margin: 0; gap: 2px; }
[class~="navbar-nav"] > li { list-style: none; }
[class~="navbar-collapse"] { display: flex !important; align-items: center; }
[class~="navbar-toggler"] { display: none; }

/* Bootstrap sr-only fix */
[class~="sr-only"] { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* pic-list grid fix: Bootstrap .row wraps ul.pic-list as single grid child */
[class~="row"] { display: block !important; }
[class~="row"] ul[class~="pic-list"] { display: grid !important; list-style: none; padding: 0; margin: 0 -8px; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { [class~="row"] ul[class~="pic-list"] { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { [class~="row"] ul[class~="pic-list"] { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { [class~="row"] ul[class~="pic-list"] { grid-template-columns: repeat(6, 1fr); } }
[class~="row"] ul[class~="pic-list"] li { list-style: none; }
[class~="row"] ul[class~="pic-list"] [class~="pic-img"] img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; border-radius: 4px; }

/* Logo text fallback */
[class~="logo-text"] {
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

/* 相关推荐网格布局 */
[class~="detail-related"] .pic-list,
[class~="detail-related"] [class*="pic-list"] {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px !important;
}
[class~="detail-related"] .pic-list li,
[class~="detail-related"] [class*="pic-list"] li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}
[class~="detail-related"] .pic-img,
[class~="detail-related"] [class*="pic-img"] {
    display: block !important;
    position: relative !important;
    aspect-ratio: 2/3 !important;
    overflow: hidden !important;
    border-radius: 6px !important;
}
[class~="detail-related"] .pic-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
[class~="detail-related"] .movie-title {
    font-size: 0.85rem !important;
    padding: 4px 0 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
[class~="detail-related"] .movie-title a {
    text-decoration: none !important;
}
@media (max-width: 768px) {
    [class~="detail-related"] .pic-list,
    [class~="detail-related"] [class*="pic-list"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
