
           stroke-width="2"
           stroke-linecap="round"
           stroke-linejoin="round">
        <path d="M18 6 6 18"></path>
        <path d="m6 6 12 12"></path>
      </svg>
    </button>
  </div>

  <form method="post" x-data="mediaForm" x-init="init">
    {% csrf_token %}
    {{ form.instance_id }}
    {{ form.media_type }}
    {{ form.source }}
    {{ form.media_id }}
    {{ form.season_number }}

    {% with total_fields=form.fields|length %}
      {% if total_fields > 8 %}<div class="grid g