body{
    margin:0;
    font-family:Arial, sans-serif;
    background:#f7f7f7;
}

/* HEADER */
.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:1px 15px;
    
    box-shadow:0 2px 5px rgba(0,0,0,0.1);
}
.section-title {
    padding-left: 10px;
    font-size: 25px;
    margin: 0 0 28px 0;
    position: relative;
    color: #00A8FF;
    font-weight: 700;
}

/* 🔥 RED SLANTED BAR */
.section-title:before {
    content: "";
    position: absolute;
    left: 10px;
    bottom: -14px;

    width: 100px;
    height: 10px;
    background: #ff0000;

    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

/* ➖ THIN GREY LINE UNDER RED BAR */
.section-title:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;

    height: 2px;
    background: #dcdcdc;
}


.menu-icon, .mode-icon{
    font-size:26px;
    cursor:pointer;
}
.site-title{
    margin: 0;               /* h1 default margin remove */
    padding: 0;
    font-family: 'Playfair Display','Merriweather', serif;
    font-size: 28px;         /* control size */
    font-weight: 700;
    letter-spacing: 0.5px;
}

.site-title a{
    color: #f20000;          /* unga purple color */
    text-decoration: none;  /* underline remove */
    display: inline-block;
}

/* Search */
.search-box{
    padding:10px 15px;
    display:flex;
    align-items:center;
    gap:10px;
  
    margin-bottom:10px;
}
.search-box input{
    width:100%;
    padding:8px;
    border:none;
    background:#f7f7f7;
    border-bottom:2px solid #ccc;
    font-size:16px;
}
.search-icon{
    font-size:22px;
    cursor:pointer;
}

/* MOVIE GRID */
.movie-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:15px;
    padding:15px;
}

/* PC 3 columns */
@media(min-width:768px){
    .movie-grid{
        grid-template-columns:repeat(3, 1fr);
    }
}

.movie-box{
    display:block;
    background:#fff;
    border-radius:8px;
    overflow:hidden;
    text-decoration:none;
    color:#000;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.movie-img{
    width:100%;
    height:200px;
    object-fit:cover;
}

.movie-name{
  font-family: 'Poppins', sans-serif;
    font-size:15px;
    text-align: center;
    font-weight:bold;
    padding:5px;
    color: #0793ff;
}

.movie-meta{
    font-size:14px;
    color:#777;
    padding:0 10px 10px 10px;
}

/* Pagination */
.pagination{
    text-align:center;
    padding:20px;
}
.page-btn{
    padding:8px 12px;
    margin:4px;
    border-radius:5px;
    background:#eee;
    text-decoration:none;
    color:#333;
}
.page-btn.active{
    background:#1976d2;
    color:#fff;
}


/* DRAWER */
.drawer{
    position:fixed;
    left:-300px;
    top:0;
    width:200px;
    height:100%;
    background:#fff;
    box-shadow:2px 0 8px rgba(0,0,0,0.2);
    padding:20px;
    transition:0.3s;
    z-index:999;
}
.drawer.open{
    left:0;
}
.drawer a{
    display:block;
    padding:10px 0;
    color:#333;
    text-decoration:none;
    font-size:17px;
}
.drawer a:hover{
    color:#1976d2;
}
.drawer-title{
    font-size:20px;
    margin-bottom:15px;
    font-weight:bold;
}
.drawer-bg{
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,0.4);
    display:none;
    z-index:998;
}
.drawer-bg.active{
    display:block;
}

/* DARK MODE */
.dark{
    background:#111;
    color:#fff;
}
.dark .header{
    background:#222;
}
.dark .search-box{
}
.dark input{
    background:#111;
    color:#fff;
}
.dark .movie-box{
    background:#222;
}
.dark .drawer{
    background:#222;
}
.dark .drawer a{
    color:#fff;
}
.dark .site-title {
    color: #fff;
}


/* Fix dark mode icon alignment */
.mode-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;    /* equal area */
    height: 30px;   /* perfect circle area */
    padding: 1px;
    border-radius: 50%;
}

/* Icon size stable */
.mode-icon svg {
    width: 26px;
    height: 26px;
}
.quality-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* spacing between items */
    flex-wrap: nowrap; /* force single line */
    margin: 12px 0;
    margin-top: 20px;
}

.quality-links span {
    font-size: 16px;
    font-weight: 700;
    color: red;
    white-space: nowrap; /* avoid wrapping */
}

.quality-links a {
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: #2dadff;
    white-space: nowrap; /* keep all in one line */
}

.quality-links a:hover {
    text-decoration: underline;
}

/* Dark mode */
.dark .quality-links span {
    color: #ff6b6b;
}
.dark .quality-links a {
    color: #66aaff;
}



/* Footer */
.footer{
    padding:15px;
    text-align:center;
    background:#fff;
    margin-top:20px;
    border-top:1px solid #ddd;
}
.dark .footer{
  color: white;
  background: #1f1f1f;
}


<style>
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: #f9f9f9;
    color: #444;
    font-family: 'Poppins', sans-serif;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #007bff;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}
</style>