.app-container-full {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content-full {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.generation-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.generation-area {
    scrollbar-width: thin;
    scrollbar-color: var(--color-purple) var(--color-dark);
}

.generation-area::-webkit-scrollbar {
    width: 12px;
}

.generation-area::-webkit-scrollbar-track {
    background: var(--color-dark);
    border-left: 3px solid var(--color-purple);
}

.generation-area::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-purple), var(--color-pink));
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-dark);
}

.generation-area::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-cyan), var(--color-blue));
}

.generation-area::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, var(--color-cyan), var(--color-blue));
}

.generation-container {
    padding: 30px 150px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.generation-top-panel {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.limits-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(6, 182, 212, 0.1);
    border: 3px solid var(--color-cyan);
    width: fit-content;
    margin-left: auto;
}

.limit-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: var(--color-gray);
}

.limit-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: var(--color-cyan);
}

.model-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.model-tab {
    padding: 12px 20px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--color-purple);
    border: 3px solid var(--color-purple);
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.model-tab:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
    background: rgba(139, 92, 246, 0.4);
}

.model-tab.active {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    color: white;
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

.model-tab:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.model-info-single {
    padding: 12px 20px;
    background: rgba(139, 92, 246, 0.2);
    border: 3px solid var(--color-purple);
    width: fit-content;
}

.model-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: var(--color-cyan);
}

.model-select-mobile {
    display: none;
}

.generation-input-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prompt-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.prompt-input {
    flex: 1;
    padding: 15px 20px;
    background: var(--color-dark-input);
    color: var(--color-light);
    border: 3px solid var(--color-purple);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 13px;
    outline: none;
    resize: none;
    min-height: 56px;
    max-height: 150px;
    transition: all 0.3s ease;
    line-height: 1.5;
    overflow-y: hidden;
}

.prompt-input.has-scroll {
    overflow-y: auto;
}

.prompt-input:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.prompt-input::placeholder {
    color: var(--color-gray);
    opacity: 0.6;
}

.prompt-input::-webkit-scrollbar {
    width: 8px;
}

.prompt-input::-webkit-scrollbar-track {
    background: var(--color-dark);
    border-left: 2px solid var(--color-purple);
}

.prompt-input::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-purple), var(--color-pink));
    border-radius: 0;
}

.prompt-input::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-cyan), var(--color-blue));
}

.attach-button {
    padding: 0;
    width: 56px;
    height: 56px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--color-purple);
    border: 3px solid var(--color-purple);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.attach-icon {
    width: 22px;
    height: 22px;
    stroke: var(--color-purple);
    transition: stroke 0.3s ease;
}

.attach-button:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.attach-button:hover .attach-icon {
    stroke: var(--color-cyan);
}

.attach-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.generate-button {
    padding: 0 28px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    color: white;
    border: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generate-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.generate-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.generate-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.image-model-pricing {
    padding: 10px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.image-pricing-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--color-gray);
    line-height: 1.6;
}

.image-input-row {
    width: 100%;
}

.image-ref-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    min-height: 0;
}

.image-ref-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid var(--color-purple);
    font-size: 11px;
    color: var(--color-light);
}

.image-ref-chip img {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

.image-ref-chip .remove-ref {
    padding: 2px 6px;
    background: transparent;
    border: 2px solid var(--color-pink);
    color: var(--color-pink);
    cursor: pointer;
    font-size: 10px;
}

.image-ref-chip .remove-ref:hover {
    background: var(--color-pink);
    color: white;
}

.image-gen-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
    width: 100%;
    align-self: stretch;
}

.image-params-panel {
    padding: 20px;
    background: rgba(31, 41, 55, 0.6);
    border: 3px solid var(--color-purple);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    min-height: 200px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.image-params-title,
.image-output-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: var(--color-cyan);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.image-param-group {
    margin-bottom: 18px;
}

.image-param-group:last-child {
    margin-bottom: 0;
}

.image-params-content {
    display: block;
    width: 100%;
    min-width: 0;
}

.image-params-content[style*="display: none"] {
    display: none !important;
}

.image-param-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    color: var(--color-gray);
}
.image-param-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-purple);
}
.image-param-hint {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: var(--color-gray);
    margin: 10px 0 0 0;
    line-height: 1.6;
}

.image-param-label {
    display: block;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--color-gray);
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.image-param-group--textarea {
    min-width: 0;
}

.video-param-textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    background: var(--color-dark-input);
    color: var(--color-light);
    border: 3px solid var(--color-purple);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    outline: none;
    resize: vertical;
    min-height: 52px;
    max-height: 120px;
    line-height: 1.4;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.video-param-textarea:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.video-param-textarea::placeholder {
    color: var(--color-gray);
    opacity: 0.7;
}

