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

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 10% 20%, #1a0e0a 0, #080505 55%, #120a08 100%);
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.bg-orb-1 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, #f76b09 0, #f6a84d 40%, transparent 70%);
  top: -40px;
  left: -40px;
}

.bg-orb-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 70% 30%, #ff6b6b 0, #f76b09 45%, transparent 75%);
  top: -60px;
  right: -40px;
}

.bg-orb-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 70%, #f76b09 0, #ffb86c 35%, transparent 70%);
  bottom: -40px;
  left: 10%;
}

/* pageloader */
.pageloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, #1a0e0a 0, #080505 55%, #120a08 100%);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.pageloader-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(247, 107, 9, 0.12);
  border-top-color: #ffb74d;
  border-radius: 50%;
  animation: loaderSpin 0.7s linear infinite;
}

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

.pfp-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 5, 5, 0.7);
  border-bottom: 1px solid rgba(247, 107, 9, 0.1);
}

.pfp-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.pfp-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 183, 77, 0.3);
}

.pfp-name {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #ffb74d;
  letter-spacing: 0.04em;
}

.pfp-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.pfp-label {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(247, 107, 9, 0.15);
  color: #ffb74d;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

.pfp-switch {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 183, 77, 0.08);
  color: rgba(255, 183, 77, 0.5);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  transition: background 0.2s, color 0.2s;
}

.pfp-switch:hover {
  background: rgba(247, 107, 9, 0.15);
  color: #ffb74d;
}

.gallery {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  padding: 24px 18px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.column-heading {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #ffb74d;
  text-shadow: 0 0 20px rgba(255, 183, 77, 0.2);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(247, 107, 9, 0.15);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.card {
  background: rgba(18, 10, 8, 0.6);
  border-radius: 14px;
  border: 1px solid rgba(247, 107, 9, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(247, 107, 9, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(247, 107, 9, 0.15);
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #111;
}

.card-title {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 245, 245, 0.9);
  letter-spacing: 0.02em;
}

.detail {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  background: rgba(8, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  padding: 0;
  z-index: 200;
  animation: detailIn 0.25s ease;
}

.detail::backdrop {
  background: transparent;
}

@keyframes detailIn {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

.detail-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-close {
  position: sticky;
  top: 0;
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.detail-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.detail-hero-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-hero-row .detail-nav {
  flex-shrink: 0;
}

.detail-hero-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.detail-hero {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 12px;
  background: #0a0a12;
}

.detail-nav {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
  font-size: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.detail-nav:hover {
  background: rgba(0, 0, 0, 0.75);
}

.detail-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 245, 0.8);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.detail-title {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #ffb74d;
}

.detail-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 245, 245, 0.7);
}

.detail-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.detail-carousel-img {
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.5;
}

.detail-carousel-img:hover {
  opacity: 0.8;
}

.detail-carousel-img--active {
  border-color: #ffb74d;
  opacity: 1;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.tag-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(247, 107, 9, 0.15);
  border: 1px solid rgba(247, 107, 9, 0.25);
  color: #ffb74d;
}

.detail-source {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(247, 107, 9, 0.15);
  border: 1px solid rgba(247, 107, 9, 0.25);
  color: #ffb74d;
  text-decoration: none;
  font-size: 13px;
  align-self: flex-start;
  transition: background 0.2s;
}

.detail-source:hover {
  background: rgba(247, 107, 9, 0.25);
}

.detail-embed {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.detail-embed iframe {
  max-width: 100%;
  border-radius: 8px;
}

.pro-tabs-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.pro-tab-head {
  flex: 1;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(18, 10, 8, 0.5);
  border: 1px solid rgba(247, 107, 9, 0.08);
  color: rgba(255, 183, 77, 0.5);
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pro-tab-head:hover {
  background: rgba(247, 107, 9, 0.08);
  color: #ffb74d;
}

.pro-tab-head--active {
  background: rgba(247, 107, 9, 0.12);
  color: #ffb74d;
  border-color: rgba(255, 183, 77, 0.3);
}

.pro-tab-body {
  display: none;
}

.pro-tab-body--active {
  display: block;
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }

  .pro-tabs-bar {
    flex-direction: column;
  }
}
