/*
Theme Name:     VCR Play
Description:    Child theme for VCR Play.
Template:       bepop
Version:        1.0.1
Text Domain:    vcr-play
Tags:           custom-colors, editor-style, featured-images, translation-ready
*/

/* =================================================
   NOTE
==================================================== */
/*
 * I font vengono caricati via functions.php.
 * Non inserire qui @import Google Fonts.
 */


/* =================================================
   VARIABILI GLOBALI
==================================================== */

:root {
  --mobile-menu-height: 3rem;
  --mobile-menu-icon-width: 1.25rem;
  --mobile-menu-icon-height: 1.25rem;
  --mobile-menu-font-size: 0.62rem;
  --mobile-menu-accent: #068882;

  --text-secondary-color: #aaa;
  --plyr-control-padding: 0.85rem;
}


/* =================================================
   BASE
==================================================== */

body {
  font-family: "Quicksand", sans-serif !important;
  font-style: normal;
  background:
    radial-gradient(
      circle at center,
      rgba(0, 255, 200, 0.10) 0%,
      rgba(0, 137, 130, 0.08) 30%,
      rgba(15, 24, 24, 0.95) 70%,
      rgba(15, 24, 24, 1) 100%
    ),
    radial-gradient(
      circle at 50% 120%,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.75) 60%,
      rgba(0, 0, 0, 1) 100%
    ),
    #0f1818;
  background-size: auto;
  background-repeat: no-repeat;
}

a {
  transition: color 0.4s ease-in-out;
}

b,
strong {
  font-weight: bold;
}


/* =================================================
   MOBILE MENU
==================================================== */

.mobile-menu {
  --mm-icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3l9 8h-2v10h-5v-6H10v6H5V11H3z'/%3E%3C/svg%3E");
  --mm-icon-radio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 7l14-4 1 2-6 2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h4zm1 4v6h7v-6zm11 1.5a1.5 1.5 0 1 0 0 .001zm4 0a1.5 1.5 0 1 0 0 .001zM5 13h5v2H5z'/%3E%3C/svg%3E");
  --mm-icon-podcast: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4a6 6 0 0 0-3.8 10.6L7.2 20h2.1l.7-3.9a3 3 0 0 0 4 0l.7 3.9h2.1l-1-5.4A6 6 0 0 0 12 4zm0 2a4 4 0 0 1 2.5 7.1l-.5.4v.6a2 2 0 1 1-4 0v-.6l-.5-.4A4 4 0 0 1 12 6zm-7 6a7 7 0 0 1 2.1-5l1.4 1.4A5 5 0 0 0 7 12a5 5 0 0 0 1.5 3.6L7.1 17A7 7 0 0 1 5 12zm12 0a5 5 0 0 0-1.5-3.6L16.9 7A7 7 0 0 1 19 12a7 7 0 0 1-2.1 5l-1.4-1.4A5 5 0 0 0 17 12z'/%3E%3C/svg%3E");
  --mm-icon-album: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 2a8 8 0 1 1-8 8a8 8 0 0 1 8-8zm0 3a5 5 0 1 0 5 5a5 5 0 0 0-5-5zm0 3.2a1.8 1.8 0 1 1-1.8 1.8A1.8 1.8 0 0 1 12 10.2z'/%3E%3C/svg%3E");
  --mm-icon-playlist: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6h12v2H3zm0 5h12v2H3zm0 5h8v2H3zm14-8l5 3-5 3zm0 5l5 3-5 3z'/%3E%3C/svg%3E");
  --mm-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 4a6 6 0 1 0 3.9 10.6l4.2 4.2 1.4-1.4-4.2-4.2A6 6 0 0 0 10 4zm0 2a4 4 0 1 1-4 4a4 4 0 0 1 4-4z'/%3E%3C/svg%3E");
  --mm-icon-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 21s-7-4.35-9.5-8.28C.64 9.78 2.12 6 6.08 6A5.3 5.3 0 0 1 12 9.09 5.3 5.3 0 0 1 17.92 6c3.96 0 5.44 3.78 3.58 6.72C19 16.65 12 21 12 21z'/%3E%3C/svg%3E");
  --mm-icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0-4-4a4 4 0 0 0 4 4zm0 2c-4.4 0-8 2-8 4.5V21h16v-2.5C20 16 16.4 14 12 14z'/%3E%3C/svg%3E");
  --mm-icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 4h2v8h3l-4 4-4-4h3zM5 18h14v2H5z'/%3E%3C/svg%3E");

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--mobile-menu-height);
  background: #000;
  box-shadow: 0 -1px 0 rgba(130, 140, 150, 0.1);
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.mobile-menu-list,
.mobile-menu-list li,
.mobile-menu-list a {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}

