body {
    background: linear-gradient(180deg, #0b1020 0%, #111a2e 100%);
    min-height: 100vh;
    color: #e5e7eb;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    color: #f8fafc;
    text-decoration: none;
}

.site-logo:hover,
.site-logo:focus {
    color: #f8fafc;
}

.site-logo-text {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.movies-library {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(165deg, rgba(16, 24, 42, 0.95) 0%, rgba(18, 33, 60, 0.9) 100%);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.35);
}

.movies-toolbar .form-select {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
}

.movies-toolbar .form-select:focus {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.2);
}

.movies-toolbar .form-label {
    color: #a8b6cf !important;
}

.movies-refresh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

.movies-refresh-icon {
    display: block;
}

.movies-library {
    background:
        radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0) 40%),
        radial-gradient(circle at 100% 20%, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0) 45%),
        linear-gradient(165deg, rgba(16, 24, 42, 0.95) 0%, rgba(18, 33, 60, 0.9) 100%);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.movie-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    background: linear-gradient(160deg, rgba(20, 28, 47, 0.98) 0%, rgba(14, 22, 38, 0.96) 100%);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.45);
    overflow: hidden;
}

.movie-card-content {
    padding: 0.9rem 1rem 1rem;
}

.movie-poster-wrap {
    position: relative;
}

.movie-poster {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
}

.movie-poster-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 0;
}

.movie-fresh-tag {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: #16a34a;
    color: #f0fdf4;
    border: 1px solid #15803d;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 12px rgba(3, 105, 40, 0.35);
}

.movie-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    font-size: 0.84rem;
}

.movie-meta-item {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.55rem;
    padding: 0.4rem 0.5rem;
}

.movie-meta dt {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.72rem;
    line-height: 1.1;
    margin-bottom: 0.15rem;
}

.movie-meta dd {
    margin-bottom: 0;
    color: #e5e7eb;
    font-size: 0.8rem;
    line-height: 1.2;
}

.movie-card h2 {
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

.movie-card a {
    color: #93c5fd;
}

.pagination .page-link {
    background-color: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.3);
    color: #c7d2fe;
}

.pagination .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #eaf2ff;
}

.pagination .page-link:hover {
    background-color: rgba(30, 41, 59, 0.95);
    color: #dbeafe;
}
