:root {
    --bg: #1c1a15;
    --bg-2: #2a2720;
    --card: #ffffff;
    --card-solid: #f4f4f4;
    --text: #f0f0f0; 
    --text-neon: #d4ff3e;
    --text-dark: #111111; 
    --muted: #a3a3a3;
    --line: rgba(255, 255, 255, 0.15);
    --primary: #d4ff3e;
    --primary-2: #c2eb32;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    --radius: 32px;
    --radius-sm: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.page_shell {
    width: min(1300px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1300px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 16px 24px;
    background: var(--bg);
    border-bottom: 2px solid var(--line);
}

.nav_brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--primary);
    text-transform: uppercase;
}

.nav_logo {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-dark);
}

.nav_search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 350px;
}

.nav_search input {
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--line);
    background: transparent;
    color: var(--text);
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.nav_search input:focus { border-color: var(--primary); }

.nav_links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

.nav_links a { color: var(--text); transition: color 0.2s; }
.nav_links a:hover { color: var(--primary); }

.nav_auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn, .chip, .theme_toggle {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn {
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn--primary {
    color: var(--text-dark);
    background: var(--primary);
}

.btn--primary:hover {
    background: var(--card);
    transform: translateY(-2px);
}

.btn--ghost {
    color: var(--text);
    background: transparent;
    border: 2px solid var(--line);
}

.btn--ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero, .page_header, .detail_hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
    margin-top: 48px;
}

.detail_hero { grid-template-columns: 0.8fr 1.2fr; }

.hero_box, .hero_side, .detail_info, .detail_poster, .section {
    background: transparent;
    border: none;
}

.hero h1, .page_header h1, .detail_info h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.95;
    margin: 16px 0;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-neon);
    letter-spacing: -2px;
}

.hero p, .page_header p, .detail_info p, .navbar p {
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 90%;
}

.hero_badge, .pill, .stat {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-radius: 24px;
    background: var(--card);
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.hero_badge {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.hero_actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero_side {
    display: grid;
    gap: 20px;
    align-content: center;
}

.stat { width: 100%; }

.stat span, .detail_metrics span { 
    color: #666;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
}

.stat strong {
    display: block;
    margin-top: 8px;
    font-size: 1.3rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.section { margin-top: 80px; }

.section_head, .page_header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 32px;
}

.page_header {
    background: linear-gradient(to right, rgba(204, 255, 0, 0.05), transparent);
    padding-left: 20px;
    border-left: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
    padding-top: 40px;
}

.header_content h1 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section_head h2 { 
    margin: 0; 
    font-size: 2.5rem; 
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text);
    letter-spacing: -1px;
}

.section_head a {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 32px;
    overflow-x: auto;
    padding-bottom: 24px;
    padding-top: 24px;
    scrollbar-width: none;
}

.card, .movie_card {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: transparent;
    transition: transform .3s ease;
}

.movie_card {
    background: var(--bg-2);
    border: 2px solid var(--line);
    border-radius: 24px;
    padding: 16px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

.movie_card:hover { 
    transform: translateY(-8px); 
    border-color: var(--primary); 
}

.movie_reviews {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--bg-2);
    border-radius: 40px;
    color: var(--text);
}
.movie_reviews .section_header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.movie_reviews .section_header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.review_count, .review_average {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
}

.review_average {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.15);
}

.review_form {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 40px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rating_input {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.star_rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star_rating input {
    display: none;
}

.star_rating label {
    font-size: 1.8rem;
    color: #444;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
    padding: 0 0.1rem;
}

.star_rating input:checked ~ label,
.star_rating label:hover,
.star_rating label:hover ~ label {
    color: #ffc107;
}

.review_form textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-radius: 20px;
    margin-bottom: 1rem;
    font-family: inherit;
    resize: vertical;
}

.review_form textarea:focus {
    outline: none;
    border-color: #ffc107;
}

.reviews_list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.review_item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.review_user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.user_info {
    display: flex;
    flex-direction: column;
}

.user_info strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.user_info strong #light_mode{
    color: var(--primary-2);
}

.user_info span {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 0.2rem;
}

.user_rating {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 40px;
}

.review_text {
    color: #868686;
    line-height: 1.6;
    margin: 0;
}

