@media (max-width: 1340px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 1200px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-buttons {
      display: none;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-card {
        width: 180px;
        height: 270px;
    }

    .featured-card {
        width: 250px;
        height: 375px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 100%;
    }

    .hero-background {
        background-position: center center;
    }
    
    .content-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .content-poster-large {
        width: 300px;
        height: 450px;
        margin: 0 auto;
    }

    .content-description {
        text-align: left;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-item span {
        font-size: 1em;
    }
    
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 836px) {
    .mf-skill-row input {
        font-size: 12px;
        padding: 8px;
    }

    .mf-skill-row button {
        font-size: 12px;
        
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.8rem 0;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu {
        order: 2;
        display: flex;
        gap: 1rem;
    }
    
    .nav-actions {
        order: 3;
        display: flex;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        margin-top: -1rem;
    }

    .nav-actions .search-input {
      width: 88%;
    }
    
    .content-main {
        padding-top: 80px;
    }

    .content-hero {
        padding: 5rem 0 2rem;
    }
    
    .content-title {
        font-size: 2.2rem;
    }
    
    .rating-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .episode-list {
        display: grid;
        column-gap: 16px;
        grid-template-columns: repeat(2, 1fr);
    }

    .episode-item {
        flex-direction: column;
        text-align: center;
    }
    
    .episode-number {
        align-self: left;
    }

    .episode-item .episode-info h3 {
        font-size: 16px;
        text-align: left;
    }

    .episode-item .episode-info p {
        font-size: 12px;
        text-align: left;
    }

    .episode-info {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .episode-item .episode-info .review-actions {
        margin-top: auto;
    }

    .episode-item .episode-info .review-actions button {
        width: 100%;
    }
    
    .rating-large {
        font-size: 3rem;
    }
    
    .reviewer-info {
        flex-direction: column;
    }
}

@media (max-width: 751px) {
    #mf-tag-add, #mf-skill-add, #mf-social-add, #mf-project-add {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 60px;
        white-space: nowrap;
    }

    #mf-skills {
        overflow-x: auto;
        overflow-y: visible;
        width: 100%;
    }

    #mf-socials {
        overflow-x: auto;
        overflow-y: visible;
        width: 100%;
    }

    #mf-projects {
        overflow-x: auto;
        overflow-y: visible;
        width: 100%;
    }

    .mf-skill-row {
        gap: 8px;
        width: 100%;
        overflow: visible;
    }

    .mf-skill-row input {
        font-size: 12px;
        padding: 8px;
        min-width: 0;
        overflow: hidden;
    }

    .mf-skill-row button {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 60px;
        white-space: nowrap;
    }

    .mf-social-row {
        gap: 8px;
        width: 100%;
        overflow: visible;
    }

    .mf-social-row input {
        font-size: 12px;
        padding: 8px;
        min-width: 0;
        overflow: hidden;
    }

    .mf-social-row button {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 60px;
        white-space: nowrap;
    }

    .mf-project-row {
        gap: 8px;
        width: 100%;
        overflow: visible;
    }

    .mf-project-row input {
        font-size: 12px;
        padding: 8px;
        min-width: 0;
        overflow: hidden;
    }

    .mf-project-row button {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 60px;
        white-space: nowrap;
    }

    #mf-cancel, #mf-save {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 60px;
        white-space: nowrap;
    }
}

@media (max-width: 702px) {
    .nav-actions .search-input {
      width: 86%;
    }
}

@media (max-width: 619px) {
    .content-main {
        padding-top: 64px;
    }

    .nav-actions {
        order: 3;
        display: flex;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        margin-top: -1rem;
    }

    .nav-link {
        font-size: 16px;
    }

    .nav-actions .search-input {
      width: 84%;
    }

    .categories, .content-sections {
        padding: 16px 0px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .category-grid {
        gap: 16px;
    }

    .poster-overlay h3 {
        font-size: 0.8rem;
        margin: 0 0 0em;
    }

    .content-poster .poster-overlay .content-info {
        display: none;
        transition: 0.3s;
    }
    .content-poster:hover .poster-overlay .content-info {
        display: flex;
    }

    .content-card div h3, div {
        font-size: 0.8rem;
    }

    .content-grid {
        padding: 16px 0px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .content-card {
        width: 140px;
        height: 210px;
    }

    .profile-image-container {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .profile-image-container > div {
        flex: none !important;
        width: 100% !important;
    }

    #profile-drop {
        width: 100% !important;
        height: 100px !important;
    }

    .profile-banner-container {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .profile-banner-container > div {
        flex: none !important;
        width: 100% !important;
    }

    #banner-drop {
        width: 100% !important;
        height: 100px !important;
    }

    #profile-preview, #banner-preview {
        max-width: 100% !important;
        max-height: 100px !important;
    }

    .mf-proj-content {
        font-size: 12px;
    }
}

@media (max-width: 535px) {
    .nav-actions .search-input {
      width: 82%;
    }

    .mf-skill-row {
        grid-template-columns: 100px 120px 80px 50px;
        min-width: 370px;
    }
}

@media (max-width: 515px) {
    #mf-tags {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #mf-tags input {
        min-width: 80px !important;
    }
}

@media (max-width: 480px) {
    .content-poster-large {
        width: 200px;
        height: 300px;
    }
    
    .content-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .sidebar-section,
    .review-item {
        padding: 1rem;
    }
    
    .reviews-header {
        padding: 1.5rem;
    }
    
    .rating-large {
        font-size: 2.5rem;
    }
}

@media (max-width: 468px) {
    .nav-actions .search-input {
      width: 80%;
    }

    #profile-drop {
        width: 100% !important;
        height: 100px !important;
        font-size: 12px;
    }

    #banner-drop {
        width: 100% !important;
        height: 100px !important;
        font-size: 12px;
    }
}

@media (max-width: 423px) {
    .nav-actions .search-input {
      width: 78%;
    }

    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .character-card h3 {
        font-size: 16px;
    }

    .character-card p .tag {
        font-size: 10px;
    }

    .character-card .character-voice {
        font-size: 12px;
    }

    .action-buttons button {
        font-size: 1em;
    }

    .mf-skill-row {
        grid-template-columns: 90px 100px 70px 45px;
        min-width: 325px;
    }

    .mf-skill-row input {
        font-size: 11px;
        padding: 6px;
    }

    .mf-skill-row button {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 387px) {
    .nav-actions .search-input {
      width: 76%;
    }

    .episode-item .episode-number {
        width: 100%;
    }

    .episode-item .episode-info h3 {
        font-size: 16px;
        text-align: left;
    }

    .episode-item .episode-info p {
        font-size: 12px;
        text-align: left;
    }

    .episode-info {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .episode-item .episode-info .review-actions {
        margin-top: auto;
    }

    .episode-item .episode-info .review-actions button {
        width: 100%;
    }
}

@media (max-width: 355px) {
    .nav-actions .search-input {
      width: 74%;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .mf-skill-row {
        grid-template-columns: 80px 90px 60px 40px;
        min-width: 300px;
    }
}

@media (max-width: 330px) {
    .nav-actions .search-input {
      width: 72%;
    }
}