/* Doraemon Movies Page Styles */
.doraemon-page {
    padding-top: 90px;
    min-height: 100vh;
    background-color: #f5f5f5;
    width: 100%;
    overflow-x: hidden;
}

.page-header {
    background: linear-gradient(135deg, #ffd500 0%, #ffc400 100%);
    padding: 30px 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-header h1 {
    color: #1a1a1a;
    font-family: 'MyFont5', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 15px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    word-wrap: break-word;
}

.breadcrumb {
    color: #1a1a1a;
    font-family: 'MyFont3', sans-serif;
}

.breadcrumb a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.content-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
    box-sizing: border-box;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    min-width: 0; /* Prevent grid blowout */
}

.intro-section {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.intro-text {
    padding-right: 20px;
    min-width: 0; /* Prevent text overflow */
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.intro-text .highlight {
    background: rgba(255, 213, 0, 0.1);
    border-left: 4px solid #ffd500;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
    color: #1a1a1a;
    font-family: 'MyFont2', sans-serif;
    font-size: 1.15rem;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.movies-grid h2 {
    grid-column: 1 / -1;
    font-family: 'MyFont2', sans-serif;
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffd500;
}

.movie-card {
    min-width: 0; /* Prevent card blowout */
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.movie-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.movie-info {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.movie-info h3 {
    font-family: 'MyFont2', sans-serif;
    color: #1a1a1a;
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.movie-metadata {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-family: 'MyFont3', sans-serif;
    color: #666;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.movie-metadata span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.movie-metadata i {
    color: #ffd500;
}

.quality-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.quality-tag {
    background: #f8f8f8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #1a1a1a;
    font-family: 'MyFont2', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.quality-tag:hover {
    background: #ffd500;
    transform: translateY(-2px);
}

.quality-tag i {
    font-size: 0.8rem;
}

.download-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #f0dc00;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'MyFont2', sans-serif;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #f0dc00;
    color: #1a1a1a;
}

.movies-numbered-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0;
    width: 100%;
}

.movies-numbered-list li {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-family: 'MyFont3', sans-serif;
    position: relative;
    padding-left: 40px;
    transition: all 0.3s ease;
    margin: 0;
}

.movies-numbered-list li:last-child {
    border-bottom: none;
}

.movies-numbered-list li::before {
    counter-increment: movie-counter;
    content: counter(movie-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #ffd500;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MyFont2', sans-serif;
    font-size: 0.9rem;
}

.movies-numbered-list li:hover {
    background: rgba(255, 213, 0, 0.05);
    padding-left: 45px;
}

.movies-numbered-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.movies-numbered-list a:hover {
    color: #ffd500;
}

/* Sidebar Styles */
.sidebar {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.sidebar > div {
    margin-bottom: 30px;
}

.sidebar > div:last-child {
    margin-bottom: 0;
}

.sidebar h3 {
    font-family: 'MyFont2', sans-serif;
    color: #1a1a1a;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd500;
}

/* Quick Navigation */
.quick-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-nav li {
    margin-bottom: 12px;
}

.quick-nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'MyFont3', sans-serif;
    display: block;
    padding: 10px 15px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.quick-nav a:hover {
    background: #ffd500;
    transform: translateX(5px);
}

/* Popular Movies */
.popular-movie-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-movie-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-movie-item:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.popular-movie-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.popular-movie-info {
    flex: 1;
}

.popular-movie-info h4 {
    color: #1a1a1a;
    font-family: 'MyFont2', sans-serif;
    font-size: 0.95rem;
    margin: 0 0 5px 0;
}

.popular-movie-info .year {
    color: #666;
    font-size: 0.85rem;
    font-family: 'MyFont3', sans-serif;
}

/* Download Help */
.help-content {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
}

.help-content p {
    color: #1a1a1a;
    font-family: 'MyFont3', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.help-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-content li {
    color: #666;
    font-family: 'MyFont3', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.help-content li:before {
    content: '•';
    color: #ffd500;
    position: absolute;
    left: 0;
    top: 0;
}

.help-content a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.help-content a:hover {
    color: #ffd500;
}

/* Filter Section */
.filter-section {
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-options select {
    padding: 10px 35px 10px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-family: 'MyFont3', sans-serif;
    font-size: 0.95rem;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    min-width: 160px;
    transition: all 0.3s ease;
}

.filter-options select:hover {
    border-color: #ffd500;
}

.filter-options select:focus {
    border-color: #ffd500;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.1);
}

/* List Controls Styles */
.list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-family: 'MyFont2', sans-serif;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-btn i {
    font-size: 0.8rem;
}

.view-btn.active {
    background: #ffd500;
    color: #1a1a1a;
}

.view-btn:not(.active):hover {
    background: #f8f8f8;
    color: #1a1a1a;
}

.sort-options select {
    padding: 8px 35px 8px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 6px;
    font-family: 'MyFont3', sans-serif;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
}

.sort-options select:focus {
    border-color: #ffd500;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 213, 0, 0.1);
}

/* Grid View Styles */
.movies-numbered-list.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.movies-numbered-list.view-grid li {
    white-space: normal;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 0;
    height: 100%;
}

.movies-numbered-list.view-grid li::before {
    top: 15px;
    transform: none;
}

/* List View Styles */
.movies-numbered-list.view-list {
    display: flex;
    flex-direction: column;
}

/* Latest Movies Section */
.latest-movies {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.latest-movies h2 {
    font-family: 'MyFont2', sans-serif;
    color: #1a1a1a;
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffd500;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Featured Movie Card */
.movie-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 40px;
    padding: 0;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.movie-card.featured img {
    width: 450px;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    border-radius: 15px 0 0 15px;
}

.movie-card.featured .movie-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movie-card.featured h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Complete List Section */
.complete-list {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    width: 100%;
    box-sizing: border-box;
}

.complete-list h2 {
    font-family: 'MyFont2', sans-serif;
    color: #1a1a1a;
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffd500;
}

.movies-numbered-list {
    list-style: none;
    counter-reset: movie-counter;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
    width: 100%;
}

.movies-numbered-list li {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px 15px 15px 50px;
    position: relative;
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.movies-numbered-list li::before {
    counter-increment: movie-counter;
    content: counter(movie-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #ffd500;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MyFont2', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
}

.movies-numbered-list li:hover {
    background: rgba(255, 213, 0, 0.05);
    transform: translateX(5px);
}

.movies-numbered-list a {
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    color: #1a1a1a;
}

.movie-title {
    font-family: 'MyFont3', sans-serif;
    font-size: 1rem;
    flex: 1;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'MyFont3', sans-serif;
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
}

.movie-meta .year {
    color: #1a1a1a;
    font-weight: bold;
}

.movie-meta .quality {
    color: #666;
}

@media (max-width: 768px) {
    .movies-numbered-list a {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .movie-meta {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .movies-numbered-list li {
        padding: 12px 12px 12px 45px;
    }

    .movies-numbered-list li::before {
        left: 12px;
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }

    .movie-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Enhanced Responsive Design */
@media (min-width: 1600px) {
    .content-wrapper {
        max-width: 1600px;
    }

    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1400px) {
    .intro-section {
        grid-template-columns: 350px 1fr;
        gap: 30px;
        padding: 30px;
    }

    .featured-image {
        height: 400px;
    }

    .movie-card.featured {
        grid-template-columns: 400px 1fr;
    }
}

@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        padding: 0 15px;
    }

    .intro-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .featured-image {
        height: 350px;
    }

    .movie-card.featured {
        grid-template-columns: 1fr;
    }

    .movie-card.featured img {
        width: 100%;
        min-height: 350px;
        border-radius: 15px 15px 0 0;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 20px 15px;
    }

    .content-wrapper {
        padding: 0 10px;
    }

    .intro-section,
    .latest-movies,
    .complete-list {
        padding: 20px 15px;
    }

    .movie-card img {
        height: 250px;
    }

    .movies-grid {
        grid-template-columns: 1fr;
    }

    .movies-numbered-list {
        grid-template-columns: 1fr;
    }

    .movie-metadata {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 0 8px;
    }

    .intro-section,
    .latest-movies,
    .complete-list {
        padding: 15px;
    }

    .featured-image {
        height: 200px;
    }

    .movie-card.featured .movie-info {
        padding: 15px;
    }

    .movie-card.featured h3 {
        font-size: 1.3rem;
    }

    .movie-info {
        padding: 15px;
    }

    .quality-tags {
        justify-content: flex-start;
    }
} 