/* Cinemafreak visitor features: film page extras, people, lists, video nasties */

.cf-extras, .cf-page, .cf-comments {
  --cf-orange: #F59C2D; --cf-cream: #F8F2E7; --cf-sand: #FAD59F; --cf-red: #5C0000;
  --cf-line: rgba(248, 242, 231, .14);
  color: var(--cf-cream);
  font-family: "Roboto Condensed", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.6;
}
.cf-extras { padding: 8px 40px 40px; }
.cf-extras__inner, .cf-page__inner { max-width: 1500px; margin: 0 auto; }
.cf-page { padding: 40px 40px 190px; }
.cf-extras a, .cf-page a { color: var(--cf-orange); text-decoration: none; }

/* Blocks */
.cf-block { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--cf-line); }
.cf-block__title, .cf-comments__reply {
  margin: 0 0 18px; font-family: Domine, Georgia, serif; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--cf-cream);
}
.cf-block__intro { margin: -8px 0 20px; max-width: 60ch; color: rgba(248, 242, 231, .7); }
.cf-count { margin-left: 6px; font-family: "Roboto Condensed", sans-serif; font-size: 14px; font-weight: 400; color: var(--cf-orange); }
.cf-kicker { margin: 0 0 6px; font-size: 13px; line-height: 1; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cf-orange); }
.cf-note { margin: 16px 0; padding: 12px 16px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(0, 0, 0, .8); border-left: 3px solid var(--cf-orange); border-radius: 4px; }

