:root {
    --wp--preset--spacing--60: 0 !important;
}

.wrapper {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1rem;
    color: #ffffff;
    background-color: #111827;
    min-height: 100vh;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;

    @media (min-width: 640px) {
        grid-template-columns: repeat(3, 1fr);
    }

    @media (min-width: 768px) {
        grid-template-columns: repeat(4, 1fr);
    }

    @media (min-width: 1280px) {
        grid-template-columns: repeat(6, 1fr);
    }
}

.movie {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.movie img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: opacity 0.3s ease;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-size: 0.875rem;
}

.favorite-btn {
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border: none;
    border-radius: 9999px;
    color: #fff;
    background-color: #dc2626;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.favorite-btn:hover {
    background-color: #b91c1c;
}


.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #dc2626;
}

.wp-block {
    max-width: 100% !important;
}

.search-form {
    padding-right: 1.6rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: #9ca3af;
}

.hidden {
    display: none;
}

.autocomplete-list {
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    max-height: 15rem;
    overflow-y: auto;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    color: #ffffff;
    list-style: none;
    font-size: small;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background: #f0f0f0;
    color: #1f2937;
}

/*********************** Nav *************************/
.navbar {
    /* background: #000; */
    color: #fff;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo img {
    height: 48px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #e50914;
}

.nav-link.active {
    color: #e50914;
    font-weight: bold;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    font-size: 0.9rem;
    color: #999;
}

.nav-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.nav-btn:hover {
    color: #e50914;
}

.mobile-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    display: none;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #111;
    padding: 1rem;
    gap: 0.5rem;
}

.mobile-menu .nav-link,
.mobile-menu .nav-btn {
    padding: 0.5rem 0;
    color: #ccc;
    text-decoration: none;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-btn:hover {
    color: #e50914;
}

@media (max-width: 768px) {

    .nav-links,
    .navbar-right {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-menu.show {
        display: flex;
    }
}

/*********************** PAGINATION *************************/
.pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    background-color: #1f2937;
    color: #d1d5db;
    text-decoration: none;
    transition: background-color 0.2s;
}

.pagination a:hover {
    background-color: #374151;
}

.pagination a.active {
    background-color: #dc2626;
    color: #ffffff;
    cursor: default;
    pointer-events: none;
}

/*********************** MODAL *************************/
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.hidden {
    display: none;
}

.modal-content {
    background-color: #1f2937;
    border-radius: 8px;
    max-width: 768px;
    width: 90%;
    padding: 24px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    color: #f9fafb;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #374151;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: 700;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
}

.modal-body>*+* {
    margin-top: 16px;
}

.loading-text {
    text-align: center;
    color: #6b7280;
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #e5e7eb;
}

.modal-content p {
    color: #e5e7eb;
    margin: 0;
}

.modal-content iframe,
.modal-content img {
    width: 100%;
    max-height: 500px;
    margin-bottom: 8px;
    object-fit: contain;
    border-radius: 4px;
}

/*********************** Remove button *************************/
.remove-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: white;
    background-color: #dc2626;
    padding: 4px 12px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.remove-button:hover {
    background-color: #b91c1c;
}

.remove-button svg {
    width: 12px;
    height: 12px;
}

/*********************** Contact Page *************************/
.contact-container {
    max-width: 672px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    color: #ffffff;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.contact-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #dc2626;
}

.contact-box {
    background-color: #141414;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2d2d2d;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-sizing: border-box;
}

.contact-box h4 {
    margin: 0.5rem;
}

.label {
    font-weight: 600;
    color: #9ca3af;
    display: inline-block;
    min-width: 100px;
}

.contact-box a {
    color: #ef4444;
    text-decoration: none;
    word-break: break-word;
}

.contact-box a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .contact-container {
        padding: 2rem 1rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .label {
        min-width: auto;
        display: block;
        margin-bottom: 0.25rem;
    }

    .contact-box p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .contact-container {
        padding: 2.5rem 1.25rem;
    }

    .contact-title {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .contact-container {
        padding: 4rem 2rem;
    }
}