/* ============================================================
   rayb.shop
   File: assets/css/responsive.css
   Purpose: Responsive layout rules
   ============================================================ */

/* ============================================================
   Global mobile safety
   ============================================================ */

@media (max-width: 820px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        position: relative;
    }

    .site-shell,
    .site-main,
    .site-header,
    .section,
    .container {
        max-width: 100%;
    }

    .container {
        min-width: 0;
    }

    h1,
    h2,
    h3,
    p,
    a,
    span,
    strong,
    small,
    li {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .hero-grid,
    .page-hero-grid,
    .script-single-grid,
    .blog-single-grid,
    .featured-post-card,
    .article-layout,
    .scripts-grid,
    .blog-grid,
    .videos-grid,
    .gallery-grid,
    .details-grid,
    .feature-cards,
    .cards-grid {
        min-width: 0;
    }

    .hero-content,
    .page-hero-content,
    .script-single-content,
    .blog-single-content,
    .featured-post-content,
    .article-card,
    .sidebar-card,
    .video-card,
    .cta-card,
    .not-found-card {
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 1060px) {
    :root {
        --header-height: 76px;
    }

    .hero-grid,
    .split-grid,
    .video-card {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 66px;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-placeholder {
        min-height: 360px;
    }

    .cards-grid,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .site-header {
        height: auto;
        min-height: var(--header-height);
    }

    .header-inner {
        position: relative;
        min-height: var(--header-height);
        width: 100%;
        min-width: 0;
        gap: 12px;
    }

    .brand {
        min-width: 0;
        max-width: calc(100% - 62px);
        flex: 1 1 auto;
        overflow: hidden;
    }

    .brand-text {
        min-width: 0;
        overflow: hidden;
    }

    .brand-text strong,
    .brand-text small {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: grid;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        padding: 14px;
        border-radius: 22px;
        background: rgba(8, 8, 18, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
        backdrop-filter: blur(18px);
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition:
            opacity 180ms ease,
            transform 180ms ease;
    }

    .main-nav.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .main-nav a {
        width: 100%;
        max-width: 100%;
        border-radius: 16px;
        padding: 13px 14px;
        background: rgba(255, 255, 255, 0.045);
        text-align: center;
    }

    .main-nav .nav-cta {
        text-align: center;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content .eyebrow,
    .hero-actions {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 430px;
        margin-inline: auto;
        text-align: center;
    }

    .floating-badge {
        display: none;
    }

    .cards-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .split-content {
        padding: 26px;
    }

    .tall-placeholder {
        min-height: 330px;
    }

    .video-card {
        padding: 20px;
    }

    .video-preview {
        min-height: 230px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        display: grid;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 24px);
        max-width: var(--container);
        margin-inline: auto;
    }

    .section {
        padding: 58px 0;
    }

    .hero {
        padding-top: 44px;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(1.82rem, 10.5vw, 2.75rem);
        line-height: 1.16;
        letter-spacing: -0.4px;
    }

    h2 {
        max-width: 100%;
        font-size: clamp(1.45rem, 7vw, 2.15rem);
        line-height: 1.22;
    }

    h3 {
        font-size: 1.18rem;
    }

    .brand {
        gap: 9px;
        max-width: calc(100% - 58px);
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 1.35rem;
        flex: 0 0 auto;
    }

    .brand-text strong {
        font-size: 0.95rem;
    }

    .brand-text small {
        font-size: 0.69rem;
    }

    .hero-content p,
    .page-hero-content p,
    .script-single-content p,
    .blog-single-content p,
    .featured-post-content p,
    .section-head p,
    .cta-card p,
    .not-found-card p {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.85;
    }

    .eyebrow {
        max-width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        min-height: 50px;
        padding-inline: 16px;
        text-align: center;
        white-space: normal;
    }

    .hero-actions {
        width: 100%;
        max-width: 100%;
    }

    .hero-placeholder {
        min-height: 280px;
    }

    .visual-card {
        padding: 10px;
        border-radius: 24px;
        max-width: 100%;
    }

    .image-placeholder {
        min-height: 190px;
        padding: 22px;
    }

    .card-body,
    .blog-content {
        padding: 18px;
    }

    .card-actions {
        display: grid;
        gap: 10px;
    }

    .card-actions a {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 11px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.06);
        text-align: center;
    }

    .split-content {
        padding: 22px;
    }

    .feature-list div {
        padding: 14px;
    }

    .play-circle {
        width: 62px;
        height: 62px;
        font-size: 1.35rem;
    }

    .cta-card,
    .not-found-card {
        padding: 38px 18px;
    }
}

@media (max-width: 380px) {
    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 0.9rem;
    }

    .eyebrow {
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    h1 {
        font-size: clamp(1.65rem, 10vw, 2.35rem);
    }

    .hero-placeholder {
        min-height: 240px;
    }
}

/* ============================================================
   Scripts page responsive
   ============================================================ */

@media (max-width: 1060px) {
    .page-hero-grid {
        grid-template-columns: 1fr;
    }

    .scripts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .page-hero {
        padding-top: 58px;
    }

    .page-hero-content {
        text-align: center;
    }

    .page-hero-content .eyebrow,
    .page-hero-content .hero-actions {
        margin-inline: auto;
    }

    .page-hero-content .hero-actions {
        justify-content: center;
    }

    .scripts-toolbar {
        display: grid;
        text-align: center;
    }

    .toolbar-discord {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .scripts-grid {
        grid-template-columns: 1fr;
    }

    .page-hero-visual .image-placeholder {
        min-height: 250px;
    }
}

/* ============================================================
   Single script page responsive
   ============================================================ */

@media (max-width: 1060px) {
    .script-single-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .script-single-hero {
        padding-top: 68px;
        padding-bottom: 48px;
    }

    .script-single-visual .visual-card {
        transform: none;
    }

    .script-video-section .video-card {
        grid-template-columns: 1fr;
        gap: 22px;
        max-width: 860px;
    }

    .script-video-section .video-copy {
        text-align: center;
    }

    .script-video-section .video-copy .eyebrow,
    .script-video-section .compact-meta {
        margin-inline: auto;
    }

    .script-video-section .video-copy p {
        margin-inline: auto;
    }

    .script-video-section .compact-meta {
        justify-content: center;
    }

    .script-video-section .video-preview {
        max-width: 760px;
        width: 100%;
        margin-inline: auto;
    }

    .feature-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .script-single-content {
        text-align: center;
    }

    .script-single-content .eyebrow,
    .script-single-content .hero-actions,
    .single-meta,
    .single-tags {
        margin-inline: auto;
    }

    .script-single-content .hero-actions {
        justify-content: center;
    }

    .single-meta {
        justify-content: center;
    }

    .single-tags {
        justify-content: center;
    }

    .script-video-section {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .script-video-section .video-card {
        padding: 18px;
        border-radius: 24px;
    }

    .script-video-section .video-copy h2 {
        font-size: clamp(1.55rem, 7vw, 2.25rem);
    }

    .script-video-section .video-preview {
        padding: 10px;
        border-radius: 22px;
    }

    .script-video-section .video-preview .media-frame {
        border-radius: 18px;
    }

    .script-video-section .video-preview > .play-circle {
        width: 64px;
        height: 64px;
        font-size: 1.32rem;
    }

    .script-video-section .video-preview > span {
        right: 18px;
        bottom: 18px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
        text-align: center;
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card .image-placeholder {
        min-height: 220px;
    }

    .details-card {
        padding: 22px;
    }

    .details-card .eyebrow {
        margin-inline: auto;
    }

    .details-card h2 {
        text-align: center;
    }

    .faq-item {
        padding: 20px;
    }
}

@media (max-width: 560px) {
    .script-single-hero {
        padding-top: 46px;
        padding-bottom: 36px;
    }

    .script-single-content p {
        font-size: 1rem;
    }

    .single-meta {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .single-meta span {
        justify-content: center;
        width: 100%;
    }

    .script-video-section {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .script-video-section .video-card {
        padding: 12px;
        gap: 18px;
        border-radius: 22px;
    }

    .script-video-section .video-copy {
        padding: 4px 4px 0;
    }

    .script-video-section .video-copy h2 {
        font-size: clamp(1.4rem, 7.4vw, 2rem);
    }

    .script-video-section .video-copy p {
        font-size: 0.98rem;
    }

    .script-video-section .compact-meta {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        margin-top: 12px;
    }

    .script-video-section .compact-meta small {
        justify-content: center;
        width: 100%;
    }

    .script-video-section .video-preview {
        padding: 8px;
        border-radius: 20px;
    }

    .script-video-section .video-preview > .play-circle {
        width: 56px;
        height: 56px;
        font-size: 1.12rem;
        box-shadow:
            0 0 0 8px rgba(139, 92, 246, 0.10),
            0 0 30px rgba(139, 92, 246, 0.42),
            0 0 22px rgba(0, 217, 255, 0.18);
    }

    .script-video-section .video-preview > span {
        position: static;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        background: rgba(255, 255, 255, 0.055);
    }

    .feature-card {
        padding: 18px;
    }

    .feature-card strong {
        font-size: 0.98rem;
    }

    .gallery-card {
        padding: 10px;
    }

    .gallery-card .image-placeholder {
        min-height: 190px;
    }

    .details-card {
        padding: 18px;
    }

    .clean-list li {
        padding: 13px 40px 13px 13px;
        font-size: 0.95rem;
    }

    .clean-list li::before {
        right: 12px;
        top: 13px;
    }

    .faq-list {
        gap: 12px;
    }

    .faq-item {
        padding: 18px;
    }

    .faq-item h3 {
        font-size: 1.08rem;
    }
}

@media (max-width: 380px) {
    .script-single-hero {
        padding-top: 36px;
    }

    .script-video-section .video-card {
        padding: 10px;
    }

    .script-video-section .video-preview > .play-circle {
        width: 50px;
        height: 50px;
        font-size: 1.02rem;
    }

    .gallery-card .image-placeholder {
        min-height: 170px;
    }
}

/* ============================================================
   Blog page responsive
   ============================================================ */

@media (max-width: 1060px) {
    .featured-post-card {
        grid-template-columns: 1fr;
    }

    .featured-post-image .image-placeholder {
        min-height: 330px;
    }

    .featured-post-content {
        padding: 14px 12px 18px;
    }
}

@media (max-width: 820px) {
    .blog-featured-section {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .featured-post-card {
        gap: 18px;
        padding: 14px;
        max-width: 100%;
    }

    .featured-post-content {
        text-align: center;
        min-width: 0;
    }

    .featured-post-content .eyebrow,
    .featured-post-content .post-meta,
    .featured-post-content .hero-actions {
        margin-inline: auto;
    }

    .featured-post-content .post-meta {
        justify-content: center;
    }

    .featured-post-content .hero-actions {
        justify-content: center;
    }

    .blog-list-section {
        padding-top: 36px;
    }

    .compact-meta {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .blog-featured-section {
        overflow-x: hidden;
    }

    .featured-post-card {
        width: 100%;
        max-width: 100%;
        border-radius: 24px;
        padding: 10px;
    }

    .featured-post-image .image-placeholder {
        min-height: 230px;
    }

    .featured-post-content {
        width: 100%;
        max-width: 100%;
        padding: 12px 10px 16px;
    }

    .featured-post-content h2 {
        max-width: 100%;
        font-size: clamp(1.45rem, 7.4vw, 2.1rem);
        line-height: 1.28;
    }

    .featured-post-content p {
        max-width: 100%;
        font-size: 1rem;
    }

    .post-meta {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .post-meta span,
    .post-meta small {
        justify-content: center;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .compact-meta {
        margin: 14px 0;
    }

    .blog-card h2 {
        font-size: 1.12rem;
    }

    .blog-card .blog-content a {
        width: 100%;
        justify-content: center;
        padding: 11px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 380px) {
    .featured-post-image .image-placeholder {
        min-height: 200px;
    }
}

/* ============================================================
   Single blog post page responsive
   ============================================================ */

@media (max-width: 1060px) {
    .blog-single-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .blog-single-hero {
        padding-top: 68px;
        padding-bottom: 48px;
    }

    .blog-single-visual .visual-card {
        transform: none;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .blog-single-content {
        text-align: center;
    }

    .blog-single-content .eyebrow,
    .blog-single-content .post-meta,
    .blog-single-content .hero-actions {
        margin-inline: auto;
    }

    .blog-single-content .post-meta {
        justify-content: center;
    }

    .blog-single-content .hero-actions {
        justify-content: center;
    }

    .article-section {
        padding-top: 38px;
    }

    .article-card {
        padding: 26px;
    }

    .article-content-block {
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        padding: 22px;
        text-align: center;
    }

    .sidebar-card .eyebrow {
        margin-inline: auto;
    }

    .sidebar-links a {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .blog-single-hero {
        padding-top: 46px;
        padding-bottom: 36px;
    }

    .blog-single-content p {
        font-size: 1rem;
    }

    .article-card {
        padding: 20px;
        border-radius: 22px;
    }

    .article-content-block h2 {
        font-size: clamp(1.35rem, 7vw, 2rem);
    }

    .article-content-block p {
        font-size: 1rem;
    }

    .article-list.clean-list li {
        padding: 13px 40px 13px 13px;
        font-size: 0.95rem;
    }

    .sidebar-card {
        padding: 18px;
        border-radius: 22px;
    }

    .sidebar-card h2 {
        font-size: 1.18rem;
    }

    .sidebar-links {
        gap: 8px;
    }

    .sidebar-links a {
        padding: 11px 12px;
        font-size: 0.95rem;
    }

    .article-faq-section {
        padding-top: 42px;
    }
}

@media (max-width: 380px) {
    .blog-single-hero {
        padding-top: 36px;
    }

    .article-card {
        padding: 16px;
    }

    .sidebar-card {
        padding: 16px;
    }
}

/* ============================================================
   Videos page responsive
   ============================================================ */

@media (max-width: 1060px) {
    .videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-card-preview .image-placeholder {
        min-height: 220px;
    }
}

@media (max-width: 820px) {
    .videos-intro-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .videos-list-section {
        padding-top: 34px;
    }

    .videos-toolbar {
        display: grid;
        text-align: center;
    }

    .videos-toolbar .toolbar-discord {
        width: 100%;
    }

    .video-card-body {
        text-align: center;
    }

    .video-card-body .tags {
        justify-content: center;
    }

    .video-meta {
        justify-content: center;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .video-list-card {
        border-radius: 24px;
    }

    .video-card-preview {
        padding: 10px 10px 0;
    }

    .video-card-preview .image-placeholder {
        min-height: 190px;
    }

    .video-play-button {
        width: 56px;
        height: 56px;
        font-size: 1.18rem;
    }

    .video-card-body {
        padding: 18px;
    }

    .video-card-body h2 {
        font-size: 1.12rem;
    }

    .video-meta {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .video-meta span {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 380px) {
    .video-card-preview .image-placeholder {
        min-height: 170px;
    }

    .video-play-button {
        width: 50px;
        height: 50px;
        font-size: 1.05rem;
    }
}

/* ============================================================
   Media images responsive
   ============================================================ */

@media (max-width: 1060px) {
    .hero-media-frame {
        min-height: 320px;
    }

    .visual-card .hero-media-frame,
    .script-single-visual .hero-media-frame,
    .blog-single-visual .hero-media-frame {
        min-height: 360px;
    }

    .featured-media-frame {
        min-height: 330px;
    }

    .gallery-media-frame {
        min-height: 230px;
    }
}

@media (max-width: 820px) {
    .media-frame:hover .media-image,
    .script-card:hover .media-image,
    .blog-card:hover .media-image,
    .video-list-card:hover .media-image,
    .gallery-card:hover .media-image {
        transform: scale(1.001);
        filter: none;
    }

    .hero-media-frame {
        min-height: 280px;
        border-radius: 24px;
    }

    .visual-card .hero-media-frame,
    .script-single-visual .hero-media-frame,
    .blog-single-visual .hero-media-frame {
        min-height: 310px;
    }

    .card-media-frame {
        min-height: 210px;
    }

    .featured-media-frame {
        min-height: 280px;
    }

    .blog-media-frame {
        min-height: 210px;
    }

    .video-media-frame {
        min-height: 220px;
    }

    .gallery-media-frame {
        min-height: 220px;
    }
}

@media (max-width: 560px) {
    .media-frame {
        border-radius: 20px;
    }

    .hero-media-frame {
        min-height: 230px;
        border-radius: 22px;
    }

    .visual-card .hero-media-frame,
    .script-single-visual .hero-media-frame,
    .blog-single-visual .hero-media-frame {
        min-height: 250px;
    }

    .card-media-frame,
    .blog-media-frame,
    .video-media-frame {
        min-height: 185px;
    }

    .featured-media-frame {
        min-height: 230px;
    }

    .gallery-media-frame {
        min-height: 190px;
    }

    .script-video-section .video-preview .video-media-frame {
        min-height: 0;
    }

    .media-frame::before {
        opacity: 0.72;
    }

    .media-frame::after {
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.08),
            inset 0 -36px 80px rgba(0, 0, 0, 0.18);
    }
}

@media (max-width: 380px) {
    .hero-media-frame {
        min-height: 205px;
    }

    .visual-card .hero-media-frame,
    .script-single-visual .hero-media-frame,
    .blog-single-visual .hero-media-frame {
        min-height: 220px;
    }

    .card-media-frame,
    .blog-media-frame,
    .video-media-frame {
        min-height: 165px;
    }

    .featured-media-frame {
        min-height: 205px;
    }

    .gallery-media-frame {
        min-height: 170px;
    }

    .script-video-section .video-preview .video-media-frame {
        min-height: 0;
    }
}

/* ============================================================
   MOBILE HARD FRAME FIX
   Purpose:
   Force every public page to stay inside the real mobile viewport.
   ============================================================ */

@media (max-width: 560px) {
    html {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    body {
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .site-bg {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .site-shell,
    .site-main {
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .site-header {
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        overflow: visible;
    }

    .container,
    .header-inner,
    .footer-grid,
    .footer-bottom,
    .hero-grid,
    .page-hero-grid,
    .script-single-grid,
    .blog-single-grid,
    .featured-post-card,
    .article-layout,
    .scripts-toolbar,
    .videos-toolbar,
    .scripts-grid,
    .blog-grid,
    .videos-grid,
    .gallery-grid,
    .details-grid,
    .feature-cards,
    .cards-grid,
    .hero-stats,
    .hero-actions,
    .post-meta,
    .tags,
    .single-meta,
    .single-tags {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    .container,
    .header-inner {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
    }

    .section,
    .hero,
    .page-hero,
    .script-single-hero,
    .blog-single-hero,
    .blog-featured-section,
    .scripts-list-section,
    .blog-list-section,
    .videos-list-section,
    .script-video-section,
    .script-gallery-section,
    .script-details-section,
    .faq-section,
    .cta-section {
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .hero-content,
    .page-hero-content,
    .script-single-content,
    .blog-single-content,
    .featured-post-content,
    .split-content,
    .card-body,
    .blog-content,
    .video-card-body,
    .article-card,
    .sidebar-card,
    .feature-card,
    .gallery-card,
    .details-card,
    .faq-item,
    .cta-card,
    .not-found-card,
    .visual-card,
    .script-card,
    .blog-card,
    .video-card,
    .video-list-card,
    .featured-post-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        transform: none !important;
    }

    .hero-grid,
    .page-hero-grid,
    .script-single-grid,
    .blog-single-grid,
    .featured-post-card,
    .article-layout,
    .split-grid,
    .video-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: stretch !important;
        align-items: start !important;
    }

    .hero-content,
    .page-hero-content,
    .script-single-content,
    .blog-single-content,
    .featured-post-content,
    .section-head {
        text-align: center !important;
    }

    h1,
    .hero-content h1,
    .page-hero-content h1,
    .script-single-content h1,
    .blog-single-content h1,
    .featured-post-content h2 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        font-size: clamp(1.48rem, 8.6vw, 2.28rem) !important;
        line-height: 1.22 !important;
        letter-spacing: 0 !important;
        white-space: normal !important;
        text-wrap: balance;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    h2 {
        width: 100% !important;
        max-width: 100% !important;
        font-size: clamp(1.32rem, 7vw, 1.95rem) !important;
        line-height: 1.25 !important;
        white-space: normal !important;
    }

    p {
        width: 100%;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .hero-content p,
    .page-hero-content p,
    .script-single-content p,
    .blog-single-content p,
    .featured-post-content p,
    .section-head p {
        padding-inline: 0 !important;
    }

    .btn,
    .hero-actions .btn,
    .card-actions a,
    .toolbar-discord {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .brand {
        flex-direction: row;
        min-width: 0 !important;
        max-width: calc(100vw - 88px) !important;
    }

    .brand-text {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .brand-text strong {
        font-size: 0.92rem !important;
        max-width: 145px !important;
    }

    .brand-text small {
        font-size: 0.66rem !important;
        max-width: 145px !important;
    }

    .brand-mark {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        border-radius: 13px !important;
    }

    .menu-toggle {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        flex: 0 0 44px !important;
    }

    .main-nav {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .image-placeholder,
    .media-frame,
    .hero-media-frame,
    .featured-media-frame,
    .card-media-frame,
    .blog-media-frame,
    .video-media-frame,
    .gallery-media-frame {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .media-image,
    img {
        max-width: 100% !important;
    }

    .hero-visual,
    .page-hero-visual,
    .script-single-visual,
    .blog-single-visual,
    .split-visual,
    .featured-post-image {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        transform: none !important;
    }

    .hero-stats,
    .single-meta,
    .post-meta,
    .video-meta {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .hero-stats div,
    .single-meta span,
    .post-meta span,
    .post-meta small,
    .video-meta span,
    .tags span {
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .tags,
    .single-tags {
        justify-content: center !important;
    }
}

@media (max-width: 420px) {
    .container,
    .header-inner {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }

    h1,
    .hero-content h1,
    .page-hero-content h1,
    .script-single-content h1,
    .blog-single-content h1,
    .featured-post-content h2 {
        font-size: clamp(1.42rem, 8.2vw, 2.06rem) !important;
    }

    h2 {
        font-size: clamp(1.25rem, 6.5vw, 1.82rem) !important;
    }

    .hero,
    .page-hero,
    .script-single-hero,
    .blog-single-hero {
        padding-top: 34px !important;
    }

    .section {
        padding-top: 46px;
        padding-bottom: 46px;
    }
}