.no_reviews {
    text-align: center;
    padding: 2rem;
    color: #aaa;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.movie_card img {
    width: 100%;
    aspect-ratio: 2/3; 
    object-fit: cover;
    border-radius: 16px;
}

.card_content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text);
}

.card_content{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 15px;
}

.card_meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin-top: auto;
    align-items: center;
    gap: 8px;
}

.movie_detail_grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    margin-top: 40px;
}

.movie_detail_poster img {
    width: 100%;
    border-radius: 32px;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.movie_badges {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.badge {
    padding: 8px 16px;
    background: var(--primary);
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.genre_label {
    display: inline-block;
}

.movie_plot h3 {
    text-transform: uppercase;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

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

.card_wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--bg-2);
    border-radius: 24px;
    border: 2px solid var(--line);
}

.card_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.card:hover .card_img { transform: scale(1.05); }

.card_over {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 26, 21, 0.95), transparent 60%);
}

.card_meta_box {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

svg, .nav_arrow, .back_btn svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    max-width: 24px;
    display: inline-block;
    vertical-align: middle;
}

.back_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 32px;
    color: var(--text);
    font-weight: 800;
    text-transform: uppercase;
    transition: color 0.2s;
}

.back_btn:hover {
    color: var(--primary);
}

.pill {
    padding: 6px 14px;
    font-size: 0.85rem;
    box-shadow: none;
}

.pill--rating { 
    background: var(--primary);
}

.card_body { padding: 20px 0; }

.card_body h3 { 
    margin: 0 0 8px; 
    font-size: 1.3rem; 
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

.card_body p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.detail_poster img {
    width: 100%;
    border-radius: 32px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 4px solid var(--primary);
}

.detail_metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0;
    padding: 16px 0;
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
}

.detail_metrics span {
    color: var(--text);
    font-size: 1rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}

.chip {
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--line);
    background: transparent;
    color: var(--text);
    min-width: 120px;
    text-align: center;
}

.chip:hover { border-color: var(--primary); }

.chip.is_active {
    background: var(--primary);
    color: var(--text-dark);
    border-color: var(--primary);
}

.pagination_wrap { margin-top: 48px; }

.theme_toggle {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-dark);
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    z-index: 60;
}

.theme_toggle:hover {
    transform: scale(1.1) rotate(15deg);
}

.auth_wrapper {
    display: grid;
    place-items: center;
    min-height: 75vh;
    padding: 40px 0;
}

.auth_box {
    width: 100%;
    max-width: 460px;
    background: var(--card);
    color: var(--text-dark);
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    border: 4px solid var(--primary);
}

.auth_head {
    margin-bottom: 32px;
    text-align: center;
}

.auth_head h1 {
    font-size: 2.8rem;
    margin: 0 0 12px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
}

.auth_head p {
    color: #555;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.form_group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form_label {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.form_input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: 2px solid #ccc;
    background: #f9f9f9;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form_input:focus {
    outline: none;
    border-color: var(--text-dark);
    background: var(--card);
    box-shadow: 6px 6px 0 var(--primary);
    transform: translate(-2px, -2px);
}

.auth_btn {
    width: 100%;
    margin-top: 16px;
    font-size: 1.1rem;
    padding: 18px;
    border: 2px solid transparent;
}

.auth_btn:hover {
    border-color: var(--text-dark);
}

.auth_footer {
    margin-top: 32px;
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 0.95rem;
}

.auth_footer p {
    margin: 0;
}

.auth_footer a {
    color: var(--text-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    text-transform: uppercase;
    font-weight: 900;
    margin-left: 8px;
    transition: all 0.2s;
}

.auth_footer a:hover {
    color: var(--primary);
    background: var(--text-dark);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
}

body.light_mode {
    --bg: #f5f5f0;
    --bg-2: #ffffff;
    --text: #1c1a15;
    --text-neon: #1c1a15;
    --line: rgba(0, 0, 0, 0.1);
    --card: #1c1a15;
    --text-dark: #ffffff;
    --primary: #badf36;
    --primary-2: #98b828;
}

.notification {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: var(--text-dark);
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-transform: uppercase;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.notification.is_visible {
    transform: translateX(-50%) translateY(0);
}

#favBtn.is_active {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
    min-width: 250px;
}

.favBtn {
    min-width: 250px;
}

.favBtn-heart{
    margin-right: 5px;
}

.movie_actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.card_poster_wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.card_poster_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card_rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--text-dark);
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
}

