@import url('/assets/css/home/base.css');
@import url('/assets/css/home/nav.css');
@import url('/assets/css/home/modals.css');

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.08), transparent 24%),
        linear-gradient(180deg, #fbfcff 0%, #f5f8ff 100%);
}

[hidden] {
    display: none !important;
}

.nav-links a.active {
    color: var(--text);
    font-weight: 600;
}

#nav-user-area {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
}

.effects-nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: nowrap;
}

.effects-profile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.effects-profile-trigger img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--blue-200);
    object-fit: cover;
    display: block;
}

.effects-profile-fallback {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--blue-100);
    color: var(--blue-600);
    border: 2px solid var(--blue-200);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 700;
}

.effects-page {
    padding-top: 104px;
    padding-bottom: 56px;
}

.effects-page .container {
    max-width: 1240px;
}

.effects-shell {
    padding: 0;
}

.effects-browser {
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 28px;
}

.effects-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 18px;
}

.effects-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.effects-session-note,
.effects-gallery-status,
.studio-user-state {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.section-kicker {
    color: var(--blue-600);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 700;
}

.effects-category-scroller {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0 -4px 18px;
    padding: 6px 4px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.effects-category-scroller::-webkit-scrollbar {
    display: none;
}

.effects-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
    border: 1px solid rgba(191, 219, 254, 0.95);
    background: rgba(255, 255, 255, 0.94);
    color: var(--blue-700);
    border-radius: 16px;
    min-height: 46px;
    padding: 0 16px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.effects-category-chip-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(191, 219, 254, 0.78);
    color: transparent;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.effects-category-chip:hover {
    transform: translateY(-1px);
    background: rgba(239, 246, 255, 0.96);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
}

.effects-category-chip.active {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.effects-category-chip.active .effects-category-chip-check {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: scale(1.04);
}

.effects-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.effect-sample-card {
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.effect-sample-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.effect-sample-card.selected {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.16);
}

.effect-sample-card img {
    width: 100%;
    aspect-ratio: 4 / 6.2;
    object-fit: contain;
    object-position: center;
    display: block;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}
.effect-sample-category {
    display: block;
    font-size: 0.76rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.effects-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.effects-load-more,
.studio-primary-btn {
    border: none;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.effects-load-more {
    padding: 13px 20px;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.effects-load-more:hover,
.studio-primary-btn:hover {
    transform: translateY(-1px);
}

.effects-load-more[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.effects-try-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.effects-try-dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
    padding: 28px;
}

.effects-try-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
}

.effects-try-head h2 {
    font-size: 1.6rem;
    margin-top: 4px;
}

.effects-try-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
    align-items: stretch;
    overflow: hidden;
    min-height: 0;
}

.effects-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.effects-pane-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.effects-upload-zone,
.selected-effect-card,
.effects-loading-card,
.effects-result-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 1));
}

.effects-upload-zone {
    position: relative;
    min-height: clamp(280px, 52vh, 520px);
    height: clamp(280px, 52vh, 520px);
    border-style: dashed;
    border-color: rgba(191, 219, 254, 0.95);
    cursor: pointer;
    overflow: hidden;
}

.effects-upload-zone.has-file {
    border-style: solid;
}

.effects-upload-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.upload-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: rgba(239, 246, 255, 0.9);
    border: 1px solid rgba(191, 219, 254, 0.92);
}

.upload-icon svg {
    width: 24px;
    height: 24px;
    color: var(--blue-500);
}

.upload-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.upload-sub {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.effects-user-preview {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.upload-remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.74);
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.selected-effect-card {
    min-height: clamp(280px, 52vh, 520px);
    height: clamp(280px, 52vh, 520px);
    padding: 16px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.selected-effect-empty {
    color: var(--text-secondary);
    text-align: center;
}

.selected-effect-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.selected-effect-preview img {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.effects-loading-card,
.effects-result-card {
    margin-top: 18px;
    padding: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.effects-loading-card {
    position: relative;
    background:
        radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 1));
}

.effects-loading-visual {
    position: relative;
    height: 176px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.effects-loading-orbit {
    position: absolute;
    inset: 50% auto auto 50%;
    border-radius: 999px;
    border: 1px solid rgba(147, 197, 253, 0.24);
    transform: translate(-50%, -50%);
}

.effects-loading-orbit-one {
    width: 172px;
    height: 172px;
    animation: effectOrbitSpin 12s linear infinite;
}

.effects-loading-orbit-two {
    width: 128px;
    height: 128px;
    border-style: dashed;
    border-color: rgba(96, 165, 250, 0.3);
    animation: effectOrbitSpinReverse 9s linear infinite;
}

.effects-loading-mini-card {
    position: absolute;
    top: 50%;
    width: 84px;
    height: 112px;
    padding: 6px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(191, 219, 254, 0.82);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.effects-loading-mini-card img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
}

.effects-loading-mini-card-user {
    left: calc(50% - 130px);
    transform: translateY(-50%) rotate(-8deg);
    animation: effectCardFloatLeft 3.6s ease-in-out infinite;
}

.effects-loading-mini-card-effect {
    left: calc(50% + 44px);
    transform: translateY(-50%) rotate(8deg);
    animation: effectCardFloatRight 3.6s ease-in-out infinite;
}

.effects-loading-core {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.effects-loading-core-glow {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.34), rgba(96, 165, 250, 0.04) 72%, transparent 100%);
    filter: blur(10px);
    animation: effectCorePulse 2.4s ease-in-out infinite;
}

.effects-loading-core-ring {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(96, 165, 250, 0.34);
    animation: effectRingPulse 2.2s ease-out infinite;
}

.effects-loading-core-ring-two {
    inset: 20px;
    border-color: rgba(37, 99, 235, 0.26);
    animation-delay: 0.9s;
}

.effects-loading-core-dot {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
    box-shadow: 0 0 0 10px rgba(96, 165, 250, 0.14), 0 10px 28px rgba(37, 99, 235, 0.26);
    animation: effectCoreDot 2s ease-in-out infinite;
}

.effects-loading-core::before,
.effects-loading-core::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 72px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0), rgba(59, 130, 246, 0.75), rgba(96, 165, 250, 0));
    transform: translateY(-50%);
    opacity: 0.9;
}

