/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Body (Netflix Dark Cinematic Vibe) ===== */
body {
    background: #141414; /* True Netflix dark surface */
    color: #e5e5e5;
    padding: 40px;
    text-align: center;
    animation: fadeIn 0.6s ease-in;
}

/* ===== Headings ===== */
h4 {
    font-weight: 400;
    color: #8c8c8c;
    letter-spacing: 2px;
    font-size: 14px;
    text-transform: uppercase;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #E50914; /* Netflix Red */
    font-weight: 700;
    letter-spacing: -0.5px;
    animation: slideDown 0.6s ease-in-out;
}

h2 sub {
    color: #ffffff;
    font-size: 18px;
}

/* ===== Form ===== */
form {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

input[type="text"] {
    width: 280px;
    padding: 10px 14px;
    border-radius: 4px; /* Clean streaming UI corner radius */
    border: 1px solid #333333;
    background: #222222;
    color: #ffffff;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
    border-color: #E50914;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

input[type="text"]::placeholder {
    color: #757575;
}

button[type="submit"] {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: #E50914;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.1s ease;
}

button[type="submit"]:hover {
    background: #f40612;
}

button[type="submit"]:active {
    transform: scale(0.98);
}

/* ===== Table ===== */
table {
    margin: 25px auto;
    width: 75%;
    max-width: 900px;
    border-collapse: collapse;
    background: #181818;
    border: 1px solid #282828;
    border-radius: 6px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-in;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
}

th {
    background: #1f1f1f;
    color: #b3b3b3;
    font-weight: 600;
    border-bottom: 1px solid #282828;
    letter-spacing: 0.5px;
}

td {
    color: #d2d2d2;
    border-bottom: 1px solid #222222;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: #202020;
    transition: background 0.15s ease;
}

/* ===== Links ===== */
a {
    text-decoration: none;
    color: #E50914;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 4px;
    background: rgba(229, 9, 20, 0.05);
    transition: all 0.2s ease;
    display: inline-block;
}

a:hover {
    background: #E50914;
    color: #ffffff;
    border-color: #E50914;
}

/* ===== No result text ===== */
p {
    margin-top: 20px;
    color: #e50914;
    font-size: 14px;
    font-weight: 600;
    animation: fadeIn 0.4s ease-in;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