.card_rating svg {
    width: 14px;
    height: 14px;
}

.logo-class {
    width: 205px;
    height: 98px;
}

.star_rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star_rating input { display: none; }
.star_rating label {
    font-size: 24px;
    color: var(--line);
    cursor: pointer;
    transition: color 0.2s;
}

.star_rating input:checked ~ label,
.star_rating label:hover,
.star_rating label:hover ~ label {
    color: var(--primary);
}

.review_item {
    background: var(--bg);
    padding: 20px;
    border-radius: 30px;
    margin-bottom: 15px;
    border: 1px solid var(--line);
}

.review_user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.user_avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--bg-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user_name {
    margin-right: 15px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.nav_auth {
    display: flex;
    align-items: center;
}

.about_wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info_card {
    background: var(--card);
    padding: 40px;
    border-radius: 30px;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(204, 255, 0, 0.2);
}

.card_label {
    color: #98b828;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.info_card h3 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.info_card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.pagination_wrapper {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-family: inherit;
}

.pagination_wrapper nav {
    display: flex;
    justify-content: center;
}

.pagination_wrapper ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination_wrapper li span, 
.pagination_wrapper li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--card);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid var(--line);
}

.pagination_wrapper li a:hover {
    background: var(--bg-2);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination_wrapper li.active span {
    background: var(--primary);
    color: #000;
    border-color: var(--primary-2);
}

.pagination_wrapper li.disabled span {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent;
}

.pagination_info {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.swiper {
    width: 100%;
    padding: 10px 0 40px 0;
    overflow: visible;
}

.swiper-slide {
    height: auto;
    width: auto;
    display: flex;
    justify-content: center;
}

.movie_card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.swiper {
    width: 100%;
    padding: 10px 0 40px 0;
    overflow: hidden;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.movie_card {
    width: 100%;
}

.swiper_nav {
    display: flex;
    gap: 10px;
}

.swiper-button-prev,
.swiper-button-next {
    position: static;
    margin: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-dark);
    border: 1px solid #333;
    border-radius: 10px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 16px;
    font-weight: bold;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--primary);
    color: var(--text-dark);
}

.light_mode .swiper-button-prev,
.light_mode .swiper-button-next {
    background: var(--card);
    border-color: var(--muted);
    color: var(--bg-2);
}

.light_mode .swiper-button-prev:hover,
.light_mode .swiper-button-next:hover {
    background: #333;
    color: var(--card);
}

#preloader {
    background: var(--card);
}

#preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

body.light_mode {
    color: var(--text-dark);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-gif {
    width: 150px;
    height: auto;
}

.page_shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

.profile_header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user_large_avatar {
    width: 120px;
    height: 120px;
    background: var(--primary);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(198, 255, 0, 0.3);
    text-transform: uppercase;
}

.profile_header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--card);
}

body.light_mode .profile_header h1 {
    color: var(--card);
}

.profile_header p {
    color: var(--muted);
    font-size: 14px;
}

.profile_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.profile_section {
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

body.light_mode .profile_section {
    background: var(--card);
    border: 1px solid var(--muted);
}

.profile_section h2 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.light_mode .profile_section h2 {
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    margin-bottom: 25px;
}

.profile_section .grid h3 {
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 10px;
    margin: 10px;
    transition: 0.3s ease;
}

.profile_section .my_review_list h3 {
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 10px;
    margin: 10px;
    transition: 0.3s ease;
}

.profile_section .grid h3:hover {
    background: rgba(198, 255, 0, 0.1);
    transform: translateX(5px);
}

.profile_section .my_review_list h3:hover {
    background: rgba(198, 255, 0, 0.1);
    transform: translateX(5px);
}

body.light_mode .profile_section .grid h3 {
    background: var(--card);
    border: 1px solid var(--muted);
}

body.light_mode .profile_section .my_review_list h3 {
    background: var(--card);
    border: 1px solid var(--muted);
}

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

.my_review_list div:last-child {
    border-bottom: none;
}

body.light_mode .my_review_list div {
    color: var(--text-dark);
}

.movie_title{
    color: var(--text);
}

.movie_plot_text {
    color: var(--text);
}

.streaming_platforms {
    margin: 32px 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.streaming_platforms h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 16px;
}

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

.platform_btn {
    background: var(--bg-2);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-weight: 500;
}

.platform_btn:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.platform_btn.voted {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.platform_btn.voted .platform_name {
    font-weight: 700;
}

.vote_count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    color: var(--text);
}

.platform_btn.voted .vote_count {
    background: rgba(0, 0, 0, 0.15);
    color: #000;
}

.movie_trailer_section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.movie_trailer_section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text);
    text-align: left;
}