.effects-loading-core::before {
    left: -52px;
    animation: effectBeamLeft 1.9s ease-in-out infinite;
}

.effects-loading-core::after {
    right: -52px;
    animation: effectBeamRight 1.9s ease-in-out infinite;
}

.effects-loading-spark {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.94), rgba(37, 99, 235, 0.74));
    clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
    animation: effectSparkle 2.8s ease-in-out infinite;
}

.effects-loading-spark-one {
    top: 28px;
    left: calc(50% - 34px);
}

.effects-loading-spark-two {
    top: 104px;
    right: calc(50% - 18px);
    animation-delay: 0.8s;
}

.effects-loading-spark-three {
    bottom: 20px;
    left: calc(50% - 112px);
    animation-delay: 1.4s;
}

.effects-loading-card p {
    margin-top: 8px;
    color: var(--text-secondary);
}

.studio-loading-bar {
    margin-top: 16px;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.9));
    border: 1px solid rgba(191, 219, 254, 0.92);
}

.studio-loading-fill {
    width: 18%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue-700), var(--blue-600), var(--blue-400));
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
}

.studio-loading-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.58) 44%, transparent 66%);
    transform: translateX(-100%);
    animation: progressSweep 1.8s linear infinite;
}

.effects-result-image {
    width: 100%;
    max-height: min(62vh, 560px);
    border-radius: 20px;
    background: var(--blue-50);
    object-fit: contain;
    display: block;
}

.studio-result-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.effects-try-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-left: -28px;
    margin-right: -28px;
    margin-bottom: -28px;
    padding: 16px 28px 20px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.studio-primary-btn {
    padding: 15px 28px;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
    min-width: 170px;
}

.studio-primary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.effects-upload-zone.shake {
    animation: shake-zone 0.42s ease;
}

.effects-result-card {
    display: flex;
    flex-direction: column;
}

.effects-try-modal.result-mode .effects-try-dialog {
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
}

.effects-try-modal.result-mode .effects-try-footer {
    display: none;
}