.mobile-menu-list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding-left: 6%;
  padding-right: 6%;
  gap: 3%;
}

.mobile-menu-list > li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.mobile-menu-list > li > a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  width: 100%;
  height: 100%;
  padding: 0.35rem 0.1rem 0.25rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.76);
  white-space: nowrap;
  font-size: var(--mobile-menu-font-size);
  line-height: 1;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-menu-list > li > a:hover,
.mobile-menu-list > li > a:focus {
  color: #fff;
  text-decoration: none;
}

.mobile-menu-list > li > a span {
  display: block;
  margin: 0;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-menu-list > li > a::before {
  content: "";
  display: block;
  width: var(--mobile-menu-icon-width);
  height: var(--mobile-menu-icon-height);
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-image: var(--mm-icon);
  mask-image: var(--mm-icon);
  transition: transform 0.2s ease;
}

.mobile-menu-list > li > a::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 50%;
  width: 1.35rem;
  height: 2px;
  border-radius: 999px;
  background: var(--mobile-menu-accent);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-list > li.mm-home > a      { --mm-icon: var(--mm-icon-home); }
.mobile-menu-list > li.mm-radio > a     { --mm-icon: var(--mm-icon-radio); }
.mobile-menu-list > li.mm-podcasts > a  { --mm-icon: var(--mm-icon-podcast); }
.mobile-menu-list > li.mm-albums > a    { --mm-icon: var(--mm-icon-album); }
.mobile-menu-list > li.mm-playlists > a { --mm-icon: var(--mm-icon-playlist); }
.mobile-menu-list > li.mm-search > a    { --mm-icon: var(--mm-icon-search); }
.mobile-menu-list > li.mm-likes > a     { --mm-icon: var(--mm-icon-heart); }
.mobile-menu-list > li.mm-user > a      { --mm-icon: var(--mm-icon-user); }
.mobile-menu-list > li.mm-downloads > a { --mm-icon: var(--mm-icon-download); }

.mobile-menu-list > li:not(.mm-home):not(.mm-radio):not(.mm-podcasts):not(.mm-albums):not(.mm-playlists):not(.mm-search):not(.mm-likes):not(.mm-user):not(.mm-downloads) > a::before {
  content: "•";
  width: auto;
  height: auto;
  background: none;
  -webkit-mask: none;
  mask: none;
  font-size: 1.1rem;
  line-height: 1;
}

.mobile-menu-list > li.current_page_item > a,
.mobile-menu-list > li.current-menu-item > a,
.mobile-menu-list > li.current-menu-ancestor > a {
  color: #fff;
}

.mobile-menu-list > li.current_page_item > a::after,
.mobile-menu-list > li.current-menu-item > a::after,
.mobile-menu-list > li.current-menu-ancestor > a::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.mobile-menu-list > li.current_page_item > a::before,
.mobile-menu-list > li.current-menu-item > a::before,
.mobile-menu-list > li.current-menu-ancestor > a::before {
  transform: translateY(-1px);
}

.mobile-menu-list .menu-item-has-children > a::after,
.mobile-menu-list ul {
  display: none !important;
}


/* =================================================
   NAVIGAZIONE & MENU
==================================================== */

#site-navigation .nav > li > a,
#user-navigation .nav > li > a {
  font-weight: 600;
}

/* Header: ricerca */

#header-search-form input {
  font-weight: 500;
  color: #252525;
  border-width: 0 0 0 1px !important;
  border-style: solid;
  border-color: #000;
}

#search-state:checked ~ .site-header #header-search-form {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.8rem 1rem;
  color: #000;
}

/* Header & stato scrolled */

.site-header:before {
  -webkit-transition-timing-function: ease-in-out;
  -webkit-transition-duration: 0.4s;
  transition-timing-function: ease-in-out;
  transition-duration: 0.4s;
  background: #14161cde;
}

