/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/

/* ===== MOVIE TEMPLATE ===== */

.movie-container {
    width: 90%;
    max-width: 1500px;
    margin: 30px auto;
}

.movie-header {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: flex-start;
}

.movie-poster img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    border-radius: 10px;
}

.movie-info {
    max-width: 900px;
}

.movie-info h1 {
    margin: 0 0 20px;
    font-size: 42px;
    line-height: 1.2;
    color: #fff;
}

.movie-meta {
    margin-bottom: 25px;
}

.movie-meta p {
    margin: 10px 0;
    color: #ddd;
    font-size: 18px;
}

.movie-meta strong {
    color: #fff;
}

.movie-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.movie-links a {
    display: inline-block;
    padding: 12px 20px;
    background: #f97316;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: all .2s ease;
}

.movie-links a:hover {
    transform: translateY(-2px);
    opacity: .95;
}

.movie-note {
    margin: 25px 0 20px 0;
    padding: 18px 22px;
    background: #1a1a1a;
    border-left: 4px solid #f97316;
    border-radius: 6px;
    color: #ddd;
    font-style: italic;
    font-size: 18px;
}

.movie-description {
    margin-top: 0;
    padding: 0;
    background: transparent;
    max-width: 900px;
}

.movie-description h2 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 32px;
}

.movie-description p {
    margin: 0;
    color: #ddd;
    line-height: 1.8;
    font-size: 18px;
}

@media (max-width: 768px) {

    .movie-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .movie-poster {
        max-width: 280px;
        margin: 0 auto;
    }

    .movie-info h1 {
        font-size: 32px;
    }

    .movie-description h2 {
        font-size: 36px;
    }
}


.movie-description h2 {
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}

.movie-description {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.movie-note {
    margin-bottom: 0 !important;
}





.movie-description {
    margin-top: 0;
    padding: 0;
}

.movie-description h2 {
    margin: 0;
}

.movie-description p {
    margin-top: 10px;
    margin-bottom: 0;
}

/* ===== MOVIES ARCHIVE ===== */

.movies-archive {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto 30px;
}

.archive-title {
    margin-bottom: 10px;
    font-size: 48px;
    color: #fff;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.movie-card a {
    text-decoration: none;
}

.movie-card-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 10px;
}

.movie-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.movie-card:hover img {
    transform: scale(1.05);
}

.movie-card h2 {
    margin: 15px 0 6px;
    font-size: 22px;
    color: #fff;
    line-height: 1.3;

}

.movie-year {
    color: #8a8a8a;
    font-size: 16px;
    line-height: 1.4;
    margin-top: 0;
}


.movie-card a {
    display: block;
    text-decoration: none;
}

.movie-card {
    transition: transform .25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
}

.movies-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.movies-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.movies-categories a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 140px;
    height: 48px;
    padding: 0 20px;

    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;

    color: #fff;
    text-decoration: none;

    transition: all .2s ease;
}

.movies-categories a:hover {
    border-color: #f97316;
    color: #f97316;
    transform: translateY(-2px);
}

.movies-search input {
    width: 320px;
    height: 48px;

    padding: 0 18px;

    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;

    color: #fff;
}

.movies-search input:focus {
    outline: none;
    border-color: #666;
}

@media (max-width: 768px) {

    .movies-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .movies-search input {
        width: 100%;
    }
}

.movies-categories a.active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.movies-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.movies-actions select,
.movies-actions input {
    height: 52px;
    padding: 0 16px;
    background: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
}

.movies-actions select {
    min-width: 220px;
}

.movies-actions input {
    width: 280px;
}

.movies-search-form input {
    width: 280px;
}

.movies-search-form {
    display: block;
}

.movies-search-form button {
    height: 52px;
    padding: 0 18px;
    background: #f97316;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
}

.random-movies-slider {
    margin-top: 20px;
    margin-bottom: 80px;
}

.random-movies-slider img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    transition: .3s;
}

.random-movies-slider img:hover {
    transform: scale(1.05);
}