.image-param-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: var(--color-dark-input);
    border: 2px solid var(--color-purple);
    color: var(--color-light);
    font-size: 12px;
    outline: none;
}

.image-param-select:focus {
    border-color: var(--color-cyan);
}

.image-param-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.image-param-btn {
    padding: 8px 14px;
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid var(--color-purple);
    color: var(--color-purple);
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-param-btn:hover {
    background: rgba(139, 92, 246, 0.4);
}

.image-param-btn.active {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
    color: white;
    border-color: var(--color-cyan);
}

.image-output-panel {
    padding: 20px;
    background: rgba(31, 41, 55, 0.6);
    border: 3px solid var(--color-cyan);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.image-output-area {
    position: relative;
    flex: 1;
    min-height: 280px;
}

.image-output-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: var(--color-gray);
    text-align: center;
    padding: 20px;
}

.image-output-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: var(--color-cyan);
}

.image-output-result {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.generation-error {
    width: 100%;
    padding: 16px 20px;
    background: rgba(220, 38, 38, 0.12);
    border: 2px solid rgba(220, 38, 38, 0.5);
    border-radius: 8px;
    color: var(--color-text, #e2e8f0);
}
.generation-error-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: #f87171;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.generation-error-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-gray, #94a3b8);
}
.generation-error--temporary {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.5);
}
.generation-error--temporary .generation-error-title {
    color: #fbbf24;
}

.image-output-fixed {
    width: 100%;
    max-width: 100%;
    max-height: 380px;
    overflow: hidden;
    display: block;
    margin-bottom: 4px;
}

.image-output-fixed img {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left top;
    display: block;
}

.image-output-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.image-output-btn {
    flex: 1 1 0%;
    min-width: 0;
    min-height: 40px;
    padding: 10px 12px;
    box-sizing: border-box;
    background: rgba(6, 182, 212, 0.2);
    border: 2px solid var(--color-cyan);
    color: var(--color-cyan);
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
}

.image-output-btn:hover {
    background: var(--color-cyan);
    color: white;
}

a.image-output-btn,
button.image-output-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    line-height: 1.4;
    box-sizing: border-box;
}

.image-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgba(139, 92, 246, 0.3);
    border: 3px solid var(--color-purple);
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

.image-fullscreen-close:hover {
    background: var(--color-purple);
}

.image-fullscreen-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.video-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgba(139, 92, 246, 0.3);
    border: 3px solid var(--color-purple);
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

.video-fullscreen-close:hover {
    background: var(--color-purple);
}

.video-fullscreen-overlay video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.results-section {
    padding: 40px 150px;
    width: 100%;
}

.results-section--empty {
    display: none;
}

.results-section h2 {
    font-size: 18px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    text-transform: uppercase;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.results-empty {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 80px 20px;
    color: var(--color-gray);
    font-size: 11px;
    line-height: 2;
}

.result-card {
    background: rgba(31, 41, 55, 0.6);
    border: 3px solid var(--color-cyan);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    cursor: pointer;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    border-color: var(--color-pink);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.result-cover {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.result-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid rgba(239, 68, 68, 0.9);
    background: rgba(30, 30, 40, 0.9);
    color: #ef4444;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.result-delete-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
    transform: scale(1.05);
}

.result-delete-btn:active {
    transform: scale(0.98);
}

.result-delete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result-cover .result-image,
.result-cover .result-media-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.result-cover .result-media-preview {
    position: absolute;
    inset: 0;
}

.result-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--color-cyan);
    background: rgba(6, 182, 212, 0.4);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.result-play-btn:hover {
    background: rgba(236, 72, 153, 0.5);
    border-color: var(--color-pink);
    transform: translate(-50%, -50%) scale(1.1);
}

.result-play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent white;
    margin-left: 4px;
}

.result-btn--fullscreen::before {
    width: 20px;
    height: 20px;
    border: none;
    border-style: solid;
    border-width: 2px;
    border-color: white;
    box-sizing: border-box;
    margin-left: 0;
}

.result-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(59, 130, 246, 0.3));
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: var(--color-cyan);
    text-align: center;
    padding: 20px;
}

.result-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.result-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--color-light);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-prompt {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 10px;
    flex: 1;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.result-btn-use-prompt,
.example-btn.use-prompt {
    white-space: normal;
    line-height: 1.3;
}

.result-btn {
    flex: 1 1 0%;
    min-width: 0;
    min-height: 38px;
    padding: 10px 12px;
    box-sizing: border-box;
    background: rgba(6, 182, 212, 0.2);
    border: 2px solid var(--color-cyan);
    color: var(--color-cyan);
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
}

.result-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: var(--color-pink);
    color: var(--color-pink);
}

