/* Richard Heart Page Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    min-height: 100vh;
    position: relative;
}

/* Remove overlay since we're using black background */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Main Heading Styles */
.main-heading {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.sub-heading {
    font-size: 1.3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.x-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #000000;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.x-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background: #1a1a1a;
}

.x-icon {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.explore-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #ff0, #ff00ff);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.explore-button:hover {
    background: linear-gradient(45deg, #ffaa00, #ff0080);
    transform: translateY(-2px);
}

/* Main Content */
main {
    padding: 60px 20px;
    min-height: 60vh;
}

/* Richard Heart Introduction Section */
.richard-intro-section {
    margin-bottom: 0;
    background-image: url('../richardheartwin/car.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 60px 0;
    border-radius: 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.richard-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0;
    z-index: 1;
}

.richard-intro-section > * {
    position: relative;
    z-index: 2;
}

.richard-intro-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-heading {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.section-subheading {
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-style: italic;
}

.intro-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.video-container {
    flex: 0 0 400px;
    position: relative;
}

.richard-video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #000;
}

.text-content {
    flex: 1;
    padding: 0 20px;
}

.text-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
    text-align: justify;
}

.text-content p:last-child {
    margin-bottom: 0;
}

/* Childhood Photos Section */
.childhood-photos-section {
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    background: #000000;
    padding: 60px 20px;
    min-height: 300px;
}

.childhood-photos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../richardheartwin/blackBackgroundPattern.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: 1;
}

.childhood-photos-section > * {
    position: relative;
    z-index: 2;
}

.polaroid-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.polaroid {
    background: #ffffff;
    padding: 20px 20px 70px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 180px;
    height: auto;
    position: relative;
}

.polaroid:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.polaroid-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 3px;
}

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

.polaroid-caption {
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 15px;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #333;
    text-align: center;
    font-weight: bold;
}

/* Richard Heart vs SEC Section */
.sec-section {
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
}

.sec-background {
    min-height: 600px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../richardheartwin/secbackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.sec-overlay {
    background: transparent;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    backdrop-filter: none;
    border-radius: 20px;
    border: none;
    position: relative;
    z-index: 2;
}

.sec-section .section-heading {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    color: #ffffff;
    opacity: 1;
}

.sec-content {
    max-width: 1000px;
    margin: 0 auto;
}

.sec-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #ffffff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    opacity: 1;
}

.sec-content p:last-child {
    margin-bottom: 0;
}

.content-area {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer Styles */
.richard-heart-footer {
    padding: 40px 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.2);
    margin-top: auto;
}

.richard-heart-footer .disclaimer {
    background: transparent;
    padding: 15px 0;
    margin-bottom: 15px;
    font-size: 0.75rem;
    line-height: 1.4;
    border: none;
}