.scrolled .site-header:before {
  background-color: #14161cde;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Pulsante link nel menu scrolled (tenuto neutro) */
.scrolled .nav li.btn-link a:before {
  background-color: transparent;
}

/* Archive header & paginazione */

.archive-header,
.navigation {
  background-color: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.main-navigation ul ul {
  background-color: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Sfumatura sotto il menu */

.featured-image .site-header:before {
  height: 110%;
}


/* =================================================
   LOOP, CARD & META
==================================================== */

.rientro .block-loop-item .entry-header {
  padding: 0.5rem 0 0.5rem 0.25rem;
}

.block-loop-item .entry-title {
  -webkit-line-clamp: 2;
}

.block-loop-dot button:after {
  background-color: #fff;
}

.block-loop-item .btn-play {
  width: 46px;
  height: 46px;
}

.block-loop-item .count,
.comment-toolbar .count,
.entry-meta .count {
  color: #222;
}

.block-loop-item img {
  border: 1px solid #ffffff38;
}

.play-count .count {
  color: #9b9b9b;
}

/* Sottotitolo sotto i titoli dei blocchi */
.block-loop-subtitle {
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.008rem;
}

/* Heading dei blocchi */
.block-loop-heading {
  font-family: "Outfit", sans-serif;
}


/* =================================================
   TIPOGRAFIA
==================================================== */

h1.entry-title {
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.7px;
}

/* Bepop fix: titoli senza spezzare le parole */
h1.entry-title,
h2.entry-title.h1 {
  word-break: normal;
  overflow-wrap: normal;
  word-wrap: normal;
  -webkit-hyphens: none;
  hyphens: none;
  text-wrap: pretty;
}

@supports (text-wrap: balance) {
  h1.entry-title,
  h2.entry-title.h1 {
    text-wrap: balance;
  }
}

.entry-artist {
  font-size: 1.2rem;
}

.wp-block-heading {
  font-family: "Outfit", sans-serif !important;
  letter-spacing: 0.32px;
}

.slick-alignfull .entry-title {
  font-family: "Outfit", sans-serif;
  font-style: normal;
  letter-spacing: 0.7px;
}

.slick-alignfull p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.slick-alignfull .block-loop-dot {
  right: 2vw;
  top: 78%;
}

.station-content {
  font-weight: 340;
}


/* =================================================
   BUTTONS & UTILITIES
==================================================== */

.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  font-size: 1.2rem;
}

.btn-play.active:before {
  border-left-width: 0.3em;
  border-right-width: 0.3em;
}

.margine-ridotto {
  margin-top: -34px !important;
}

.margine-100 {
  padding-left: 10%;
}

.waveform .btn-play {
  display: none;
}

.no-bordo {
  border: none;
}

.no-border .block-loop-item .post-thumbnail img {
  border: none !important;
}


/* =================================================
   PLAYER (PLYR / PLAY BLOCK)
==================================================== */

.plyr {
  font-family: "Quicksand", sans-serif;
}

.plyr__title,
.plyr-item-title {
  font-weight: 500;
}

.plyr-item .btn-play {
  background: #444 !important;
}

.plyr-item .btn-play:hover {
  background: #fff !important;
}

.plyr-playlist {
  font-family: "Quicksand", sans-serif;
  background-color: #14161cde;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.player [data-plyr="play"] {
  background-color: #038983 !important;
  background-image: linear-gradient(
    to bottom right,
    #1bc1b9 10%,
    #166865 90%
  ) !important;
}

/* Like / cuore */
[data-plyr="like"] .icon--pressed,
.btn-like.active svg {
  stroke: #c80815;
  fill: #c80815;
}

.plyr-item-author,
.plyr-item-title,
.plyr__author,
.plyr__title {
  font-size: 14px;
  line-height: calc(16 / 12);
}

.plyr-playlist.open .plyr-list {
  background: #15161b;
}

.plyr-playlist .plyr:not(.plyr-fullscreen) .plyr__video-wrapper,
.plyr-playlist:not(.plyr-theme-video) .plyr__ads {
  bottom: calc(100% + 3rem);
  right: 2rem;
}

.plyr-playlist .plyr__controls .plyr__controls__item {
  border-radius: 50%;
}


/* =================================================
   BOX & ELEMENTI VARI
==================================================== */

.top-played {
  background-color: #363636;
  border-radius: 16px;
  padding: 0 10px;
}

.top-played .play-duration {
  display: none;
}

.novita {
  background-color: #005151;
  border-radius: 16px;
  padding: 0 10px;
}

.chiaro {
  background-color: #f8eedd;
  border-radius: 16px;
  padding: 0 10px;
}

.editor-note {
  margin-top: -1rem;
  font-size: 0.85rem;
}

.editor-note-title {
  display: none;
}

/* Tema dark */
.dark,
.dark .archive-header,
.dark .navigation {
  --body-bg-color: #14161cde;
  background-color: #14161cde;
}

/* Sfumatura sotto la thumbnail nella featured image */
.featured-image .entry-header-container .post-thumbnail:before {
  background: linear-gradient(
    to top,
    rgb(14, 22, 22) 5%,
    transparent 100%
  );
}

/* Tag & verified */
li.tag {
  background: rgba(0, 0, 0, 0.55);
}

.verified {
  background-color: #2a815b;
}

/* Revolution Slider */
rs-module {
  border-bottom: 2px solid #b5b5b5;
}

rs-fullwidth-wrap {
  top: -60px;
}

/* Logo & titolo */
.site-title {
  display: none;
}

.site-logo img,
.site-logo svg {
  max-height: 36px;
  width: 190px;
  fill: #008982;
}


/* =================================================
   ARTISTI
==================================================== */

.archive-description img {
  width: 140px;
  border-radius: 50%;
}

.round .block-loop-item .post-thumbnail {
  border-radius: 50% !important;
  overflow: hidden;
}

.round .block-loop-item .post-thumbnail img {
  border-radius: 50% !important;
}

.testo-centrato .block-loop-item .entry-header {
  text-align: center;
}

.testo-centrato .block-loop-item .entry-header a {
  display: block;
  width: 100%;
  font-size: 15px;
}


/* =================================================
   MEDIA QUERIES
==================================================== */

/* Portrait: larghezza video nel mini-player */
@media only screen and (orientation: portrait) {
  .plyr-playlist .plyr:not(.plyr-fullscreen) .plyr__video-wrapper,
  .plyr-playlist:not(.plyr-theme-video) .plyr__ads {
    width: calc(
      var(--plyr-aspect-ratio) * var(--plyr-mini-player-height) * 1.6
    );
  }
}

/* ≥ 992px */
@media only screen and (min-width: 992px) {
  h1,
  .h1 {
    font-size: 2.3rem;
  }

  .slick-alignfull .entry {
    padding-top: 12rem;
  }

  .slick-alignfull .entry-title {
    font-size: 2.3rem;
    font-weight: 620;
  }

  .slick-alignfull p {
    font-size: 1.10rem;
    font-weight: 360;
  }

  .wp-block-heading {
    font-weight: 600;
  }

  .block-loop-heading {
    font-weight: 620;
    letter-spacing: 0.02rem;
  }

  .entry-meta {
    font-size: 0.85rem;
  }

  .archive-description {
    padding: 0 0 10px 0;
  }
}

/* 768px–991px */
@media only screen and (max-width: 991px) and (min-width: 768px) {
  h1,
  .h1 {
    font-size: 2.1rem;
  }

  .slick-alignfull .entry-title {
    font-size: 2.1rem;
    font-weight: 700;
  }

  .slick-alignfull p {
    font-size: 1.03rem;
    font-weight: 380;
  }

  .wp-block-heading {
    font-weight: 600;
  }

  .block-loop-heading {
    font-weight: 620;
    letter-spacing: 0.004rem;
  }

  .entry-meta {
    font-size: 0.85rem;
  }

  .archive-description {
    padding: 0 20px 10px 30px;
  }

  .colonne .wp-block-loop {
    --loop-columns: max(var(--loop-cols) - 2, 3);
  }
}

/* ≤ 767px */
@media only screen and (max-width: 767px) {
  .mobile-menu {
    display: block;
  }

  .plyr-playlist {
    bottom: var(--mobile-menu-height);
  }

  body.with-mobile-menu {
    padding-bottom: var(--mobile-menu-height);
  }

  html.open-player body.with-mobile-menu,
  body.open-player.with-mobile-menu {
    padding-bottom: calc(var(--mobile-menu-height) + var(--plyr-height, 4.75rem));
  }

  h1,
  .h1 {
    font-size: 1.9rem;
  }

  .slick-alignfull .entry-title {
    font-size: 1.9rem;
    font-weight: 700;
  }

  .slick-alignfull p {
    font-size: 1.02rem;
    font-weight: 400;
  }

  .wp-block-heading {
    font-weight: 500;
  }

  .block-loop-heading {
    font-weight: 580;
    letter-spacing: 0.004rem;
  }

  .block-loop-row .play-duration {
    display: none;
  }

  .entry-meta {
    font-size: 0.85rem;
  }

  .archive-description {
    padding: 0 20px 10px 30px;
  }

  .colonne .wp-block-loop {
    --loop-columns: max(var(--loop-cols) - 2, 3);
  }
}

/* ≥ 768px */
@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }

  body.with-mobile-menu {
    padding-bottom: 0;
  }
}

/* Allinea il blocco Loop agli altri contenuti su mobile */
@media (max-width: 576px) {
  .entry-content > .wp-block-loop-slider .block-loop-title,
  .entry-content > .wp-block-loop-slider:not(.block-loop-center) .block-loop-items {
    padding: 0;
  }

  .slick-alignfull .block-loop-dot {
    right: -6vw;
  }
}


/* =================================================
   FIX iOS
==================================================== */

/* [2025-12-10] Fix Safari iOS – slider Loop hero */
@supports (-webkit-touch-callout: none) {
  [data-plugin="slider"],
  .block-loop-slider {
    -webkit-overflow-scrolling: auto !important;
  }

  .block-loop-hero .post-thumbnail img,
  .block-loop-hero .post-thumbnail video,
  .block-loop-hero .post-thumbnail .avatar {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
  }
}


/* =================================================
   TOGLI LIKE
==================================================== */
/*
button.btn-like {
  display: none;
}

#user-navigation {
  display: none;
}

.btn-playlist {
  display: none;
}
*/