a.result-btn,
button.result-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    line-height: 1.4;
    border: 2px solid var(--color-cyan);
    box-sizing: border-box;
}

.music-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.music-toggle {
    width: 44px;
    height: 24px;
    accent-color: var(--color-cyan);
    cursor: pointer;
}
.music-toggle-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--color-gray);
    cursor: pointer;
}
.music-output-tracks {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.music-output-track {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}
.music-output-track:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.music-output-track-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--color-light);
    margin: 0 0 10px 0;
}

.music-custom-player {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}
.music-custom-playbtn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(6, 182, 212, 0.3);
    border: 2px solid var(--color-cyan);
    color: var(--color-cyan);
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.music-custom-playbtn:hover {
    background: var(--color-cyan);
    color: white;
}
.music-custom-playbtn.playing {
    background: var(--color-cyan);
    color: white;
}
.music-custom-progress-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.music-custom-progress {
    flex: 1;
    min-width: 0;
    height: 6px;
    accent-color: var(--color-cyan);
    cursor: pointer;
}
.music-custom-time {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: var(--color-gray);
    flex-shrink: 0;
}
.music-custom-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.music-custom-player audio {
    display: none;
}

.music-slider-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.music-slider {
    flex: 1;
    min-width: 0;
    height: 8px;
    accent-color: var(--color-cyan);
    cursor: pointer;
}
.music-slider-value {
    width: 56px;
    min-width: 56px;
    padding: 6px 8px;
    box-sizing: border-box;
    background: var(--color-dark-input);
    border: 2px solid var(--color-purple);
    color: var(--color-light);
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    text-align: center;
    border-radius: 0;
    overflow: hidden;
}
.music-style-textarea {
    min-height: 60px;
    resize: vertical;
}
.music-char-count {
    display: block;
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: var(--color-gray);
    margin-top: 4px;
}

.examples-section {
    padding: 40px 150px 60px;
    width: 100%;
}

.examples-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    font-size: 11px;
    color: var(--color-gray);
}

