body {
    background: #181818;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #232323;
    color: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border-right: 1px solid #333;
}

.sidebar-header {
    padding: 1.5rem 1rem 1rem 1rem;
    border-bottom: 1px solid #333;
    text-align: center;
}

.week-menu {
    flex: 1;
    padding: 1rem 0.5rem;
}

.week-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.week-menu .month-title {
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.week-btn {
    width: 100%;
    background: #232323;
    color: #fff;
    border: none;
    padding: 0.6rem 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
    font-size: 1rem;
}
.week-btn:hover, .week-btn.active {
    background: #ffd700;
    color: #232323;
}

.ads-placeholder {
    margin-top: 2rem;
    text-align: center;
    color: #aaa;
    font-size: 0.95rem;
}

.main-content {
    flex: 1;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-header {
    width: 100%;
    margin: 2rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.language-filters, .platform-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.7rem;
}

.lang-btn, .platform-btn {
    background: #232323;
    color: #fff;
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.98rem;
    transition: background 0.2s, color 0.2s;
}
.lang-btn.active, .platform-btn.active,
.lang-btn:hover, .platform-btn:hover {
    background: #ffd700;
    color: #232323;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 2rem auto;
    justify-items: center;
}

.movie-card {
    background: transparent;
    perspective: 1000px;
    height: 370px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    width: 100%;
    max-width: 320px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.movie-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(.4,2,.6,1);
    transform-style: preserve-3d;
}
.movie-card:hover .movie-card-inner,
.movie-card:focus-within .movie-card-inner {
    transform: rotateY(180deg);
}
.movie-card-front, .movie-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.movie-card-front {
    background: #232323;
    z-index: 2;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0 0 0;
}
.movie-card-back {
    background: #181818;
    transform: rotateY(180deg);
    padding: 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.movie-poster {
    width: 90%;
    height: 200px;
    object-fit: cover;
    background: #333;
    border-radius: 8px;
    margin: 0 auto 1rem auto;
}
.movie-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}
.movie-meta {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    text-align: center;
}
.movie-cast {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}
.movie-desc {
    font-size: 0.95rem;
    color: #bbb;
    margin-bottom: 0.5rem;
    flex: 1;
}
.movie-links {
    margin-top: 0.5rem;
    text-align: center;
}
.movie-links a {
    color: #ffd700;
    text-decoration: none;
    margin-right: 1rem;
}
.movie-links a:hover {
    text-decoration: underline;
}
.no-movies-message {
    color: #aaa;
    font-size: 1.2rem;
    text-align: center;
    margin: 2rem 0;
}

.right-ads {
    width: 120px;
    background: #232323;
    min-height: 100vh;
    border-left: 1px solid #333;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
}

.ads-vertical-placeholder {
    width: 100px;
    height: 600px;
    background: #333;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.95rem;
}

@media (max-width: 1200px) {
    .movie-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar { width: 180px; }
    .right-ads { width: 80px; }
}
@media (max-width: 900px) {
    .movie-grid { grid-template-columns: 1fr; }
    .sidebar, .right-ads { display: none; }
    .main-content { padding: 0 0.5rem; }
}