* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

    header h1 {
        font-size: 3rem;
        font-weight: 700;
        letter-spacing: -0.5px;
        margin-bottom: 8px;
    }

    header .subtitle {
        color: #666666;
        font-size: 1.2rem;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

.profile-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.profile-btn {
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lb-profile {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #444444;
}

    .lb-profile:hover {
        background-color: #ffffff;
        color: #000000;
        border-color: #ffffff;
    }

main {
    width: 100%;
    max-width: 850px;
}

    main h2 {
        font-size: 1.5rem;
        color: #444444;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 25px;
        border-bottom: 1px solid #1a1a1a;
        padding-bottom: 10px;
    }

#movie-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.movie-card {
    background-color: #121212;
    border: 1px solid #1c1c1c;
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

    .movie-card:hover {
        border-color: #333333;
        transform: translateY(-2px);
    }

.card-content {
    display: flex;
    gap: 25px;
}

.movie-poster {
    width: 150px;
    height: 225px;
    min-width: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #222222;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    display: block; 
    background-color: #1a1a1a; 
}

.movie-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

    .movie-details h3 {
        font-size: 1.7rem;
        margin-bottom: 6px;
    }

.movie-meta {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 20px;
}

.movie-info {
    color: #b3b3b3;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.movie-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.movie-btn {
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-watch {
    background-color: #ffffff;
    color: #000000;
}

    .btn-watch:hover {
        background-color: #e5e5e5;
    }

.btn-trailer {
    background-color: #1f1f1f;
    color: #ffffff;
    border: 1px solid #333333;
}

    .btn-trailer:hover {
        background-color: #2a2a2a;
    }

.database-links {
    display: flex;
    gap: 15px;
    border-top: 1px solid #1c1c1c;
    padding-top: 15px;
}

.db-link {
    color: #666666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

    .db-link:hover {
        color: #ffffff;
    }

.upcoming-card {
    background-color: #0b0b0b;
    border: 1px dashed #222222;
}

    .upcoming-card:hover {
        border-color: #444444;
    }

    .upcoming-card h3 {
        font-size: 1.7rem;
        margin-bottom: 6px;
    }

.badge {
    background-color: #1a1a1a;
    color: #888888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .movie-poster {
        width: 180px;
        height: 270px;
        margin-bottom: 15px;
    }

    .movie-links {
        justify-content: center;
    }

    .database-links {
        justify-content: center;
    }
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #121212; 
}
::-webkit-scrollbar-thumb {
  background: #333; 
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  animation: fadeInPage 1.0s ease-out forwards;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    padding: 60px 20px 0 20px; 
}

main {
    flex: 1 0 auto; 
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

footer {
    flex-shrink: 0; 
    width: 100%;
    text-align: center;
    padding: 60px 0 30px 0; 
    font-size: 0.8rem;
    color: #444444; 
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
}

    .back-link:hover {
        color: #ffffff;
    }

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.photo-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #1c1c1c;
}

.movie-description {
    color: #b3b3b3;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 50px;
    white-space: pre-line;
}

.movie-card:not(.upcoming-card) .movie-details h3,
.movie-card:not(.upcoming-card) .movie-poster {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.movie-card:not(.upcoming-card):hover .movie-details h3 {
    color: #cccccc;
}

.movie-card:not(.upcoming-card):hover .movie-poster {
    opacity: 0.85;
}
.photo-gallery img {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.photo-gallery img:hover {
    opacity: 0.85;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 15px;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lightbox-arrow:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}