@keyframes shake-zone {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@keyframes progressSweep {
    to { transform: translateX(100%); }
}

@keyframes effectOrbitSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes effectOrbitSpinReverse {
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes effectCardFloatLeft {
    0%, 100% { transform: translateY(-50%) rotate(-8deg) translateY(0); }
    50% { transform: translateY(-50%) rotate(-5deg) translateY(-7px); }
}

@keyframes effectCardFloatRight {
    0%, 100% { transform: translateY(-50%) rotate(8deg) translateY(0); }
    50% { transform: translateY(-50%) rotate(5deg) translateY(7px); }
}

@keyframes effectCorePulse {
    0%, 100% { transform: scale(0.9); opacity: 0.72; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes effectRingPulse {
    0% { transform: scale(0.82); opacity: 0.2; }
    50% { transform: scale(1); opacity: 0.78; }
    100% { transform: scale(1.12); opacity: 0; }
}

@keyframes effectCoreDot {
    0%, 100% { transform: scale(0.92); }
    50% { transform: scale(1.08); }
}

@keyframes effectBeamLeft {
    0%, 100% { opacity: 0.35; transform: translateY(-50%) scaleX(0.85); }
    50% { opacity: 1; transform: translateY(-50%) scaleX(1); }
}

@keyframes effectBeamRight {
    0%, 100% { opacity: 0.35; transform: translateY(-50%) scaleX(0.85); }
    50% { opacity: 1; transform: translateY(-50%) scaleX(1); }
}

@keyframes effectSparkle {
    0%, 100% { transform: translateY(0) scale(0.84) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-7px) scale(1.16) rotate(18deg); opacity: 1; }
}

@media (max-width: 1100px) {
    .effects-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .effects-page .container {
        padding: 0 18px;
    }

    .nav-inner {
        gap: 10px;
    }

    .nav-right {
        margin-left: auto;
        gap: 8px;
    }

    nav .nav-links {
        display: none !important;
    }

    nav .nav-links.open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(250,251,255,0.98);
        backdrop-filter: blur(20px);
        padding: 32px 24px;
        gap: 20px;
        align-items: flex-start;
        z-index: 200;
    }

    .hamburger {
        display: flex;
    }

    .effects-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .effects-try-dialog {
        width: min(760px, 100%);
        padding: 24px;
    }

    .effects-try-body {
        grid-template-columns: 1fr;
    }

    .effects-pane-label {
        margin-bottom: 8px;
    }

    .effects-try-footer {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        margin-left: -24px;
        margin-right: -24px;
        margin-bottom: -24px;
        padding: 14px 24px 18px;
    }

    .effects-upload-zone,
    .selected-effect-card {
        min-height: 320px;
        height: 320px;
    }

    .studio-primary-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .effects-page {
        padding-top: 92px;
        padding-bottom: 40px;
    }

    .nav-inner {
        padding: 0 14px;
        gap: 8px;
    }

    .nav-logo {
        gap: 8px;
        min-width: 0;
    }

    .nav-logo img {
        width: 30px;
        height: 30px;
    }

    .nav-logo span {
        font-size: 1.14rem;
    }

    .nav-right {
        gap: 6px;
        flex: 1 1 auto;
        justify-content: flex-end;
        min-width: 0;
    }

    #nav-user-area {
        flex: 0 1 auto;
    }

    .effects-nav-user {
        gap: 6px;
    }

    .nav-credits-badge,
    .nav-cta {
        min-height: 40px;
        padding: 0 14px;
        font-size: 0.74rem;
    }

    .nav-credits-badge {
        max-width: 112px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .effects-profile-trigger img,
    .effects-profile-fallback {
        width: 32px;
        height: 32px;
    }

    .hamburger {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }

    .effects-browser,
    .effects-try-dialog {
        padding: 20px;
        border-radius: 22px;
    }

    .effects-browser {
        padding: 22px 16px;
    }

    .effects-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .effects-header h1 {
        font-size: 1.9rem;
    }

    .effects-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .effects-category-chip {
        min-height: 42px;
        padding: 0 14px;
        font-size: 0.82rem;
    }

    .effects-try-modal {
        padding: max(16px, calc(env(safe-area-inset-top) + 12px)) 12px 12px;
        align-items: center;
    }

    .effects-try-dialog {
        width: 100%;
        max-height: calc(100dvh - max(28px, calc(env(safe-area-inset-top) + 16px)));
        border-radius: 24px;
        padding: 18px;
        padding-top: 22px;
    }

    .effects-try-close {
        top: 14px;
        right: 12px;
        width: 34px;
        height: 34px;
    }

    .effects-try-head {
        padding-right: 46px;
    }

    .effects-try-head h2 {
        font-size: 1.35rem;
        max-width: 260px;
    }

    .effects-try-body {
        gap: 14px;
        margin-top: 16px;
    }

    .effects-user-preview,
    .selected-effect-preview img {
        min-height: 0;
    }

    .effects-loading-visual {
        height: 150px;
    }

    .effects-loading-mini-card {
        width: 68px;
        height: 92px;
        border-radius: 18px;
        padding: 5px;
    }

    .effects-loading-mini-card-user {
        left: calc(50% - 92px);
    }

    .effects-loading-mini-card-effect {
        left: calc(50% + 24px);
    }

    .effects-loading-core {
        width: 88px;
        height: 88px;
    }

    .effects-loading-core::before,
    .effects-loading-core::after {
        width: 54px;
    }

    .effects-loading-core::before {
        left: -36px;
    }

    .effects-loading-core::after {
        right: -36px;
    }

    .effects-result-image {
        max-height: 46vh;
    }

    .studio-result-actions {
        grid-template-columns: 1fr;
    }

    .effects-try-footer {
        margin-left: -18px;
        margin-right: -18px;
        margin-bottom: -18px;
        padding: 14px 18px 18px;
        gap: 12px;
    }

    .effects-upload-zone,
    .selected-effect-card {
        min-height: 240px;
        height: 240px;
    }

    .studio-user-state {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .nav-right {
        gap: 8px;
    }

    #nav-user-area {
        gap: 8px;
    }

    .nav-cta {
        font-size: 0.76rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .effects-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .effect-sample-card {
        border-radius: 18px;
    }

    .effects-header h1 {
        font-size: 1.72rem;
    }

    .effects-session-note,
    .effects-gallery-status {
        font-size: 0.84rem;
    }

    .effects-result-image {
        max-height: 42vh;
    }

    .nav-logo span {
        font-size: 1.06rem;
    }

    .nav-credits-badge {
        max-width: 96px;
        padding: 0 10px;
        font-size: 0.7rem;
    }

    .effects-nav-user {
        gap: 5px;
    }

    .effects-profile-trigger img,
    .effects-profile-fallback {
        width: 30px;
        height: 30px;
    }

    .nav-cta {
        padding: 0 10px;
        font-size: 0.7rem;
    }

    .hamburger {
        min-width: 36px;
        min-height: 36px;
        padding: 6px;
    }
}