.trailer_wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video_container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    width: 100%;
}

.video_container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.no_trailer_box {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.no_trailer_box svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no_trailer_box p {
    font-size: 1.1rem;
    max-width: 300px;
    line-height: 1.5;
}

.platform_btn.is-verified {
    border: 2px solid #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    position: relative;
    overflow: visible;
    cursor: pointer;
    border-color: #2ecc71;
    opacity: 1;
}

.platform_btn.voting-closed:not(.is-verified) {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.verified_badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #2ecc71;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
}

.is-verified .platform_name {
    font-weight: bold;
    color: #2ecc71;
}

.platform_btn.is-verified:hover {
    background-color: rgba(46, 204, 113, 0.2);
    transform: translateY(-2px);
}

.no_trailer_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    aspect-ratio: 3 / 4; 
    max-height: 500px;
    margin: 0 auto;
    text-align: center;
}

.no_trailer_image {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    max-height: 70%;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.no_trailer_box p {
    color: #5f5f5f;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}

.related_movies_section h2{
    color: var(--text);
}

.related_movies_section h2.light_mode{
    color: var(--text-dark);
}

.expandable_container {
    position: relative;
    max-height: 450px;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable_container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    transition: opacity 0.3s;
}

.expandable_container.is_expanded {
    max-height: 99999999px;
}

.expandable_container.is_expanded::after {
    opacity: 0;
}

.show_more_btn {
    display: block;
    margin: 15px auto;
    padding: 10px 25px;
    background: var(--primary);
    color: var(--text-dark);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    z-index: 5;
}

.show_more_btn:hover {
    background: var(--primary-2);
    transform: scale(1.05);
}

.cricklee_trigger {
    position: fixed;
    bottom: 40px;
    left: 20px;
    z-index: 999;
    cursor: pointer;
}

.cricklee_bubble {
    background: var(--primary);
    color: var(--text-dark);
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 700;
    font-size: 16px;
    border: none;
}

.cricklee_bubble:hover { 
    transform: scale(1.05) translateY(-5px);
    background: var(--primary-2);
}

.cricklee_bubble img { 
    width: 22px; 
    height: auto; 
}

.assistant_overlay {
    display: none;
    position: fixed;
    bottom: 110px;
    left: 20px;
    width: 340px;
    z-index: 1000;
    animation: slideUp 0.4s ease;
}

.assistant_card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    color: var(--text);
}

.assistant_header h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.assistant_header img {
    width: auto;
    height: auto;
    border-radius: 12px;
    margin-bottom: 10px;
    display: block;
}

.close_wizard {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.close_wizard:hover { color: var(--primary); }

.step_q { 
    font-weight: 600; 
    margin-bottom: 20px; 
    color: var(--text);
    font-size: 15px;
}

.choice_btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 14px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 500;
}

.choice_btn:hover { 
    background: var(--primary); 
    color: var(--text-dark); 
    border-color: var(--primary);
    font-weight: 700;
}

.result_item {
    display: block;
    background: rgba(212, 255, 62, 0.08);
    padding: 14px 20px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.2s;
    font-size: 14px;
}

.result_item:hover {
    border-color: var(--primary);
    background: rgba(212, 255, 62, 0.15);
    transform: translateX(8px);
}

.restart_btn {
    display: block;
    width: fit-content;
    margin: 15px auto 0 auto;
    background: none;
    border: none;
    color: var(--muted);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s;
}

.restart_btn:hover {
    color: var(--primary);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) translateX(-10px); }
    to { opacity: 1; transform: translateY(0) translateX(0); }
}

