* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'polymath-text', 'polymath', 'IBM Plex Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #ffffff;
  color: #000000;
  line-height: 1.5;
}

.app-container {
  min-height: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-overlay .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.loading-overlay p {
  font-size: 14px;
  color: #666;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.error-content {
  text-align: center;
  padding: 40px;
}

.error-icon {
  width: 64px;
  height: 64px;
  color: #999;
  margin-bottom: 20px;
}

.error-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.error-content p {
  font-size: 14px;
  color: #666;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 35px;
  padding-bottom: 40px;
}

.logo-section {
  text-align: center;
  margin-bottom: 60.16px;
}

.vcs-logo {
  width: 124px;
  height: 124px;
  background-image: url('/images/vcs-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto;
}

.user-info-section {
  text-align: center;
  margin-bottom: 30px;
}

.user-nickname {
  height: 20px;
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 12px;
}

.user-divider {
  width: 100%;
  height: 5px;
  background-image: url('/images/user-divider.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto;
}

.message-section {
  margin-bottom: 20px;
}

.message-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.36px;
  color: #000000;
  margin-bottom: 4px;
}

.message-text-en {
  font-family: 'polymath-text', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.39px;
  color: #000000;
}

.message-text-en:first-of-type {
  line-height: 2.25;
}

.video-section {
  margin-bottom: 0;
}

.video-frame {
  position: relative;
  padding: 0;
}

.corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.corner::before,
.corner::after {
  content: '';
  position: absolute;
  background-color: #000000;
}

.corner-tl {
  top: -6px;
  left: -6px;
}

.corner-tl::before {
  top: 0;
  left: 0;
  width: 1px;
  height: 7.01px;
  transform: rotate(-60.65deg);
}

.corner-tr {
  top: -6px;
  right: -6px;
}

.corner-tr::before {
  top: 0;
  right: 0;
  width: 1px;
  height: 7.01px;
  transform: rotate(60.65deg);
}

.corner-bl {
  bottom: -6px;
  left: -6px;
}

.corner-bl::before {
  bottom: 0;
  left: 0;
  width: 1px;
  height: 7.01px;
  transform: rotate(60.65deg);
}

.corner-br {
  bottom: -6px;
  right: -6px;
}

.corner-br::before {
  bottom: 0;
  right: 0;
  width: 1px;
  height: 7.01px;
  transform: rotate(-60.65deg);
}

.video-frame.uploaded .corner {
  width: 6px;
  height: 6px;
}

.video-frame.uploaded .corner::before,
.video-frame.uploaded .corner::after {
  transform: none;
}

.video-frame.uploaded .corner-tl {
  top: -9px;
  left: -9px;
}

.video-frame.uploaded .corner-tl::before {
  top: 0;
  left: 8px;
  width: 1px;
  height: 6px;
}

.video-frame.uploaded .corner-tl::after {
  content: '';
  top: 8px;
  left: 0;
  width: 6px;
  height: 1px;
}

.video-frame.uploaded .corner-tr {
  top: -9px;
  right: -9px;
}

.video-frame.uploaded .corner-tr::before {
  top: 0;
  right: 8px;
  width: 1px;
  height: 6px;
}

.video-frame.uploaded .corner-tr::after {
  content: '';
  top: 8px;
  right: 0;
  width: 6px;
  height: 1px;
}

.video-frame.uploaded .corner-bl {
  bottom: -9px;
  left: -9px;
}

.video-frame.uploaded .corner-bl::before {
  bottom: 0;
  left: 8px;
  width: 1px;
  height: 6px;
}

.video-frame.uploaded .corner-bl::after {
  content: '';
  bottom: 8px;
  left: 0;
  width: 6px;
  height: 1px;
}

.video-frame.uploaded .corner-br {
  bottom: -9px;
  right: -9px;
}

.video-frame.uploaded .corner-br::before {
  bottom: 0;
  right: 8px;
  width: 1px;
  height: 6px;
}

.video-frame.uploaded .corner-br::after {
  content: '';
  bottom: 8px;
  right: 0;
  width: 6px;
  height: 1px;
}

.video-area {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.58);
}

.video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.video-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-area.has-x-mark::before,
.video-area.has-x-mark::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.video-area.has-x-mark::before {
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    rgba(255, 255, 255, 0.3) calc(50% - 1px),
    rgba(255, 255, 255, 0.3) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

.video-area.has-x-mark::after {
  background: linear-gradient(
    to top right,
    transparent calc(50% - 1px),
    rgba(255, 255, 255, 0.3) calc(50% - 1px),
    rgba(255, 255, 255, 0.3) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

.action-section {
  margin-top: 0;
  text-align: center;
}

.top-decoration {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 1px;
  position: relative;
  margin-top: 30px;
}

.deco-line {
  width: 6px;
  height: 1px;
  content: '';
  position: absolute;
  background-color: #000000;
}

.deco-line-left {
  top: 0;
  left: -9px;
}

.deco-line-right {
  top: 0;
  right: -9px;
}

.download-button {
  all: unset;
}

.download-button img {
  width: 100%;
  margin: 0 auto;
}

.download-button:hover {
  opacity: 0.8;
}

.processing-status {
  padding: 0;
  text-align: center;
}

.processing-status img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.download-deadline {
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  letter-spacing: 0.45px;
  margin-top: 15px;
  margin-bottom: 60px;
}

.deadline-date {
  font-family: 'polymath-text', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  letter-spacing: 0.39px;
}

.sns-message {
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  margin-bottom: 60px;
}

.hashtag {
  color: #FF591E;
  font-weight: 400;
}

.footer {
  text-align: center;
  padding-bottom: 20px;
}

.footer p {
  font-family: "IBM Plex Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000000;
}

@media (max-width: 440px) {
  .app-container {
    padding: 0 20px;
  }

  .user-divider {
    width: 100%;
  }

  .download-text-ja {
    font-size: 24px;
  }

  .processing-text-ja {
    font-size: 24px;
  }
}
