/* Tropicalia Records — Ultra Responsive v7
   Responsive layer only. It preserves the original desktop identity and layout. */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
main,
.site-header,
.hero,
.hero-copy,
.hero-release,
.section,
.section-heading,
.release-card,
.release-info,
.playlist-shell,
.playlist-row,
.about-slice,
.radio-feature,
.artist-profile,
.release-hero,
.release-content,
.about-page-hero,
.demo-page,
.contact-page,
.site-footer {
  min-width: 0;
}

img,
video,
iframe,
svg,
canvas,
audio {
  max-width: 100%;
}

input,
textarea,
select,
button {
  max-width: 100%;
}

/* Large tablets, small laptops and browser windows. */
@media (min-width: 901px) and (max-width: 1180px) {
  .site-header,
  .site-header.scrolled {
    padding-left: clamp(28px, 4vw, 48px);
    padding-right: clamp(28px, 4vw, 48px);
  }

  .main-nav {
    gap: clamp(14px, 1.65vw, 24px);
    font-size: .76rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .82fr);
    gap: clamp(28px, 4vw, 54px);
    padding: 122px clamp(34px, 5vw, 62px) 64px;
  }

  .hero-copy h1 {
    font-size: clamp(4.2rem, 7vw, 6.4rem);
    line-height: .78;
    max-width: 100%;
  }

  .hero-tagline {
    font-size: clamp(1.65rem, 2.6vw, 2.5rem);
    line-height: 1.02;
  }

  .hero-text {
    font-size: 1rem;
    max-width: 43ch;
  }

  .hero-release {
    width: min(100%, 440px);
  }

  .cover-shell {
    border-radius: 30px;
  }

  .hero-release-meta strong {
    font-size: 1.7rem;
  }

  .section {
    padding-left: clamp(28px, 5vw, 58px);
    padding-right: clamp(28px, 5vw, 58px);
  }

  .release-grid {
    gap: 38px 24px;
  }

  .release-hero {
    grid-template-columns: minmax(0, .95fr) minmax(330px, .9fr);
    gap: clamp(36px, 5vw, 70px);
    padding-left: clamp(38px, 5vw, 68px);
    padding-right: clamp(38px, 5vw, 68px);
  }

  .release-detail-copy h1,
  .artist-profile-copy h1,
  .about-page-copy h1,
  .demo-page-copy h1,
  .contact-intro h1 {
    font-size: clamp(4.3rem, 7.4vw, 6.8rem);
  }
}

