/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    color: #e50914;
    margin-right: 0.5rem;
    font-size: 2rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav a:hover,
.nav a.active {
    color: #e50914;
}

.search-box {
    flex: 1;
    max-width: 400px;
    margin: 0 1rem;
}

.search-box form {
    display: flex;
    background: #333;
    border-radius: 25px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    padding: 0.75rem 1rem;
    background: #e50914;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #b8070f;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.user-btn:hover {
    background: #333;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

/* Mở dropdown bằng class .show (được toggle bằng JS), không dùng :hover để tránh luôn mở trên mobile */
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #ccc;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: #333;
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #e50914;
    color: #fff;
}

.btn-primary:hover {
    background: #b8070f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #333;
    color: #fff;
}

.btn-secondary:hover {
    background: #555;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23fff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23fff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23fff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23fff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23fff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #e50914, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto;
}

.hero-search form {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-search input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    font-size: 1.1rem;
}

.hero-search input::placeholder {
    color: #999;
}

.hero-search button {
    padding: 1rem 2rem;
    background: #e50914;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.hero-search button:hover {
    background: #b8070f;
}

/* Main Content */
.main {
    padding: 3rem 0;
}

.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header i {
    color: #e50914;
}

.section-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-view {
    padding: 0.5rem;
    background: #333;
    border: none;
    color: #ccc;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-view.active,
.btn-view:hover {
    background: #e50914;
    color: #fff;
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.movie-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.movie-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.movie-year,
.movie-quality {
    background: rgba(0,0,0,0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

.movie-year {
    color: #ffd700;
}

.movie-quality {
    color: #00ff00;
}

.movie-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-play {
    width: 50px;
    height: 50px;
    background: #e50914;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.btn-play:hover {
    background: #b8070f;
    transform: scale(1.1);
}

.btn-favorite {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-favorite:hover,
.btn-favorite.active {
    background: #e50914;
    color: #fff;
}

.movie-details {
    padding: 1rem;
}

.movie-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.movie-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.movie-title a:hover {
    color: #e50914;
}

.movie-origin {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.movie-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.movie-type,
.movie-episode {
    background: #333;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    color: #ccc;
}

.movie-type {
    background: #e50914;
    color: #fff;
}

/* Movies List View */
.movies-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.movies-list .movie-card {
    display: flex;
    flex-direction: row;
    height: 150px;
}

.movies-list .movie-poster {
    width: 100px;
    aspect-ratio: 2/3;
    flex-shrink: 0;
}

.movies-list .movie-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.75rem 1.5rem;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn:hover {
    background: #e50914;
}

.page-info {
    color: #ccc;
    font-weight: 500;
}

/* Movie Detail Page */
.movie-detail {
    margin-bottom: 3rem;
}

.movie-info {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.movie-poster-large img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.movie-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.movie-badge .quality,
.movie-badge .year {
    padding: 0.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
}

.movie-badge .quality {
    background: #00ff00;
    color: #000;
}

.movie-badge .year {
    background: #ffd700;
    color: #000;
}

.movie-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.movie-origin {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 1.5rem;
}

.movie-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
}

.meta-item i {
    color: #e50914;
    width: 20px;
}

.movie-description,
.movie-cast,
.movie-director {
    margin-bottom: 1.5rem;
}

.movie-description h3,
.movie-cast h3,
.movie-director h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.movie-description p,
.movie-cast p,
.movie-director p {
    color: #ccc;
    line-height: 1.6;
}

.movie-categories,
.movie-countries {
    margin-bottom: 1.5rem;
}

.movie-categories h3,
.movie-countries h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.category-tags,
.country-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag,
.country-tag {
    background: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.category-tag:hover,
.country-tag:hover {
    background: #e50914;
}

/* Video Section */
.video-section {
    margin-bottom: 3rem;
}

.video-player {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #e50914;
}

.video-info {
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 0 0 10px 10px;
}

.video-info h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.video-info p {
    color: #999;
    font-size: 0.9rem;
}

.fullscreen-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    border: none;
    color: #fff;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.fullscreen-btn:hover {
    background: rgba(0,0,0,0.9);
}

/* Episode List */
.episode-list {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1.5rem;
}

.episode-list h3 {
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.server-group {
    margin-bottom: 2rem;
}

.server-group:last-child {
    margin-bottom: 0;
}

.server-group h4 {
    color: #e50914;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.episode-item {
    background: #333;
    color: #fff;
    padding: 0.75rem;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.episode-item:hover,
.episode-item.active {
    background: #e50914;
    transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 2rem;
}

.comments-header {
    margin-bottom: 2rem;
}

.comments-header h3 {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s;
}

.comment-form textarea:focus {
    border-color: #e50914;
}

.comment-form textarea::placeholder {
    color: #999;
}

.comment-login {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.comment-login a {
    color: #e50914;
    text-decoration: none;
}

.comment-login a:hover {
    text-decoration: underline;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
    transition: background 0.3s;
}

.comment-item:hover {
    background: #333;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-header h4 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
}

.comment-time {
    color: #999;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-content p {
    color: #ccc;
    line-height: 1.5;
    margin: 0;
}

.no-comments {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.no-comments i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #e50914;
}

/* Auth Pages */
.auth-body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-box {
    background: rgba(26, 26, 26, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-header h1 i {
    color: #e50914;
}

.auth-header p {
    color: #999;
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: #333;
    border-radius: 8px;
    padding: 0.25rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.tab-btn.active {
    background: #e50914;
    color: #fff;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 1;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #e50914;
}

.form-group input::placeholder {
    color: #999;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.back-home {
    color: #e50914;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.back-home:hover {
    color: #b8070f;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* Categories Page */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
    border: 1px solid #333;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: #e50914;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e50914, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.category-card p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    color: #999;
}

.breadcrumb a {
    color: #e50914;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #b8070f;
}

.breadcrumb i {
    font-size: 0.8rem;
}

.breadcrumb span {
    color: #fff;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #333;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid #333;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #333;
}

/* Search Placeholder */
.search-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.search-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #e50914;
}

.search-placeholder h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #e50914;
}

.no-results h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #999;
    margin-bottom: 1rem;
}

.search-suggestions {
    margin-top: 1rem;
    text-align: left;
}

.search-suggestions h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    color: #ccc;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #0a0a0a;
    border-top: 1px solid #333;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h3 i {
    color: #e50914;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #999;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #e50914;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #e50914;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #b8070f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #1a1a1a;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10000;
    min-width: 300px;
    border-left: 4px solid #e50914;
    animation: slideIn 0.3s ease-out;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-info {
    border-left-color: #17a2b8;
}

.notification .close-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
    transition: color 0.3s;
}

.notification .close-btn:hover {
    color: #fff;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #333;
    border-radius: 50%;
    border-top-color: #e50914;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Lazy Loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .search-box {
        order: -1;
        max-width: 100%;
        margin: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-search form {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .hero-search button {
        border-radius: 0 0 8px 8px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .movie-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .movie-poster-large {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .movie-meta {
        grid-template-columns: 1fr;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .notification {
        right: 1rem;
        left: 1rem;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .movie-card {
        font-size: 0.9rem;
    }
    
    .movie-title {
        font-size: 0.9rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-box {
        padding: 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero,
    .search-box,
    .user-menu,
    .btn,
    .movie-actions,
    .comment-form,
    .back-to-top,
    .notification {
        display: none !important;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .movie-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .movie-poster img {
        filter: grayscale(100%);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .movie-card {
        border: 2px solid #fff;
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #fff;
    }
    
    .nav a {
        border-bottom: 2px solid transparent;
    }
    
    .nav a:hover,
    .nav a.active {
        border-bottom-color: #e50914;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .movie-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Year Header */
.year-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #333;
}

.year-info h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.year-info h1 i {
    color: #e50914;
}

.year-info p {
    color: #ccc;
    font-size: 1.1rem;
}

.year-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #e50914;
    line-height: 1;
}

.stat-label {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Related Years */
.related-years {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.related-year-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #333;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #555;
}

.related-year-item:hover {
    background: #e50914;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}

.related-year-item i {
    color: #e50914;
    transition: color 0.3s;
}

.related-year-item:hover i {
    color: #fff;
}

/* Country Page Styles */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.country-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.country-card:hover::before {
    left: 100%;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: #e50914;
}

.country-flag {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #e50914, #ff6b6b);
    border-radius: 5px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.country-flag::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40"><rect width="60" height="40" fill="%23e50914"/><circle cx="30" cy="20" r="8" fill="%23fff"/></svg>');
    opacity: 0.3;
}

.country-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.country-card p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Profile Page Styles */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid #333;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid #e50914;
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.3);
}

.profile-name {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-username {
    color: #e50914;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.profile-stat {
    text-align: center;
}

.profile-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #e50914;
}

.profile-stat-label {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Favorites Page */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.favorite-item {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.favorite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.favorite-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 53, 69, 0.8);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    z-index: 10;
}

.favorite-remove:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Contact Page */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #333;
}

.contact-form h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #e50914;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #333;
}

.about-content h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-content h3 {
    color: #e50914;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.3rem;
}

.about-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-content ul {
    color: #ccc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.about-content li {
    margin-bottom: 0.5rem;
}

/* Privacy Page */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #333;
}

.privacy-content h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.privacy-content h3 {
    color: #e50914;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.3rem;
}

.privacy-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Error Pages */
.error-container {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    color: #e50914;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.error-message {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.error-description {
    color: #999;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-radius: 50%;
    border-top-color: #e50914;
    animation: spin 1s ease-in-out infinite;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border-width: 6px;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #333;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    border: 1px solid #333;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1a1a1a transparent transparent transparent;
    border-color: #1a1a1a transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 50px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
}

.dark-mode-toggle:hover {
    background: #333;
    transform: scale(1.05);
}

.dark-mode-toggle i {
    color: #fff;
    font-size: 1.2rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Selection */
::selection {
    background: #e50914;
    color: #fff;
}

::-moz-selection {
    background: #e50914;
    color: #fff;
}

/* Focus Styles */
*:focus {
    outline: 2px solid #e50914;
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #e50914;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Additional Responsive Styles */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 640px) {
    .year-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .year-stats {
        justify-content: center;
    }
    
    .related-years {
        justify-content: center;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Print Optimizations */
@media print {
    .year-header,
    .related-years,
    .profile-stats,
    .contact-form,
    .about-content,
    .privacy-content {
        break-inside: avoid;
    }
    
    .movie-card,
    .category-card,
    .country-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .movie-poster img,
    .profile-avatar,
    .user-avatar {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        height: 40vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .header {
        padding: 0.5rem 0;
    }
}

/* Portrait Orientation */
@media (orientation: portrait) and (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .movie-card:hover,
    .category-card:hover,
    .country-card:hover {
        transform: none;
    }
    
    .btn:hover,
    .btn-play:hover,
    .btn-favorite:hover {
        transform: none;
    }
    
    .movie-overlay {
        opacity: 1;
    }
    
    .dropdown-menu {
        /* opacity: 1; */
        visibility: visible;
        transform: translateY(0);
    }
}

/* Reduced Data Mode */
@media (prefers-reduced-data: reduce) {
    .hero::before {
        display: none;
    }
    
    .country-flag::after {
        display: none;
    }
    
    .movie-poster img {
        filter: grayscale(50%);
    }
}

/* Custom Properties for Theme */
:root {
    --primary-color: #e50914;
    --primary-hover: #b8070f;
    --secondary-color: #333;
    --background-color: #0a0a0a;
    --surface-color: #1a1a1a;
    --text-primary: #fff;
    --text-secondary: #ccc;
    --text-muted: #999;
    --border-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #e50914, #ff6b6b);
    --gradient-background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
}

/* Light Theme (if implemented) */
[data-theme="light"] {
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Animation Performance */
.movie-card,
.category-card,
.country-card,
.btn,
.btn-play,
.btn-favorite {
    will-change: transform;
}

/* GPU Acceleration */
.movie-poster img,
.hero::before,
.country-card::before {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Final Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* Profile Page Additional Styles */
.profile-content {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #333;
}

.profile-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: #333;
    border-radius: 8px;
    padding: 0.25rem;
}

.profile-tabs .tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.profile-tabs .tab-btn.active {
    background: #e50914;
    color: #fff;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.info-section,
.activity-section,
.settings-section {
    margin-bottom: 2rem;
}

.info-section h3,
.activity-section h3,
.settings-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #333;
}

.info-item label {
    color: #999;
    font-weight: 500;
}

.info-item span {
    color: #fff;
    font-weight: 600;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #333;
    transition: background 0.3s;
}

.activity-item:hover {
    background: #333;
}

.activity-item i {
    width: 40px;
    height: 40px;
    background: #e50914;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    color: #fff;
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.activity-time {
    color: #999;
    font-size: 0.9rem;
}

.settings-form {
    max-width: 500px;
}

.settings-form .form-group {
    margin-bottom: 1.5rem;
}

.settings-form label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.settings-form input {
    width: 100%;
    padding: 0.75rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.settings-form input:focus {
    border-color: #e50914;
}

.settings-form input::placeholder {
    color: #999;
}

/* Favorites Page Additional Styles */
.favorites-info {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #333;
    text-align: center;
}

.favorites-info p {
    color: #ccc;
    margin: 0;
    font-size: 1.1rem;
}

.favorites-info strong {
    color: #e50914;
    font-weight: 600;
}

.favorite-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: #999;
    font-size: 0.8rem;
}

.favorite-date i {
    color: #e50914;
}

.favorite-item .btn-favorite {
    background: #e50914 !important;
    color: #fff !important;
}

.favorite-item .btn-favorite:hover {
    background: #b8070f !important;
}

/* Countries and Years Page Styles */
.countries-grid,
.years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.country-card,
.year-card {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.country-card:hover,
.year-card:hover {
    transform: translateY(-5px);
    border-color: #e50914;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.country-flag,
.year-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e50914, #b8070f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #fff;
}

.country-card h3,
.year-card h3 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.country-card p,
.year-card p {
    color: #999;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive for Countries and Years */
@media (max-width: 768px) {
    .countries-grid,
    .years-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .country-card,
    .year-card {
        padding: 1.5rem;
    }
    
    .country-flag,
    .year-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .country-card h3,
    .year-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .countries-grid,
    .years-grid {
        grid-template-columns: 1fr;
    }
}

/* Error Pages */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-content {
    max-width: 500px;
    padding: 2rem;
}

.error-icon {
    font-size: 4rem;
    color: #e50914;
    margin-bottom: 1rem;
}

.error-content h1 {
    font-size: 6rem;
    color: #e50914;
    margin: 0;
    font-weight: 700;
    line-height: 1;
}

.error-content h2 {
    color: #fff;
    margin: 1rem 0;
    font-size: 2rem;
    font-weight: 600;
}

.error-content p {
    color: #999;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    min-width: 150px;
}

@media (max-width: 768px) {
    .error-content h1 {
        font-size: 4rem;
    }
    
    .error-content h2 {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* End of CSS */