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

:root {
    --background: #f8f9fa;
    --foreground: #1a202c;
    --card-bg: #ffffff;
    --accent: #6366f1;
    --accent-blue: #0ea5e9;
    --accent-yellow: #f59e0b;
    --accent-light: #818cf8;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    --text-secondary: #475569;
    --bg-primary: #ffffff;
    --bg-card: #ffffff;
    --accent-hover: #4f46e5;
    --header-height: 130px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: 'Inter', sans-serif;
        background-color: #e5e7eb;
        color: var(--foreground);
        line-height: 1.6;
        padding-top: var(--header-height);
    }

    body > * {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        background-color: var(--background);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    }
    /* make hero span full width and remove card shadow */
    body > .hero {
        max-width: 100%;
        box-shadow: none;
        background-color: transparent;
    }

    body > header,
    body > .site-header {
        max-width: 100%;
        box-shadow: none;
    }

    h1, h2, h3, h4, h5, h6 {
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    a {
        text-decoration: none;
        color: inherit;
        transition: color 0.3s ease;
    }

    button {
        cursor: pointer;
        border: none;
        font-family: inherit;
        transition: all 0.3s ease;
    }

    /* Container */
    .container {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    @media (min-width: 640px) {
        .container {
            padding: 0 1.5rem;
        }
    }

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

    /* Hero Section */
    /* removed frame wrapper, hero is full-width now */
    .device-wrapper { display:none; }

    .device { display:none; }

    @media (max-width: 1024px) {
        .device-wrapper {
            min-height: 50vh;
            padding: 1rem;
        }
        .device {
            width: 500px;
            height: 650px;
            border-radius: 15px;
        }
    }

    @media (max-width: 768px) {
        .device-wrapper {
            min-height: 45vh;
        }
        .device {
            width: 400px;
            height: 550px;
        }
    }

    @media (max-width: 480px) {
        .device-wrapper {
            min-height: 40vh;
        }
        .device {
            width: 280px;
            height: 400px;
        }
    }

    .hero {
        position: relative;
        min-height: 70vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
        padding: 4rem 2rem;
    }

    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: 
            radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15), transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.15), transparent 50%);
        z-index: 2;
    }

    .hero-bottom-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 150px;
        background: linear-gradient(to bottom, transparent, var(--background));
        z-index: 2;
        pointer-events: none;
    }

    .hero-content {
        position: relative;
        z-index: 3;
        max-width: 1100px;
        width: 100%;
        margin: 0 auto;
        padding: 1rem 0;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 3rem;
    }

    .hero-logo {
        text-align: left;
        margin: 0;
    }

    .hero-logo .site-logo {
        width: 400px;
        height: 400px;
        object-fit: contain;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }

    .hero h1 {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
        line-height: 1.2;
        margin-bottom: 1rem;
        color: white;
        font-weight: 800;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .hero h1 .accent {
        background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: inline;
    }

    .hero p {
        font-size: 1.125rem;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 1rem;
        max-width: 600px;
        line-height: 1.8;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        border-radius: 0.5rem;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
        color: white;
        box-shadow: var(--shadow-lg);
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
        box-shadow: var(--shadow-xl);
        transform: translateY(-2px);
    }

    .btn-secondary {
        background-color: white;
        color: var(--accent);
        border: 2px solid var(--accent);
    }

    .btn-secondary:hover {
        background: var(--accent);
        color: white;
        border-color: var(--accent);
    }

    .scroll-indicator {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
        animation: bounce 2s infinite;
    }

    .scroll-indicator svg {
        width: 24px;
        height: 24px;
        color: white;
        opacity: 0.9;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

    @keyframes bounce {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(10px); }
    }

    /* Featured Section */
    .featured {
        padding: 5rem 0;
        background-color: var(--background);
    }

    .featured-header {
        margin-bottom: 3rem;
    }

    .featured-header h2,
    .featured-header h4 {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
        margin-bottom: 0.75rem;
        font-weight: 600;
        color: var(--foreground);
        letter-spacing: -0.025em;
    }

    .featured-header p {
        font-size: 1rem;
        color: var(--text-muted);
        font-weight: 400;
    }

    /* Filter Tabs */
    .filter-tabs {
        display: flex;
        gap: 0.75rem;
        margin-bottom: 2.5rem;
        flex-wrap: wrap;
    }

    .filter-tab {
        padding: 0.75rem 1.5rem;
        border-radius: 0.5rem;
        font-weight: 600;
        background-color: var(--card-bg);
        color: var(--foreground);
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .filter-tab:hover {
        background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(231, 76, 60, 0.1) 100%);
        border-color: var(--accent-blue);
    }

    .filter-tab.active {
        background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent) 100%);
        color: white;
        box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
    }

    /* Cards Grid */
    .cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    @media (max-width: 768px) {
        .cards-grid {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
        }
    }

    .card {
        background-color: var(--card-bg);
        border-radius: 0.75rem;
        overflow: hidden;
        transition: all 0.3s ease;
        border: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        height: 100%;
        cursor: pointer;
        box-shadow: var(--shadow-sm);
    }

    .card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
        border-color: var(--accent);
    }

    .card-image {
        position: relative;
        width: 100%;
        height: 280px;
        overflow: hidden;
        background-color: #f1f5f9;
    }

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

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

    .card-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .card:hover .card-overlay {
        opacity: 1;
    }

    .play-button {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.5rem;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .card:hover .play-button {
        transform: scale(1.15);
        box-shadow: var(--shadow-xl);
    }

    .card-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: var(--accent);
        color: white;
        padding: 0.25rem 0.75rem;
        border-radius: 9999px;
        font-size: 0.875rem;
        font-weight: 600;
        z-index: 10;
        box-shadow: var(--shadow-md);
    }

    .card-content {
        padding: 1.25rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .card-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-rating {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .rating-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        border: 1px solid #fbbf24;
    }

    .rating-badge .star {
        color: #f59e0b;
    }

    .rating-badge .score {
        font-weight: 600;
        color: #d97706;
    }

    .rating-source {
        color: var(--text-muted);
        font-size: 0.875rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 5rem 0;
        background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(231, 76, 60, 0.1) 50%, var(--background) 100%);
        border-top: 1px solid var(--border-color);
        text-align: center;
    }

    .cta-section h2,
    .cta-section h4 {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
        margin-bottom: 1rem;
        font-weight: 600;
        color: var(--foreground);
    }

    .cta-section p {
        font-size: 1.125rem;
        color: var(--text-muted);
        margin-bottom: 2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Footer */
    footer {
        background-color: var(--card-bg);
        border-top: 1px solid var(--border-color);
        padding: 3rem 0;
    }

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

    .footer-section h3 {
        margin-bottom: 1rem;
        font-size: 1.125rem;
    }

    .footer-section ul {
        list-style: none;
    }

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

    .footer-section a {
        color: var(--text-muted);
    }

    .footer-section a:hover {
        color: var(--accent);
    }

    .footer-bottom {
        border-top: 1px solid var(--border-color);
        padding-top: 2rem;
        text-align: center;
        color: var(--text-muted);
        font-size: 0.875rem;
    }

    .logo {
        font-size: 1.5rem;
        font-weight: 700;
    
        color: var(--accent);
        margin-bottom: 0.5rem;
    }

    .logo-desc {
        color: var(--text-muted);
        font-size: 0.875rem;
    }

    /* Header */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--header-height);
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
        box-shadow: var(--shadow-sm);
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        height: 100%;
    }

    /* Center the logo inside the fixed header */
    .site-header .header-inner {
        position: relative;
    }

    .site-header .site-nav {
        position: relative;
        z-index: 1;
    }

    /* Ad slot base styles */
    .ad-slot { display: block; }
    .ad-placeholder { 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        background: #f9fafb; 
        color: #9ca3af; 
        border: 2px dashed #e5e7eb; 
        border-radius: 8px;
        padding: 1.5rem; 
        font-weight: 600;
        min-height: 90px;
    }

    /* Ad section between content */
    .ad-section {
        padding: 2rem 0;
        background-color: var(--background);
    }

    .ad-middle {
        max-width: 728px;
        margin: 0 auto;
        text-align: center;
    }

    /* Floating side ads */
    .ad-left, .ad-right { position: fixed; top: 40%; transform: translateY(-50%); width:160px; z-index: 100; }
    .ad-left { left: 12px; }
    .ad-right { right: 12px; }

    /* Footer ad */
    .ad-footer { width:100%; margin:1.5rem 0; text-align:center; }

    /* Hide floating ads on small screens */
    @media (max-width: 1024px) {
        .ad-left, .ad-right { display:none; }
    }

    @media (max-width: 1440px) {
        .ad-left, .ad-right { display:none; }
    }

    /* Ensure ads are not too tall on small screens */
    @media (max-width: 480px) {
        .ad-middle .ad-placeholder, 
        .ad-footer .ad-placeholder { 
            font-size: 0.9rem; 
            padding: 1rem; 
            min-height: 70px;
        }
    }

    /* Make room for the left logo on smaller screens */
    @media (max-width: 1024px) {
        .header-logo img {
            width: 100px;
            height: 100px;
        }
    }

    @media (max-width: 768px) {
        .header-logo img {
            width: 80px;
            height: 80px;
        }
        .site-logo,
        .logo img {
            width: 72px;
            height: 72px;
        }
    }
    .site-nav a {
        margin-left: 1rem;
        color: var(--text-muted);
        font-weight: 600;
    }

    .site-nav a:hover {
        color: var(--accent);
    }

    /* Logo image rules */
    .header-logo {
        display: flex;
        align-items: center;
    }
    
    .header-logo img {
        width: 120px;
        height: 120px;
        object-fit: contain;
    }
    
    .site-logo,
    .logo img {
        display: block;
        width: 400px;
        height: 400px;
        object-fit: contain;
    }

    .logo a { display: inline-flex; align-items: center; gap: .5rem; color: inherit; }


    /* Responsive */
    @media (max-width: 768px) {
        body > * {
            box-shadow: none;
        }

        .hero {
            min-height: 60vh;
            padding: 3rem 0;
        }
        body > .hero { box-shadow: none; max-width: 100%; }

        .hero h1 {
            font-size: 2rem;
        }

        .hero p {
            font-size: 1rem;
        }

        .hero-buttons {
            flex-direction: column;
        }
        /* Stack hero columns on mobile */
        .hero-content {
            grid-template-columns: 1fr;
            text-align: center;
        }
        .hero-logo {
            text-align: center;
            margin-bottom: 1rem;
        }
        .hero p {
            margin-left: auto;
            margin-right: auto;
        }

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

        .featured {
            padding: 2.5rem 0;
        }

        .featured-header h4 {
            font-size: 1.5rem;
        }

        .cta-section {
            padding: 2.5rem 0;
        }

        footer {
            padding: 2rem 0;
        }

        .site-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .site-nav a {
            margin-left: 0;
            font-size: 0.875rem;
        }

        .header-logo img {
            width: 70px !important;
            height: 70px !important;
        }

        .container {
            padding: 0 1rem;
        }

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

        .card-title {
            font-size: 1rem;
        }

        .card-image {
            height: 220px;
        }

        /* Tablet logo size */
        .site-logo,
        .logo img {
            width: 350px !important;
            height: 350px !important;
        }
    }

    @media (max-width: 480px) {
        .hero {
            min-height: 50vh;
            padding: 2rem 0;
        }

        .hero h1 {
            font-size: 1.75rem;
        }

        .hero-content {
            padding: 1rem 0;
        }

        .mood-btn {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }

        .featured {
            padding: 2rem 0;
        }

        .featured-header {
            margin-bottom: 2rem;
        }

        .featured-header h4 {
            font-size: 1.25rem;
        }

        .featured-header p {
            font-size: 0.875rem;
        }

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

        .card-content {
            padding: 0.75rem;
        }

        .card-title {
            font-size: 0.875rem;
        }

        .card-meta {
            font-size: 0.75rem;
        }

        .rating-badge {
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
        }

        /* Mobile logo size */
        .header-logo img {
            width: 60px !important;
            height: 60px !important;
        }
        
        .site-logo,
        .logo img {
            width: 250px !important;
            height: 250px !important;
        }

        .container {
            padding: 0 0.75rem;
        }
    }

    /* Admin add-show form styling */
    .admin-add-show h1 { margin-bottom: 1rem; }
    .add-show-form { display:flex; flex-direction:column; gap:0.75rem; background:var(--card-bg); padding:1rem; border-radius:8px; border:1px solid var(--border-color); }
    .add-show-form label { font-weight:600; color:var(--text-muted); }
    .add-show-form input[type="text"], .add-show-form input[type="number"], .add-show-form input[type="file"], .add-show-form select, .add-show-form textarea {
        padding:0.5rem; border-radius:6px; background: #ffffff; border:1px solid var(--border-color); color:var(--foreground);
    }
    .add-show-form textarea { min-height:120px; }
    .admin-alert { background:#dbeafe; padding:0.75rem; border:1px solid #3b82f6; color:#1e40af; margin-bottom:0.5rem; }
    .add-show-form .btn { align-self:flex-start; }

    /* Admin edit form styling */
    .form-row { display:flex; flex-direction:column; gap:0.5rem; margin-bottom:0.75rem; }
    .form-row label { font-weight:600; color:var(--text-muted); }
    .form-row input[type="text"], .form-row input[type="number"], .form-row input[type="file"], .form-row select, .form-row textarea {
        padding:0.5rem; border-radius:6px; background: #ffffff; border:1px solid var(--border-color); color:var(--foreground);
    }
    .form-row textarea { min-height:120px; }
    .checkbox-grid { display:flex; flex-wrap:wrap; gap:0.5rem; }
    .checkbox-grid label { display:inline-flex; align-items:center; gap:0.5rem; padding:0.25rem 0.5rem; border-radius:6px; }
    .thumb { width:96px; height:120px; object-fit:cover; border-radius:6px; border:1px solid var(--border-color); }
    .admin-success { background:#d1fae5; padding:0.75rem; border:1px solid #10b981; color:#065f46; margin-bottom:0.5rem; border-radius:6px; }
    .admin-error { background:#fee2e2; padding:0.75rem; border:1px solid #ef4444; color:#991b1b; margin-bottom:0.5rem; border-radius:6px; }
    .admin-table { width:100%; border-collapse:collapse; margin-top:1rem; background:var(--card-bg); border:1px solid var(--border-color); }
    .admin-table th, .admin-table td { padding:0.75rem 0.5rem; text-align:left; border-bottom:1px solid var(--border-color); }
    .admin-table thead th { background:transparent; font-weight:700; }
    .admin-table img.thumb { width:64px; height:96px; }

    /* Card animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Cookie Consent Banner */
    .cookie-consent {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(99, 102, 241, 0.3);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        z-index: 9999;
        animation: slideUp 0.5s ease-out;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .cookie-consent-content {
        max-width: 1280px;
        margin: 0 auto;
        padding: 1.5rem 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }

    .cookie-consent-text {
        flex: 1;
        color: rgba(255, 255, 255, 0.95);
    }

    .cookie-consent-text strong {
        display: block;
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
        color: white;
    }

    .cookie-consent-text p {
        font-size: 0.875rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.85);
        margin: 0;
    }

    .cookie-consent-text a {
        color: #818cf8;
        text-decoration: underline;
    }

    .cookie-consent-text a:hover {
        color: #a5b4fc;
    }

    .cookie-consent-actions {
        display: flex;
        gap: 1rem;
        flex-shrink: 0;
    }

    .cookie-consent-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    @media (max-width: 768px) {
        .cookie-consent-content {
            flex-direction: column;
            padding: 1.25rem 1rem;
            gap: 1rem;
        }

        .cookie-consent-text strong {
            font-size: 1rem;
        }

        .cookie-consent-text p {
            font-size: 0.8125rem;
        }

        .cookie-consent-actions {
            width: 100%;
            flex-direction: column;
            gap: 0.75rem;
        }

        .cookie-consent-actions .btn {
            width: 100%;
            justify-content: center;
        }
    }