@media (max-width: 480px) {
    .assistant_card {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px 15px;
        margin: 10px;
    }

    .assistant_header img {
        width: 80px;
    }

    .assistant_header h3 {
        font-size: 1.2rem;
    }

    .choice_grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .choice_btn {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .page_shell {
        padding: 60px 0 32px;
    }

    .navbar {
        display: flex;
        flex-wrap: wrap;
        padding: 15px 20px;
        gap: 15px;
        justify-content: space-between;
    }

    .nav_brand { 
        order: 1; 
        flex: 1 1 auto;
    }

    .nav_auth { 
        order: 2; 
        flex: 0 0 auto;
    }
    
    .nav_search {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        margin: 0;
    }

    .nav_links {
        order: 4;
        flex: 1 1 100%;
        width: 100%;
        justify-content: center;
        padding: 10px 0 0 0;
        border-top: 1px solid var(--line);
        gap: 15px;
        font-size: 0.85rem;
        display: flex;
        flex-wrap: wrap;
    }

    .hero, 
    .page_header, 
    .detail_hero, 
    .movie_detail_grid,
    .about_grid,
    .profile_grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .detail_hero {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }

    .detail_poster, .movie_poster {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .detail_poster img, .movie_poster img {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: 12px;
        display: block;
    }

    .header_content h1 {
        font-size: 2.8rem;
    }

    .hero_actions, .movie_actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

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

    .navbar {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: 
            "brand auth"
            "search search"
            "links links";
        gap: 15px;
        padding: 10px 15px;
    }

    .nav_brand { grid-area: brand; }
    .nav_auth { grid-area: auth; display: flex; justify-content: flex-end; }
    .nav_search { grid-area: search; width: 100%; }
    .nav_search form { width: 100%; display: flex; }
    .nav_search input { width: 100%; }
    
    .nav_links { 
        grid-area: links; 
        display: flex;
        justify-content: center;
        border-top: 1px solid var(--line);
        padding-top: 10px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .detail_hero, .movie_detail_grid, .profile_grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .detail_hero {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }

    .detail_poster img {
        max-width: 250px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 30px 15px;
    }

    .movie_trailer_section {
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .movie_trailer_section h2 {
        font-size: 1.3rem;
        text-align: center;
    }

    .no_trailer_box {
        aspect-ratio: 16 / 9;
        padding: 20px;
        box-sizing: border-box;
        max-width: 100%;
    }

    .platform_grid {
        gap: 8px;
    }
    
    .platform_btn {
        padding: 10px;
        font-size: 0.8rem;
        flex: 1 1 auto;
    }

    .rating_input_wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    .rating_input_wrapper svg {
        flex-shrink: 0;
        width: clamp(18px, 6vw, 30px);
        height: auto;
    }

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

    .auth_box {
        padding: 24px 16px;
        margin: 0 10px;
        box-sizing: border-box;
    }

    .auth_head h1 {
        font-size: 1.8rem;
    }

    .review_form {
        padding: 15px;
    }

    .rating_input {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .star_rating {
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
        width: 100%;
        flex-wrap: nowrap;
    }

    .star_rating label {
        font-size: clamp(1.2rem, 5vw, 2rem);
        padding: 0 2px;
        cursor: pointer;
    }

    .review_form textarea {
        width: 100%;
        box-sizing: border-box;
    }

    .platform_grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px;
        gap: 10px;
    }

    .nav_brand span {
        display: none;
    }

    .hero h1, .header_content h1, .detail_info h1 {
        font-size: 1.8rem;
    }

    .platform_grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .nav_auth .btn {
        width: auto;
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .rating_input_wrapper svg {
        width: clamp(14px, 5vw, 24px);
    }

    .grid {
        grid-template-columns: 1fr;
    }

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

    .detail_metrics {
        flex-direction: column;
        gap: 15px;
    }

    .swiper-slide {
        width: 140px;
    }

    .my_review_list div {
        flex-direction: column;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }
    .navbar {
        grid-template-columns: 1fr 1fr;
    }

    .nav_brand span { display: none; }

    .header_content h1, .detail_info h1 {
        font-size: 1.8rem;
    }

    .star_rating label {
        font-size: 1.4rem;
        padding: 0 1px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .movie_card {
        max-width: 100%;
    }

    .detail_metrics {
        flex-direction: column;
        gap: 10px;
    }
}