* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f2f2f2;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: visible;
}

/* FULL WIDTH CONTAINER */
.site-wrapper {
    width: 100%;
    background: #fff;
}

/* HEADER */
.top-header {
    background: linear-gradient(to right, #1e88e5, #42c5ff, #1e88e5);
    text-align: center;
    color: #fff;
    padding: 18px 10px;
}

.top-header h1 {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 700;
    margin-bottom: 3px;
}

.top-header p {
    font-size: 13px;
    margin: 0;
}

/* NOTICE */
.notice {
    text-align: center;
    padding: 14px 10px 6px;
    color: #ff5722;
    font-size: 15px;
    background: #f9f9f9;
}

/* SEARCH BAR (for homepage) */
.search-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 20px auto 10px;
    padding: 0 15px;
}

.search-input {
    border-radius: 50px;
    height: 52px;
    font-size: 16px;
    border: 1px solid #ccc;
    width: 100%;
    padding: 0 20px;
    outline: none;
}

.search-input:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

/* SECTION TITLE */
.section-title {
    background: linear-gradient(to right, #1e88e5, #42c5ff, #1e88e5);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
}

/* ADSENSE BOXES */
.ad-box {
    width: 100%;
    background: #ffffff;
    border: 2px dashed #90caf9;
    border-radius: 14px;
    padding: 18px;
    margin: 25px auto;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ad-label {
    font-size: 13px;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-placeholder {
    min-height: 120px;
    background: linear-gradient(135deg, #f5faff, #edf7ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #90a4ae;
    font-size: 15px;
    font-weight: 600;
    padding: 15px;
}

.ad-large .ad-placeholder {
    min-height: 280px;
}

/* MOVIE GRID (homepage) */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 25px;
    background: #fff;
}

.movie-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s;
    border: 1px solid #e0f0ff;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.movie-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #1e88e5;
}

.movie-card-content {
    padding: 18px;
}

.movie-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0c2e42;
    margin-bottom: 8px;
}

.movie-meta {
    font-size: 0.85rem;
    color: #5d6f83;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.movie-meta span {
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 20px;
}

.movie-desc {
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 15px;
    line-height: 1.4;
}

.download-home-btn {
    display: inline-block;
    background: linear-gradient(to right, #1e88e5, #42c5ff);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    transition: 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.download-home-btn:hover {
    background: linear-gradient(to right, #1565c0, #29b6f6);
    color: #fff;
    transform: scale(1.02);
}

/* DOWNLOAD PAGE STYLES (movie details) */
.download-section {
    padding: 20px;
    background: #fff;
}

.movie-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: linear-gradient(135deg, #e3f2fd, #ffffff, #f1f8ff);
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #dbe8ff;
    margin-bottom: 20px;
}

.movie-image {
    width: 640px;
    height: 310px;
    object-fit: cover;
    border-radius: 14px;
    border: 4px solid #42a5f5;
    box-shadow: 0 10px 25px rgba(30, 136, 229, 0.35);
}

.movie-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 15px;
    line-height: 2;
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 14px;
    border-left: 6px solid #1e88e5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.movie-details b {
    color: #1565c0;
    min-width: 150px;
    display: inline-block;
}

.download-links {
    margin-top: 18px;
}

.download-links a {
    display: inline-block;
    background: linear-gradient(to right, #1e88e5, #42c5ff);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: .3s;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
}

.download-links a:hover {
    transform: translateY(-2px);
    background: linear-gradient(to right, #1565c0, #29b6f6);
    color: #fff;
}

/* TAGS SECTION (shared) */
.tags-title {
    background: #37a8d9;
    color: #fff;
    padding: 10px 15px;
    font-weight: bold;
}

.tags-content {
    padding: 15px;
    background: #fff;
}

.tags-content a {
    color: #2e7d32;
    text-decoration: none;
    margin-right: 15px;
}

.tags-content p {
    line-height: 1.6;
    font-size: 14px;
}

/* FOOTER LINKS */
.footer-links {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #ddd;
    text-align: center;
}

.footer-links a {
    color: #000;
    text-decoration: none;
    margin: 0 8px;
}

/* FOOTER */
.footer {
    background: linear-gradient(to right, #1e88e5, #42c5ff, #1e88e5);
    color: #fff;
    text-align: center;
    padding: 25px 10px;
    font-weight: bold;
}

/* MOVIE LIST (simple list for homepage alternative) */
.movie-list {
    width: 100%;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    border: 1px solid #ddd;
    margin: 20px 0;
}

.movie-list p {
    margin: 0;
    padding: 7px 10px;
    border-bottom: 1px dotted #dcdcdc;
    line-height: 1.5;
}

.movie-list a {
    color: #d40000;
    text-decoration: none;
    font-weight: bold;
}

.movie-list .click-link {
    color: #003cff;
}

.movie-list a:hover {
    text-decoration: underline;
}

.arrow {
    color: #555;
    margin-right: 5px;
}

.update {
    font-weight: bold;
}

.time {
    color: red;
    font-weight: bold;
}

/* IN‑PAGE LOADING ANIMATION (for download button) */
.inline-loading {
    background: linear-gradient(135deg, #0a2f44, #0e4b6e);
    border-radius: 28px;
    padding: 20px 25px;
    margin: 25px 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-left: 6px solid #ffb347;
    transition: all 0.2s;
}

.inline-loading .loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #ffb347;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

.inline-loading .loading-message {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffecb3;
    margin-bottom: 8px;
}

.inline-loading .timer-text {
    font-size: 1rem;
    color: #b8e1ff;
    background: rgba(0, 0, 0, 0.4);
    display: inline-block;
    padding: 4px 15px;
    border-radius: 40px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* BOTTOM DOWNLOAD BUTTON (appears after timer) */
.bottom-download-container {
    text-align: center;
    margin: 30px auto 30px;
    padding: 15px;
    background: #e9f5ff;
    border-radius: 50px;
    display: none;
}

.bottom-download-container a {
    display: inline-block;
    background: linear-gradient(45deg, #e65100, #ff9800);
    padding: 14px 40px;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 60px;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
}

.bottom-download-container a:hover {
    background: linear-gradient(45deg, #bf360c, #f57c00);
    transform: scale(1.02);
    color: white;
}

/* RESPONSIVE */
@media(max-width:768px) {
    .movies-grid {
        padding: 15px;
        gap: 15px;
    }
    .movie-card-img {
        height: 160px;
    }
    .movie-box {
        flex-direction: column;
        text-align: center;
    }
    .movie-image {
        width: 100%;
        max-width: 280px;
        height: auto;
    }
    .movie-details {
        text-align: left;
    }
    .movie-details b {
        display: inline;
    }
    .ad-placeholder {
        min-height: 100px;
        font-size: 13px;
    }
    .ad-large .ad-placeholder {
        min-height: 220px;
    }
}