


/* ===== ELOKUVA-SPECIFIC STYLES ===== */

body.single-elokuva .single-elokuva-container
a {
    text-decoration: none;
    color: var(--accent-color);
}
body.single-elokuva #main {

  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  padding: 6em 0;
}

/* =========================
   TAUSTA & TYPOGRAFIA
   ========================= */
body.single-elokuva .single-elokuva-container {
width:100%;
  margin: 0 auto;
  padding-top: 1em;
  background: 
             radial-gradient(
            ellipse at center,
            rgba(37, 58, 101, 0.85) 0%,
            rgba(20, 35, 70, 0.8) 40%,
            rgba(5, 10, 20, 0.9) 100%
        ),
        rgba(37, 58, 101, 0.3); /* Fallback */
  text-align: left;
}

/* ================================
   Elokuvan layout
   ================================ */

body.single-elokuva .elokuva-layout {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

body.single-elokuva .elokuva-columns {
    max-width: 1080px;
      display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
    padding: 20px;
  margin: 0 auto;
}

body.single-elokuva .elokuva-left,
body.single-elokuva .elokuva-right {
  color: #fff;
}

body.single-elokuva .elokuva-left {
  flex: 0 0 300px;
  text-align: left;
}

body.single-elokuva .elokuva-right {
  flex: 1 1 500px;
}



body.single-elokuva hr {
    border-width: 1px !important;
    color: var(--accent-color) !important;
    width: 100% !important;
    margin-left: 0px !important;
}

/* ================================
   Posteri
   ================================ */
body.single-elokuva .elokuva-poster {
  width: 100%;
    border-radius: 9px;
}



/* ================================
   Metatiedot
   ================================ */
body.single-elokuva .elokuva-meta-grid,
body.single-elokuva .elokuva-extra-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
  max-width: 600px;
}

body.single-elokuva .elokuva-meta-grid div,
body.single-elokuva .elokuva-extra-meta-grid div {
  margin-bottom: 0.5rem;
}






/* ================================
   TITLEN TAXONOMY
   ================================ */



body.single-elokuva .video-taxonomies {
    text-align: left;
    line-height: 1.2;
    justify-content: flex-start;
    padding: 0px;
    margin-top: 0em;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
}
body.single-elokuva .video-taxonomies a {
    background-color: var(--video-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0px;
    text-transform: uppercase;
    padding: 3px 6px 4px 6px;
    border-radius: 4px;
    margin-left: 0px;
    margin-right: 8px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
}

body.single-elokuva .video-taxonomies a:hover {
    background-color: #fff;
    color: #15232e;
}

@media (max-width: 768px) {
body.single-elokuva .elokuva-poster {
    width: 100%;
    max-width: 230px;
    margin: auto;
}

    body.single-elokuva .video-taxonomies {
        justify-content: center;
        text-align: center;
    }
    
}

/* ================================
   Typography
   ================================ */
body.single-elokuva .elokuva-title {
  font-size: 2.4em;
  color: #fff;
margin-top:2rem;
  line-height: 1.5;
  text-transform: uppercase;
}


.elokuva-meta-top {
  margin-bottom: 25px;
}

.elokuva-meta-top p {
  margin: 10px 0;
  font-size: 1.1rem;
}



@media (max-width: 900px) {
    
  .elokuva-title {
    font-size: 2rem;
    text-align: center;
  }
  
  .elokuva-meta-top {
    text-align: center;
  }
}











body.single-elokuva .elokuva-layout h1,
body.single-elokuva .elokuva-layout h2,
body.single-elokuva .elokuva-layout h3,
body.single-elokuva .elokuva-layout h4 {
  color: #fff;
}

/* ================================
   Nappulat
   ================================ */



.elokuva-button .cta a {
  display: block;
  margin: 0.5em auto;
  color: white;
    padding: 0.5em 1em;
  text-decoration: none;
  border-radius: 5px;
  text-transform: uppercase;
      max-width: 270px;
}

body.single-elokuva .elokuva-buttons i,
body.single-elokuva .elokuva-salasana i {
  margin-left: 3px;
  font-size: 115%;
  margin-top: -1px;
}


body.single-elokuva .elokuva-buttons .trailer-nappi {
background-color: var(--elokuva-color-2);
color:#fff;
}
body.single-elokuva .elokuva-buttons .rent {
background-color: var(--color-rent);
}

body.single-elokuva .elokuva-buttons .tickets {
background-color: var(--color-tickets);
}


.elokuva-call-to-action-info{padding:10px;
  font-weight: 500;
}
.tilaus-linkki {    font-weight: 700;
    font-size: 1.5rem;}


/* ================================
 MAIN SISÄLTÖ WP OMASTA TEXTAREASTA
   ================================ */

body.single-elokuva 
.elokuva-wp-text-content {
  color: #fff;
  font-size: 1rem;
  margin: 1em 0 2em;
  max-width: 800px;
}

body.single-elokuva li {margin-left: 20px;}

/* ================================
   Synopsis
   ================================ */
body.single-elokuva .elokuva-synopsis {
  color: #fff;
  font-size: 0.9rem;
  margin: 1em 0 2em;
}

/* ================================
   Salasana
   ================================ */
body.single-elokuva .video-salasana {
  
  background: rgba(255, 255, 255, 0.05);
  padding: 2em;
  border-radius: 10px;
  max-width: 700px;
  color: #fff;
  text-align: center;
}

body.single-elokuva .video-salasana img {
  max-width: 70px;
  margin-bottom: 1em;
}

body.single-elokuva .video-salasana p {
  color: #fff;
  font-weight: bold;
}

body.single-elokuva .video-salasana input[type=password] {
  max-width: 240px;
  height: 32px;
  border-radius: 4px;
  margin-top: 6px;
}

body.single-elokuva .video-salasana button {
  background-color: var(--color-rent);
  color: white;
  padding: 0.5em 1em;
    cursor: pointer;
   border-radius: 4px;
   margin:0px;
}


body.single-elokuva .elokuva-player-wrapper
{width:100%;
margin:auto;}

body.single-elokuva .elokuva-player {
    margin: 3em auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 1em;
    border-radius: 10px;
    width: fit-content;
    color: #fff;
    text-align: center;
    height: AUTO;
    width: 100%;
}



/* ================================
   Modal (videon overlay)
================================ */
body.modal-open {
    overflow: hidden;
}

body.single-elokuva #video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

body.single-elokuva #video-modal .content {
    background: #000;
    border-radius: 8px;
    padding: 1rem;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

body.single-elokuva #close-modal {
  position: absolute;
  top: 3rem;
  right: 1rem;
  color: #fff;
  border: none;
  font-size: 3rem;
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
  text-align: center;
  border-radius: 0;
  cursor: pointer;
  font-weight: bold;
  background: transparent;
  z-index: 10;
}
@media (max-width: 768px) {
    body.single-elokuva #close-modal {
        font-size: 3.5rem;
        width: 2.5rem;
        height: 2.5rem;
        line-height: 2.5rem;
        top: 0.5rem;
        right: 0.5rem;
        padding: 0px !important;
        margin: 0px !important;
    }
}

/* MOBIILI LAYOUT */

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}


.note-after-movie

 {
    margin-top: 2rem;
    padding: 1.5rem;
color:#fff;
    border-radius: 5px;
    border-left: 4px solid green;
}
















