/* --- PORNWALE CORE STYLE (User Provided) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #0a0a0a; color: #fff; overflow-x: hidden; }

/* LAYOUT */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER --- */
.header {
    background: #1a0f2e;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #8b2cab;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.header-content { display: flex; align-items: center; gap: 30px; }

/* Menu Button (Mobile) */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* Logo */
.logo { font-size: 26px; font-weight: bold; color: #fff; text-decoration: none; white-space: nowrap; }
.logo span { color: #ff1b8d; }

/* Search Bar (Desktop) */
.search { flex: 1; max-width: 500px; position: relative; }
.search input {
    width: 100%;
    padding: 10px 50px 10px 15px;
    background: #2a1f3d;
    border: 1px solid #4a3066;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
}
.search input::placeholder { color: #9d88b3; }
.search input:focus { outline: none; border-color: #8b2cab; }

.search-btn {
    position: absolute; right: 0; top: 0;
    height: 100%; width: 45px;
    background: #8b2cab;
    border: none;
    border-radius: 0 5px 5px 0;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* Icons (Mobile/Tablet) */
.header-icons { display: none; gap: 15px; margin-left: auto; }
.header-icon-btn { background: none; border: none; color: #b89fd1; font-size: 20px; cursor: pointer; }

/* --- MOBILE SEARCH BAR (Below Header) --- */
.mobile-search { display: none; background: #1a0f2e; padding: 10px 0; border-bottom: 1px solid #2a1f3d; }
.mobile-search .search { max-width: 100%; margin: 0 auto; }

/* --- NAVIGATION --- */
.nav { background: #16082b; border-bottom: 1px solid #2a1f3d; }
.nav ul { display: flex; list-style: none; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: 12px 18px; color: #b89fd1; text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav a.active { color: #fff; background: #8b2cab; }

/* --- MOBILE MENU SIDEBAR --- */
.mobile-menu {
    position: fixed; top: 0; left: -280px; width: 280px; height: 100vh;
    background: #1a0f2e; z-index: 200; transition: left 0.3s;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}
.mobile-menu.show { left: 0; }
.mobile-menu-header { padding: 20px; border-bottom: 1px solid #2a1f3d; display: flex; justify-content: space-between; }
.close-btn { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
.mobile-menu ul { list-style: none; padding: 10px 0; }
.mobile-menu a { display: block; padding: 12px 20px; color: #b89fd1; text-decoration: none; font-size: 15px; border-bottom: 1px solid #221538; }
.mobile-menu a.active { color: #fff; background: rgba(139, 44, 171, 0.3); }

.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.85); z-index: 150; }
.overlay.show { display: block; }

/* --- CONTENT GRID --- */
.content { padding: 40px 0; min-height: 60vh; }
.title { font-size: 24px; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid #2a1f3d; }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }

.card { text-decoration: none; color: #fff; display: block; }
.card-img { position: relative; width: 100%; padding-bottom: 56.25%; background: #1a0f2e; border-radius: 5px; overflow: hidden; }
.card-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-img img { transform: scale(1.1); }

.badge {
    position: absolute; bottom: 8px; left: 8px;
    background: rgba(0,0,0,0.6); padding: 2px 6px; border-radius: 3px;
    font-size: 11px; font-weight: 300; color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

.card-name { padding: 10px 0; font-size: 14px; color: #e8dfef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card:hover .card-name { color: #ff1b8d; }

/* --- FOOTER --- */
.footer { background: #16082b; border-top: 2px solid #8b2cab; padding: 40px 0 20px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer h4 { font-size: 14px; margin-bottom: 15px; text-transform: uppercase; color: #ff1b8d; }
.footer a { display: block; color: #9d88b3; text-decoration: none; font-size: 13px; margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #2a1f3d; color: #7a6b8f; font-size: 13px; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    
    /* Header Changes */
    .header-icons { display: flex; } /* Show Icons */
    .header-content .search { display: none; } /* Hide Desktop Search */
    .mobile-search { display: block; } /* Show Mobile Search Bar */
    .header { padding: 12px 0; }
    .header-content { justify-content: space-between; }
}

@media (max-width: 768px) {
    .menu-btn { display: block; }
    .nav { display: none; }
    .container { padding: 0 15px; }
    .content { padding: 30px 0; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .pagination { gap: 6px; margin-top: 40px; }
}

@media (max-width: 480px) {
    .logo { font-size: 20px; }
    .grid { gap: 12px; }
    .card-name { font-size: 12px; padding: 8px 0; }
    .badge { font-size: 10px; bottom: 6px; left: 6px; }
}