.swiper-button-prev,
.swiper-button-next {
    color: #f97316 !important;; 
}

.swiper-button-prev svg,
.swiper-button-next svg{
    fill:#f97316 !important;
    stroke:#f97316 !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 28px;
}

.random-movies-slider .swiper-slide {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 8px;
}

.random-movies-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movies-count {
    display: block;
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    color: #ff7a1a;
}

@media (max-width: 768px) {

    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .movie-card h2 {
        font-size: 16px;
        margin-top: 10px;
    }

    .movie-year {
        font-size: 14px;
    }

    .archive-title {
        font-size: 38px;
        margin-bottom: 25px;
    }

    .movies-archive {
        margin-top: 20px;
    }
    
        .movie-container {
        margin-top: 20px;
    }

}

@media (max-width: 768px) {

    .movies-categories {
        gap: 8px;
    }

    .movies-categories a {
        padding: 12px 16px;
        font-size: 16px;
    }

}

@media (max-width: 768px) {

    .movies-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .movies-actions select {
        width: 100%;
    }

    .movies-search-form {
        width: 100%;
    }

    .movies-search-form input {
        width: 100%;
    }

}

@media (max-width: 768px) {

    .archive-title {
        font-size: 48px;
        margin-bottom: 20px;
    }

}

@media (max-width:768px){

    .movies-toolbar{
        margin-bottom:15px;
    }

}

@media (max-width:768px){

    .archive-title{
        font-size:52px;
        margin-bottom:20px;
    }

}

@media (max-width:768px){

    .movies-categories a{
        padding:10px 14px;
        min-height:44px;
    }

}

@media (min-width:769px) and (max-width:1024px){

    .movies-archive{
        margin-top:20px;
    }

    .movies-grid{
        grid-template-columns: repeat(3, 1fr);
        gap:24px;
    }

    .movies-toolbar{
        flex-direction:column;
        align-items:stretch;
        gap:20px;
    }

    .movies-actions{
        flex-direction:row;
        width:100%;
    }

    .movies-actions select{
        flex:1;
        min-width:220px;
    }

    .movies-search-form{
        flex:1;
    }

    .movies-search-form input{
        width:100%;
    }

}

.movies-categories a {
    white-space: nowrap;
}

.movies-search-form input:focus {
    outline: none;
    border-color: #ff7a18;
    box-shadow: none;
}

.movies-search-form input {
    color: #ffffff;
}

.movies-search-form input::placeholder {
    color: rgba(255,255,255,.45);
}

.movies-search-form input:focus {
    outline: none;
    border-color: #ff7a18;
    box-shadow: none;
    color: #ffffff;
}

.movies-search-form input:focus::placeholder {
    color: rgba(255,255,255,.35);
}

.movies-actions select:focus,
.movies-search-form input:focus {
    outline: none !important;
    border-color: #ff7a18 !important;
    box-shadow: none !important;
}

.movies-actions select {
    color: #ffffff !important;
}

.movies-search-form input {
    color: #ffffff !important;
    caret-color: #ff7a18 !important;
}

.movie-links a,
.movie-links a:visited,
.movie-links a:hover,
.movie-links a:focus,
.movie-links a:active {
    color: #ffffff !important;
    text-decoration: none;
}

.error-404-page{
    min-height:60vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:40px 20px;
}

.error-404-page h1{
    font-size:120px;
    margin:0;
}

.error-404-page h2{
    margin:20px 0;
}

.error-404-page p{
    max-width:600px;
    color:#aaa;
}

.error-buttons{
    display:flex;
    gap:20px;
    margin-top:30px;
}

.btn-main{
    background:#ff7a12;
    color:#fff;
    padding:14px 24px;
    border-radius:10px;
    text-decoration:none;
}

.error-buttons a,
.error-buttons a:visited,
.error-buttons a:hover,
.error-buttons a:focus,
.error-buttons a:active {
    color: #fff !important;
    text-decoration: none;
}