/* Tablets and all compact navigation widths. */
@media (max-width: 900px) {
  .site-header,
  .site-header.scrolled {
    min-height: 72px;
    padding: max(13px, env(safe-area-inset-top)) clamp(18px, 4vw, 30px) 12px;
  }

  .brand {
    max-width: calc(100% - 64px);
    gap: .55rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .brand span {
    display: inline !important;
    font-size: .76rem;
    letter-spacing: .075em;
    white-space: nowrap;
  }

  .menu-toggle {
    display: block;
    z-index: 1002;
    flex: 0 0 44px;
    touch-action: manipulation;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    min-height: 100dvh;
    padding: calc(92px + env(safe-area-inset-top)) clamp(26px, 7vw, 58px) calc(38px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(18px, 3.5vh, 34px);
    background:
      radial-gradient(circle at 80% 20%, rgba(214, 164, 79, .16), transparent 30%),
      linear-gradient(145deg, #172219, #243a2c 62%, #151a17);
    font: 400 clamp(2.3rem, 7vw, 4.4rem)/.95 var(--serif);
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .main-nav.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  .main-nav .nav-demo {
    min-height: 50px;
    margin-top: .25rem;
    padding: .85rem 1.35rem;
    font: 700 .78rem/1 var(--sans);
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: clamp(42px, 8vw, 68px);
    padding: clamp(112px, 16vw, 138px) clamp(22px, 6vw, 54px) clamp(58px, 9vw, 84px);
  }

  .hero-copy,
  .hero-release {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0 1.2rem;
    font-size: clamp(4.3rem, 12.8vw, 7.5rem);
    line-height: .8;
    letter-spacing: -.058em;
    white-space: nowrap;
  }

  .hero-tagline {
    max-width: 24ch;
    font-size: clamp(1.8rem, 5.5vw, 2.85rem);
    line-height: 1.03;
    overflow-wrap: break-word;
  }

  .hero-text {
    max-width: 46rem;
    font-size: clamp(1rem, 2.3vw, 1.13rem);
    line-height: 1.6;
  }

  .hero-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 12px;
  }

  .hero-actions .btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hero-release {
    justify-self: center;
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .cover-shell {
    width: min(100%, 540px);
    margin-inline: auto;
    transform: rotate(1.6deg);
  }

  .hero-release-meta {
    width: min(100%, 540px);
    margin-inline: auto;
  }

  .scroll-cue {
    display: none;
  }

  .section,
  .instagram-section {
    padding-left: clamp(20px, 5vw, 42px);
    padding-right: clamp(20px, 5vw, 42px);
  }

  .section-heading {
    gap: 1.25rem;
  }

  .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 46px) clamp(16px, 3vw, 28px);
  }

  .playlist-shell,
  .about-slice,
  .radio-feature,
  .release-hero,
  .release-content,
  .artist-profile,
  .radio-card,
  .about-page-hero,
  .demo-page,
  .contact-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .playlist-visual {
    position: static;
  }

  .playlist-cover-stack {
    width: min(100%, 430px);
  }

  .artist-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .radio-feature {
    min-height: auto;
  }

  .radio-image {
    max-height: 640px;
  }

  .insta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-hero {
    min-height: auto;
    padding: 118px clamp(22px, 6vw, 54px) 70px;
  }

  .release-detail-cover,
  .artist-profile-image {
    order: -1;
    justify-self: center;
    width: min(100%, 560px);
  }

  .artist-profile,
  .about-page-hero,
  .demo-page-copy,
  .contact-page {
    padding-left: clamp(22px, 6vw, 54px);
    padding-right: clamp(22px, 6vw, 54px);
  }

  .demo-page-art {
    max-height: 55vh;
  }

  .values-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    justify-content: flex-start;
  }

  .catalog-filter {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .catalog-filter::-webkit-scrollbar {
    display: none;
  }

  .player-panel {
    width: calc(100% - 22px);
    bottom: max(11px, env(safe-area-inset-bottom));
  }

  .player-core {
    grid-template-columns: minmax(210px, 1fr) 145px minmax(220px, 1.05fr);
  }

  .player-tools {
    grid-column: 1 / -1;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
}

/* Phones and narrow foldables. */
@media (max-width: 620px) {
  .site-header,
  .site-header.scrolled {
    min-height: 68px;
    padding-left: 16px;
    padding-right: 14px;
  }

  .brand {
    gap: .45rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand span {
    font-size: .68rem;
  }

  .hero {
    gap: 38px;
    padding: 103px 18px 52px;
  }

  .hero-copy h1 {
    margin: .9rem 0 1.1rem;
    font-size: clamp(3.55rem, 12.8vw, 5rem);
    line-height: .82;
    letter-spacing: -.052em;
  }

  .hero .eyebrow {
    font-size: clamp(.58rem, 2.65vw, .7rem);
    letter-spacing: .14em;
  }

  .hero .eyebrow:before {
    width: clamp(1.1rem, 6vw, 1.8rem);
  }

  .hero-tagline {
    max-width: 100%;
    margin-bottom: .95rem;
    font-size: clamp(1.5rem, 6.6vw, 2.05rem);
    line-height: 1.06;
  }

  .hero-text {
    max-width: 100%;
    margin: 0;
    font-size: clamp(.94rem, 4vw, 1.02rem);
    line-height: 1.55;
  }

  .hero-actions {
    width: 100%;
    margin-top: 1.65rem;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 52px;
    padding: .9rem 1rem;
    text-align: center;
  }

  .hero-release {
    width: calc(100% - 10px);
  }

  .cover-shell {
    width: 100%;
    padding: 5%;
    border-radius: 26px;
    transform: rotate(1deg);
  }

  .cover-shell img {
    border-radius: 18px;
  }

  .hero-release-meta {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 1.15rem;
  }

  .hero-release-meta strong {
    font-size: 1.8rem;
    line-height: 1.05;
  }

  .hero-release-meta small {
    margin-top: .2rem;
  }

  .section,
  .instagram-section,
  .about-slice,
  .artist-profile,
  .about-page-hero,
  .demo-page-copy,
  .contact-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: clamp(2.65rem, 13vw, 4.25rem);
  }

  .release-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .release-info {
    gap: .65rem;
  }

  .playlist-shell {
    gap: 38px;
  }

  .playlist-visual h3 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .playlist-row {
    grid-template-columns: 28px 48px minmax(0, 1fr) 42px;
    gap: 9px;
    padding: 12px 4px;
  }

  .playlist-row img {
    width: 48px;
    height: 48px;
  }

  .playlist-copy,
  .release-info > div:first-child,
  .player-now > div {
    min-width: 0;
  }

  .playlist-copy strong,
  .playlist-copy small,
  .player-now strong,
  .player-now small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .artist-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artist-card:last-child {
    display: none;
  }

  .radio-copy {
    padding: 58px 20px;
  }

  .insta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-cta {
    min-height: 620px;
  }

  .page-hero {
    min-height: 56vh;
    padding: 118px 18px 54px;
  }

  .page-hero h1,
  .release-detail-copy h1,
  .artist-profile-copy h1,
  .about-page-copy h1,
  .demo-page-copy h1,
  .contact-intro h1 {
    max-width: 100%;
    font-size: clamp(3.35rem, 15vw, 5rem);
    line-height: .84;
    overflow-wrap: break-word;
  }

  .release-content {
    padding-top: 54px;
  }

  .release-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .release-hero-actions .btn {
    width: 100%;
  }

  .mini-release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-release-grid a:last-child {
    display: none;
  }

  .directory-card {
    grid-template-columns: 30px 88px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 14px;
  }

  .directory-card h2 {
    margin-bottom: .45rem;
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .directory-card p {
    display: none;
  }

  .directory-card img {
    border-radius: 14px;
  }

  .radio-card {
    padding: 17px;
    border-radius: 22px;
  }

  .radio-card h2 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .site-footer {
    padding: 40px 18px calc(34px + env(safe-area-inset-bottom));
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
  }

  .player-panel {
    width: 100%;
    bottom: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  .player-core {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .player-now {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  .player-now img {
    width: 56px;
    height: 56px;
  }

  .player-transport {
    grid-row: 1;
    grid-column: 2;
  }

  .player-transport > button:not(.player-main-button) {
    display: none;
  }

  .player-main-button {
    width: 48px;
    height: 48px;
  }

  .player-timeline {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .player-tools {
    grid-row: 3;
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 6px;
  }

  .player-tools input,
  .player-tools [data-player-mute],
  .player-tools a {
    display: none;
  }

  .player-queue {
    max-height: min(65vh, 560px);
    border-radius: 22px 22px 0 0;
  }

  .player-launcher {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
  }
}

/* Very small phones. */
@media (max-width: 360px) {
  .site-header,
  .site-header.scrolled {
    padding-left: 13px;
    padding-right: 10px;
  }

  .brand img {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
  }

  .brand span {
    font-size: .61rem;
  }

  .hero,
  .section,
  .instagram-section,
  .about-slice,
  .artist-profile,
  .about-page-hero,
  .demo-page-copy,
  .contact-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(3.25rem, 14.2vw, 3.55rem);
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  .hero-actions .btn {
    min-height: 49px;
    font-size: .76rem;
  }

  .directory-card {
    grid-template-columns: 25px 72px minmax(0, 1fr);
    gap: 9px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .footer-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Short landscape phones: use a compact two-column hero. */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
  .site-header,
  .site-header.scrolled {
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero {
    min-height: 100svh;
    grid-template-columns: minmax(0, 1.08fr) minmax(230px, .82fr);
    align-items: center;
    gap: 28px;
    padding: 76px 28px 28px;
  }

  .hero-copy h1 {
    font-size: clamp(3.6rem, 8vw, 5.2rem);
  }

  .hero-tagline {
    font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  }

  .hero-text {
    font-size: .9rem;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 1rem;
    flex-direction: row;
  }

  .hero-actions .btn {
    width: auto;
    min-height: 46px;
  }

  .hero-release {
    width: min(100%, 300px);
  }

  .hero-release-meta {
    display: none;
  }
}

/* Touch devices should not depend on hover-only affordances. */
@media (hover: none) {
  .release-view {
    opacity: 1;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: auto;
    transform: none;
    padding: .62rem .78rem;
  }

  .release-card:hover .release-view {
    transform: none;
  }

  .btn:hover,
  .player-launcher:hover {
    transform: none;
  }
}
