* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    padding: 12px;
    min-height: 100vh;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    cursor: pointer;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 12px;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.nav-links span {
    color: white;
    padding: 6px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.movie-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    flex: 1 1 calc(50% - 15px);
    min-width: 0;
    max-width: 100%;
    position: relative;
}

.movie-card:hover {
    transform: scale(1.02);
}

.card-link {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .thumbnail img {
    transform: scale(1.08);
}

.free-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: #ff5722;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.rating {
    position: absolute;
    bottom: 10px; left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    z-index: 2;
}

.rating i {
    color: #ffc107;
    font-size: 11px;
}

.movie-info {
    padding: 12px;
    position: relative;
    z-index: 2;
}

.movie-title {
    color: white;
    font-size: 16px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-description {
    color: #aaa;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
}

.watch-btn {
    display: inline-block;
    background: #e50914;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 22px;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(229, 9, 20, 0.4);
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.watch-btn:hover {
    background: #ff0a16;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.6);
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    color: white;
    opacity: 0.7;
    font-size: 12px;
}

/* Responsive */
@media (min-width: 400px) { .thumbnail { height: 220px; } }
@media (min-width: 480px) {
    body { padding: 15px; }
    .logo { font-size: 26px; }
    .tagline { font-size: 15px; }
    .thumbnail { height: 240px; }
    .movie-title { font-size: 17px; }
    .movie-description { font-size: 13px; }
}
@media (min-width: 576px) {
    .row { gap: 20px; }
    .movie-card { flex: 1 1 calc(50% - 20px); }
    .thumbnail { height: 260px; }
    .movie-info { padding: 15px; }
}
@media (min-width: 768px) {
    body { padding: 20px; }
    .logo { font-size: 32px; }
    .tagline { font-size: 16px; }
    .nav-links span { padding: 8px 15px; font-size: 14px; }
    .thumbnail { height: 280px; }
    .movie-title { font-size: 18px; }
    .movie-description { font-size: 14px; height: 40px; }
    .watch-btn { padding: 12px 20px; font-size: 14px; }
}
@media (min-width: 992px) {
    .row { gap: 25px; margin-bottom: 25px; }
    .movie-card { flex: 1 1 calc(50% - 25px); max-width: 500px; }
    .thumbnail { height: 320px; }
}
@media (min-width: 1200px) {
    .thumbnail { height: 350px; }
}