@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
    --primary-color: #08ff839a;
    --text-color: #fff;
    --trans-color: #1312126b;
    --body-color : #131212;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'outfit';
    list-style: none;
    text-decoration: none;
}


body {
    width: 100%;
    height: 100%;
    background-color: #1b1d1e;
    color: #fff;
    padding: auto;
}

header {
    width: 100%;
    height: 100vh;
    position: relative;
    background: url(https://img.freepik.com/free-photo/mythical-dragon-beast-anime-style_23-2151112832.jpg?semt=ais_hybrid) no-repeat center;
    background-size: cover;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--trans-color), var(--body-color));
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 40px 50px;
    position: relative;
}

.navbar .nav-links {
    display: flex;
    gap: 40px;
}

.navbar .nav-links li a {
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

.navbar .icons {
    display: flex;
    gap: 30px;
}

.navbar .icons li {
    cursor: pointer;
}

.navbar .icons li i {
    font-size: 1.8rem;
    color: var(--text-color);
}

/* start hero section */
.hero {
    position: relative;
    margin-top: 150px;
    padding: 30px 40px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.15rem;
}

.hero ul {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.hero ul li {
    color: #ffffffba;
    text-transform: capitalize;
}

.hero ul .rating i {
    color: #ffe600;
}

.hero ul .rating {
    color: #ffffff8d;
}

.hero ul .rating span {
    color: #ffffffe1;
}

.hero ul .date {
    color: var(--primary-color);
}

.hero .buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.hero .buttons .play {
    width: 130px;
    height: 35px;
    border-radius: 100px;
    border: none;
    background: var(--primary-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
}

.hero .buttons .fav {
    width: 35px;
    height: 35px;
    border: 2px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    font-size: 1.1rem;
    border-radius: 100px;
    cursor: pointer;
}

.my-list {
    position: relative;
}

.my-list h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--text-color);
    letter-spacing: 0.2rem;
    margin-top: 40px;
}

.my-list .cards {
    width: 100%;
    height: 200px;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.my-list .cards::-webkit-scrollbar {
    display: none;
}

.my-list .cards .card {
    width: 150px;
    height: 200px;
    border-radius: 8px;
    cursor: pointer;
}

.my-list .cards .card .image {
    width: 150px;
    height: 200px;
}

.my-list .cards .card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

 /* Mobile Responsive Styles */
 @media (max-width: 768px) {
    .navbar {
        padding: 20px 25px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links li a {
        font-size: 0.9rem;
        letter-spacing: 0.1rem;
    }

    .hero {
        padding: 20px 25px;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero ul {
        flex-wrap: wrap;
        gap: 8px;
    }

    .buttons {
        flex-direction: column;
        width: 100%;
        max-width: 200px;
    }

    .play, .fav {
        width: 100% !important;
    }

    .my-list .cards .card {
        width: 120px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .navbar .icons {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
        margin-top: 150px;
    }

    .hero ul li {
        font-size: 0.9rem;
    }

    .my-list h2 {
        font-size: 1.2rem;
        margin-top: 30px;
    }

    .my-list .cards .card {
        width: 110px;
    }

    .card {
        margin-right: 40px;
    }

    .icons li i {
        font-size: 1.5rem;
    }
}

/* Touch optimization */
button {
    min-width: 44px;
    min-height: 44px;
}

.fav {
    display: none;
}

.nav-links li a {
    padding: 5px 0;
    display: block;
}

.main-container {
    padding: 20px;
}

/* Video trailer */
.video-grid {
    background-color: #fff;
    color: #000;
    display: grid;
    padding: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: auto;
}
.video-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.video-frame {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.video-info {
    padding: 10px;
}
.video-title {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
}
.channel-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}
.channel-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
}

@media (max-width: 768px) {
    h3 {
        margin-left: 10px;
    }
}

/* Grid content */
.grid-mg-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .grid-mg-container {
        grid-template-columns: 1fr;
    }
}
.grid-mg-section {
    padding: 15px;
}
.grid-mg-section h3 {
    color: #3af03a;
    margin-bottom: 15px;
    font-size: 18px;
    padding-bottom: 5px;
}
.an-grid-content {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: transform 0.2s ease-in-out;
    padding: 5px;
    border-radius: 5px;
}
.an-grid-content:hover {
    transform: scale(1.05);
    background-color: #333;
}
.an-grid-content img {
    width: 50px;
    height: 70px;
    border-radius: 1px;
    margin-right: 10px;
}
.an-grid-content-info {
    flex: 1;
}
.an-grid-content-info h4 {
    font-size: 14px;
    margin: 0;
    color: #fff;
}
.grid-meta-info {
    display: flex;
    align-items: center;
    margin-top: 5px;
    gap: 5px;
}
.grid-cc {
    background-color: #ffa600;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
.grid-cc svg {
    width: 17px;
    height: 17px;
    fill: #000;
    margin-right: 5px;
}
.grid-rating {
    background-color: #53FF86;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
.grid-rating svg {
    width: 14px;
    height: 14px;
    fill: #000;
    margin-right: 5px;
}
.grid-type {
    font-size: 12px;
    color: gray;
}
.view-more {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #3af03a;
    text-decoration: none;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 5px 0;
}


.share-box {
    background-color: #121315;
    border-radius: 10px;
    padding: 1rem;
    line-height: 1.25rem;
    margin-top: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.share-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: px;
}

.share-box p:first-child {
    color: #cae962;
    font-weight: var(--fw-600);
    font-size: calc(var(--fs-12) + 0.6px);
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.share-buttons a, .share-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto; /* Adjusted to fit content */
    height: 40px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    padding: 0 10px; /* Added padding for better spacing */
}

.whatsapp { background: #25D366; }
.facebook { background: #1877F2; }
.reddit { background: #FF4500; }
.twitter { background: #034d7b; }
.telegram { background: #0088cc; }
.instagram { background: #E4405F; } 
.copy-link { background: #333; }

.button-text {
    margin-left: 5px; /* Space between icon and text */
}

.separator {
    width: 2px;
    height: 50px;
    background: #333;
    margin: 0 15px;
}

@media (max-width: 768px) {
    .share-box {
        flex-direction: column;
        align-items: center;
    }
    .separator {
        display: none;
    }
    .share-buttons {
        margin-top: 10px;
    }
    .button-text {
        display: none; /* Hide text on mobile */
    }
    .share-buttons a, .share-buttons button {
        width: 40px; /* Fixed width for mobile */
        padding: 0; /* Remove padding for mobile */
    }
}

/* Top Characters */
.characters-top {
    width: auto;
    margin: auto;
}
h2 {
    font-size: 24px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.character {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    text-align: center;
    padding-bottom: 10px;
}
.character img {
    width: 100%;
    height: auto;
    display: block;
}
.chara-info {
    padding: 10px;
    font-size: 14px;
}
.chara-info h3 {
    font-size: 14px;
    margin: 5px 0;
}

/* Grid Scetion */
.grid-section {
    display: flex;
    gap: 24px;
    width: auto;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 20px;
}

.grid-column {
    flex: 1;
    background: #ffffff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.grid-column:hover {
    transform: translateY(-4px);
}

.grid-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.grid-data {
    display: flex;
    background: #ffffff;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.grid-data:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.grid-data img {
    width: 80px;
    height: 110px;
    object-fit: cover;
    flex-shrink: 0;
}

.anime-info {
    padding: 12px;
    flex-grow: 1;
}

.anime-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 6px;
}

.anime-details {
    font-size: 0.8rem;
    color: #4a5568;
    line-height: 1.4;
}

.rating {
    color: #2d3748;
    font-weight: 500;
}

.genre-list {
    display: block;
    font-size: 0.75rem;
    color: #718096;
    margin-top: 4px;
    font-style: italic;
}

.show-more {
    display: block;
    background: #4299e1;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.show-more:hover {
    background: #3182ce;
}

@media (max-width: 768px) {
    .grid-section {
        flex-direction: column;
        gap: 30px;
        padding: 0 10px;
    }
}

/* Genres buttons */
.mg-btn-an {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: auto;
    margin: 0 auto;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.mg-btn-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    margin: 0 10px;
}

.mg-btn-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar for a cleaner look */
}

.cn-btn-an {
    flex: 0 0 auto;
    margin: 0 5px;
    padding: 10px 20px;
    background-color: #53FF86;
    color: #000000;
    border: 1px #ccc;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}


.sc-btn-pre {
    padding: 10px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-btn-pre:hover {
    background-color: #5a6268;
}

.sc-btn-pre i {
    font-size: 20px; /* Adjust icon size */
}
