/* Modern Premium Design - MovieRulz */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --accent-primary: #e50914;
    --accent-secondary: #f40612;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(229, 9, 20, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(79, 195, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(156, 39, 176, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease infinite;
    z-index: -1;
}

@keyframes backgroundShift {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Glassmorphism Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.main-nav {
    display: flex;
    gap: 25px;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--text-primary);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-search {
    min-width: 250px;
}

.header-search form {
    display: flex;
    gap: 5px;
}

.header-search input {
    flex: 1;
    padding: 10px 18px;
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.header-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

.header-search button {
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.header-search button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #e50914 0%, #f40612 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: inline-block;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.5));
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0 60px;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #b3b3b3 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Bar */
.hero form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero input[type="text"] {
    padding: 15px 25px;
    width: 400px;
    max-width: 90%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
    transform: scale(1.02);
}

.hero button {
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.hero button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
}

/* Category Filter */
.container>div[style*="margin: 30px 0"] {
    margin: 40px 0 !important;
    text-align: center;
    animation: fadeIn 0.6s ease;
}

.container>div[style*="margin: 30px 0"] a {
    padding: 12px 24px !important;
    margin: 8px !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid var(--glass-border) !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.container>div[style*="margin: 30px 0"] a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 35px;
    padding: 50px 0;
}

/* Premium Cards with 3D Effect */
.card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
    border-radius: 24px;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding: 18px;
    text-decoration: none;
    display: block;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: fadeInScale 0.6s ease both;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(79, 195, 247, 0.1) 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.5);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stagger animation for cards */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.15s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

.card:nth-child(4) {
    animation-delay: 0.25s;
}

.card:nth-child(5) {
    animation-delay: 0.3s;
}

.card:nth-child(6) {
    animation-delay: 0.35s;
}

.card-image-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-image-wrapper::after {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #00c896 0%, #00a878 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
    animation: pulse 2s ease infinite;
    box-shadow: 0 4px 15px rgba(0, 200, 150, 0.4);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: 12px 8px 65px 8px;
    text-align: center;
    position: relative;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--accent-primary);
}

.card-rating {
    margin: 12px 0;
    font-size: 1.3rem;
    color: #ffd700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    letter-spacing: 2px;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-plus-btn {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    font-weight: 300;
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid var(--bg-primary);
}

.card:hover .card-plus-btn {
    transform: translateX(-50%) scale(1.15) rotate(90deg);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.7);
}

/* Pagination */
.container>div[style*="display: flex"] {
    animation: fadeIn 0.6s ease;
}

.container>div[style*="display: flex"] a {
    transition: all 0.3s ease !important;
}

.container>div[style*="display: flex"] a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Review Page Styles */
.review-header {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease;
}

.poster-large {
    width: 350px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.poster-large:hover {
    transform: scale(1.05);
}

.review-info {
    flex: 1;
}

.review-info h1 {
    font-size: 3rem;
    margin-top: 0;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.video-section {
    margin: 50px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.review-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 60px;
    line-height: 1.9;
    font-size: 1.1rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.review-content h3 {
    color: var(--accent-primary);
    margin-top: 35px;
    font-size: 1.8rem;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .review-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .poster-large {
        width: 100%;
        max-width: 350px;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Review Content Typography */
.review-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-content p {
    margin-bottom: 25px;
    letter-spacing: 0.3px;
}

.review-content h2,
.review-content h3 {
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.review-content ul,
.review-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.review-content li {
    margin-bottom: 10px;
}

.review-content strong {
    color: #fff;
    font-weight: 600;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.footer-section h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--glass-border);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
}

.breadcrumbs span {
    margin: 0 8px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 600;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Search */
.mobile-search {
    display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 968px) {
    .mobile-search {
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }

    .mobile-search form {
        display: flex;
        gap: 10px;
    }

    .mobile-search input {
        flex: 1;
        padding: 12px 15px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
        font-size: 1rem;
    }

    .mobile-search input:focus {
        outline: none;
        border-color: var(--accent-primary);
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-search button {
        padding: 0 15px;
        background: var(--accent-primary);
        border: none;
        border-radius: 8px;
        color: #fff;
        cursor: pointer;
        font-size: 1.2rem;
    }

    .header-content {
        position: relative;
        padding: 0 15px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
        outline: none;
        /* Remove blue outline */
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu-toggle:focus {
        outline: none;
    }

    .logo {
        order: 1;
        font-size: 1.5rem;
    }

    .header-search {
        display: none;
        /* Hide search on mobile header to save space, maybe move to menu? */
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -320px;
        /* Use fixed pixel value larger than width */
        width: 300px;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
        overflow-y: auto;
        visibility: hidden;
        /* Hide completely when closed */
    }

    .main-nav.active {
        right: 0;
        visibility: visible;
    }

    .main-nav a {
        font-size: 1.1rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        text-align: left;
        color: #e0e0e0;
    }

    .main-nav a:hover {
        color: var(--accent-primary);
        padding-left: 10px;
        background: rgba(255, 255, 255, 0.03);
    }

    .main-nav a::after {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Mobile overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }
}

@media (max-width: 768px) {
    .header-search {
        max-width: 200px;
    }

    .header-search input {
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    .header-search button {
        padding: 8px 15px;
        font-size: 1rem;
    }

    .main-nav {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    .header-search {
        max-width: 150px;
    }

    .header-search input {
        padding: 6px 12px;
    }

    .header-search button {
        padding: 6px 12px;
    }
}

/* Page Content Styles */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.6s ease;
}

.page-content h1 {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.page-content h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content h3 {
    font-size: 1.3rem;
    color: #b3b3b3;
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-content p {
    color: #b3b3b3;
    line-height: 1.8;
    margin-bottom: 15px;
}

.page-content ul,
.page-content ol {
    color: #b3b3b3;
    line-height: 1.8;
    margin: 15px 0 15px 30px;
}

.page-content li {
    margin-bottom: 10px;
}

.page-content a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.page-content em {
    color: #888;
    font-size: 0.9rem;
}

.page-content strong {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-content {
        padding: 30px 20px;
    }

    .page-content h1 {
        font-size: 2rem;
    }

    .page-content h2 {
        font-size: 1.5rem;
    }
}

/* Review Page Layout */
.review-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.review-main {
    min-width: 0;
    /* Prevent grid blowout */
}

/* Sidebar Styles */
.review-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sidebar Post Card (GPT Title & Backdrop Style) */
.sidebar-post-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.sidebar-post-image {
    position: relative;
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.sidebar-post-card:hover .sidebar-post-image img {
    transform: scale(1.1);
}

.sidebar-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.sidebar-post-overlay h4 {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
    border-left: 4px solid #e50914;
    /* The red accent line */
    padding-left: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .review-layout {
        grid-template-columns: 1fr;
    }

    .review-sidebar {
        position: static;
        margin-top: 60px;
    }

    .sidebar-posts {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}