*,
*::before,
*::after {
  box-sizing: border-box; }

html {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center; }

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0a0a0a;
  color: #f0f0f0;
  -webkit-font-smoothing: antialiased; }

a {
  color: #f0f0f0;
  text-decoration: none; }
  a:hover {
    color: #f0f0f0; }

p {
  margin: 0;
  padding: 0;
  font-size: 15px;
  color: #f0f0f0; }

header {
  width: 100%;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(to bottom, rgba(14, 160, 185, 0.25) 0%, transparent 100%);
  border-bottom: 1px solid rgba(240, 240, 240, 0.1);
  padding: 0 16px; }
  header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; }
  header li {
    padding: 0;
    margin: 0;
    list-style: none; }
  header a {
    color: #f0f0f0;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    opacity: 0.75;
    transition: opacity 0.15s; }
    header a:hover {
      opacity: 1;
      color: #f0f0f0; }

.body-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: calc(100vh - 52px);
  padding: 64px 24px;
  box-sizing: border-box; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #0ea0b9;
  color: #0a0a0a;
  border: none;
  border-radius: 14px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap; }
  .btn-primary:hover {
    background: #11c1df;
    color: #0a0a0a;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(14, 160, 185, 0.4); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: #f0f0f0;
  border: 1px solid rgba(240, 240, 240, 0.25);
  border-radius: 14px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s; }
  .btn-secondary:hover {
    background: rgba(240, 240, 240, 0.06);
    border-color: rgba(240, 240, 240, 0.45);
    color: #f0f0f0;
    text-decoration: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: rgba(240, 240, 240, 0.45);
  border: 1px solid rgba(240, 240, 240, 0.1);
  border-radius: 14px;
  padding: 12px 28px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s; }
  .btn-ghost:hover {
    border-color: #0ea0b9;
    color: #f0f0f0;
    background: rgba(14, 160, 185, 0.15);
    text-decoration: none; }

.platform-select {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center; }
  .platform-select__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #0ea0b9;
    margin: 0 0 18px;
    opacity: 0.85; }
  .platform-select__heading {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(135deg, #f0f0f0 0%, rgba(240, 240, 240, 0.55) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; }
  .platform-select__sub {
    font-size: 1.05rem;
    color: rgba(240, 240, 240, 0.45);
    margin: 0 0 56px;
    letter-spacing: 0.01em; }

.platform-cards {
  display: flex;
  gap: 32px;
  flex-wrap: nowrap;
  justify-content: center; }
  @media (max-width: 540px) {
    .platform-cards {
      flex-wrap: wrap; } }
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 240px;
  padding: 48px 32px 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(240, 240, 240, 0.1);
  border-radius: 22px;
  text-decoration: none;
  color: #f0f0f0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, box-shadow 0.2s, background 0.2s; }
  .platform-card:hover {
    transform: translateY(-10px) scale(1.03);
    text-decoration: none;
    color: #f0f0f0; }
  .platform-card__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center; }
    .platform-card__icon img,
    .platform-card__icon svg {
      width: 100%;
      height: 100%;
      object-fit: contain; }
  .platform-card__name {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1; }
  .platform-card__hint {
    font-size: 14px;
    color: rgba(240, 240, 240, 0.45);
    letter-spacing: 0.02em;
    margin-top: -6px; }
  .platform-card--yt .platform-card__name {
    color: #F61C0D; }
  .platform-card--yt:hover {
    border-color: rgba(246, 28, 13, 0.55);
    box-shadow: 0 20px 56px rgba(246, 28, 13, 0.2);
    background: rgba(246, 28, 13, 0.05); }
  .platform-card--sc .platform-card__name {
    color: #FF5500; }
  .platform-card--sc:hover {
    border-color: rgba(255, 85, 0, 0.55);
    box-shadow: 0 20px 56px rgba(255, 85, 0, 0.2);
    background: rgba(255, 85, 0, 0.05); }

.meta-layout {
  display: flex;
  gap: 48px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
  align-items: flex-start; }
  @media (max-width: 700px) {
    .meta-layout {
      flex-direction: column;
      align-items: center; } }
.meta-cover {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px; }

.cover-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 240, 240, 0.1); }
  .cover-wrapper:hover .cover-edit-btn {
    opacity: 1; }

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; }

.cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(240, 240, 240, 0.45); }
  .cover-placeholder .ms-Icon {
    font-size: 52px; }
  .cover-placeholder span {
    font-size: 13px; }