.examples-section h2 {
    font-size: 18px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    text-transform: uppercase;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.example-card {
    background: rgba(31, 41, 55, 0.6);
    border: 3px solid var(--color-purple);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    cursor: pointer;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.example-card:hover {
    border-color: var(--color-cyan);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.example-image,
.example-video {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.example-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: var(--color-purple);
    text-align: center;
    padding: 20px;
}

.example-audio {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
}

.example-audio audio {
    width: 100%;
}

.example-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.example-prompt {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 10px;
    flex: 1;
}

.example-prompt.prompt-fade,
.result-title.prompt-fade {
    max-height: 4.2em;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

.result-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--color-light);
    line-height: 1.5;
    margin-bottom: 10px;
}

.example-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.example-btn {
    flex: 1;
    padding: 8px;
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid var(--color-purple);
    color: var(--color-purple);
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.example-btn:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

@media (min-width: 1920px) {
    .generation-container {
        padding: 30px 200px;
    }

    .results-section {
        padding: 40px 200px;
    }

    .examples-section {
        padding: 40px 200px 60px;
    }
}

@media (min-width: 1024px) and (max-width: 1919px) {
    .generation-container {
        padding: 30px 150px;
    }

    .results-section {
        padding: 40px 150px;
    }

    .examples-section {
        padding: 40px 150px 60px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .generation-container {
        padding: 30px 80px;
    }

    .results-section {
        padding: 40px 80px;
    }

    .examples-section {
        padding: 40px 80px 60px;
    }

    .results-grid,
    .examples-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .image-gen-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .generation-container {
        padding: 15px;
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }

    .generation-top-panel {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .model-tabs {
        display: none;
    }
    
    .model-info-single {
        display: none;
    }
    
    .model-select-mobile {
        display: block;
        flex: 1;
    }
    
    .model-select-mobile select {
        width: 100%;
        padding: 10px 12px;
        background: var(--color-dark-input);
        color: var(--color-light);
        border: 3px solid var(--color-purple);
        font-family: 'Press Start 2P', monospace;
        font-size: 7px;
        cursor: pointer;
        outline: none;
    }
    
    .model-select-mobile select:focus {
        border-color: var(--color-cyan);
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    }

    .limits-info {
        margin-left: 0;
        padding: 10px 12px;
        flex-shrink: 0;
    }
    
    .limit-label {
        font-size: 7px;
    }
    
    .limit-value {
        font-size: 7px;
    }

    .image-gen-layout {
        grid-template-columns: 1fr;
    }

    .prompt-container {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }

    .attach-button {
        width: 46px;
        height: 46px;
    }
    
    .attach-icon {
        width: 18px;
        height: 18px;
    }

    .prompt-input {
        font-size: 13px;
        min-height: 46px;
        padding: 12px 15px;
    }

    .generate-button {
        font-size: 8px;
        height: 46px;
        padding: 0 14px;
        white-space: nowrap;
    }

    .results-section {
        padding: 20px 15px;
    }
    
    .results-section h2 {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .results-grid,
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .result-image,
    .result-placeholder,
    .example-image,
    .example-video,
    .example-placeholder,
    .example-audio {
        height: 150px;
    }
    
    .result-info,
    .example-info {
        padding: 10px;
    }
    
    .result-title {
        font-size: 7px;
    }
    
    .result-prompt,
    .example-prompt {
        font-size: 7px;
    }
    
    .result-btn,
    .example-btn {
        font-size: 7px;
        padding: 8px 10px;
        min-height: 34px;
    }
    a.result-btn, button.result-btn {
        font-size: 7px;
    }

    .examples-section {
        padding: 20px 15px 30px;
    }
    
    .examples-section h2 {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .results-empty {
        padding: 40px 15px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .generation-container {
        padding: 12px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .generation-top-panel {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .model-select-mobile select {
        font-size: 6px;
        padding: 8px 10px;
    }

    .limits-info {
        width: 100%;
        justify-content: center;
        padding: 8px 10px;
    }
    
    .limit-label,
    .limit-value {
        font-size: 6px;
    }

    .prompt-container {
        gap: 6px;
        align-items: center;
    }

    .attach-button {
        width: 42px;
        height: 42px;
    }
    
    .attach-icon {
        width: 16px;
        height: 16px;
    }

    .prompt-input {
        min-height: 42px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .generate-button {
        font-size: 7px;
        height: 42px;
        padding: 0 12px;
    }

    .results-section,
    .examples-section {
        padding: 15px 12px;
    }
    
    .results-section h2,
    .examples-section h2 {
        font-size: 10px;
        margin-bottom: 15px;
    }

    .results-grid,
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .result-image,
    .result-placeholder,
    .example-image,
    .example-video,
    .example-placeholder,
    .example-audio {
        height: 120px;
    }
    
    .result-info,
    .example-info {
        padding: 8px;
    }
    
    .result-title {
        font-size: 6px;
        margin-bottom: 6px;
    }
    
    .result-prompt,
    .example-prompt {
        font-size: 6px;
        margin-bottom: 8px;
    }
    
    .result-btn,
    .example-btn {
        font-size: 6px;
        padding: 6px 8px;
        min-height: 32px;
    }
    a.result-btn, button.result-btn {
        font-size: 6px;
    }
    
    .results-empty {
        padding: 30px 10px;
        font-size: 8px;
    }
}

.video-params-content .required-star {
    color: var(--color-pink);
}
.video-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.video-upload-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.video-upload-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: var(--color-gray);
}
.video-upload-zone {
    position: relative;
    min-height: 140px;
    border: 2px dashed var(--color-purple);
    background: rgba(139, 92, 246, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}
.video-upload-zone:hover {
    border-color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.08);
}
.video-upload-zone.has-image {
    border-style: solid;
}
.video-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: var(--color-gray);
}
.video-upload-placeholder .video-upload-icon {
    font-size: 24px;
    color: var(--color-purple);
}
.video-upload-zone .video-upload-preview {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}
.video-upload-hint {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: var(--color-gray);
    margin-top: 8px;
}
.video-prompt-textarea {
    resize: vertical;
    min-height: 80px;
}
.video-output-player-wrap video {
    max-width: 100%;
    border: 2px solid var(--color-cyan);
    border-radius: 8px;
}

.video-progress-block {
    width: 100%;
    padding: 20px 0;
}
.video-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.video-progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: var(--color-gray);
}
.video-progress-step.active {
    color: var(--color-cyan);
}
.video-progress-step.done {
    color: var(--color-cyan);
}
.video-progress-step.done .video-progress-dot {
    background: var(--color-cyan);
    box-shadow: 0 0 0 2px var(--color-cyan);
}
.video-progress-step.active .video-progress-dot {
    background: var(--color-cyan);
    box-shadow: 0 0 8px var(--color-cyan);
    animation: video-progress-pulse 1s ease-in-out infinite;
}
@keyframes video-progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.video-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gray);
    flex-shrink: 0;
}
.video-progress-label {
    flex: 1;
}
.video-progress-time {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: var(--color-gray);
    margin-bottom: 10px;
}
.video-progress-bar {
    height: 8px;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 4px;
    overflow: hidden;
}
.video-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-purple), var(--color-cyan));
    border-radius: 4px;
    transition: width 0.3s ease;
}

@media (max-width: 767px) {
    .video-upload-grid {
        grid-template-columns: 1fr;
    }
}