.richard-heart-footer p {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.richard-heart-footer a {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.richard-heart-footer a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-heading {
        font-size: 2.2rem;
    }

    .sub-heading {
        font-size: 1.1rem;
    }

    .header-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .richard-intro-section {
        padding: 80px 15px 40px 15px;
    }

    .intro-content {
        flex-direction: column;
        gap: 30px;
    }

    .video-container {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .text-content {
        padding: 0;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .section-subheading {
        font-size: 1.2rem;
    }

    .childhood-photos-section {
        min-height: 250px;
    }

    .polaroid-gallery {
        gap: 15px;
        padding: 0;
    }

    .polaroid {
        width: 150px;
        transform: rotate(0deg);
    }

    .polaroid:nth-child(even) {
        transform: rotate(0deg);
    }

    .polaroid-image {
        height: 120px;
    }

    .polaroid-caption {
        font-size: 10px;
    }

    .sec-overlay {
        padding: 40px 20px;
        margin: 0 20px;
    }

    .sec-content p {
        font-size: 1rem;
    }

    .content-area {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-heading {
        font-size: 1.8rem;
    }

    .sub-heading {
        font-size: 1rem;
    }

    .explore-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .x-button {
        width: 45px;
        height: 45px;
    }

    .x-icon {
        width: 24px;
        height: 24px;
    }

    .richard-intro-section {
        padding: 60px 10px 30px 10px;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .section-subheading {
        font-size: 1rem;
    }

    .text-content p {
        font-size: 0.9rem;
        text-align: left;
    }

    .childhood-photos-section {
        min-height: 200px;
    }

    .polaroid-gallery {
        gap: 10px;
        padding: 0;
    }

    .polaroid {
        width: 130px;
    }

    .polaroid-image {
        height: 100px;
    }

    .polaroid-caption {
        font-size: 9px;
    }

    .sec-overlay {
        padding: 30px 15px;
        margin: 0 15px;
    }

    .sec-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .section-heading {
        font-size: 1.3rem;
    }
}

/* Richard Heart is a Force of Good Section */
.force-of-good-section {
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    background: #000000;
    padding: 60px 0;
}

.force-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../richardheartwin/why.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.force-overlay {
    position: relative;
    z-index: 2;
}

.force-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.force-text-content {
    flex: 1;
    max-width: 50%;
}

.force-text-content p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.force-text-content p:last-child {
    margin-bottom: 0;
}

.force-video-container {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.force-video {
    width: 76.9%; /* 100% / 1.3 to compensate for the scale */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    object-position: center;
    border: 4px solid #000000;
    transform: scale(1.3);
    transform-origin: center;
}

/* Responsive Force of Good Section */
@media (max-width: 768px) {
    .force-content {
        flex-direction: column-reverse;
        gap: 30px;
        margin-top: 30px;
    }

    .force-text-content,
    .force-video-container {
        max-width: 100%;
    }

    .force-text-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .force-of-good-section {
        padding: 40px 0;
    }

    .force-content {
        gap: 25px;
        margin-top: 25px;
    }

    .force-text-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Film Reel Section */
.film-reel-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: #000000;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
}

.film-reel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.film-reel-track {
    display: flex;
    animation: filmReelScroll 40s linear infinite;
    width: fit-content;
}

.film-reel-image {
    width: 200px;
    height: 120px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.film-reel-image:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

@keyframes filmReelScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Move exactly half the width to show the duplicate set */
    }
}

/* The Highest Of Stakes Section */
.thos-section {
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    background: #000000;
    padding: 60px 0;
}

.thos-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../richardheartwin/thos.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.thos-overlay {
    position: relative;
    z-index: 2;
}

.thos-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.thos-video-container {
    flex: 1;
    max-width: 50%;
}

.thos-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.thos-text-content {
    flex: 1;
    max-width: 50%;
}

.thos-text-content p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.thos-text-content p:last-of-type {
    margin-bottom: 0;
}

.thos-button-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.thos-link {
    display: inline-block;
    background: linear-gradient(45deg, #ff0, #ff00ff);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.thos-link:hover {
    background: linear-gradient(45deg, #ffaa00, #ff0080);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 255, 0.4);
}

/* Responsive THOS Section */
/* Responsive Film Reel */
@media (max-width: 768px) {
    .film-reel-section {
        padding: 30px 0;
    }
    
    .film-reel-image {
        width: 150px;
        height: 90px;
        margin-right: 15px;
    }
    
    .film-reel-track {
        animation-duration: 30s; /* Slightly faster on mobile */
    }
}

@media (max-width: 480px) {
    .film-reel-section {
        padding: 20px 0;
    }
    
    .film-reel-image {
        width: 120px;
        height: 70px;
        margin-right: 10px;
    }
    
    .film-reel-track {
        animation-duration: 24s; /* Even faster on small mobile */
    }
}

@media (max-width: 768px) {
    .thos-content {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }

    .thos-video-container,
    .thos-text-content {
        max-width: 100%;
    }

    .thos-text-content p {
        font-size: 1rem;
    }

    .thos-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .thos-section {
        padding: 40px 0;
    }

    .thos-content {
        gap: 25px;
        margin-top: 25px;
    }

    .thos-text-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .thos-link {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* The HEX.com Diamond Section */
.diamond-section {
    margin-bottom: 0;
    background: #000000;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.floating-hex-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-hex {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: url('../richardheartwin/hex.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    animation: float 15s infinite linear;
}

.hex1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.hex2 {
    top: 20%;
    right: 15%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.hex3 {
    bottom: 30%;
    left: 20%;
    animation-delay: -6s;
    animation-duration: 22s;
}

.hex4 {
    top: 60%;
    right: 25%;
    animation-delay: -9s;
    animation-duration: 16s;
}

.hex5 {
    top: 40%;
    left: 5%;
    animation-delay: -12s;
    animation-duration: 24s;
}

.hex6 {
    bottom: 20%;
    right: 5%;
    animation-delay: -15s;
    animation-duration: 19s;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(0px) translateX(20px) rotate(180deg);
    }
    75% {
        transform: translateY(20px) translateX(10px) rotate(270deg);
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg);
    }
}

.diamond-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.diamond-text-content {
    flex: 1;
    max-width: 50%;
}

.diamond-text-content p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.diamond-text-content p:last-child {
    margin-bottom: 0;
}

.diamond-image-container {
    flex: 1;
    max-width: 50%;
    text-align: center;
}

.diamond-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 500px;
}

.diamond-button-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.hex-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff0, #ff00ff);
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 6px 20px rgba(255, 0, 255, 0.3);
    border: none;
    position: relative;
    z-index: 3;
}

.hex-button:hover {
    background: linear-gradient(45deg, #ffaa00, #ff0080);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 255, 0.5);
}

/* Responsive Diamond Section */
@media (max-width: 768px) {
    .diamond-content {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }

    .diamond-text-content,
    .diamond-image-container {
        max-width: 100%;
    }

    .diamond-text-content p {
        font-size: 1rem;
    }

    .diamond-image {
        max-width: 400px;
    }

    .diamond-button-container {
        margin-top: 30px;
    }

    .hex-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .diamond-section {
        padding: 40px 0;
    }

    .diamond-content {
        gap: 25px;
        margin-top: 25px;
    }

    .diamond-text-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .diamond-image {
        max-width: 300px;
    }

    .diamond-button-container {
        margin-top: 25px;
    }

    .hex-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* Richard Heart - Visionary or Conman Section */
.visionary-section {
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    background: #000000;
    padding: 60px 0;
}

.visionary-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../richardheartwin/rh.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
}

.visionary-overlay {
    position: relative;
    z-index: 2;
}

.visionary-content {
    margin-top: 40px;
}

.visionary-text-content {
    max-width: 600px;
}

.visionary-text-content p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.visionary-text-content p:last-child {
    margin-bottom: 0;
    font-size: 1.2rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

/* Responsive Visionary Section */
@media (max-width: 768px) {
    .visionary-section {
        padding: 40px 0;
    }

    .visionary-content {
        margin-top: 30px;
    }

    .visionary-text-content {
        max-width: 100%;
    }

    .visionary-text-content p {
        font-size: 1rem;
    }

    .visionary-text-content p:last-child {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .visionary-section {
        padding: 30px 0;
    }

    .visionary-content {
        margin-top: 25px;
    }

    .visionary-text-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .visionary-text-content p:last-child {
        font-size: 1rem;
    }
}

/* Video Popup Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    align-items: flex-end;
    justify-content: flex-end;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    padding: 0;
    max-width: 400px;
    max-height: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
    transform: translateY(0);
    opacity: 1;
}

/* Minimized State */
.video-modal.minimized {
    width: 300px;
    height: 60px;
    right: 20px;
    bottom: 20px;
    cursor: pointer;
}

.video-modal.minimized .modal-content {
    width: 300px;
    height: 60px;
    max-width: 300px;
    max-height: 60px;
    border-radius: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    padding: 0 20px;
}

.video-modal.minimized .modal-header,
.video-modal.minimized .video-wrapper,
.video-modal.minimized .modal-footer {
    display: none;
}


.video-modal.minimized::before {
    content: '♪ Music Playing';
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.video-modal.minimized:hover::before {
    content: '♪♫ Click to Expand';
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    min-height: 60px;
}

.header-content {
    flex: 1;
    margin-right: 15px;
}

.modal-header h3 {
    color: #ffffff;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.music-credit {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.75rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.video-modal .close-btn {
    background: linear-gradient(45deg, #ff0, #ff00ff) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    padding: 5px !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
    box-shadow: 0 4px 10px rgba(255, 0, 255, 0.3) !important;
    border: 3px solid red !important; /* TEST - SHOULD SEE RED BORDER */
}

.video-modal .close-btn:hover {
    background: linear-gradient(45deg, #ffaa00, #ff0080) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 15px rgba(255, 0, 255, 0.5) !important;
}

.modal-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.video-modal .minimize-btn {
    background: linear-gradient(45deg, #ff0, #ff00ff) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    padding: 5px !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    font-weight: bold !important;
    box-shadow: 0 4px 10px rgba(255, 0, 255, 0.3) !important;
}

.video-modal .minimize-btn:hover {
    background: linear-gradient(45deg, #ffaa00, #ff0080) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 15px rgba(255, 0, 255, 0.5) !important;
}

.video-wrapper {
    padding: 15px;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-modal .video-wrapper video {
    width: 100% !important;
    max-width: 350px !important;
    max-height: 250px !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    object-fit: contain !important;
    border: 5px solid yellow !important; /* TEST - SHOULD SEE YELLOW BORDER */
    display: block !important;
    margin: 0 auto !important;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.close-modal-btn {
    background: linear-gradient(45deg, #ff0, #ff00ff);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.close-modal-btn:hover {
    background: linear-gradient(45deg, #ffaa00, #ff0080);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 0, 255, 0.5);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .video-modal {
        right: 15px;
        bottom: 15px;
    }

    .modal-content {
        max-width: 350px;
        max-height: 450px;
    }

    .modal-header {
        padding: 12px 15px;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .music-credit {
        font-size: 0.7rem;
    }

    .video-wrapper {
        padding: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .video-wrapper video {
        max-width: 320px;
        margin: 0 auto;
    }

    .modal-footer {
        padding: 12px 15px;
    }

    .close-modal-btn {
        padding: 7px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .video-modal {
        right: 10px;
        bottom: 10px;
    }

    .modal-content {
        max-width: 300px;
        max-height: 400px;
    }

    .modal-header {
        padding: 10px 12px;
    }

    .modal-header h3 {
        font-size: 1rem;
    }

    .music-credit {
        font-size: 0.65rem;
    }

    .video-wrapper {
        padding: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .video-wrapper video {
        max-width: 280px;
        margin: 0 auto;
    }

    .modal-footer {
        padding: 10px 12px;
    }

    .close-btn {
        font-size: 1.2rem;
        width: 25px;
        height: 25px;
    }

    .close-modal-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