.cover-edit-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity 0.18s;
  cursor: pointer; }
  .cover-edit-btn .ms-Icon {
    font-size: 30px;
    color: #f0f0f0; }
  .cover-edit-btn:hover .ms-Icon {
    color: #0ea0b9; }

.cover-hint {
  font-size: 12px;
  color: rgba(240, 240, 240, 0.45);
  text-align: center;
  margin: 0; }
  .cover-hint kbd {
    background: rgba(240, 240, 240, 0.08);
    border: 1px solid rgba(240, 240, 240, 0.18);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 11px;
    font-family: inherit;
    color: rgba(240, 240, 240, 0.7); }

.meta-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 0 !important;
  padding: 0;
  justify-content: flex-start;
  align-items: flex-start; }
  .meta-fields__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px;
    background: linear-gradient(90deg, #0ea0b9 0%, #46d8f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; }

.meta-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px; }
  .meta-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(240, 240, 240, 0.45); }
  .meta-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(240, 240, 240, 0.1);
    border-radius: 8px;
    padding: 11px 14px;
    color: #f0f0f0;
    font-size: 15px;
    transition: border-color 0.18s, background 0.18s;
    margin: 0 !important; }
    .meta-field input::placeholder {
      color: rgba(240, 240, 240, 0.28); }
    .meta-field input:focus {
      outline: none;
      border-color: #0ea0b9;
      background: rgba(14, 160, 185, 0.15); }

.meta-submit {
  margin-top: 6px;
  align-self: flex-start; }

.meta-flash {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #f87171;
  font-size: 14px; }

.success-page {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box; }

.success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 240, 240, 0.1);
  border-radius: 22px;
  padding: 60px 52px;
  max-width: 440px;
  width: 100%;
  text-align: center; }

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(14, 160, 185, 0.12);
  border: 2px solid #0ea0b9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px; }
  .success-icon .ms-Icon {
    font-size: 34px;
    color: #0ea0b9; }

.success-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.3px; }

.success-sub {
  color: rgba(240, 240, 240, 0.45);
  font-size: 14px;
  margin: 0; }

.btn-download {
  margin-top: 6px;
  padding: 16px 40px;
  font-size: 16px; }

.loading-card {
  max-width: 540px;
  margin: 2rem auto; }

.crop-page {
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  box-sizing: border-box; }

.crop-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
  max-width: 1100px; }
  @media (max-width: 760px) {
    .crop-layout {
      flex-direction: column;
      align-items: center; } }
.crop-canvas {
  flex: 1 1 auto;
  min-width: 0; }
  .crop-canvas img {
    display: block;
    max-width: 100%; }

.crop-sidebar {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px; }
  @media (max-width: 760px) {
    .crop-sidebar {
      flex: unset;
      width: 100%;
      max-width: 340px; } }
.crop-sidebar__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(240, 240, 240, 0.45);
  margin: 0; }

.crop-preview {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  border: 1px solid rgba(240, 240, 240, 0.1);
  overflow: hidden;
  background: #111111; }
  @media (max-width: 760px) {
    .crop-preview {
      width: 160px;
      height: 160px; } }
.crop-actions {
  display: flex;
  flex-direction: column;
  gap: 10px; }

.crop-hint {
  font-size: 13px;
  color: rgba(240, 240, 240, 0.45);
  margin: 0; }

.upload-page {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-sizing: border-box; }

.upload-card {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center; }
  .upload-card__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: #f0f0f0; }
  .upload-card__sub {
    font-size: 14px;
    color: rgba(240, 240, 240, 0.45);
    margin: 0; }

input[type="text"],
input[type="url"] {
  background: #111111;
  border: 1px solid rgba(240, 240, 240, 0.1);
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box; }
  input[type="text"]::placeholder,
  input[type="url"]::placeholder {
    color: rgba(240, 240, 240, 0.45); }
  input[type="text"]:focus,
  input[type="url"]:focus {
    border-color: #0ea0b9;
    box-shadow: 0 0 0 3px rgba(14, 160, 185, 0.15); }

.upload-flash {
  width: 100%;
  padding: 12px 16px;
  background: rgba(246, 28, 13, 0.08);
  border: 1px solid rgba(246, 28, 13, 0.3);
  border-radius: 8px;
  text-align: left;
  box-sizing: border-box; }
  .upload-flash p {
    font-size: 14px;
    color: rgba(246, 28, 13, 0.9);
    margin: 0; }

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 48px 24px;
  border: 2px dashed rgba(240, 240, 240, 0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #111111;
  box-sizing: border-box;
  margin-top: 8px; }
  .upload-dropzone:hover {
    border-color: #0ea0b9;
    background: rgba(14, 160, 185, 0.05); }
  .upload-dropzone .ms-Icon {
    font-size: 40px;
    color: rgba(240, 240, 240, 0.45);
    transition: color 0.2s; }
  .upload-dropzone:hover .ms-Icon {
    color: #0ea0b9; }
  .upload-dropzone input[type="file"] {
    display: none; }
  .upload-dropzone__label {
    font-size: 15px;
    font-weight: 600;
    color: #f0f0f0; }
  .upload-dropzone__hint {
    font-size: 13px;
    color: rgba(240, 240, 240, 0.45); }
    .upload-dropzone__hint kbd {
      display: inline-block;
      padding: 2px 6px;
      background: rgba(240, 240, 240, 0.08);
      border: 1px solid rgba(240, 240, 240, 0.15);
      border-radius: 4px;
      font-size: 12px;
      font-family: inherit; }