/* Buttons. Everything is set explicitly because the site styles all buttons. */
.cf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cf-extras .cf-btn, .cf-page .cf-btn, .cf-btn {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px;
  background: rgba(0, 0, 0, .5); color: #F8F2E7;
  border: 1px solid rgba(0, 0, 0, .8); border-radius: 4px; box-shadow: none;
  font-family: "Roboto Condensed", Roboto, Arial, sans-serif; font-size: 15px; line-height: 1; font-weight: 400; letter-spacing: .04em; text-transform: none; text-decoration: none;
  cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
}
.cf-extras .cf-btn:hover, .cf-page .cf-btn:hover, .cf-btn:hover, .cf-btn:focus-visible { background: rgba(0, 0, 0, .7); color: #F59C2D; border-color: #F59C2D; outline: 0; }
.cf-extras .cf-btn--solid, .cf-btn.cf-btn--solid { background: #F59C2D; color: #1a0000; border-color: #F59C2D; font-weight: 700; }
.cf-extras .cf-btn--solid:hover, .cf-btn.cf-btn--solid:hover { background: #FAD59F; border-color: #FAD59F; color: #1a0000; }
.cf-seen-btn__on, .cf-seen-btn svg { display: none; }
.cf-seen-btn[aria-pressed="true"] { color: #F59C2D; border-color: #F59C2D; }
.cf-seen-btn[aria-pressed="true"] .cf-seen-btn__on, .cf-seen-btn[aria-pressed="true"] svg { display: inline; }
.cf-seen-btn[aria-pressed="true"] .cf-seen-btn__off { display: none; }

/* Poster cards */
.cf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 18px; }
.cf-related .cf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cf-card { display: block; position: relative; color: var(--cf-cream) !important; }
.cf-card__img { display: block; aspect-ratio: 2 / 3; background: rgba(0, 0, 0, .5); border: 1px solid rgba(0, 0, 0, .8); border-radius: 4px; overflow: hidden; }
.cf-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cf-card:hover .cf-card__img img { transform: scale(1.05); }
.cf-card__title { display: block; margin-top: 10px; font-family: Domine, Georgia, serif; font-size: 15px; line-height: 1.3; font-weight: 600; }
.cf-card:hover .cf-card__title { color: var(--cf-orange); }
.cf-card__sub { display: block; margin-top: 2px; font-size: 14px; color: rgba(248, 242, 231, .6); }
.cf-chip { display: inline-block; margin-top: 7px; padding: 4px 8px; border: 1px solid var(--cf-line); border-radius: 4px; font-size: 12px; line-height: 1.2; letter-spacing: .04em; color: rgba(248, 242, 231, .8); }
.cf-chip--cut { border-color: var(--cf-orange); color: var(--cf-orange); }
.cf-chip--none { border-color: #a11; background: var(--cf-red); color: var(--cf-cream); }

/* Seen-it tick on any poster link on the site */
a.cf-is-seen { position: relative; }
a.cf-is-seen::after {
  content: ""; position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: #F59C2D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231a0000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .6); z-index: 2;
}

/* Progress */
.cf-progress { max-width: 520px; margin: 22px 0 8px; }
.cf-progress__text { margin: 0 0 8px; }
.cf-progress__n { color: var(--cf-orange, #F59C2D); font-size: 20px; }
.cf-progress__bar { height: 6px; background: rgba(0, 0, 0, .6); border: 1px solid rgba(0, 0, 0, .8); border-radius: 4px; overflow: hidden; }
.cf-progress__bar span { display: block; height: 100%; width: 0; background: #F59C2D; transition: width .6s cubic-bezier(.2, .7, .2, 1); }

/* Where to buy */
.cf-buy__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.cf-extras .cf-buy__link, .cf-buy__link {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "shop icon" "label icon"; align-items: center; column-gap: 12px;
  padding: 14px 16px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(0, 0, 0, .8); border-radius: 4px; color: #F8F2E7;
  transition: border-color .2s, background-color .2s;
}
.cf-buy__link:hover { border-color: #F59C2D; background: rgba(0, 0, 0, .7); }
.cf-buy__shop { grid-area: shop; font-family: Domine, Georgia, serif; font-weight: 600; }
.cf-buy__label { grid-area: label; font-size: 14px; color: rgba(248, 242, 231, .65); }
.cf-buy__link svg { grid-area: icon; color: #F59C2D; }
.cf-buy__note { margin: 12px 0 0; font-size: 13px; color: rgba(248, 242, 231, .55); }

/* Comments */
.cf-comments { max-width: 760px; }
.cf-comments__list { list-style: none; margin: 0 0 28px; padding: 0; }
.cf-comment { padding: 16px 0; border-bottom: 1px solid var(--cf-line); }
.cf-comment__meta { margin: 0 0 4px; }
.cf-comment__meta time { margin-left: 8px; font-size: 14px; color: rgba(248, 242, 231, .55); }
.cf-comment__text p { margin: 0 0 8px; }
.cf-comments__hint { margin: 0 0 14px; font-size: 14px; color: rgba(248, 242, 231, .6); }
.cf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-form > * { grid-column: 1 / -1; margin: 0; }
.cf-form .cf-form__row { grid-column: auto; }
.cf-form .cf-form__row--full { grid-column: 1 / -1; }
.cf-form label { display: block; margin-bottom: 6px; font-size: 14px; color: rgba(248, 242, 231, .8); }
.cf-form input[type="text"], .cf-form input[type="email"], .cf-form textarea {
  width: 100%; padding: 10px 12px; background: rgba(0, 0, 0, .5); color: #F8F2E7;
  border: 1px solid rgba(0, 0, 0, .8); border-radius: 4px; font: inherit; box-shadow: none;
}
.cf-form input:focus, .cf-form textarea:focus { border-color: #F59C2D; outline: 0; }
.cf-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-comments .comment-reply-title small, .cf-comments .logged-in-as { font-size: 14px; }

/* Pages of the plugin: person, list, lists overview */
.cf-page__head { margin-bottom: 30px; }
.cf-page__title { margin: 0; font-family: Condiment, cursive; font-size: clamp(34px, 4vw, 45px); line-height: 1.1; font-weight: 600; color: var(--cf-orange); }
.cf-page__sub { margin: 10px 0 0; color: rgba(248, 242, 231, .7); }
.cf-prose { max-width: 68ch; margin-bottom: 26px; }
.cf-person { display: flex; align-items: flex-end; gap: 24px; }
.cf-person__img { width: 96px; height: 144px; object-fit: cover; border: 1px solid rgba(0, 0, 0, .8); border-radius: 4px; margin-bottom: 30px; }

.cf-list { list-style: none; margin: 30px 0 0; padding: 0; max-width: 900px; }
.cf-list__item { display: grid; grid-template-columns: 56px 110px 1fr; gap: 22px; align-items: start; padding: 24px 0; border-top: 1px solid var(--cf-line); }
.cf-list__item > :first-child:not(.cf-list__n) { grid-column: 2; }
.cf-list__n { font-family: Domine, Georgia, serif; font-size: 40px; line-height: 1; font-weight: 600; color: var(--cf-orange); text-align: right; }
.cf-list__poster { display: block; aspect-ratio: 2 / 3; background: rgba(0, 0, 0, .5); border: 1px solid rgba(0, 0, 0, .8); border-radius: 4px; overflow: hidden; }
.cf-list__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-list__title { margin: 0; font-family: Domine, Georgia, serif; font-size: 22px; line-height: 1.25; font-weight: 600; }
.cf-list__title a { color: var(--cf-cream); }
.cf-list__title a:hover { color: var(--cf-orange); }
.cf-list__title span { font-size: 16px; font-weight: 400; color: rgba(248, 242, 231, .6); }
.cf-list__meta { margin: 4px 0 0; font-size: 14px; color: rgba(248, 242, 231, .6); }
.cf-list__note { margin: 12px 0 0; max-width: 60ch; }

.cf-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.cf-listcard { display: block; padding: 14px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(0, 0, 0, .8); border-radius: 4px; color: #F8F2E7 !important; text-decoration: none; transition: border-color .2s; }
.cf-listcard:hover { border-color: #F59C2D; }
.cf-listcard__posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; aspect-ratio: 8 / 3; background: rgba(0, 0, 0, .4); }
.cf-listcard__posters img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-listcard__title { display: block; margin-top: 14px; font-family: Domine, Georgia, serif; font-size: 18px; line-height: 1.3; font-weight: 600; }
.cf-listcard__sub { display: block; margin-top: 4px; font-size: 14px; color: rgba(248, 242, 231, .6); }

@media (max-width: 767px) {
  .cf-extras { padding: 8px 20px 30px; }
  .cf-page { padding: 24px 20px 170px; }
  .cf-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 12px; }
  .cf-form { grid-template-columns: 1fr; }
  .cf-list__item { grid-template-columns: 34px 72px 1fr; gap: 14px; }
  .cf-list__n { font-size: 26px; }
  .cf-list__title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .cf-card__img img, .cf-progress__bar span { transition: none; } }

/* On the black page background the site's dark fields disappear: give tiles, fields and buttons a visible edge. */
.cf-extras .cf-block__title, .cf-page .cf-block__title, .cf-comments .cf-block__title, .cf-comments .cf-comments__reply { color: var(--cf-cream); }
.cf-extras .cf-btn, .cf-page .cf-btn, .cf-extras .cf-buy__link, .cf-page .cf-listcard,
.cf-comments .cf-form input[type="text"], .cf-comments .cf-form input[type="email"], .cf-comments .cf-form textarea {
  background: rgba(248, 242, 231, .05); border-color: var(--cf-line);
}
.cf-extras .cf-btn:hover, .cf-page .cf-btn:hover, .cf-extras .cf-buy__link:hover, .cf-page .cf-listcard:hover,
.cf-extras .cf-seen-btn[aria-pressed="true"], .cf-comments .cf-form input:focus, .cf-comments .cf-form textarea:focus { border-color: #F59C2D; }
.cf-comments .cf-form input[type="submit"].cf-btn--solid { background: #F59C2D !important; color: #1a0000 !important; border-color: #F59C2D !important; font-weight: 700; }
.cf-comments .cf-form input[type="submit"].cf-btn--solid:hover { background: #FAD59F !important; border-color: #FAD59F !important; }
.cf-card__img, .cf-list__poster { border-color: var(--cf-line); }

/* Inside the text column of the film template (next to the fixed poster) */
.cf-extras { container-type: inline-size; }
.cf-extras--in-column { width: 100%; padding: 0 0 40px; }
@container (max-width: 700px) { .cf-related .cf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Comments shown by a comments widget in the template, outside the block above */
.cf-comments .cf-form input[type="submit"] {
  display: inline-flex; padding: 10px 16px; border: 1px solid #F59C2D; border-radius: 4px;
  font-family: "Roboto Condensed", Roboto, Arial, sans-serif; font-size: 15px; line-height: 1; letter-spacing: .04em; text-transform: none; cursor: pointer;
}
.cf-comments .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: rgba(248, 242, 231, .7); }
.cf-comments .comment-form-cookies-consent label { margin: 0; }
.cf-comments .comment-form-cookies-consent input { margin-top: 4px; }
:not(.cf-extras__inner) > .cf-comments.cf-block { margin-top: 0; padding-top: 0; border-top: 0; }

/* Comments and More like this as tabs of the film template */
.cf-tabpanel--tab { display: none; width: 100%; padding: 22px 10px 0; }
.cf-tabpanel--tab.is-active { display: block; animation: cf-tab-in .28s ease; }
.cf-tabpanel--tab .cf-block { margin-top: 0; padding-top: 0; border-top: 0; }
.cf-tabpanel--tab .cf-block__title { margin-bottom: 24px; }
.cf-tabpanel--tab .cf-related .cf-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.cf-extras--in-column { padding: 0 10px 40px; }
.cf-extras--in-column .cf-actions { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--cf-line); }
@keyframes cf-tab-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cf-tabpanel--tab.is-active { animation: none; } }

/* Where to watch: the play icon of a full film */
.cf-watch .cf-buy__link[data-cf-watch-embed] svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #F59C2D; color: #1a0000; }
.cf-extras--in-column .cf-actions + .cf-block { margin-top: 28px; }

/* Streaming services per country */
.cf-stream { margin-top: 18px; }
.cf-stream__head { margin: 0 0 12px; font-size: 14px; color: rgba(248, 242, 231, .7); }
.cf-extras .cf-stream__country, .cf-stream__country {
  margin-left: 6px; padding: 5px 8px; width: auto; background: rgba(248, 242, 231, .05); color: #F8F2E7;
  border: 1px solid rgba(248, 242, 231, .14); border-radius: 4px; font: inherit; font-size: 14px;
}
.cf-stream__country option { color: #000; }
.cf-stream ul[hidden] { display: none; }
span.cf-buy__link svg { display: none; }

/* Books */
.cf-filter--books { margin-bottom: 18px; max-width: 760px; }
.cf-page .cf-filter-status { margin-bottom: 26px; }
.cf-filter-status__tag.is-on { border-color: #F59C2D; color: #F59C2D; }
.cf-grid--books { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cf-card--book .cf-card__img { background: rgba(248, 242, 231, .04); }
.cf-card--book .cf-card__img img { object-fit: contain; }
.cf-card__noimg { display: flex; align-items: center; justify-content: center; height: 100%; padding: 14px; text-align: center; font-family: Domine, Georgia, serif; font-size: 14px; line-height: 1.3; color: rgba(248, 242, 231, .7); }
.cf-book { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 48px; align-items: start; }
.cf-book__cover img { width: 100%; height: auto; display: block; border: 1px solid var(--cf-line); border-radius: 4px; }
.cf-book__sub { margin: 10px 0 0; font-family: Domine, Georgia, serif; font-size: 20px; line-height: 1.35; color: var(--cf-cream); }
.cf-book__facts { margin: 28px 0 20px; padding: 0; border-top: 1px dashed var(--cf-line); }
.cf-book__facts > div { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--cf-line); }
.cf-book__facts dt { flex: 0 0 110px; margin: 0; font-style: italic; font-weight: 400; color: var(--cf-orange); }
.cf-book__facts dd { margin: 0; }
.cf-book__text { margin-top: 26px; }
.cf-page .cf-buy__link { background: rgba(248, 242, 231, .05); border-color: var(--cf-line); }
.cf-page .cf-pagination { margin-top: 40px; }
@media (max-width: 767px) { .cf-book { grid-template-columns: 1fr; gap: 26px; } .cf-book__cover { max-width: 220px; } }

/* Watch & buy as a tab: the second block keeps a line above it */
.cf-tabpanel--tab .cf-block + .cf-block { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--cf-line); }
.cf-page h1.cf-page__title { font-family: Condiment, cursive; color: var(--cf-orange); }
.cf-page .cf-filter .cf-filter__search, .cf-page .cf-filter .cf-filter__select { background-color: rgba(248, 242, 231, .05); border: 1px solid var(--cf-line); }
