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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;

    background: radial-gradient(circle at 20% 30%, rgba(50, 50, 100, 0.2), transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(100, 50, 150, 0.15), transparent 60%),
                radial-gradient(circle at 50% 50%, rgba(80, 100, 180, 0.1), transparent 70%);
    background-blend-mode: screen;
    background-size: 200% 200%;
    animation: glowShift 15s ease-in-out infinite;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    color: #fff;
    text-align: center;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    z-index: 0;

    background: linear-gradient(180deg, #050510, #0d1020, #1a1b2c);
    background-size: 400% 400%;
    animation: skyShift 8s ease-in-out infinite;
}

.orb {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 200, 1) 0%, rgba(255, 255, 180, 0.2) 70%, transparent 100%);
    box-shadow: 0 0 10px rgba(255, 255, 200, 0.9), 0 0 25px rgba(255, 255, 150, 0.5);
    pointer-events: none;
    animation-name: float, shimmer;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    z-index: 1;
}

.orb::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,200,0.4), transparent 70%);
    transform: translate(-50%, -50%) scale(1.5);
    filter: blur(8px);
    opacity: 0;
    animation: trailFollow 6s ease-in-out infinite;
}

.trail {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 200, 0.7);
  box-shadow: 0 0 10px rgba(255, 255, 160, 0.8),
              0 0 20px rgba(255, 255, 120, 0.5);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: fadeOut 1s forwards;
}

@keyframes glowShift {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 60% 60%;
    }
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
}

@keyframes fadeOut {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.3);
  }
}

@keyframes skyShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(40px, -30px) scale(1.1); }
    50%  { transform: translate(-50px, 40px) scale(0.9); }
    75%  { transform: translate(30px, -50px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes trailFollow {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(1); }
    30%  { opacity: 0.6; transform: translate(-50%, -50%) scale(1.3); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    position: relative;
    background-color: transparent;
}

.left-side {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#logo img {
    height: 70px;
    width: auto;
    filter: invert(1);
}

#profile-menu img {
    height: 70px;
    width: auto;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-icon {
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 6px;
    z-index: 1;
}

.profile-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

#profile-menu {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#profile-menu .dropdown {
    top: 100%;
    margin-top: 5px;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 8px;
    min-width: 150px;
    text-align: left;
}

.dropdown a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-family: 'Handlee', cursive;
}

.dropdown a:hover {
    background: #f5f5f5;
}

#profile-menu:hover .dropdown {
    display: block;
}

#login-register {
    position: static;
    font-size: 1.2rem;
    text-align: left;
    line-height: 1.4;
}

#login-register div {
    margin: 3px 0;
}

#login-register a {
    font-family: 'Sawarabi Mincho', serif;
    text-decoration: none;
    color: #ffffffc2;
    font-weight: 300;
    transition: color 0.2s ease-in-out;
}

#login-register a:hover {
    color: #fff;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    margin: 0;
    font-weight: 700;
    flex: 1;
    text-align: center;
    text-transform: uppercase;
}

h1 a {
    text-decoration: none;
    color: #ffffffc2;
    transition: color 0.2s ease-in-out;
}

h1 a:hover {
    color: #fff;
}

/* menu */
.menu {
    list-style-type: none;
    padding: 0;
    text-align: center;
    margin-top: 20px 0;
}

.menu li {
    display: inline-block;
    margin: 0 12px;
}

.menu li a {
    font-size: 1.5rem;
    font-family: 'Gochi Hand', cursive;
    text-decoration: none;
    color: #ffffffc2;
    font-weight: normal;
    padding: 8px 12px;
    position: relative;
    transition: color 0.3s ease;
}

.menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffffffc2;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu li a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.menu li a:hover::after {
    width: 100%;
}

main {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

main h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    font-weight: 100;
    color: #ffffffc2;
    grid-column: 1 / -1;
    margin: 40px 0 20px;
    text-align: center;
}

h3 {
    font-family: 'Gochi Hand', cursive;
    font-size: 1.8rem;
    font-weight: 100;
    color: #ffffffc2;
    margin: 20px 0 10px;
}

h4 {
    font-family: 'Cinzel', cursive;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffffc2;
    grid-column: 1 / -1;
    text-align: center;
    margin: 40px 0 20px;
    text-transform: uppercase;
}

p {
    font-family: 'Handlee', cursive;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffffc2;
    max-width: 700px;
    margin: 10px auto;
    text-align: center;
}

.description {
    font-family: 'Handlee', cursive;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
    color: #ffffffc2;
}

.movie-image img {
    max-height: 200px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.450);
    transition: transform 0.2s ease;
}

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

main > section {
    background-color: transparent;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.30);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

main > section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.50);
}

.movie-image {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.movie-image img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.450);
}

main > section h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #ffffffc2;
}

main > section p {
    font-size: 1rem;
    color: #ffffffc2;
    text-align: center;
    line-height: 1.4;
}

#time {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    margin-bottom: 8px;
    color: #333;
}

#date {
    font-family: 'Gochi Hand', cursive;
    font-size: 1.5rem;
    color: #333;
}

#footer {
    background: linear-gradient(to top, #0d1020, transparent);
    padding: 20px 0;
    font-family: 'Handlee', cursive;
    color: #ffffffc2;
    flex-shrink: 0;
    align-items: center;
    text-align: left;
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 2;

}

#footer .footer-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

#footer p {
    margin: 5px 0;
    color: #ffffffc2;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: none;
}

#footer .footer-left,
#footer .footer-center,
#footer .footer-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

#footer .footer-center {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

#footer .footer-left,
#footer .footer-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

#footer p,
#footer .footer-left,
#footer .footer-right {
    font-size: 1rem;
    line-height: 1.2;
    margin: 2px 0;
    color: #ffffffc2;
}

#footer .footer-left {
    align-items: flex-start;
    text-align: left;
    font-size: 1rem;
    color: #ffffffc2;
}

#footer .footer-right {
    align-items: flex-end;
    text-align: right;
    font-size: 1rem;
    color: #ffffffc2;
}

#footer .footer-icon {
    width: 50px;
    height: auto;
    margin-left: 130px;
}

#footer a {
    color: #ffffffc2;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

#footer a:hover {
    color: #fff;
}

@media screen and (max-width: 768px) {
    #footer .footer-inner {
        flex-direction: column;
        padding: 0 20px;
        gap: 15px;
    }

    #footer .footer-left,
    #footer .footer-center,
    #footer .footer-right {
        align-items: center;
        text-align: center;
    }

    .header {
        flex-direction: column;
        padding: 10px 20px;
    }

    .left-side {
        position: static;
        transform: none;
        margin-bottom: 10px;
        justify-content: center;
        gap: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    #login-register {
        text-align: center;
    }

    .menu li {
        display: block;
        margin-bottom: 8px;
    }
}